
/* =====================================================
   MOSTPLAY PARTNERS — CONTACT US PAGE
   Reference-based layout
===================================================== */

.mp-contact-page {
    --contact-blue: #0055d8;
    --contact-dark: #080d39;
    --contact-muted: #54658e;
    --contact-yellow: #ffbd00;

    width: 100%;
    overflow: hidden;
    background: #eefaff;
    color: var(--contact-dark);
}

.mp-contact-page *,
.mp-contact-page *::before,
.mp-contact-page *::after {
    box-sizing: border-box;
}

.mp-contact-container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

/* =====================================================
   1. HERO SECTION
===================================================== */

.mp-contact-hero {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    isolation: isolate;

    background-color: #003fae;
    background-image:
        var(--mp-contact-hero-bg, none),
        radial-gradient(
            ellipse at 27% -8%,
            #087aff 0%,
            #0057df 37%,
            #003da8 72%,
            #00266c 100%
        );

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    border-radius: 0 0 50% 50% / 0 0 7% 7%;
}

.mp-contact-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-height: 330px;
    padding: 45px 20px 70px;
}

.mp-contact-hero__content {
    position: relative;
    z-index: 2;

    flex: 0 1 58%;
    min-width: 0;
}

/* Small uppercase label */

.mp-contact-hero__label {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.3;
    text-transform: uppercase;
}

.mp-contact-hero__label-line {
    display: block;
    flex: 0 0 22px;

    width: 22px;
    height: 4px;

    border-radius: 3px;
    background: var(--contact-yellow);
}

/* Main heading */

.mp-contact-hero__heading {
    margin: 0;

    color: #ffffff;
    font-size: clamp(35px, 4.7vw, 62px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -1.6px;
}

.mp-contact-hero__heading-main,
.mp-contact-hero__heading-highlight {
    display: block;
}

.mp-contact-hero__heading-highlight {
    color: #ffca00;
}

/* Description */

.mp-contact-hero__description {
    margin-top: 12px;

    color: #ffffff;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 400;
    line-height: 1.4;
}

.mp-contact-hero__description p {
    margin: 0;
}

/* Right-side illustration */

.mp-contact-hero__art {
    position: relative;
    z-index: 1;

    flex: 0 1 42%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-contact-hero__art img {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
}

/* =====================================================
   2. CONTACT METHOD CARDS
===================================================== */

.mp-contact-methods {
    position: relative;
    z-index: 3;

    margin-top: 20px;
}

.mp-contact-methods__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mp-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    min-width: 0;
    min-height: 280px;

    padding: 18px 22px 20px;

    background: #ffffff;
    border: 1px solid #e0efff;
    border-radius: 9px;

    box-shadow: 0 4px 18px rgba(25, 93, 155, 0.09);
}

/* Circular blue icon */

.mp-contact-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;
    flex-shrink: 0;

    margin-bottom: 13px;

    border-radius: 50%;
   /* background: linear-gradient(
        145deg,
        #0067f5 0%,
        #0048c5 100%
    );*/

    box-shadow: 0 4px 9px rgba(0, 75, 190, 0.13);
}

.mp-contact-card__icon img {
    display: block;
    width: 78px;
    height: 78px;
    object-fit: contain;
}

/* Card title */

.mp-contact-card__title {
    margin: 0 0 8px;

    color: var(--contact-dark);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

/* Card description */

.mp-contact-card__description {
    flex-grow: 1;

    margin: 0 0 17px;

    color: var(--contact-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

/* Button */

.mp-contact-card__button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;

    padding: 10px 12px;

    background: #0050d0;
    border-radius: 5px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    transition: background-color 0.2s ease;
}

.mp-contact-card__button:hover,
.mp-contact-card__button:focus-visible {
    background: #003eb1;
    color: #ffffff;
    text-decoration: none;
}

/* Reference contact buttons have no arrows */

.mp-contact-card__button > span:last-child:not(:first-child) {
    display: none;
}

/* =====================================================
   3. HOW CAN WE HELP?
===================================================== */

.mp-contact-support {
    padding: 28px 0 14px;
}

.mp-contact-support__header {
    margin-bottom: 24px;
    text-align: center;
}

.mp-contact-support__heading {
    margin: 0 0 6px;

    color: var(--contact-dark);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.mp-contact-support__description {
    margin: 0;

    color: var(--contact-muted);
    font-size: 16px;
    line-height: 1.5;
}

.mp-contact-support__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.mp-contact-support__item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    padding: 0 22px 6px;

    text-align: center;
}

.mp-contact-support__item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 35px;
    bottom: 0;

    width: 1px;
    background: #cfe6fb;
}

/* Yellow circular support icons */

.mp-contact-support__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;
    flex-shrink: 0;

    margin-bottom: 10px;

    border-radius: 50%;
    background: #ffb900;
}

.mp-contact-support__icon img {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.mp-contact-support__item-title {
    margin: 0 0 7px;

    color: var(--contact-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.35px;
}

.mp-contact-support__item-description {
    margin: 0;

    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* =====================================================
   4. FAQ CALLOUT
===================================================== */

.mp-contact-faq {
    padding: 22px 0 12px;
}

.mp-contact-faq__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    min-height: 76px;
    padding: 12px 18px;

    background: #ffffff;
    border: 1px solid #e2effd;
    border-radius: 8px;

    box-shadow: 0 3px 13px rgba(35, 98, 155, 0.06);
}

.mp-contact-faq__left {
    display: flex;
    align-items: center;
    gap: 16px;

    min-width: 0;
}

.mp-contact-faq__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    flex: 0 0 54px;

    border-radius: 50%;
    background: #e0f1ff;
}

.mp-contact-faq__icon img {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.mp-contact-faq__text {
    min-width: 0;
}

.mp-contact-faq__heading {
    margin: 0 0 4px;

    color: var(--contact-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.mp-contact-faq__description {
    margin: 0;

    color: var(--contact-muted);
    font-size: 13px;
    line-height: 1.4;
}

.mp-contact-faq__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    flex-shrink: 0;

    color: #004fe0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.mp-contact-faq__link:hover,
.mp-contact-faq__link:focus-visible {
    color: #0035a5;
    text-decoration: none;
}

.mp-contact-faq__link span:last-child {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

/* =====================================================
   TABLET / SMALL DESKTOP
===================================================== */

@media (max-width: 900px) {

    .mp-contact-hero {
        min-height: 260px;
    }

    .mp-contact-hero__inner {
        min-height: 255px;
        padding: 38px 20px 53px;
        gap: 12px;
    }

    .mp-contact-hero__heading {
        font-size: clamp(30px, 5.5vw, 45px);
    }

    .mp-contact-hero__label {
        font-size: 10px;
        letter-spacing: 2.5px;
        margin-bottom: 12px;
    }

    .mp-contact-hero__description {
        font-size: 16px;
        margin-top: 8px;
    }

    .mp-contact-card {
        min-height: 205px;
        padding: 13px 15px 14px;
    }

    .mp-contact-card__icon {
        width: 66px;
        height: 66px;
        margin-bottom: 10px;
    }

    .mp-contact-card__icon img {
        width: 72px;
        height: 72px;
    }

    .mp-contact-card__title {
        font-size: 16px;
    }

    .mp-contact-card__description {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .mp-contact-card__button {
        min-height: 32px;
        padding: 8px;
        font-size: 12px;
    }

    .mp-contact-support {
        padding-top: 22px;
    }

    .mp-contact-support__header {
        margin-bottom: 18px;
    }

    .mp-contact-support__heading {
        font-size: 28px;
    }

    .mp-contact-support__description {
        font-size: 14px;
    }

    .mp-contact-support__item {
        padding-inline: 12px;
    }

    .mp-contact-support__icon {
        width: 57px;
        height: 57px;
    }

    .mp-contact-support__icon img {
        width: 57px;
        height: 57px;
    }

    .mp-contact-support__item-title {
        font-size: 14px;
    }

    .mp-contact-support__item-description {
        font-size: 12px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .mp-contact-container {
        width: min(100% - 28px, 440px);
    }

    .mp-contact-hero {
        border-radius: 0 0 50% 50% / 0 0 3% 3%;
    }

    .mp-contact-hero__inner {
        flex-direction: column;
        align-items: center;

        gap: 15px;
        padding: 35px 0 48px;

        text-align: center;
    }

    .mp-contact-hero__content,
    .mp-contact-hero__art {
        flex: none;
        width: 100%;
    }

    .mp-contact-hero__label {
        justify-content: center;
        font-size: 10px;
        letter-spacing: 2px;
    }

    .mp-contact-hero__heading {
        font-size: clamp(33px, 8.2vw, 45px);
        letter-spacing: -1px;
    }

    .mp-contact-hero__description {
        font-size: 15px;
    }

    .mp-contact-hero__art img {
        max-width: 290px;
    }

    .mp-contact-methods {
        margin-top: 18px;
    }

    .mp-contact-methods__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mp-contact-card {
        min-height: 0;
        padding: 20px;
    }

    .mp-contact-card__icon {
        width: 72px;
        height: 72px;
    }

    .mp-contact-card__title {
        font-size: 19px;
    }

    .mp-contact-card__description {
        font-size: 14px;
    }

    .mp-contact-card__button {
        min-height: 42px;
        font-size: 14px;
    }

    .mp-contact-support {
        padding: 34px 0 12px;
    }

    .mp-contact-support__heading {
        font-size: 27px;
    }

    .mp-contact-support__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mp-contact-support__item {
        padding: 0 10px 20px;
    }

    .mp-contact-support__item:not(:last-child)::after {
        top: auto;
        bottom: 0;
        right: 15%;
        left: 15%;
        width: auto;
        height: 1px;
    }

    .mp-contact-faq__card {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .mp-contact-faq__left {
        align-items: center;
        gap: 12px;
    }

    .mp-contact-faq__link {
        align-self: flex-end;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .mp-contact-card__button {
        transition: none;
    }
}



/* ==========================================
   CONTACT PAGE — FIX HERO BOTTOM CURVE
   Use the curve already in the background image
========================================== */

.mp-contact-hero {
    /* Remove the extra CSS-created curve */
    border-radius: 0 !important;

    /* Match the uploaded background proportions */
    min-height: 0;
    aspect-ratio: 2048 / 582;

    /* Display the complete original background */
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* Keep hero content above the background */

.mp-contact-hero__inner {
    min-height: 0;
}

/* Disable the old mobile curve too */

@media (max-width: 600px) {

    .mp-contact-hero {
        border-radius: 0 !important;
        aspect-ratio: auto;
        min-height: 420px;
        background-size: 100% 100%;
    }

}



/* ==========================================
   CONTACT HERO — REMOVE EXTRA EMPTY SPACE
   Preserve original background bottom curve
========================================== */

@media (min-width: 901px) {

    .mp-contact-hero {
        aspect-ratio: auto !important;
        min-height: 0 !important;
        height: 390px !important;

        border-radius: 0 !important;

        /* Keep original image aligned to bottom */
        background-size: 100% auto !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;

        overflow: hidden;
    }

    .mp-contact-hero__inner {
        min-height: 0 !important;
        height: 100% !important;
        padding-top: 35px !important;
        padding-bottom: 75px !important;
    }

}



/* ==========================================
   CONTACT HERO — HIDE ILLUSTRATION ON MOBILE
========================================== */

@media (max-width: 600px) {

    .mp-contact-hero__art {
        display: none !important;
    }

}



/* ==========================================
   CONTACT HERO — MOBILE HEIGHT & CURVE FIX
========================================== */

@media (max-width: 600px) {

    /* Shorter mobile hero */
    .mp-contact-hero {
        aspect-ratio: auto !important;
        height: 255px !important;
        min-height: 0 !important;

        border-radius: 0 !important;

        /* Avoid stretching the image */
        background-size: auto 100% !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;

        overflow: hidden;
    }

    /* Keep content near the top */
    .mp-contact-hero__inner {
        height: auto !important;
        min-height: 0 !important;

        padding-top: 25px !important;
        padding-bottom: 0 !important;

        gap: 0 !important;
    }

    /* Hide illustration on mobile */
    .mp-contact-hero__art {
        display: none !important;
    }

    /* Slightly tighten text spacing */
    .mp-contact-hero__label {
        margin-bottom: 10px !important;
    }

    .mp-contact-hero__description {
        margin-top: 8px !important;
    }
}



/* ==========================================
   CONTACT HERO — MOBILE HEIGHT & CURVE FIX
========================================== */

@media (max-width: 600px) {

    /* Shorter mobile hero */
    .mp-contact-hero {
        aspect-ratio: auto !important;
        height: 255px !important;
        min-height: 0 !important;

        border-radius: 0 !important;

        /* Avoid stretching the image */
        background-size: auto 100% !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;

        overflow: hidden;
    }

    /* Keep content near the top */
    .mp-contact-hero__inner {
        height: auto !important;
        min-height: 0 !important;

        padding-top: 25px !important;
        padding-bottom: 0 !important;

        gap: 0 !important;
    }

    /* Hide illustration on mobile */
    .mp-contact-hero__art {
        display: none !important;
    }

    /* Slightly tighten text spacing */
    .mp-contact-hero__label {
        margin-bottom: 10px !important;
    }

    .mp-contact-hero__description {
        margin-top: 8px !important;
    }
}


/* CONTACT HERO — DEDICATED ACF MOBILE BACKGROUND */
@media (max-width: 600px) {

    .mp-contact-page .mp-contact-hero--mobile-bg {
        /* Override previous fixed 255px / 420px heights */
        height: auto !important;
        min-height: 66.6667vw !important;
        aspect-ratio: auto !important;

        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        /* Let transparency below the image curve show the page */
        background-color: transparent !important;
        background-image: var(--mp-contact-hero-mobile-bg) !important;
        background-size: 100% 100% !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;

        overflow: hidden;
    }

    /* Remove any additional CSS-generated curves or overlays */
    .mp-contact-page .mp-contact-hero--mobile-bg::before,
    .mp-contact-page .mp-contact-hero--mobile-bg::after {
        content: none !important;
        display: none !important;
    }

    .mp-contact-page
    .mp-contact-hero--mobile-bg
    .mp-contact-hero__inner {
        height: auto !important;
        min-height: 0 !important;

        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        /* Bottom space protects the curve from the text */
        padding: 25px 0 60px !important;
        gap: 0 !important;
        text-align: center;
    }

    .mp-contact-page
    .mp-contact-hero--mobile-bg
    .mp-contact-hero__content {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .mp-contact-page
    .mp-contact-hero--mobile-bg
    .mp-contact-hero__art {
        display: none !important;
    }

    .mp-contact-page
    .mp-contact-hero--mobile-bg
    .mp-contact-hero__label {
        justify-content: center;
        margin-bottom: 10px !important;
    }

    .mp-contact-page
    .mp-contact-hero--mobile-bg
    .mp-contact-hero__description {
        margin-top: 8px !important;
    }
}



/* ==========================================
   CONTACT US — FINAL MOBILE HERO FIX
   Uses cropped 1080 x 600 mobile background
========================================== */

@media (max-width: 600px) {

    .mp-contact-page .mp-contact-hero--mobile-bg {
        height: 55.5556vw !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;

        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;

        background-image: var(--mp-contact-hero-mobile-bg) !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;

        overflow: hidden;
    }

    /* Keep the heading at the top */
    .mp-contact-page
    .mp-contact-hero--mobile-bg
    .mp-contact-hero__inner {
        height: auto !important;
        min-height: 0 !important;
        padding: 18px 0 0 !important;
        gap: 0 !important;
    }

    /* Hide desktop illustration */
    .mp-contact-page
    .mp-contact-hero--mobile-bg
    .mp-contact-hero__art {
        display: none !important;
    }

    /* Compact label */
    .mp-contact-hero__label {
        margin-bottom: 8px !important;
        font-size: 9px !important;
    }

    /* Compact mobile heading */
    .mp-contact-hero__heading {
        font-size: clamp(23px, 7.7vw, 32px) !important;
        line-height: 1.02 !important;
        letter-spacing: -0.6px !important;
    }

    /* Description */
    .mp-contact-hero__description {
        margin-top: 8px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    /* Contact cards closer to the hero */
    .mp-contact-methods {
        margin-top: 12px !important;
    }

}



/* ==========================================
   CONTACT HERO — REDUCE MOBILE EMPTY SPACE
========================================== */

@media (max-width: 600px) {

    .mp-contact-page .mp-contact-hero--mobile-bg {
        /* Reduce hero height */
        height: 160px !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;

        /* Keep bottom curve visible */
        background-size: 100% auto !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;

        border-radius: 0 !important;
    }

    /* Keep text compact */
    .mp-contact-page
    .mp-contact-hero--mobile-bg
    .mp-contact-hero__inner {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 12px !important;
        padding-bottom: 0 !important;
    }

    /* Hide illustration */
    .mp-contact-page
    .mp-contact-hero--mobile-bg
    .mp-contact-hero__art {
        display: none !important;
    }

}



/* =====================================================
   CONTACT PAGE — MATCH REFERENCE CARD PROPORTIONS
   Desktop + Mobile
===================================================== */

/* DESKTOP: narrower content area */
@media (min-width: 901px) {

    /* Apply only to contact cards and support sections */
    .mp-contact-methods .mp-contact-container,
    .mp-contact-support .mp-contact-container {
        max-width: 1020px !important;
    }

    /* Three equally sized contact cards */
    .mp-contact-methods__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .mp-contact-card {
        min-height: 250px !important;
        padding: 18px 16px 18px !important;
    }

    .mp-contact-card__icon {
        width: 68px;
        height: 68px;
        margin-bottom: 12px;
    }

    .mp-contact-card__icon img {
        width: 68px;
        height: 68px;
    }

    .mp-contact-card__title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    /* Force descriptions to wrap naturally */
    .mp-contact-card__description {
        width: 100%;
        max-width: 225px;
        margin-inline: auto;
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
    }

    /* Support heading */
    .mp-contact-support__heading {
        font-size: 32px;
    }

    .mp-contact-support__description {
        font-size: 15px;
    }

    /* Support topic descriptions */
    .mp-contact-support__item-description {
        max-width: 220px;
        margin-inline: auto;
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
    }

    .mp-contact-support__item {
        padding-inline: 15px;
    }

    .mp-contact-support__item-title {
        font-size: 16px;
    }
}

/* MOBILE: keep cards full width, wrap descriptions */
@media (max-width: 600px) {

    .mp-contact-card {
        min-height: 0 !important;
        padding: 16px !important;
    }

    .mp-contact-card__description {
        width: 100%;
        max-width: 210px;
        margin-left: auto;
        margin-right: auto;
        font-size: 13px;
        line-height: 1.45;
        text-align: center;
    }

    .mp-contact-support__item-description {
        max-width: 215px;
        margin-left: auto;
        margin-right: auto;
        font-size: 13px;
        line-height: 1.45;
        text-align: center;
    }

    .mp-contact-support__item-title {
        font-size: 16px;
    }
}



/* ==========================================
   CONTACT FAQ — CENTER LINK ON MOBILE
========================================== */

@media (max-width: 600px) {

    .mp-contact-faq__link {
        align-self: center !important;
        justify-content: center !important;
        width: 100%;
        text-align: center !important;
    }

}
