  :root {
  --ctl-gap: 8px;   /* space between the form area and the Back/Next row */
    --backdrop: #E8B4C2;      /* classy dusty rose, constant across all slides */
    --cream: #FDEBD3;
    --ink: #4A2A33;           /* deep rosewood text */
    --muted: #8A6A72;
    --pink: #FA4D8D;          /* brand CTA pink */
    --pink-deep: #C90044;
    --line: #B8838F;
    --field: rgba(255,255,255,.55);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; overflow: hidden; }
  body {
    font-family: 'Nunito', system-ui, sans-serif;
    background: var(--backdrop);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    padding: 0 20px;
    height: 100vh; height: 100dvh;
  }
  .card {
    width: 100%; max-width: 1080px;
    height: min(calc((100vh - 12vh) * .85), 663px); height: min(calc((100dvh - 12vh) * .85), 663px);   /* always fits the screen, centred */
    background: var(--cream);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(110, 50, 70, .28);
    display: grid; grid-template-columns: 1fr 1.05fr;
    gap: 24px; padding: 20px 24px;
    grid-template-rows: minmax(0, 1fr);
  }

  .panel { display: contents; }

  /* ---------- left: logos ---------- */
  .brands {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4vh; padding: 12px 8px; text-align: center; min-height: 0;
  }
  .brands img { display: block; max-width: 100%; height: auto; object-fit: contain; }
  .brands .bb { width: min(280px, 78%); max-height: 28vh; }
  .brands .ag { width: min(330px, 80%); max-height: 36vh; mix-blend-mode: multiply; }  /* white bg melts into cream */


  /* ---------- right: frame ---------- */
  .frame {
    border: 1.5px solid var(--line); outline: 1.5px solid var(--line); outline-offset: 5px;
    margin: 6px; padding: 20px 40px 14px;
    display: flex; flex-direction: column; justify-content: center; min-height: 0;   /* header + form sit as one centred group */
  }
  .eyebrow { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 36px; letter-spacing: .02em; line-height: 1.05; margin-top: 4px; }
  .sub { font-size: 15px; color: var(--muted); }
  .tags { margin-top: 4px; font-weight: 800; font-size: 14px; letter-spacing: .04em; color: var(--pink); }
  .when { margin-top: 14px; font-weight: 800; font-size: 15px; }
  .where { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
  .where b { color: var(--ink); font-weight: 700; }
  #rsvp[hidden] { display: none; }
  .closed-note { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: rgba(250, 77, 141, .08); text-align: center; line-height: 1.55; font-size: 15px; }
  .closed-note p + p { margin-top: 6px; color: var(--muted); }
  .closed-note strong { color: var(--ink); font-weight: 800; }

  /* ---------- form slides ---------- */
  form { margin-top: 2px; display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
  .stage { position: relative; flex: 0 1 322px; min-height: 0; }   /* fixed 322px, only shrinks on short windows */
  .slide { display: none; animation: fade .3s ease; }
  .slide.active { display: block; position: absolute; top: 0; bottom: 0; left: -4px; right: -8px; overflow-y: auto; padding: 4px 8px 0 4px;
    scrollbar-width: thin; scrollbar-color: #bdb2b4 transparent; }
  .slide.active::-webkit-scrollbar { width: 5px; }
  .slide.active::-webkit-scrollbar-track { background: transparent; }
  .slide.active::-webkit-scrollbar-thumb { background: #bdb2b4; border-radius: 99px; }

  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .slide h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: .02em; }

  label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px 4px; }
  input, select {
    width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
    background: var(--field); border: 1.5px solid var(--line); border-radius: 12px;
    padding: 10px 14px; margin-bottom: 12px; outline: none; transition: border-color .15s, box-shadow .15s;
  }
  input:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250,77,141,.18); }
  input.bad { border-color: var(--pink-deep); }
  /* Singapore phone field: fixed +65 prefix + 8 digits shown as XXXX XXXX */
  .phone { display: flex; align-items: stretch; background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
  .phone:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250,77,141,.18); }
  .phone:has(input.bad) { border-color: var(--pink-deep); }
  .phone .cc { display: flex; align-items: center; padding: 0 12px 0 14px; font-weight: 800; font-size: 14.5px; color: var(--ink); background: rgba(184,131,143,.16); border-right: 1.5px solid var(--line); }
  .phone input { border: 0; border-radius: 0; background: transparent; margin: 0; box-shadow: none; letter-spacing: .04em; }
  .phone input:focus { box-shadow: none; }
  .row .phone { margin-bottom: 0; }
  .err { color: var(--pink-deep); font-size: 12.5px; font-weight: 700; min-height: 16px; margin: -4px 0 4px 4px; }

  .times { display: grid; gap: 12px; }
  .time {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--field);
    font-weight: 800; font-size: 16px; transition: all .15s;
  }
  .time input { display: none; }
  .time .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
  .time:has(input:checked) { border-color: var(--pink); background: #fff; box-shadow: 0 0 0 3px rgba(250,77,141,.16); }
  .time:has(input:checked) .radio { border-color: var(--pink); background: radial-gradient(var(--pink) 45%, transparent 50%); }

  .adds { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
  .ghost {
    font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: transparent; color: var(--pink-deep); border: 1.5px dashed var(--pink); border-radius: 999px;
    padding: 9px 16px; cursor: pointer; transition: background .15s;
  }
  .ghost:hover:not(:disabled) { background: rgba(250,77,141,.1); }
  .ghost:disabled { opacity: .4; cursor: not-allowed; }
  .ghost.need { border-style: solid; background: rgba(250,77,141,.12); animation: nudge .35s ease; }
  @keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
  .guest { display: grid; grid-template-columns: 1fr 104px 30px; gap: 8px; align-items: start; }
  .guest.adult { grid-template-columns: 1fr 30px; }
  .guest .x { margin-top: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
  .guest .x:hover { background: rgba(250,77,141,.18); color: var(--pink-deep); }
  .guest input, .guest .dd-btn { margin-bottom: 8px; }
  .slide[data-step="3"] h3 { margin-bottom: 8px; margin-top: 8px; }
  .slide[data-step="3"] .err { margin-bottom: 0; }
  .slide[data-step="3"] .err:empty { min-height: 0; margin: 0; }
  .slide[data-step="3"] .adds { margin-bottom: 10px; }
  .group-title { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 6px 4px; }
  .scroll { padding: 2px 2px 2px 2px; margin: 0 -2px 0 -2px;   /* no inner scrollbar: the form area is sized to hold an adult + 3 kids */
    scrollbar-width: thin; scrollbar-color: #bdb2b4 transparent; }
  .scroll::-webkit-scrollbar { width: 5px; }
  .scroll::-webkit-scrollbar-track { background: transparent; }
  .scroll::-webkit-scrollbar-thumb { background: #bdb2b4; border-radius: 99px; }
  .scroll::-webkit-scrollbar-button { display: none; }

  /* themed dropdown (replaces the native blue select) */
  .dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; font: inherit; font-size: 14.5px; color: var(--muted);
    background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 14px; margin-bottom: 12px; cursor: pointer; outline: none; text-align: left; transition: border-color .15s, box-shadow .15s; }
  .dd-btn.has { color: var(--ink); }
  .dd-btn:focus-visible, .dd-btn.open { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250,77,141,.18); }
  .dd-btn.bad { border-color: var(--pink-deep); }
  .dd-btn svg { flex: none; width: 12px; height: 12px; stroke: var(--muted); fill: none; stroke-width: 2; transition: transform .15s; }
  .dd-btn.open svg { transform: rotate(180deg); }
  #ddMenu { position: fixed; z-index: 50; margin: 0; padding: 5px; list-style: none; background: #FFF8EE; border: 1.5px solid var(--line); border-radius: 12px;
    box-shadow: 0 10px 26px rgba(110,50,70,.22); max-height: 210px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #bdb2b4 transparent; }
  #ddMenu li { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
  #ddMenu li:hover, #ddMenu li.sel { background: rgba(250,77,141,.13); color: var(--pink-deep); }

  /* confirm slide: read-only rows with Edit */
  .row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 10px; padding: 7px 2px; border-bottom: 1px dashed var(--line); }
  .row:first-of-type { padding-top: 2px; }
  .row .rl { grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
  .row .val { font-size: 15.5px; font-weight: 700; padding-left: 4px; word-break: break-word; }
  .row input { margin: 0; }
  .row .edit { font: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-deep); background: none; border: 1.5px solid var(--pink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
  .row .edit:hover { background: rgba(250,77,141,.1); }
  .row.editing .edit { background: var(--pink); color: #fff; }

  .recap { font-size: 13px; color: var(--muted); line-height: 1.55; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 2px; }
  .recap b { color: var(--ink); }

  .thanks { text-align: center; padding: 28px 0 8px; }
  .thanks .tick { width: 58px; height: 58px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 14px; }
  .thanks h3 { font-size: 28px; margin-bottom: 8px; }

  .thanks p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

  /* ---------- controls ---------- */
  .controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--ctl-gap); }
  .btn {
    font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    background: var(--pink); color: #fff; border: 0; border-radius: 12px; padding: 12px 26px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(250,77,141,.3); transition: transform .1s, filter .15s;
  }
  .btn:hover { filter: brightness(1.05); } .btn:active { transform: translateY(1px); }
  .back { font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 12px 4px; }
  .back:hover { color: var(--ink); }
  .find-link { font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 12px 4px; }
  .find-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
  .dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; border: 1.5px solid var(--line); transition: all .2s; }
  .dot.done { background: var(--line); }
  .dot.on { background: var(--pink); border-color: var(--pink); transform: scale(1.25); }
  [hidden] { display: none !important; }

  /* desktop: centre slides 1, 2, 4, 5 vertically in the space under the event details (margin:auto never clips if it overflows) */
  @media (min-width: 881px) {
    .slide:not([data-step="3"]).active { display: flex; flex-direction: column; }
    .slide:not([data-step="3"]).active > :first-child { margin-top: auto; }
    .slide:not([data-step="3"]).active > :last-child { margin-bottom: auto; }
    /* slide 2: the terms line sits midway between the time slots and the Next button, and any notice
       sits midway between the terms line and the buttons (two equal 1fr gaps, so nothing jumps when it appears) */
    .slide[data-step="2"].active { bottom: calc(-1 * var(--ctl-gap)); }   /* reach down to the Next button's top edge */
    .stage .slide[data-step="2"].active { display: grid; grid-template-rows: 1fr auto auto 1fr auto 1fr; }   /* three equal spaces: above the title, between the times and the terms line, below the terms line */
    .stage .slide[data-step="2"].active > h3 { grid-row: 2; margin-top: 0; }
    .stage .slide[data-step="2"].active > .times { grid-row: 3; }
    .stage .slide[data-step="2"].active > .agree { grid-row: 5; margin: 0; }
    .stage .slide[data-step="2"].active > .err { grid-row: 6; align-self: center; margin: 0; min-height: 0; }
    /* even rhythm: fixed gaps between the blocks, the whole group centred in the frame */
    .when { margin-top: 31px; }
    form { margin-top: 8px; }
    /* slide 1: the fields sit right above Next (no empty error row between them); a validation message
       appears in the spare space below the number field without moving anything */
    .slide[data-step="1"].active { padding-bottom: 0; justify-content: center; }
    .slide[data-step="1"] .phone { margin-bottom: 0; }
    .slide[data-step="1"].active > :first-child { margin-top: 0; }   /* centre with justify-content (also while the "editing" pill is the first child) */
    .slide[data-step="1"] #err1 { position: absolute; left: 8px; right: 8px; bottom: 0; margin: 0; min-height: 0; }
    /* slide 6 (already registered): every panel is centred the same way, whichever one is showing */
    .slide[data-step="6"].active > .mg { margin-top: auto; margin-bottom: auto; }
  }

  /* roomy desktop windows: draw the cream box at 110% (like a 110% browser zoom). Skipped on windows shorter than 810px or narrower than 1240px, where there is no spare room. */
  @media (min-width: 1240px) and (min-height: 810px) {
    .card { transform: scale(1.1); height: min(calc((100vh - 10vh) / 1.1), 663px); height: min(calc((100dvh - 10vh) / 1.1), 663px); }   /* still fits the screen once scaled */
    #ddMenu { transform: scale(1.1); transform-origin: top left; }
  }

  /* short laptop windows: tighten so the whole form still fits without scrolling the page */
  @media (min-width: 881px) and (max-height: 760px) {
    .card { height: calc(100vh - 28px); height: calc(100dvh - 28px); padding: 14px 20px; }
    .frame { padding: 16px 34px 10px; }
    :root { --ctl-gap: 2px; }
    .eyebrow { font-size: 28px; } .dots { margin-top: 8px; }
    input, .phone, .dd-btn { margin-bottom: 8px; } input, .dd-btn { padding-top: 8px; padding-bottom: 8px; }
    .slide h3 { font-size: 19px; margin-bottom: 8px; } .btn { padding: 10px 24px; } .time { padding: 11px 16px; }
  }

  @media (max-width: 880px) {
    html, body { height: auto; min-height: 100%; overflow: auto; }
    body { display: block; height: auto; padding: 14px 12px 22px; background-attachment: scroll; }
    .card { height: auto; background: none; box-shadow: none; border-radius: 0; padding: 0; margin: 0 auto;
      display: flex; flex-direction: column; gap: 14px; }
    .brands, .panel { background: var(--cream); border-radius: 14px; box-shadow: 0 14px 36px rgba(110, 50, 70, .28); }
    .brands { flex-direction: column; gap: 30px; padding: 56px 40px 52px; }
  
    .brands .bb { width: min(196px, 66%); max-height: none; }
    .brands .ag { width: min(162px, 56%); max-height: none; }
    .panel { display: block; padding: 12px; }
    .frame { margin: 4px; padding: 22px 20px 16px; outline-offset: 4px; }
    .eyebrow { font-size: 28px; }
    form { margin-top: 16px; } .dots { margin-top: 14px; }
    .stage { flex: none; min-height: 300px; }
    .slide.active, .slide[data-step="3"].active { position: static; overflow: visible; padding: 0; }
    .slide[data-step="3"].active { display: block; }
  }

/* ---------- slide 2: terms checkbox ---------- */
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; font-size: 13px; font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.agree .box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--field); display: grid; place-items: center; transition: all .15s; }
.agree .box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .1s; }
.agree input:checked + .box { background: var(--pink); border-color: var(--pink); }
.agree input:checked + .box svg { opacity: 1; }
.agree input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(250,77,141,.25); }
.agree.bad .box { border-color: var(--pink-deep); box-shadow: 0 0 0 3px rgba(201,0,68,.12); }
.agree a { color: var(--pink-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- terms page (same card, centred document text) ---------- */
.tframe { justify-content: flex-start; text-align: center; }
.tlink { align-self: center; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 2px 0 10px; }
.tlink:hover { color: var(--pink-deep); }
.ttitle { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: .01em; margin: 0 0 14px; }
.doc { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 4px; margin: 0 -8px; border-top: 1px dashed var(--line);
  scrollbar-width: thin; scrollbar-color: #bdb2b4 transparent; }
.doc::-webkit-scrollbar { width: 5px; }
.doc::-webkit-scrollbar-track { background: transparent; }
.doc::-webkit-scrollbar-thumb { background: #bdb2b4; border-radius: 99px; }
.doc h2 { font-family: 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; font-weight: 700; font-size: 21px; margin: 18px 0 8px; color: var(--ink); }
.doc p { font-size: 13.5px; line-height: 1.65; color: var(--ink); margin: 0 0 10px; }
.doc p b { color: var(--pink-deep); font-weight: 800; margin-right: 4px; }
@media (max-width: 880px) {
  .ttitle { font-size: 26px; }
  .doc { flex: none; overflow: visible; margin: 0; padding: 0; }
}

/* ---------- already registered: edit / cancel / didn't receive mail / share ---------- */
.editing-note { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--pink-deep); background: rgba(250,77,141,.1); border-radius: 8px; padding: 5px 10px; margin: 0 0 8px; }
.mg h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.mg-msg { font-size: 14.5px; line-height: 1.5; color: var(--ink); margin: 0 0 8px; }
.mg-msg a { color: var(--pink-deep); font-weight: 800; text-decoration: underline; }
.mg-who { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0 0 8px; }
.mg-who b { color: var(--ink); }
.mg-status { display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); }
.mg-note { font-size: 12.5px; line-height: 1.45; color: var(--pink-deep); margin: 0 0 8px; }
.mg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.mg-btn { font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: all .15s; }
.mg-btn:hover:not(:disabled) { border-color: var(--pink); color: var(--pink-deep); }
.mg-btn.pri { background: var(--pink); border-color: var(--pink); color: #fff; }
.mg-btn.pri:hover:not(:disabled) { filter: brightness(1.05); color: #fff; }
.mg-btn.danger { border-color: var(--pink-deep); color: var(--pink-deep); }
.mg-btn:disabled { opacity: .45; cursor: not-allowed; }
.mg-link { font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px 0 0; }
.mg-link:hover { color: var(--ink); }
.mg-dl { margin: 0 0 6px; display: grid; gap: 4px; }
.mg-dl div { display: flex; gap: 8px; font-size: 13.5px; }
.mg-dl dt { width: 52px; flex: none; color: var(--muted); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.mg-dl dd { margin: 0; color: var(--ink); font-weight: 700; word-break: break-all; }
.mg-form { margin-top: 6px; }
.mg-form input { margin-bottom: 6px; }
.mg-form .phone { margin-bottom: 8px; }
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px auto 0; max-width: 440px; }
.share input { flex: 1; min-width: 160px; margin: 0; font-size: 13px; padding: 8px 10px; }
.share .copy { flex: none; padding: 9px 14px; }
.share .copied { font-size: 12px; font-weight: 800; color: var(--pink-deep); }
.done-actions { margin-top: 10px; }
.done-actions .mg-btn { padding: 7px 18px; }

/* cancel confirmation pop-up */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(74, 42, 51, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none !important; }
.modal-card { background: var(--cream); border-radius: 14px; max-width: 420px; width: 100%; padding: 22px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.35); text-align: left; }
.modal-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.modal-card p { font-size: 14px; line-height: 1.55; color: var(--ink); margin-bottom: 8px; }
.modal-what { font-weight: 800; background: rgba(184,131,143,.18); border-radius: 8px; padding: 8px 10px; font-size: 13px !important; }

.share { position: relative; }
.share-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.07); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.share-x:hover { background: rgba(250,77,141,.18); color: var(--pink-deep); }

/* ---------- already registered: even, centred layout for all three panels ---------- */
.mg-actions { align-items: stretch; }
.mg-actions:has(> :only-child) { grid-template-columns: 1fr; }
.mg-actions .mg-btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; line-height: 1.2; }
.mg-who { margin-bottom: 12px; }
.mg-actions { margin-top: 12px; }
.mg-form label { margin-top: 2px; }
.mg-form .mg-actions { margin-top: 4px; }
.mg-form input, .mg-form .phone { margin-bottom: 6px; }
.mg .err:empty { min-height: 0; margin: 0; }

/* slide 3: a short note while nobody has been added yet (so the slide never looks half empty) */
.guest-hint { margin: 6px 2px 0; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; text-align: center; }
.slide[data-step="3"]:has(.guest) .guest-hint { display: none; }

/* slide 4 (review): no reserved error row, slightly tighter rows, so the title and the summary both get breathing room */
.slide[data-step="4"] .err:empty { min-height: 0; margin: 0; }
.slide[data-step="4"] .row { padding: 6px 2px; }
.slide[data-step="4"] .row:first-of-type { padding-top: 2px; }
.slide[data-step="4"] .recap { padding-top: 9px; margin-top: 4px; }

/* slide 1 while editing an existing RSVP: the "you're editing" pill takes the place of the title so the fields keep their room above Next */
.slide[data-step="1"]:has(#editNote:not([hidden])) > h3 { display: none; }
.slide[data-step="1"] .editing-note { margin: 0 0 12px; }
