/* ==========================================================================
   Contact Us (page-contact.php) — Page-Specific Styles
   ========================================================================== */

/* Contact section */
.contact-section {
    padding: 110px 80px;
    background: linear-gradient(180deg, #FAFAF7 0%, #F5F3EE 100%);
    position: relative;
    overflow: hidden;
}
.contact-grid {
    max-width: 1280px; 
    margin: 0 auto;
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 72px; 
    align-items: start;
    position: relative; 
    z-index: 1;
}
.contact-heading {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 38px; 
    font-weight: 700;
    letter-spacing: -0.025em; 
    line-height: 1.15;
    color: #223763; 
    margin-bottom: 28px;
}
.contact-text {
    font-size: 16px; 
    color: #3F4552;
    line-height: 1.8; 
    margin: 0 0 22px; 
    max-width: 520px;
}
.contact-text:last-of-type { 
    margin-bottom: 36px; 
}
.contact-disclaimer {
    font-size: 13px; 
    color: #3864C0;
    font-weight: 600; 
    letter-spacing: 0.04em;
    padding-top: 28px;
    border-top: 1px solid rgba(34,55,99,0.12);
    max-width: 520px;
}
.contact-eyebrow {
    font-size: 12px; 
    letter-spacing: 0.3em; 
    text-transform: uppercase;
    color: #3864C0; 
    font-weight: 600; 
    margin-bottom: 24px;
    display: flex; 
    align-items: center; 
    gap: 12px; 
    line-height: 1;
}
.contact-eyebrow::before {
    content: '';
    display: inline-block; 
    width: 28px; 
    height: 1px;
    background: #3864C0; 
    flex-shrink: 0;
}

/* Form layout */
.form-row-2 {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 22px; 
    margin-bottom: 22px;
}
.cf-field-gap { 
    margin-bottom: 22px; 
}
.cf-field-gap-lg { 
    margin-bottom: 32px; 
}
.form-submit-wrap {
    display: flex; 
    justify-content: flex-end;
}

/* Contact form — editorial underline style */
.cf-field { 
    position: relative; 
}
.cf-field label {
    display: block;
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #3864C0;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 14px;
}
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 8px 0 10px;
    font-size: 15px;
    color: #223763;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(34, 55, 99, 0.20);
    border-radius: 0;
    outline: none;
    font-family: 'Work Sans', system-ui, sans-serif;
    transition: border-color 0.25s ease;
}
#contact-form textarea {
    resize: vertical;
    line-height: 1.55;
    min-height: 70px;
}
#contact-form input:hover,
#contact-form textarea:hover { 
    border-bottom-color: rgba(34, 55, 99, 0.45); 
}
#contact-form input:focus,
#contact-form textarea:focus {
    border-bottom-color: #3864C0;
    border-bottom-width: 2px;
    padding-bottom: 9px;
}

/* Error state */
.cf-field.cf-error input,
.cf-field.cf-error textarea {
    border-bottom-color: #dc3545;
}
.cf-error-msg {
    display: none;
    font-size: 12px;
    color: #dc3545;
    margin-top: 6px;
}
.cf-field.cf-error .cf-error-msg {
    display: block;
}

/* Toast notification */
#toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.toast {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(34, 55, 99, 0.15);
    padding: 20px 24px;
    min-width: 320px;
    max-width: 420px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-icon.success {
    background: #E8F5E9;
    color: #2E7D32;
}
.toast-icon.error {
    background: #FFEBEE;
    color: #C62828;
}
.toast-title {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #223763;
    margin: 0 0 4px;
}
.toast-message {
    font-size: 13px;
    color: #6E7582;
    margin: 0;
    line-height: 1.5;
}
.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6E7582;
    padding: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.toast-close:hover { 
    color: #223763; 
}
.toast-close svg { 
    width: 16px; 
    height: 16px; 
    display: block; 
}

/* Responsive */
@media (max-width: 1100px) {
    .contact-section { 
        padding: 80px 48px; 
    }
    .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 48px; 
    }
    .form-row-2 { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 700px) {
    .contact-section { 
        padding: 72px 20px; 
    }
    .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 32px; 
    }
    #toast-container {
        top: 16px;
        right: 12px;
        left: 12px;
    }
    .toast {
        min-width: 0;
        max-width: none;
    }
}
