/* ================================================
   Midnight Gold — Digital Invitation Theme
   Dark glam party energy for 18th birthdays: charcoal background, a glowing
   gold-framed photo, scattered glitter, and a scrapbook of tilted polaroids.
   All artwork is CSS/SVG plus two small photographic corner/theme assets
   (balloons.png) processed to blend into the dark backdrop.
   ================================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink:        #241f19;
    --ink-alt:    #2e2820;
    --panel:      #322b22;
    --gold:       #eecd4c;
    --gold-light: #f6e7ab;
    --gold-deep:  #c9a227;
    --gold-pale:  #4a3f26;
    --cream:      #f5ede0;
    --cream-soft: #cbbfa8;
    --white:      #fffefb;
    --accent-color: var(--gold);
    --radius:     14px;
    --btn-radius: 999px;
    --ff-numeral: 'Poppins', sans-serif;
    --ff-display: 'Poppins', sans-serif;
    --ff-script:  'Yellowtail', cursive;
    --ff-body:    'Poppins', sans-serif;

    /* Palette read by the shared <x-checkerboard-gallery-grid> lightbox engine. */
    --cbg-ink:      var(--cream);
    --cbg-accent:   var(--gold);
    --cbg-backdrop: #14110b;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-weight: 300;
    color: var(--cream-soft);
    background-color: var(--ink);
    line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */
.bmg-container         { max-width: 1100px; margin: 0 auto; }
.bmg-container--narrow { max-width: 680px; }

/* Sections alternate between two close dark tints instead of a hardcoded
   color per section, so the rhythm survives whichever sections are hidden by
   plan tier, section-visibility toggles, or missing data. */
.bmg-alt-sections > * {
    position: relative;
    background: var(--ink);
}
.bmg-alt-sections > *:nth-child(even) {
    background: var(--ink-alt);
}

.bmg-section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.9rem, 4.2vw, 2.7rem);
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ---------- Shape dividers (scalloped gold arches) ---------- */
.bmg-shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    direction: ltr;
    pointer-events: none;
    z-index: 1;
}
.bmg-shape-top { top: -1px; }
.bmg-shape-bottom { bottom: -1px; }
.bmg-shape[data-negative="false"].bmg-shape-bottom,
.bmg-shape[data-negative="true"].bmg-shape-top {
    transform: rotate(180deg);
}
.bmg-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 22px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Scattered glitter decoration (<use> sprite technique) ---------- */
.bmg-fx-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.bmg-fx-dot { position: absolute; color: var(--gold); }
.bmg-fx-dot--sm { width: 6px; height: 6px; opacity: .55; }
.bmg-fx-dot--md { width: 10px; height: 10px; opacity: .4; }

.bmg-fx-star { position: absolute; color: var(--gold); }
.bmg-fx-star--sm { width: 14px; height: 14px; opacity: .55; }
.bmg-fx-star--md { width: 22px; height: 22px; opacity: .4; }
.bmg-fx-star--lg { width: 32px; height: 32px; opacity: .3; }

@media (max-width: 700px) {
    .bmg-fx-star--lg { display: none; }
}

/* ---------- Hero ---------- */
.bmg-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7rem 1.5rem 5rem;
    background: var(--ink);
    text-align: center;
}

/* Ambient gold glow radiating from behind the photo, giving the dark backdrop
   depth rather than a flat charcoal fill. */
.bmg-hero__glow {
    position: absolute;
    top: 8%;
    left: 50%;
    width: min(120vw, 900px);
    height: min(120vw, 900px);
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(238,205,76,.16) 0%, rgba(238,205,76,0) 65%);
    pointer-events: none;
    z-index: 0;
}

.bmg-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bmg-hero__photo {
    position: relative;
    width: clamp(160px, 30vw, 240px);
    height: clamp(160px, 30vw, 240px);
    border-radius: 22px;
    overflow: hidden;
    background: var(--panel);
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 6px rgba(238,205,76,.12), 0 0 40px rgba(238,205,76,.35), 0 20px 50px rgba(0,0,0,.5);
    margin-bottom: 1.75rem;
}

.bmg-hero__photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bmg-hero__photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.bmg-hero__name {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: clamp(3rem, 9vw, 4.5rem);
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 0 24px rgba(238,205,76,.35);
    margin-bottom: .5rem;
}

.bmg-hero__turns {
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--cream-soft);
    margin-bottom: .25rem;
}

.bmg-hero__numeral {
    font-family: var(--ff-numeral);
    font-weight: 800;
    font-size: clamp(4.5rem, 13vw, 6.5rem);
    line-height: .9;
    background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 30px rgba(238,205,76,.3));
    margin-bottom: 2.5rem;
    user-select: none;
}

.bmg-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
}

.bmg-hero__meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.bmg-hero__meta-icon {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--gold);
    fill: currentColor;
}

.bmg-hero__meta-value {
    font-family: var(--ff-body);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--cream);
}

@media (max-width: 480px) {
    .bmg-hero { padding-top: 6rem; }
    .bmg-hero__meta { gap: 1.1rem; }
}

/* Floating topbar */
.bmg-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: .9rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease;
}

@media (min-width: 601px) {
    .bmg-topbar.scrolled {
        background: color-mix(in srgb, var(--ink) 85%, transparent);
        backdrop-filter: blur(10px);
    }
}

.bmg-topbar__links {
    display: flex;
    gap: 1.25rem;
}
.bmg-topbar__links a {
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--cream-soft);
    transition: color .2s;
}
.bmg-topbar__links a:hover { color: var(--gold); text-decoration: none; }

.bmg-topbar__toggle { display: none; }

/* Demo-only Basic/Standard switch + close + cart badge. */
.dpb-switch,
.dpb-fab {
    position: fixed;
    bottom: 1rem;
    z-index: 9999;
}
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch {
    left: 1rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .25rem;
}
.dpb-switch a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .9rem;
    font-size: 12px;
}

@media (max-width: 600px) {
    .bmg-topbar { justify-content: flex-start; }
    .bmg-topbar__toggle { order: -1; }

    .bmg-topbar__toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 3rem;
        height: 3rem;
        padding: 0;
        border: 1.5px solid rgba(238,205,76,.3);
        border-radius: 50%;
        background: rgba(36,31,25,.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
        transition: background .2s;
    }
    .bmg-topbar__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: var(--gold);
        transition: transform .25s ease, opacity .2s ease;
    }
    .bmg-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .bmg-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .bmg-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .bmg-topbar__links {
        display: flex;
        flex-direction: column;
        gap: .25rem;
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        padding: .5rem;
        background: rgba(36,31,25,.97);
        border: 1px solid rgba(238,205,76,.3);
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(0,0,0,.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .bmg-topbar__links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .bmg-topbar__links a {
        text-align: center;
        padding: .65rem 1rem;
        border-radius: 8px;
        color: var(--cream-soft);
    }
    .bmg-topbar__links a:hover { background: rgba(238,205,76,.1); color: var(--gold); }
}

/* ---------- A Little Note (quote card) ---------- */
.bmg-poem {
    padding: 5rem 1.25rem 6rem;
    text-align: center;
    position: relative;
}

.bmg-poem__card {
    position: relative;
    background: var(--panel);
    border: 1px solid rgba(238,205,76,.25);
    border-radius: var(--radius);
    padding: 3rem 2.5rem 2.25rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.bmg-poem__quote {
    display: block;
    font-family: var(--ff-numeral);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--gold);
    opacity: .85;
}
.bmg-poem__quote--open { margin-bottom: -.5rem; }
.bmg-poem__quote--close { margin-top: -.5rem; transform: scaleX(-1); }

.bmg-poem__text {
    font-family: var(--ff-body);
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-line;
    color: var(--cream);
}

/* ---------- Countdown ---------- */
.bmg-countdown {
    position: relative;
    padding: 5rem 1.25rem 6rem;
    overflow: hidden;
    text-align: center;
}

.bmg-audio {
    padding: 5rem 1.25rem 6rem;
}

.bmg-countdown__intro {
    text-align: center;
    color: var(--cream-soft);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

.bmg-countdown__timer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.bmg-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--panel);
    border: 1px solid rgba(238,205,76,.25);
    padding: 1.5rem 0 1.1rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
    min-width: 100px;
}

.bmg-countdown__number {
    font-family: var(--ff-numeral);
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(238,205,76,.3);
    line-height: 1;
}

.bmg-countdown__label {
    font-family: var(--ff-body);
    font-size: .72rem;
    font-weight: 500;
    color: var(--cream-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .5rem;
}

/* ---------- Program ---------- */
.bmg-program {
    padding: 5rem 1.25rem 6rem;
}

.bmg-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem 2rem;
    max-width: 960px;
    margin: 3rem auto 0;
    text-align: center;
}

.bmg-program-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bmg-program-card__icon {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--gold);
    fill: currentColor;
    overflow: visible;
    margin-bottom: 1.25rem;
}

.bmg-program-card__title {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
}

.bmg-program-card__title small {
    display: block;
    margin-top: .4rem;
    font-family: var(--ff-body);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.bmg-program-card__location {
    font-size: .85rem;
    line-height: 1.6;
    color: var(--cream-soft);
    margin: .85rem 0 1.4rem;
}

.bmg-program-card .bmg-btn {
    display: inline-block;
    width: auto;
    margin-top: auto;
    padding: .55rem 1.4rem;
    font-size: .78rem;
}

/* ---------- Golden Moments (scattered polaroid collage) ---------- */
.bmg-story {
    padding: 5rem 1.25rem 6rem;
    text-align: center;
}

.bmg-story__intro {
    max-width: 34rem;
    margin: 0 auto 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cream-soft);
}

.bmg-story__polaroids {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 900px;
    margin: 3rem auto 0;
}

.bmg-story__polaroid {
    background: var(--cream);
    padding: 10px 10px 20px;
    width: 220px;
    margin: 20px 16px;
    box-shadow: 0 16px 34px rgba(0,0,0,.45);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.bmg-story__polaroid:nth-child(odd)  { transform: rotate(-5deg); }
.bmg-story__polaroid:nth-child(even) { transform: rotate(4deg); margin-top: 44px; }
.bmg-story__polaroid:nth-child(3n)   { transform: rotate(-2deg); }
.bmg-story__polaroid:hover {
    transform: rotate(0deg) scale(1.06);
    box-shadow: 0 22px 44px rgba(0,0,0,.55);
    position: relative;
    z-index: 5;
}

.bmg-story__photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: .75rem;
}
.bmg-story__photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bmg-story__period {
    display: block;
    font-family: var(--ff-body);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: .2rem;
}

.bmg-story__title {
    font-family: var(--ff-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .3rem;
}

.bmg-story__desc {
    font-size: .82rem;
    line-height: 1.5;
    color: #6b6152;
    margin-bottom: .3rem;
}

.bmg-story__caption {
    display: block;
    font-family: var(--ff-script);
    font-size: 1.3rem;
    color: var(--gold-deep);
}

@media (max-width: 560px) {
    .bmg-story__polaroid { width: 76vw; max-width: 260px; margin: 20px 10px; }
}

/* ---------- Gallery (bespoke scroll-snap carousel + lightbox) ---------- */
.bmg-gallery { padding: 5rem 1.25rem 6rem; text-align: center; }

.bmg-gallery__intro {
    color: var(--cream-soft);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 1rem;
}

.bmg-gallery__carousel {
    position: relative;
    max-width: 480px;
    margin: 2.5rem auto 0;
}

.bmg-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.bmg-gallery__track::-webkit-scrollbar { display: none; }

.bmg-gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 4 / 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: var(--panel);
}
.bmg-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bmg-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(238,205,76,.4);
    background: rgba(36,31,25,.75);
    backdrop-filter: blur(6px);
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}
.bmg-gallery__arrow:hover { background: rgba(238,205,76,.2); box-shadow: 0 0 20px rgba(238,205,76,.3); }
.bmg-gallery__arrow--prev { left: -1.1rem; }
.bmg-gallery__arrow--next { right: -1.1rem; }

@media (max-width: 560px) {
    .bmg-gallery__arrow--prev { left: .5rem; }
    .bmg-gallery__arrow--next { right: .5rem; }
}

.bmg-gallery__dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.25rem;
}
.bmg-gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.bmg-gallery__dot.is-active { background: var(--gold); transform: scale(1.2); }

.bmg-gallery__lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(20,17,11,.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}
.bmg-gallery__lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(238,205,76,.2);
}
.bmg-gallery__lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(238,205,76,.4);
    background: rgba(36,31,25,.8);
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.bmg-gallery__lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(238,205,76,.4);
    background: rgba(36,31,25,.8);
    color: var(--gold);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
.bmg-gallery__lightbox-nav--prev { left: 1rem; }
.bmg-gallery__lightbox-nav--next { right: 1rem; }

.bmg-guest-wall { padding: 5rem 1.25rem 6rem; text-align: center; }
.bmg-gallery-upload { padding: 5rem 1.25rem 6rem; text-align: center; }

.bmg-gallery-upload .gu-form {
    max-width: 620px;
    padding: 0 1.5rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ---------- Dress Code ---------- */
.bmg-dress-code { padding: 5rem 1.25rem 6rem; text-align: center; }

/* ---------- Good to Know (single stacked panel, not a card grid) ---------- */
.bmg-good-to-know { padding: 5rem 1.25rem 6rem; text-align: center; }

.bmg-gtk-panel {
    max-width: 620px;
    margin: 2rem auto 0;
    background: var(--panel);
    border: 1px solid rgba(238,205,76,.25);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
    padding: .5rem 2rem;
}

.bmg-gtk-row {
    padding: 1.75rem 0;
}
.bmg-gtk-row:not(:last-child) {
    border-bottom: 1px solid rgba(238,205,76,.15);
}

.bmg-gtk-row__title {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: .5rem;
}

.bmg-gtk-row__text {
    font-family: var(--ff-body);
    font-style: italic;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--cream-soft);
}

/* ---------- Closing ---------- */
.bmg-closing {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.bmg-closing p {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--cream-soft);
    margin: 0;
}

/* ---------- Map ---------- */
.bmg-location { padding: 5rem 1.25rem 6rem; }

.bmg-location__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

@media (max-width: 820px) {
    .bmg-location__grid { grid-template-columns: 1fr; }
}

.bmg-location__map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    filter: grayscale(.15) brightness(.9) contrast(1.1);
}

.bmg-location__info { text-align: center; }

.bmg-location__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--gold);
    fill: currentColor;
}

.bmg-location__name {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: .5rem;
}

.bmg-location__address {
    color: var(--cream-soft);
    margin-bottom: 1.5rem;
}

/* ---------- Album ---------- */
.bmg-album { padding: 5rem 1.25rem; text-align: center; }
.bmg-album__text { opacity: .8; margin-bottom: 2rem; color: var(--cream-soft); }

/* ---------- RSVP ---------- */
.bmg-rsvp {
    position: relative;
    padding: 5rem 1.25rem 6rem;
}
.bmg-rsvp .rsvp-deadline {
    background: transparent;
    margin-bottom: 10px;
    color: var(--cream-soft);
}

.bmg-rsvp .bmg-section-title,
.bmg-rsvp .rsvp-layout-wrap {
    position: relative;
    z-index: 2;
}

.bmg-alert--success {
    background: var(--panel);
    color: var(--cream);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.rsvp-layout-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid rgba(238,205,76,.25);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    padding: 3.5rem 2.5rem;
}

@media (max-width: 500px) {
    .rsvp-layout-wrap { padding: 2.5rem 1.25rem; }
}

.bmg-rsvp .form__group label {
    display: block;
    font-family: var(--ff-body);
    font-weight: 500;
    font-size: .8rem;
    color: var(--cream);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.bmg-rsvp .form__group input[type="text"],
.bmg-rsvp .form__group input[type="email"],
.bmg-rsvp .form__group input[type="tel"],
.bmg-rsvp .form__group select,
.bmg-rsvp .form__group textarea {
    width: 100%;
    padding: .95rem 1.25rem;
    border: 1px solid rgba(238,205,76,.25);
    border-radius: 8px;
    font-family: var(--ff-body);
    font-weight: 300;
    font-size: .95rem;
    color: var(--cream);
    background-color: var(--ink);
    transition: box-shadow .2s, border-color .2s;
    outline: none;
}
.bmg-rsvp .form__group .rsvp-stepper {
    background: var(--ink);
}

.bmg-rsvp .form__group input[type="text"]:focus,
.bmg-rsvp .form__group input[type="email"]:focus,
.bmg-rsvp .form__group input[type="tel"]:focus,
.bmg-rsvp .form__group select:focus,
.bmg-rsvp .form__group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(238,205,76,.2);
}

.bmg-rsvp .form__error {
    display: block;
    color: #e08a6b;
    font-size: .82rem;
    margin-top: .3rem;
}

/* Solid glowing gold CTA — glam party energy, contrasting royal's outline
   pill and reading closer to the reference invitation's filled buttons. */
.bmg-btn {
    display: block;
    width: 100%;
    padding: .9rem 2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    color: var(--ink);
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 1.02rem;
    border: 0;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 0 24px rgba(238,205,76,.4), 0 10px 26px rgba(0,0,0,.35);
    margin-top: .5rem;
    text-align: center;
}

.bmg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(238,205,76,.55), 0 12px 30px rgba(0,0,0,.4);
    text-decoration: none;
}

.bmg-location .bmg-btn,
.bmg-album .bmg-btn { display: inline-block; width: auto; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.bmg-footer {
    background: #171310;
    color: rgba(245,237,224,.7);
    text-align: center;
    padding: 2.5rem 1.25rem;
    font-size: .9rem;
}

.bmg-footer p { margin-bottom: .35rem; }
.bmg-footer a { color: var(--gold); }
.bmg-footer__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    max-width: 13rem;
    margin: 0 auto 1rem;
    color: var(--gold);
}
.bmg-footer__ornament-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, currentColor); }
.bmg-footer__ornament-line:last-child { background: linear-gradient(to left, transparent, currentColor); }
.bmg-footer__ornament-mark { flex-shrink: 0; font-size: 1rem; line-height: 1; }
.bmg-footer__signoff { max-width: 24rem; margin: 0 auto 1.5rem; opacity: .8; }
.bmg-footer__cal {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    /* .bmg-footer a sets gold; restore the button's own dark ink (its gradient is light). */
    color: var(--ink) !important;
    opacity: 1;
}
.bmg-footer__cal-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
    .bmg-countdown__timer {
        gap: .5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bmg-countdown__timer::-webkit-scrollbar { display: none; }
    .bmg-countdown__unit {
        padding: 1rem .5rem .75rem;
        min-width: 58px;
        flex-shrink: 0;
    }
    .bmg-countdown__number { font-size: 2rem; }

    .bmg-poem__card { padding: 2.5rem 1.25rem 1.75rem; }
}

/* Standardized horizontal gutter across every content section on mobile. */
@media (max-width: 600px) {
.bmg-hero,
.bmg-poem,
.bmg-countdown,
.bmg-program,
.bmg-story,
.bmg-gallery,
.bmg-guest-wall,
.bmg-gallery-upload,
.bmg-dress-code,
.bmg-good-to-know,
.bmg-closing,
.bmg-location,
.bmg-album,
.bmg-rsvp,
.bmg-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
