/* ==================================================
   CONTACT US POPUP
   Uses the site palette from site.css (--primary-blue, --dark-blue, ...).
   Sits above the fixed navbar (9999) and below the calculator authorization modal (99999).
   ================================================== */

.contact-us-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(1, 25, 48, 0.72);
    overflow-y: auto;
}

body.contact-us-open {
    overflow: hidden;
}

.contact-us-modal {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 940px;
    margin: auto;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.25s ease-out;
}

.contact-us-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

    .contact-us-close:hover,
    .contact-us-close:focus-visible {
        color: #111;
        background: #f0f2f5;
    }


/* ============================================
   CONTACT DETAILS CARD
   ============================================ */

.contact-us-details {
    flex: 0 0 380px;
    padding: 40px 30px;
    background: linear-gradient(160deg, var(--dark-blue) 0%, #011f3b 100%);
    color: #ffffff;
}

    .contact-us-details h3 {
        margin: 0 0 26px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        font-size: 20px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

.contact-us-details-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 22px;
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

    .contact-us-details-item i {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        font-size: 15px;
        color: #ffffff;
    }

    .contact-us-details-item a {
        padding-top: 4px;
        color: #ffffff;
        text-decoration: none;
        word-break: break-word;
    }

        .contact-us-details-item a:hover,
        .contact-us-details-item a:focus-visible {
            text-decoration: underline;
        }


/* ============================================
   ENQUIRY FORM
   ============================================ */

.contact-us-form-section {
    flex: 1 1 auto;
    min-width: 0;
    padding: 40px 36px 34px;
}

    .contact-us-form-section h2 {
        margin: 0 0 6px;
        font-size: 24px;
        font-weight: 600;
        color: var(--text-dark);
    }

.contact-us-description {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.contact-us-field {
    margin-bottom: 14px;
}

    .contact-us-field label {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-dark);
    }

.contact-us-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #d6dce5;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    background: #ffffff;
    outline: none;
}

    .contact-us-input:focus {
        border-color: #0d5aa7;
        box-shadow: 0 0 0 3px rgba(13, 90, 167, 0.12);
    }

    .contact-us-input.contact-us-invalid {
        border-color: #c62828;
    }

.contact-us-textarea {
    min-height: 104px;
    resize: vertical;
}

.contact-us-field-error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: #c62828;
    font-size: 13px;
}

.contact-us-alert {
    margin-bottom: 15px;
    padding: 10px 12px;
    border-radius: 5px;
    background: #fff0f0;
    border: 1px solid #f2c2c2;
    color: #c62828;
    font-size: 13.5px;
}

.contact-us-extra {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-us-button {
    width: 100%;
    margin-top: 6px;
    padding: 13px 18px;
    border: none;
    border-radius: 6px;
    background: var(--primary-blue);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .contact-us-button:hover,
    .contact-us-button:focus-visible {
        background: var(--dark-blue);
    }

    .contact-us-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


/* ============================================
   SUCCESS STATE
   ============================================ */

.contact-us-success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 34px auto 18px;
    border-radius: 50%;
    background: #e8f5ec;
    color: #1e8e3e;
    font-size: 32px;
}

.contact-us-success-message {
    margin: 0 0 28px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}


/* ============================================
   FOOTER LINK
   ============================================ */

.footer-contact-link {
    margin-left: 10px;
    padding-left: 12px;
    border-left: 1px solid var(--border-gray);
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
}

    .footer-contact-link:hover,
    .footer-contact-link:focus-visible {
        text-decoration: underline;
    }


/* ============================================
   TABLET / MOBILE
   ============================================ */

@media (max-width: 768px) {

    .contact-us-overlay {
        align-items: flex-start;
        padding: 15px;
    }

    .contact-us-modal {
        flex-direction: column-reverse;
        max-width: 520px;
    }

    .contact-us-details {
        flex: 0 0 auto;
        padding: 26px 24px 8px;
    }

        .contact-us-details h3 {
            margin-bottom: 18px;
        }

    .contact-us-form-section {
        padding: 34px 24px 26px;
    }
}
