/* =========================================================
   GLOBAL (minimal + safe)
   ========================================================= */

:root {
    --max: 1120px;
    --pad: 28px;
    --gap: 26px;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 45px rgba(0,0,0,0.22);
    --panel-bg: rgba(255,255,255,0.72);
    --panel-border: rgba(70,70,90,0.18);
    --beamy: #7D85D0;
    --text: #111;
    --muted: rgba(0,0,0,0.62);
}

html {
    height: 100%;
    /* IMPORTANT: do NOT hide overflow globally */
}

body {
    margin: 0;
    font-family: 'Times New Roman', sans-serif;
    font-size: 15px;
    background: url("../../Images/registerBackground2.png");
    background-repeat: repeat;
    overflow-x: hidden;
}

/* =========================================================
   FOOTER (kept)
   ========================================================= */

.BeamyCoFooter {
    font-family: 'Times New Roman';
    color: #7D85D0;
}

/* =========================================================
   BUYING OPTIONS PAGE
   ========================================================= */

/* Chips */
.buyChips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    background: rgba(125,133,208,0.14);
    border: 1px solid rgba(125,133,208,0.45);
    color: rgba(0,0,0,0.78);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

    .chip:hover {
        transform: translateY(-2px);
        background: rgba(125,133,208,0.20);
        box-shadow: 0 18px 40px rgba(0,0,0,0.16);
        text-decoration: none;
    }

.customerTypeImg {
    display: block;
    margin: 20px auto 0;
    max-width: 100%;
    height: auto; /* keeps aspect ratio */
}

@media (max-width: 700px) {
    .customerTypeImg {
        width: 100%;
        max-width: 520px; /* optional: prevents it getting huge on tablets */
    }
}

/* your PageBody wrapper likely already exists */
.buying-page {
    /* IMPORTANT: push content below fixed navbar */
    padding: 170px 16px 60px;
}

.buying-wrap {
    max-width: var(--max);
    margin: 0 auto;
    border-radius: var(--radius);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

    /* transparent wash in white over the background */
    .buying-wrap::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(248, 248, 255, 0.5); /* ghostwhite */ /* CHANGE NAVBAR BACKGROUND HERE */
        pointer-events: none;
    }

    .buying-wrap > * {
        position: relative;
        z-index: 1;
    }

/* hero */
.buying-hero {
    padding: 42px var(--pad) 24px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.buyNowHero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .35em;
    text-transform: uppercase;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125,133,208,0.35);
    background: rgba(125,133,208,0.14);
    color: rgba(0,0,0,0.78);
    font-weight: 700;
    margin-bottom: 14px;
}

.buying-hero__title {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3.2vw, 3rem);
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--beamy) 0%, #777B7E 70%, var(--beamy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 6px rgba(125,133,208,0.25);
    font-family: 'New Machiato';
}

.buying-hero__subtitle {
    margin: 0 auto;
    max-width: 86ch;
    line-height: 1.65;
    opacity: 0.9;
}

/* section panels */
.buying-panel {
    padding: var(--pad);
}

    .buying-panel + .buying-panel {
        border-top: 1px solid rgba(0,0,0,0.10);
    }

/* grid */
.buying-grid {
    display: grid;
    gap: var(--gap);
    align-items: center;
}

    .buying-grid.two-col {
        grid-template-columns: 1.05fr 0.95fr;
    }

@media (max-width: 980px) {
    .buying-grid.two-col {
        grid-template-columns: 1fr;
    }
}

/* optional swap */
@media (min-width: 981px) {
    .swap-on-desktop {
        grid-template-columns: 0.95fr 1.05fr;
    }

        .swap-on-desktop .buying-content {
            order: 1;
        }

        .swap-on-desktop .buying-media {
            order: 2;
        }
}

.buying-content h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    color: var(--beamy);
    letter-spacing: 0.2px;
    text-align: center;
}

.buying-paragraph {
    margin: 0;
    line-height: 1.75;
    font-size: clamp(1.02rem, 1.1vw, 1.18rem);
    background: linear-gradient(90deg, var(--beamy) 0%, #777B7E 70%, var(--beamy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

    .buying-paragraph .textPop {
        color: #e7e9ef;
        background: rgba(16,18,26,0.28);
        padding: 0.08em 0.42em;
        border-radius: 999px;
        white-space: nowrap;
        -webkit-text-fill-color: #e7e9ef;
    }

/* =========================================================
   CUSTOMER TYPE EXPLAINER (NEW / NICER STYLING)
   - replaces inline centering/padding if you remove it
   ========================================================= */

.customer-type-explainer__content {
    text-align: center;
    padding: 18px clamp(16px, 4vw, 56px);
    margin: 10px auto 0;
    max-width: 92ch;
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid rgba(125,133,208,0.22);
    background: rgba(255,255,255,0.52);
    box-shadow: 0 18px 44px rgba(0,0,0,0.12);
    /* soft “glass” feel (safe fallback if unsupported) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .customer-type-explainer__content h3 {
        margin: 0 0 10px;
        font-size: clamp(1.35rem, 1.8vw, 1.8rem);
        letter-spacing: -0.01em;
        color: rgba(0,0,0,0.86);
    }

    .customer-type-explainer__content p {
        margin: 0 auto;
        max-width: 86ch;
        line-height: 1.8;
        font-size: clamp(1.06rem, 1.1vw, 1.22rem);
        color: rgba(0,0,0,0.72);
    }

        .customer-type-explainer__content p + p {
            margin-top: 12px;
        }

@media (max-width: 700px) {
    .customer-type-explainer__content {
        padding: 16px 16px;
        border-radius: var(--radius);
    }
}

/* buttons */
.buying-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.beamyBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    background: rgba(125,133,208,0.16);
    border: 1px solid rgba(125,133,208,0.45);
    color: rgba(0,0,0,0.78);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

    .beamyBtn:hover {
        transform: translateY(-2px);
        background: rgba(125,133,208,0.22);
        box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    }

.beamyBtn--alt {
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.18);
}

/* media slots */
.buying-media .mediaSlot {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.65);
    box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}

.buying-media img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
}

@media (max-width: 700px) {
    .buying-media img {
        height: 320px;
    }
}

.mediaHint {
    margin: 10px 4px 0;
    font-size: 0.9rem;
    opacity: 0.65;
}

/* trust bottom */
.trust-panel {
    padding: 46px var(--pad) 54px;
    border-top: 1px solid rgba(0,0,0,0.10);
    text-align: center;
}

.trust-title {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    background: linear-gradient(90deg, var(--beamy) 0%, #777B7E 70%, var(--beamy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 6px rgba(125,133,208,0.25);
}

.trust-paragraph {
    max-width: 92ch;
    margin: 0 auto 18px;
}

.trust-media {
    max-width: 980px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.60);
    box-shadow: 0 18px 52px rgba(0,0,0,0.20);
}

    .trust-media img {
        width: 100%;
        height: auto;
        display: block;
    }

/* =========================================================
   LIGHTBOX
   ========================================================= */

.beamyLightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

    .beamyLightbox.is-open {
        display: block;
    }

.beamyLightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,10,12,0.62);
    backdrop-filter: blur(10px);
}

.beamyLightbox__dialog {
    position: relative;
    width: min(1200px, 92vw);
    margin: 6vh auto;
    border-radius: 22px;
    padding: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 28px 90px rgba(0,0,0,0.55);
}

.beamyLightbox__img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    background: rgba(0,0,0,0.14);
}

.beamyLightbox__caption {
    margin-top: 10px;
    text-align: center;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
}

.beamyLightbox__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    cursor: pointer;
    font-size: 18px;
}

    .beamyLightbox__close:hover {
        background: rgba(255,255,255,0.18);
    }

/* =========================================================
   TEXT ANIMATION (optional)
   ========================================================= */
.textFadeUp {
    opacity: 0;
    transform: translateY(10px);
    animation: textFadeUp 700ms cubic-bezier(.2,.8,.2,1) forwards;
}

.textDelay0 {
    animation-delay: 0ms;
}

.textDelay1 {
    animation-delay: 120ms;
}

.textDelay2 {
    animation-delay: 240ms;
}

.textDelay3 {
    animation-delay: 360ms;
}

.textDelay4 {
    animation-delay: 480ms;
}

@keyframes textFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .textFadeUp {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* =========================================================
   RESPONSIVE TWEAKS (added)
   - No content/text changes; layout only
   ========================================================= */

/* If a browser can’t run animations for any reason, don’t leave elements invisible */
@supports not (animation: textFadeUp 1s) {
    .textFadeUp {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Respect reduced motion while still showing content */
@media (prefers-reduced-motion: reduce) {
    .textFadeUp {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Tablet & down */
@media (max-width: 980px) {
    :root {
        --pad: 22px;
        --gap: 20px;
    }

    .buying-page {
        padding: 150px 14px 52px; /* slightly less top padding on smaller screens */
    }

    .buying-hero {
        padding: 34px var(--pad) 22px;
    }

    .buying-media img {
        height: 360px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    :root {
        --pad: 18px;
        --gap: 16px;
    }

    .buying-page {
        padding: 132px 12px 44px;
    }

    .buying-hero__subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .chip {
        padding: 9px 12px;
        font-size: 0.95rem;
    }

    .buying-media img {
        height: 300px;
    }

    .trust-panel {
        padding: 38px var(--pad) 44px;
    }

    .beamyLightbox__dialog {
        width: min(1200px, 94vw);
        margin: 4vh auto;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .buying-page {
        padding: 124px 10px 40px;
    }

    .buying-hero {
        padding: 28px var(--pad) 18px;
    }

    .buying-media img {
        height: 260px;
    }

    .beamyBtn {
        padding: 11px 16px;
    }
}


/* =========================================================
   SHARED MODAL (Beamy Blue overlay + centered panel)
   Uses #beamyModal + beamy-modal.js
   ========================================================= */
.beamyModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

    .beamyModal.is-open {
        display: block;
    }

.beamyModal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(125,133,208,0.85);
    backdrop-filter: blur(10px);
}

.beamyModal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, 92vw);
    max-height: 88vh;
    border-radius: 22px;
    padding: 14px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 28px 90px rgba(0,0,0,0.55);
    overflow: hidden;
}

.beamyModal__img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    background: rgba(0,0,0,0.14);
}

.beamyModal__caption {
    margin-top: 10px;
    text-align: center;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
}

.beamyModal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    cursor: pointer;
    font-size: 18px;
}

    .beamyModal__close:hover {
        background: rgba(255,255,255,0.18);
    }

/* ensure click cursor on lightbox imgs */
img[data-lightbox] {
    cursor: pointer;
}
