/**
 * Enhanced Contact Forms Styling
 * Includes country phone selector and improved form layouts
 */

/* Phone Input Container with Country Selector */
.phone-input-container {
    display: flex !important;
    align-items: center !important;
    border: 2px solid #C9A96E !important;
    border-radius: 6px !important;
    background: white !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.phone-input-container:focus-within {
    border-color: #B8956A !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1) !important;
}

.country-selector {
    border: none !important;
    background: #f8f9fa !important;
    padding: 12px 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    cursor: pointer !important;
    outline: none !important;
    min-width: 80px !important;
    border-right: 1px solid #e5e7eb !important;
    border-left: none !important;
}

.country-selector:focus {
    background: #e9ecef !important;
}

.phone-input-container input[type="tel"] {
    border: none !important;
    flex: 1 !important;
    padding: 12px !important;
    font-size: 14px !important;
    outline: none !important;
    background: transparent !important;
    text-align: center !important;
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    pointer-events: auto !important;
    user-select: text !important;
    caret-color: auto !important;
}

/* Country Code Box for Modal Forms */
.country-code-box {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #f8f9fa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #666 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    min-width: 50px !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
}

.country-code-box:hover {
    background: #e9ecef !important;
}

.phone-input-container input[type="tel"] {
    border: none !important;
    flex: 1 !important;
    padding: 12px !important;
    font-size: 14px !important;
    outline: none !important;
    background: transparent !important;
}


    border-color: #C9A96E !important;
}

/* Modal form styling */
.modal .form-group {
    position: relative !important;
    margin-bottom: 15px !important;
}

.modal .form-group.phone-input-group input[type="tel"] {
    padding-right: 70px !important;
}

/* Enhanced Form Styling */
.contact_us form {
    display: grid;
    gap: 20px;
}

.modal .contact_us form {
    gap: 15px;
}

.cusinpput {
    position: relative;
}

.cusinpput label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.cusinpput input[type="text"],
.cusinpput input[type="email"],
.cusinpput input[type="tel"],
.cusinpput textarea,
.modal .form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

/* Modal specific input styling */
.modal .form-input {
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 16px;
}

.modal .form-input:focus {
    border-color: #C9A96E;
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.1);
    outline: none;
}

.cusinpput input:focus,
.cusinpput textarea:focus {
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
    outline: none;
}

.cusinpput input::placeholder,
.cusinpput textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Email field styling */
.cusinpput input[type="email"] {
    background-image: url("data:image/svg+xml,%3csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z' fill='%23C9A96E'/%3e%3cpath d='M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z' fill='%23C9A96E'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

/* Submit button styling */
.contact_us .submit {
    background: linear-gradient(135deg, #C9A96E 0%, #D4B575 100%) !important;
    color: #000000 !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3) !important;
}

.contact_us .submit:hover {
    background: linear-gradient(135deg, #B8956A 0%, #C9A96E 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4) !important;
}

.contact_us .submit:active {
    transform: translateY(0) !important;
}

/* Phone number validation styles */
.phone-valid {
    border-color: #10b981 !important;
    background-image: url("data:image/svg+xml,%3csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z' fill='%2310b981'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    padding-left: 35px !important;
}

.phone-invalid {
    border-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z' fill='%23ef4444'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    padding-left: 35px !important;
}

.phone-validation-message {
    color: #ef4444 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    text-align: right !important;
    direction: rtl !important;
    font-weight: 500 !important;
}

/* Form validation styles */
.cusinpput input:invalid {
    border-color: #ef4444;
}

.cusinpput input:valid {
    border-color: #10b981;
}

/* Disable submit button if phone is invalid */
.contact_us .submit:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.contact_us .submit:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Loading state */
.contact_us .submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.contact_us .submit.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.form-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .country-selector {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        min-width: auto !important;
        width: 100% !important;
    }
    
    .contact_us form {
        gap: 15px;
        padding-bottom: 60px; /* Add space for mobile bottom bars */
    }
    
    .cusinpput input,
    .cusinpput textarea {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact_us .submit,
    .modal .submit-btn,
    .modal .submit {
        padding: 12px 24px !important;
        font-size: 15px !important;
        width: 100% !important;
        display: block !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        min-height: 50px !important;
        box-sizing: border-box !important;
    }
    
    /* Modal specific fixes for mobile */
    .modal .modal-content {
        max-height: 90vh !important;
        overflow-y: auto !important;
        padding-bottom: 30px !important;
    }
    
    /* Ensure submit button is always visible in modal */
    .modal .contact_us form {
        padding-bottom: 40px !important;
    }
    
    .modal .submit-btn,
    .modal .submit {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        z-index: 1000 !important;
    }
}

@media (max-width: 480px) {
    .phone-input-container {
        border-radius: 4px !important;
    }
    
    .cusinpput input,
    .cusinpput textarea {
        border-radius: 4px;
        padding: 8px;
    }
    
    .contact_us .submit,
    .modal .submit-btn,
    .modal .submit {
        padding: 15px 20px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
        min-height: 55px !important;
        margin-bottom: 30px !important;
        position: relative !important;
        bottom: 0 !important;
        width: 100% !important;
        display: block !important;
    }
    
    /* Extra padding for very small screens */
    .modal .contact_us form {
        padding-bottom: 50px !important;
    }
    
    /* Ensure modal content doesn't overflow */
    .modal .modal-content {
        max-height: 95vh !important;
        margin: 2.5vh auto !important;
        padding: 20px !important;
    }
    
    /* Fix for iOS Safari bottom bar */
    .modal {
        padding-bottom: env(safe-area-inset-bottom, 20px) !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .phone-input-container {
        background: #1f2937 !important;
        border-color: #374151 !important;
    }
    
    .country-selector {
        background: #374151 !important;
        color: #f9fafb !important;
        border-color: #4b5563 !important;
    }
    
    .cusinpput input,
    .cusinpput textarea {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .cusinpput label {
        color: #f9fafb;
    }
    
    .cusinpput input::placeholder,
    .cusinpput textarea::placeholder {
        color: #9ca3af;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .phone-input-container,
    .cusinpput input,
    .cusinpput textarea {
        border-width: 3px !important;
    }
    
    .contact_us .submit {
        border: 3px solid #000000 !important;
    }
}

/* Critical mobile submit button fix */
@media (max-width: 768px) {
    /* Override any inline styles that might hide the button */
    .modal button[type="submit"],
    .modal .submit-btn,
    .modal .submit,
    #contactModal button[type="submit"],
    #contactModal .submit-btn,
    #contactModal .submit {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 100% !important;
        margin: 20px 0 30px 0 !important;
        padding: 15px !important;
        min-height: 50px !important;
        background: #C9A96E !important;
        color: #000000 !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        z-index: 9999 !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure modal form has enough bottom space */
    .modal form,
    #contactModal form {
        padding-bottom: 60px !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    /* Ensure modal content is scrollable */
    .modal .modal-content,
    #contactModal .modal-content {
        overflow-y: auto !important;
        max-height: 90vh !important;
        padding-bottom: 40px !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .phone-input-container,
    .cusinpput input,
    .cusinpput textarea,
    .contact_us .submit {
        transition: none !important;
    }
    
    .contact_us .submit.loading::after {
        animation: none !important;
    }
}

/* ===== HERO INLINE FORM STYLES ===== */

/* Hero grid layout */
.hero-form-grid {
    display: grid;
    gap: 40px;
    align-items: center;
    min-height: 70vh;
    padding: 40px 0;
}

@media (min-width: 1024px) {
    .hero-form-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
    }
}

/* Hero content styling */
.hero-content h1 {
    font-size: clamp(28px, 4vw, 48px) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7) !important;
    font-weight: 700 !important;
}

.hero-content p {
    font-size: clamp(16px, 2vw, 22px) !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
    opacity: 0.95 !important;
}

/* Hero features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature-icon {
    font-size: 18px;
}

.hero-feature span:last-child {
    color: #fff !important;
    font-weight: 500;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Hero form card */
.hero-form-card {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.hero-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9A96E 0%, #b8956b 100%);
}

/* Form header */
.hero-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.hero-form-header h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.hero-form-header p {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Enhanced form wrapper */
.hero-form-wrapper {
    margin-bottom: 20px;
}

/* Override form styles for hero */
.hero-form-wrapper .contact_us_area {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-form-wrapper .headline,
.hero-form-wrapper .sm_title {
    display: none !important; /* Hide original headline since we have our own */
}

.hero-form-wrapper .contact_us {
    background: transparent !important;
    padding: 0 !important;
}

.hero-form-wrapper .cusinpput {
    margin-bottom: 20px !important;
}

.hero-form-wrapper .cusinpput label {
    display: block !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

.hero-form-wrapper .cusinpput input,
.hero-form-wrapper .cusinpput textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #333 !important;
}

.hero-form-wrapper .cusinpput input:focus,
.hero-form-wrapper .cusinpput textarea:focus {
    outline: none !important;
    border-color: #C9A96E !important;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.15) !important;
    background: #fff !important;
}

.hero-form-wrapper .cusinpput.span2 textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

.hero-form-wrapper .submit {
    width: 100% !important;
    padding: 16px 24px !important;
    background: linear-gradient(135deg, #C9A96E 0%, #b8956b 100%) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    margin: 20px auto 0 auto !important;
    text-align: center !important;
}

.hero-form-wrapper .submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4) !important;
}

.hero-form-wrapper .submit:active {
    transform: translateY(0) !important;
}

.hero-form-wrapper .submit.loading {
    color: transparent !important;
    pointer-events: none !important;
}

.hero-form-wrapper .submit.loading::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 24px !important;
    height: 24px !important;
    border: 3px solid transparent !important;
    border-top: 3px solid #000 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

/* Trust badges */
.hero-form-trust {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.trust-badges {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    text-align: center;
}

.trust-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.trust-badge span:last-child {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

/* Mobile optimizations for hero form */
@media (max-width: 768px) {
    .hero-form-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        min-height: auto !important;
        padding: 20px 0 !important;
    }
    
    .hero-content {
        text-align: center !important;
        order: 1 !important;
    }
    
    .hero-form-card {
        order: 2 !important;
        padding: 24px 20px !important;
        margin: 0 auto !important;
        max-width: 400px !important;
    }
    
    .hero-features {
        justify-content: center !important;
        margin-top: 20px !important;
    }
    
    .hero-feature {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    
    .hero-form-header h3 {
        font-size: 20px !important;
    }
    
    .hero-form-header p {
        font-size: 13px !important;
    }
    
    .hero-form-wrapper .cusinpput {
        margin-bottom: 16px !important;
    }
    
    .hero-form-wrapper .cusinpput input,
    .hero-form-wrapper .cusinpput textarea {
        padding: 12px 16px !important;
        font-size: 16px !important; /* Prevent iOS zoom */
    }
    
    .hero-form-wrapper .submit {
        padding: 14px 20px !important;
        font-size: 16px !important;
    }
    
    .trust-badges {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .trust-badge {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .trust-badge span:last-child {
        font-size: 12px !important;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero-form-grid {
        gap: 40px !important;
    }
    
    .hero-form-card {
        max-width: 420px !important;
        margin: 0 auto !important;
    }
}

/* Large desktop optimizations */
@media (min-width: 1200px) {
    .hero-form-card {
        padding: 40px !important;
    }
    
    .hero-form-header h3 {
        font-size: 24px !important;
    }
    
    .hero-form-header p {
        font-size: 15px !important;
    }
}

/* ===== DEDICATED CONTACT SECTION ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure contact section is properly accessible */
#contact-section {
    scroll-margin-top: 20px; /* Offset for fixed headers */
}

/* Add visual indication when scrolling to contact */
#contact-section:target .cta-form-card-centered {
    animation: highlight-form 1s ease-out;
}

@keyframes highlight-form {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 20px 60px rgba(201, 169, 110, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

/* Contact section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #C9A96E 50%, transparent 100%);
}

.contact-section-grid {
    display: grid;
    gap: 50px;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-section-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* Contact info */
.contact-info h2 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-info > p {
    font-size: clamp(16px, 1.5vw, 18px);
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-methods {
    display: grid;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C9A96E 0%, #b8956b 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 4px 0;
}

.contact-details p {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.contact-link {
    color: #C9A96E;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #b8956b;
    text-decoration: underline;
}

/* Contact form card */
.contact-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9A96E 0%, #b8956b 100%);
}

.contact-form-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    text-align: center;
}

.contact-form-card > p {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.4;
}

/* Form styling within contact section */
.contact-form-card .contact_us_area {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.contact-form-card .headline,
.contact-form-card .sm_title,
.cta-form-card .headline,
.cta-form-card .sm_title,
.inline-form-wrapper .headline,
.inline-form-wrapper .sm_title {
    display: none !important; /* Hide original headline */
}

.contact-form-card .contact_us {
    background: transparent;
    padding: 0;
}

.contact-form-card .cusinpput {
    margin-bottom: 20px;
}

.contact-form-card .cusinpput label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form-card .cusinpput input,
.contact-form-card .cusinpput textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.contact-form-card .cusinpput input:focus,
.contact-form-card .cusinpput textarea:focus {
    outline: none;
    border-color: #C9A96E;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.15);
}

.contact-form-card .cusinpput.span2 textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-card .submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #C9A96E 0%, #b8956b 100%);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin: 20px auto 0 auto;
    text-align: center;
}

.contact-form-card .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}

/* Inline contact section within about */
.inline-contact-section {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(201, 169, 110, 0.2);
}

.inline-contact-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
    text-align: center;
}

.inline-form-wrapper .contact_us_area {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.inline-form-wrapper .headline {
    display: none;
}

.inline-form-wrapper .contact_us {
    background: transparent;
    padding: 0;
}

.inline-form-wrapper .cusinpput {
    margin-bottom: 16px;
}

.inline-form-wrapper .cusinpput label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.inline-form-wrapper .cusinpput input,
.inline-form-wrapper .cusinpput textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.inline-form-wrapper .submit {
    padding: 12px 20px;
    font-size: 16px;
    background: #C9A96E;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    display: block;
    margin: 20px auto 0 auto;
    text-align: center;
}

/* Mobile optimizations for contact section */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-section-grid {
        gap: 30px;
    }
    
    .contact-methods {
        gap: 16px;
    }
    
    .contact-method {
        padding: 16px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .contact-details h4 {
        font-size: 16px;
    }
    
    .contact-details p {
        font-size: 13px;
    }
    
    .contact-link {
        font-size: 14px;
    }
    
    .contact-form-card {
        padding: 24px 20px;
    }
    
    .contact-form-card h3 {
        font-size: 20px;
    }
    
    .contact-form-card .cusinpput input,
    .contact-form-card .cusinpput textarea {
        padding: 12px 16px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .inline-contact-section {
        padding: 20px 16px;
    }
}

/* Scroll to contact animation */
.scroll-to-contact {
    transition: all 0.3s ease;
    position: relative;
}

.scroll-to-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-contact:active {
    transform: scale(0.95);
}

/* Unit button specific styling */
.unit-button.scroll-to-contact {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #C9A96E 0%, #b8956b 100%);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
}

.unit-button.scroll-to-contact:hover {
    background: linear-gradient(135deg, #b8956b 0%, #a67c52 100%);
    transform: translateY(-2px);
}

/* Nav CTA button styling */
.nav-cta.scroll-to-contact {
    display: inline-block;
    padding: 12px 22px;
    background: #C9A96E;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    border: 1px solid #C9A96E;
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.35);
    transition: all 0.3s ease;
}

.nav-cta.scroll-to-contact:hover {
    background: #b8956b;
    transform: translateY(-2px);
}

/* Override inside basic paragraphs: make it gold with white text */
.basic-paragraph .nav-cta.scroll-to-contact {
    background: #C9A96E !important;
    color: #ffffff !important;
    border-color: #C9A96E !important;
    border-radius: 30px !important;
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.35) !important;
}

.basic-paragraph .nav-cta.scroll-to-contact:hover {
    background: #b8956b !important;
    color: #ffffff !important;
}

/* ===== UNIT CARD ZOOM PREVENTION ===== */

/* Disable photo zoom functionality on unit cards */
.unit-card {
    cursor: default !important;
    pointer-events: auto !important;
}

.unit-card img {
    cursor: default !important;
    pointer-events: none !important;
}

.unit-card .unit-image {
    cursor: default !important;
    pointer-events: none !important;
}

/* Ensure only the button is clickable */
.unit-card .scroll-to-contact {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10 !important;
    position: relative !important;
}

/* Prevent any modal triggers on unit cards */
.unit-card[data-modal],
.unit-card[onclick],
.unit-card[data-toggle] {
    cursor: default !important;
}

.unit-card img[data-modal],
.unit-card img[onclick],
.unit-card img[data-toggle] {
    pointer-events: none !important;
    cursor: default !important;
}

/* Ensure unit button is always on top */
.unit-button {
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

/* ===== AGGRESSIVE ANTI-DELAY OVERRIDES ===== */

/* Block any fade-in or delayed appearance animations on forms */
.contact_us,
.contact_us_area,
.prshor_shortcode,
.hero-form-wrapper,
.contact-form-card,
.inline-form-wrapper,
.hero-form-card,
.inline-contact-section,
.cta-form-card-centered,
form.unform,
form.prshorshort,
.contact_us form,
.contact_us_area form {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    animation: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    animation-delay: 0s !important;
    animation-duration: 0s !important;
}

/* Block fade-in classes that might be added by plugins */
.contact_us.fade-in,
.contact_us_area.fade-in,
.prshor_shortcode.fade-in,
.hero-form-wrapper.fade-in,
.contact-form-card.fade-in,
.inline-form-wrapper.fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Override any CSS that might hide forms initially */
.contact_us[style*="opacity: 0"],
.contact_us_area[style*="opacity: 0"],
.prshor_shortcode[style*="opacity: 0"],
.hero-form-wrapper[style*="opacity: 0"],
.contact-form-card[style*="opacity: 0"],
.inline-form-wrapper[style*="opacity: 0"] {
    opacity: 1 !important;
}

.contact_us[style*="visibility: hidden"],
.contact_us_area[style*="visibility: hidden"],
.prshor_shortcode[style*="visibility: hidden"],
.hero-form-wrapper[style*="visibility: hidden"],
.contact-form-card[style*="visibility: hidden"],
.inline-form-wrapper[style*="visibility: hidden"] {
    visibility: visible !important;
}

.contact_us[style*="display: none"],
.contact_us_area[style*="display: none"],
.prshor_shortcode[style*="display: none"],
.hero-form-wrapper[style*="display: none"],
.contact-form-card[style*="display: none"],
.inline-form-wrapper[style*="display: none"] {
    display: block !important;
}

/* Ensure submit buttons are never hidden and centered */
.hero-form-wrapper .submit,
.contact-form-card .submit,
.inline-form-wrapper .submit,
.cta-form-card .submit,
.contact_us .submit,
button[type="submit"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    margin: 20px auto 0 auto !important;
    text-align: center !important;
}

/* Critical: Override any JavaScript-applied styles */
.hero-form-wrapper *[style*="opacity: 0"],
.contact-form-card *[style*="opacity: 0"],
.inline-form-wrapper *[style*="opacity: 0"] {
    opacity: 1 !important;
}

.hero-form-wrapper *[style*="visibility: hidden"],
.contact-form-card *[style*="visibility: hidden"],
.inline-form-wrapper *[style*="visibility: hidden"] {
    visibility: visible !important;
}

.hero-form-wrapper *[style*="display: none"],
.contact-form-card *[style*="display: none"],
.inline-form-wrapper *[style*="display: none"] {
    display: block !important;
}

/* ===== CTA FORM SECTION ===== */

/* CTA form container - centered layout */
.cta-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* CTA content center */
.cta-content-center {
    margin-bottom: 40px;
}

.cta-content-center .cta-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 12px;
    line-height: 1.3;
}

.cta-content-center .cta-description {
    font-size: clamp(16px, 1.8vw, 20px);
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    opacity: 0.95;
    line-height: 1.5;
    margin: 0;
}

/* CTA form card centered */
.cta-form-card-centered {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.cta-form-card-centered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9A96E 0%, #b8956b 100%);
}

/* CTA content styling */
.cta-content .cta-title {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7) !important;
}

.cta-content .cta-description {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
    opacity: 0.95 !important;
}

/* CTA contact info */
.cta-contact-info {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-icon {
    font-size: 20px;
}

.cta-contact-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.cta-contact-link:hover {
    color: #C9A96E !important;
}

/* CTA form card */
.cta-form-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9A96E 0%, #b8956b 100%);
}

/* CTA form styling */
.cta-form-card .contact_us_area {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.cta-form-card .contact_us {
    background: transparent;
    padding: 0;
}

.cta-form-card .cusinpput {
    margin-bottom: 20px;
}

.cta-form-card .cusinpput label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.cta-form-card .cusinpput input,
.cta-form-card .cusinpput textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.cta-form-card .cusinpput input:focus,
.cta-form-card .cusinpput textarea:focus {
    outline: none;
    border-color: #C9A96E;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.15);
}

.cta-form-card .submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #C9A96E 0%, #b8956b 100%);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin: 20px auto 0 auto;
    text-align: center;
}

.cta-form-card .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}

/* CTA form styling */
.cta-form-card-centered .contact_us_area {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.cta-form-card-centered .headline,
.cta-form-card-centered .sm_title {
    display: none !important;
}

.cta-form-card-centered .contact_us {
    background: transparent;
    padding: 0;
}

.cta-form-card-centered .cusinpput {
    margin-bottom: 24px;
}

.cta-form-card-centered .cusinpput label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
    text-align: right;
}

.cta-form-card-centered .cusinpput input,
.cta-form-card-centered .cusinpput textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    text-align: center;
}

.cta-form-card-centered .cusinpput input:focus,
.cta-form-card-centered .cusinpput textarea:focus {
    outline: none;
    border-color: #C9A96E;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.15);
    transform: translateY(-1px);
}

.cta-form-card-centered .submit {
    width: 80%;
    max-width: 300px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #C9A96E 0%, #b8956b 100%);
    color: #000;
    border: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin: 30px auto 0 auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.cta-form-card-centered .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201, 169, 110, 0.5);
    background: linear-gradient(135deg, #b8956b 0%, #a67c52 100%);
}

.cta-form-card-centered .submit:active {
    transform: translateY(-1px);
}

/* Mobile optimizations for CTA form - Maintain Desktop Design */
@media (max-width: 768px) {
    .cta-form-container {
        max-width: 100%;
        padding: 0 15px; /* Increased padding for better spacing */
    }
    
    .cta-content-center {
        margin-bottom: 40px; /* Keep desktop spacing */
    }
    
    .cta-content-center .cta-title {
        font-size: clamp(26px, 4vw, 32px); /* Responsive but maintain desktop look */
        margin-bottom: 12px; /* Keep desktop spacing */
    }
    
    .cta-content-center .cta-description {
        font-size: clamp(17px, 2vw, 20px); /* Responsive but maintain desktop look */
    }
    
    .cta-form-card-centered {
        padding: 35px 25px; /* Maintain substantial padding like desktop */
        max-width: 100%;
        border-radius: 20px; /* Keep desktop border radius */
        /* Maintain all desktop visual effects */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.3),
            0 8px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .cta-form-card-centered .cusinpput {
        margin-bottom: 24px; /* Keep desktop spacing */
    }
    
    .cta-form-card-centered .cusinpput label {
        font-size: 16px; /* Keep readable size */
        margin-bottom: 10px; /* Keep desktop spacing */
    }
    
    .cta-form-card-centered .cusinpput input,
    .cta-form-card-centered .cusinpput textarea {
        padding: 16px 20px; /* Keep desktop padding */
        font-size: 16px; /* Prevent iOS zoom but keep desktop size */
        border-radius: 12px; /* Keep desktop border radius */
        /* Maintain desktop styling */
        border: 2px solid #e5e7eb;
        background: #ffffff;
        transition: all 0.3s ease;
    }
    
    .cta-form-card-centered .cusinpput input:focus,
    .cta-form-card-centered .cusinpput textarea:focus {
        /* Keep all desktop focus effects */
        outline: none;
        border-color: #C9A96E;
        box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.15);
        transform: translateY(-1px);
    }
    
    .cta-form-card-centered .submit {
        width: 80%; /* Keep desktop width proportion */
        max-width: 300px; /* Keep desktop max-width */
        padding: 18px 32px; /* Keep desktop padding */
        font-size: 18px; /* Keep desktop font size */
        margin: 25px auto 0; /* Keep desktop spacing */
        border-radius: 25px; /* Keep desktop border radius */
        /* Maintain all desktop button effects */
        background: linear-gradient(135deg, #C9A96E 0%, #b8956b 100%);
        color: #000000;
        border: none;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
    }
    
    .cta-form-card-centered .submit:hover {
        /* Keep all desktop hover effects */
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(201, 169, 110, 0.5);
        background: linear-gradient(135deg, #b8956b 0%, #a67c52 100%);
    }
}

/* Small mobile screens - maintain desktop design */
@media (max-width: 480px) {
    .cta-form-container {
        padding: 0 12px; /* Slightly reduce padding for very small screens */
    }
    
    .cta-content-center {
        margin-bottom: 35px; /* Slightly reduce spacing */
    }
    
    .cta-form-card-centered {
        padding: 30px 20px; /* Adjust padding for small screens but keep substantial */
        border-radius: 18px; /* Keep rounded corners */
        /* Maintain all desktop visual effects */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 
            0 15px 50px rgba(0, 0, 0, 0.25),
            0 6px 20px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .cta-form-card-centered .cusinpput {
        margin-bottom: 22px; /* Keep substantial spacing */
    }
    
    .cta-form-card-centered .cusinpput input,
    .cta-form-card-centered .cusinpput textarea {
        padding: 15px 18px; /* Keep substantial padding */
        border-radius: 10px; /* Keep rounded corners */
        /* Override any global small screen styles */
        border: 2px solid #e5e7eb !important;
        background: #ffffff !important;
        transition: all 0.3s ease !important;
    }
    
    .cta-form-card-centered .submit {
        width: 85%; /* Slightly wider for small screens */
        max-width: 280px;
        padding: 16px 28px; /* Keep substantial padding */
        font-size: 17px;
        border-radius: 22px !important; /* Keep rounded corners, override global styles */
        /* Override any global small screen styles */
        background: linear-gradient(135deg, #C9A96E 0%, #b8956b 100%) !important;
        box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        min-height: auto !important; /* Override global min-height */
        margin: 22px auto 0 !important; /* Override global margin */
    }
    
    .cta-form-card-centered .submit:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4) !important;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1023px) {
    .cta-form-container {
        max-width: 550px;
    }
    
    .cta-form-card-centered {
        padding: 35px 30px;
    }
    
    .cta-form-card-centered .cusinpput input,
    .cta-form-card-centered .cusinpput textarea {
        font-size: 17px;
        padding: 15px 19px;
    }
    
    .cta-form-card-centered .submit {
        width: 85%;
        font-size: 19px;
    }
}

/* Large desktop optimizations */
@media (min-width: 1200px) {
    .cta-form-container {
        max-width: 650px;
    }
    
    .cta-content-center {
        margin-bottom: 50px;
    }
    
    .cta-form-card-centered {
        padding: 45px 40px;
    }
    
    .cta-form-card-centered .cusinpput label {
        font-size: 17px;
    }
    
    .cta-form-card-centered .cusinpput input,
    .cta-form-card-centered .cusinpput textarea {
        font-size: 19px;
        padding: 18px 22px;
    }
    
    .cta-form-card-centered .submit {
        font-size: 21px;
        padding: 20px 36px;
    }
}
