/* ── Lower stage: page-level background area that holds shades + card ── */
.lower-stage {
    position: relative;
    padding: 0 40px;
    background: var(--color-white);
}

/* shade images live on the page bg, behind the card */
.lower-stage__shade {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* redBgShade: top-right of the stage */
.lower-stage__shade--red {
    top: -400px;
    right: -80px;
    width: 700px;
    height: auto;
    opacity: 0.95;
}

/* blueBgShade: bottom-left of the stage */
.lower-stage__shade--blue {
    bottom: -60px;
    left: -80px;
    width: 440px;
    height: auto;
    opacity: 0.9;
}

/* ── White card ─────────────────────────────────────────────────────── */
.lower-card {
    position: relative;
    z-index: 1;
    width: 95%;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(17, 17, 35, 0.1);

    /* Pull card up to overlap the backdrop section above */
    transform: translateY(-60px);
}

/* ── Content grid ───────────────────────────────────────────────────── */
.main-section {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 100px 72px;
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 24px;
    align-items: center;
}

/* ── Reserve spot (left column) ─────────────────────────────────────── */
.reserve {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;

}

.reserve__eyebrow {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    
}

.reserve__headline {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, #FF5642, #DE1994);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    line-height: 1.2;
}

.reserve__globe {
    width: 380px;
    height: 380px;
    object-fit: contain;
    display: block;
    transform: translateY(-30px);
}

/* ── Mobile only (phones) ────────────────────────────────────────────── */
@media (max-width: 768px) {

    .top-backdrop {
        position: relative;
        z-index: 0;
    }

    /* Mobile background on main */
    main {
        position: relative;
        z-index: 2;
        overflow: visible;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #main-root {
        position: relative;
        z-index: 1;
        overflow: visible;
    }

    /* Red shade — top-right */
    main::before {
        content: '';
        position: absolute;
        top: -200px;
        right: -40px;
        width: 420px;
        height: 420px;
        background-image: url('../images/redBgShade.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top right;
        z-index: 0;
        pointer-events: none;
    }

    /* Blue shade — bottom-left */
    main::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: -60px;
        width: 320px;
        height: 320px;
        background-image: url('../images/blueBgShade.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom left;
        z-index: 0;
        pointer-events: none;
    }

    /* Lower stage: white card */
    .lower-stage {
        padding: 0;
        margin: 10px 10px 0;
        background: #ffffff;
        border-radius: 20px;
        position: relative;
        z-index: 3;
        transform: translateY(-60px);
        margin-bottom: -40px;
        isolation: isolate;
    }

    /* Hide desktop shade images */
    .lower-stage__shade {
        display: none;
    }

    /* Remove desktop card styling */
    .lower-card {
        width: 100%;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        padding: 40px 0 0;
    }

    /* Flex column layout with ordering */
    .main-section {
        display: flex;
        flex-direction: column;
        padding: 0 16px 0;
        gap: 0;
    }

    /* reserve-root and .reserve become transparent wrappers */
    #reserve-root,
    .reserve {
        display: contents;
    }

    /* 1 — Text header */
    .reserve__text {
        order: 1;
        text-align: center;
        padding: 0 8px 16px;
    }

    /* 2 — Form card */
    #form-root {
        order: 2;
        width: 100%;
    }

    /* 3 — Globe below the form */
    .reserve__globe {
        order: 3;
        width: 300px;
        height: 300px;
        margin: 0 auto;
        transform: none;
    }

    .reserve__eyebrow {
        font-size: 24px;
    }

    .reserve__headline {
        font-size: 24px;
    }
}
