/* ==========================================================
   MADIBENG CONNECT
   CONTACT PAGE
   ========================================================== */

.mc-contact-page {
    padding: 64px 0 80px;
    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 48%,
            #f8fafc 100%
        );
}


/* ==========================================================
   HERO
   ========================================================== */

.mc-contact-hero {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.mc-contact-hero .mc-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-bottom: 15px;
    padding: 6px 13px;
    border: 1px solid rgba(25, 122, 69, 0.15);
    border-radius: 999px;
    background: rgba(25, 122, 69, 0.07);
    color: #197a45;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mc-contact-hero h1 {
    margin: 0 0 15px;
    color: #0f172a;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.8px;
}

.mc-contact-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}


/* ==========================================================
   CONTACT GRID
   ========================================================== */

.mc-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: stretch;
}


/* ==========================================================
   SHARED CARDS
   ========================================================== */

.mc-contact-info,
.mc-contact-form-wrapper {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 20px;
    box-shadow:
        0 10px 35px rgba(15, 23, 42, 0.05),
        0 2px 8px rgba(15, 23, 42, 0.025);
}

.mc-contact-info::before,
.mc-contact-form-wrapper::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #197a45;
    content: "";
}


/* ==========================================================
   CONTACT INFORMATION
   ========================================================== */

.mc-contact-info {
    padding: 36px;
}

.mc-contact-info h2,
.mc-contact-form-wrapper h2 {
    margin: 0 0 11px;
    color: #0f172a;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.mc-contact-info > p,
.mc-contact-form-wrapper > p {
    margin: 0 0 27px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================================
   CONTACT DETAILS
   ========================================================== */

.mc-contact-details {
    display: flex;
    flex-direction: column;
}

.mc-contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #edf0f3;
}

.mc-contact-detail:first-child {
    padding-top: 3px;
}

.mc-contact-detail:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mc-contact-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border: 1px solid rgba(25, 122, 69, 0.1);
    border-radius: 12px;
    background: rgba(25, 122, 69, 0.08);
    color: #197a45;
    font-size: 16px;
}

.mc-contact-detail > div:last-child {
    min-width: 0;
}

.mc-contact-detail span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.mc-contact-detail a,
.mc-contact-detail strong {
    display: block;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.mc-contact-detail a {
    transition:
        color 0.2s ease;
}

.mc-contact-detail a:hover {
    color: #197a45;
}


/* ==========================================================
   CONTACT FORM
   ========================================================== */

.mc-contact-form-wrapper {
    padding: 36px;
}

.mc-contact-form {
    width: 100%;
}


/* ==========================================================
   FORM LAYOUT
   ========================================================== */

.mc-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.mc-form-field {
    margin-bottom: 18px;
}

.mc-form-field label {
    display: block;
    margin-bottom: 7px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.mc-form-field label span {
    color: #dc2626;
}

.mc-form-field input,
.mc-form-field textarea,
.mc-form-field select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.mc-form-field input::placeholder,
.mc-form-field textarea::placeholder {
    color: #94a3b8;
}

.mc-form-field input:hover,
.mc-form-field textarea:hover,
.mc-form-field select:hover {
    border-color: #c4ccd6;
}

.mc-form-field input:focus,
.mc-form-field textarea:focus,
.mc-form-field select:focus {
    border-color: #197a45;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 122, 69, 0.1);
}

.mc-form-field textarea {
    min-height: 145px;
    resize: vertical;
}

.mc-contact-form-actions {
    display: flex;
    align-items: center;
    margin-top: 3px;
}

.mc-contact-form-actions .mc-button {
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 800;
}


/* ==========================================================
   BUSINESS CTA
   ========================================================== */

.mc-contact-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 38px;
    padding: 36px 42px;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            #197a45 0%,
            #146437 100%
        );
    color: #ffffff;
    box-shadow:
        0 15px 40px rgba(25, 122, 69, 0.16);
}

.mc-contact-cta::after {
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.mc-contact-cta-content {
    position: relative;
    z-index: 1;
}

.mc-contact-cta h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.mc-contact-cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.65;
}

.mc-contact-cta .mc-button {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    white-space: nowrap;
}


/* ==========================================================
   PAGE LINKS
   ========================================================== */

.mc-contact-page a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 950px) {

    .mc-contact-page {
        padding: 55px 0 70px;
    }

    .mc-contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mc-contact-info,
    .mc-contact-form-wrapper {
        padding: 32px;
    }

    .mc-contact-cta {
        padding: 34px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .mc-contact-page {
        padding: 45px 0 55px;
    }

    .mc-contact-hero {
        margin-bottom: 35px;
    }

    .mc-contact-hero h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .mc-contact-hero p {
        font-size: 15px;
        line-height: 1.65;
    }

    .mc-contact-info,
    .mc-contact-form-wrapper {
        padding: 27px;
        border-radius: 17px;
    }

    .mc-contact-info h2,
    .mc-contact-form-wrapper h2 {
        font-size: 26px;
    }

    .mc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mc-contact-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 21px;
        padding: 30px 27px;
        border-radius: 17px;
    }

    .mc-contact-cta h2 {
        font-size: 25px;
    }

    .mc-contact-cta .mc-button {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .mc-contact-page {
        padding: 36px 0 48px;
    }

    .mc-contact-hero {
        margin-bottom: 28px;
    }

    .mc-contact-hero .mc-eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .mc-contact-hero h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .mc-contact-hero p {
        font-size: 14px;
    }

    .mc-contact-info,
    .mc-contact-form-wrapper {
        padding: 22px;
        border-radius: 15px;
    }

    .mc-contact-info h2,
    .mc-contact-form-wrapper h2 {
        font-size: 23px;
    }

    .mc-contact-detail {
        gap: 12px;
        padding: 16px 0;
    }

    .mc-contact-detail-icon {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
        border-radius: 11px;
        font-size: 15px;
    }

    .mc-contact-detail a,
    .mc-contact-detail strong {
        font-size: 14px;
    }

    .mc-form-field input,
    .mc-form-field textarea,
    .mc-form-field select {
        font-size: 14px;
    }

    .mc-contact-cta {
        margin-top: 28px;
        padding: 25px 22px;
        border-radius: 15px;
    }

    .mc-contact-cta h2 {
        font-size: 23px;
    }

    .mc-contact-cta p {
        font-size: 14px;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .mc-contact-page a,
    .mc-form-field input,
    .mc-form-field textarea,
    .mc-form-field select {
        transition: none;
    }

}