/**
 * Contact Us Page Styles
 */

.contact-page-container {
    padding-top: 0px;
    padding-bottom: 100px;
}

/* Hero Image */
.contact-hero-image-wrapper {
    width: 100%;
    margin-bottom: 100px;
    overflow: hidden;
    border-radius: 24px;
    line-height: 0;
}

.contact-hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Intro Section */
.contact-intro {
    margin-bottom: 100px;
}

.contact-page-title {
    font-size: 2.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.contact-description p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* How Can We Help Section */
.contact-help-section {
    text-align: center;
    margin-bottom: 100px;
}

.contact-help-heading {
    font-size: 2.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-help-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Reason Cards Grid */
.contact-reason-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 950px;
    margin: 0 auto;
}

.contact-reason-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 11px;
    padding: 20px 20px 20px 35px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.contact-reason-card:hover {
    border-color: var(--primary-color, #182036);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.reason-label {
    font-weight: 500;
    flex: 1;
    padding-right: 15px;
}

.reason-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background-color: var(--primary-color, #182036);
    color: #fff;
    transition: background-color 0.3s ease;
}

.contact-reason-card:hover .reason-arrow {
    background-color: #2a3a5c;
}

/* Contact Info Banner */
.contact-info-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2c3e6b;
    padding: 120px 0;
    overflow: hidden;
}

.contact-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contact-info-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-info-col {
    flex: 1;
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #1a3260;
    color: #fff;
    margin-top: -10px;
    /* Slight adjustment to align with title top */
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.2;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-link {
    display: block;
    color: #fff;
    text-decoration: underline;
    font-size: 1.25rem;
    transition: opacity 0.3s ease;
}

.info-link:hover {
    opacity: 0.8;
}

.info-detail {
    display: block;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* ============================================
   POPUP MODAL
   ============================================ */
.contact-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-popup-overlay.active {
    display: flex;
}

.contact-popup-card {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 580px;
    max-height: 95vh;
    overflow-y: auto;
    padding: 30px 40px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    animation: popupSlideIn 0.3s ease;
    border: 1px solid #e0e0e0;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    color: #111;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: scale(1.1);
}

/* Form Fields */
.form-field {
    margin-bottom: 15px;
    position: relative;
}

.form-field.hide-label label small {
    display: none;
}

.form-field label {
    position: absolute;
    top: 10px;
    left: 18px;
    font-size: 13px;
    color: #999;
    pointer-events: none;
    z-index: 1;
    transition: all 0.2s ease;
}

.form-field label b {
    font-weight: 600;
}

.form-field label .required {
    color: #e74c3c;
    margin-left: 1px;
}

.form-field label small {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 32px 18px 10px;
    /* Slightly more top space for safety */
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-field.has-sublabel input {
    padding-top: 34px;
    /* Extra space for the sub-label text */
    padding-bottom: 8px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #aaa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
}

.form-field textarea {
    min-height: 220px;
    resize: none;
    padding-top: 35px;
}

.char-count {
    display: block;
    text-align: left;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* ReCAPTCHA Placeholder Styling */
.recaptcha-wrapper {
    margin-bottom: 30px;
}

.recaptcha-placeholder {
    display: inline-flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #dcdcdc;
    padding: 8px 12px;
    border-radius: 3px;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.recaptcha-placeholder img {
    width: 32px;
    height: 32px;
}

.recaptcha-text {
    display: flex;
    flex-direction: column;
}

.recaptcha-text span {
    font-size: 11px;
    color: #555;
}

.recaptcha-text small {
    font-size: 9px;
    color: #888;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-submit {
    background-color: #002244;
    /* Dark Navy as per mockup */
    color: #fff;
    border: none;
    padding: 16px 60px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
}

.btn-submit:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.form-message.success {
    color: #2ecc71;
}

.form-message.error {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-hero-image-wrapper {
        margin-bottom: 60px;
    }
    .contact-intro, .contact-help-section {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .contact-page-container {
        padding-bottom: 60px;
    }

    .contact-hero-image-wrapper img {
        height: 250px;
    }

    .contact-reason-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info-banner {
        padding: 80px 0;
    }

    .contact-info-inner {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .contact-info-col {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .info-icon {
        margin: 0;
    }

    .contact-help-heading {
        font-size: 2rem;
    }

    .contact-page-title {
        font-size: 2.25rem;
    }

    .contact-popup-card {
        padding: 25px 20px 20px;
    }

    .popup-title {
        font-size: 22px;
    }

    .info-link, .info-detail {
        font-size: 1rem;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .contact-hero-image-wrapper {
        border-radius: 16px;
        margin-bottom: 30px;
    }

    .contact-intro, .contact-help-section {
        margin-bottom: 30px;
    }

    .contact-help-heading {
        font-size: 1.75rem;
    }

    .contact-page-title {
        font-size: 2rem;
    }

    .contact-reason-card {
        padding: 15px 15px 15px 20px;
        font-size: 1rem;
    }

    .reason-arrow {
        width: 36px;
        height: 38px;
        min-width: 36px;
    }

    .info-link, .info-detail {
        font-size: 0.95rem;
    }
}