/* ============================================
   Contact Page — Layout Fixes
   Prevents content from being hidden behind
   the fixed 72px sidebar.
   ============================================ */

/* The wrapper section: dark background applied
   directly — no theme stretching classes needed */
.contact-section-wrapper {
    background: #012e40;
    position: relative;
    overflow: visible !important;
    /* Kill any negative margins the theme JS may inject */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Two-column CSS Grid */
.contact-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    align-items: start;
}

/* Left column */
.contact-info-col {
    overflow: visible;
    color: #afb1b6;
}

.contact-info-col .mad-sub-title {
    color: #07c7f2;
    margin-bottom: 4px;
}

.contact-info-col .mad-title {
    color: #ffffff;
    margin-bottom: 16px;
}

.contact-info-col .mad-text-medium {
    color: #afb1b6;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Info cards 2×2 grid */
.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-info-cards .mad-icon-box {
    color: #afb1b6;
}

.contact-info-cards .mad-icon-sub-title {
    color: #07c7f2;
}

.contact-info-cards .mad-icon-box-title {
    color: #ffffff;
}

.contact-info-cards .mad-read-more {
    color: #07c7f2;
}

/* Right column */
.contact-form-col {
    overflow: visible;
    color: #afb1b6;
}

.contact-form-col label {
    color: #afb1b6;
}

.contact-form-col .mad-contact-form .mad-col {
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
}

.contact-form-col input,
.contact-form-col textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form-col .mad-reload {
    color: #07c7f2;
}

/* Map iframe: use full width, no hardcoded px */
.g-map-wrap iframe {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* ===========================
   Also fix the index.html "Have a Question"
   stretched contact section so it doesn't
   clip behind the sidebar.
   =========================== */
.mad-section.mad-colorizer--scheme-color-2.mad-section--stretched > .row {
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive: stack on tablet/mobile */
@media (max-width: 992px) {
    .contact-section-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-section-grid {
        padding: 30px 16px;
    }

    .contact-info-col .mad-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .contact-info-col .mad-text-medium {
        word-wrap: break-word;
        font-size: 14px;
    }
}
