/* ============================================================
   BOOKING ENGINE — wizard, calendar, slots, intake form
   ============================================================ */

.booking { position: relative; }
.booking__frame { display: grid; gap: 0; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr); }

.booking__main { padding: clamp(1.3rem, 0.6rem + 2vw, 2.6rem); }
.booking__aside {
  position: relative;
  padding: clamp(1.3rem, 0.6rem + 2vw, 2.4rem);
  border-left: 1px solid var(--edge);
  background: linear-gradient(170deg, var(--c-surface-2), transparent 70%);
}

/* ---------- Stepper ---------- */

/* ---------- Panels ---------- */
.panel { display: none; }
.panel.is-on { display: grid; gap: var(--sp-5); animation: panelIn 620ms var(--ease-silk) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(1.4rem); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.panel__head { display: grid; gap: 0.35rem; }
.panel__head h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); font-weight: 300; line-height: 1.06; }
.panel__head p { margin: 0; font-size: var(--t-body-s); color: var(--c-ink-3); }
.panel__nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; margin-top: var(--sp-3); }

/* ---------- Service picker ---------- */
.svc-grid { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.svc {
  position: relative;
  text-align: left;
  width: 100%;
  padding: 0.3rem;
  border-radius: var(--r-md);
  background: var(--c-shell);
  border: 1px solid var(--edge);
  transition: transform var(--d-fast) var(--ease-silk), border-color var(--d-mid) var(--ease-silk), box-shadow var(--d-mid) var(--ease-silk);
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--glow), var(--sh-soft); border-color: var(--edge-hi); }
.svc__core {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1.05rem;
  border-radius: calc(var(--r-md) - 0.3rem);
  background: var(--grad-panel);
  box-shadow: var(--inner-light);
}
.svc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem; }
.svc__name { font-family: var(--font-display); font-size: var(--t-body); font-weight: 500; line-height: 1.2; }
.svc__price { font-family: var(--font-display); font-size: var(--t-body); white-space: nowrap; color: var(--c-gold); }
.svc__meta { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-4); }
.svc__desc { font-size: var(--t-micro); color: var(--c-ink-3); line-height: 1.55; }
.svc.is-on { border-color: var(--c-gold); box-shadow: 0 0 0 3px var(--c-gold-glow), var(--sh-soft); }
.svc.is-on::after {
  content: "✓";
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  color: #1a1206;
  background: var(--grad-gold);
}

/* duration pills */
.dur-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  padding: 0.42rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge);
  background: var(--c-surface);
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--c-ink-2);
  transition: all var(--d-fast) var(--ease-silk);
}
.pill:hover { border-color: var(--c-gold); color: var(--c-gold); }
.pill.is-on { color: #1a1206; background: var(--grad-gold); border-color: transparent; box-shadow: 0 6px 18px -8px var(--c-gold-glow); }
:root[data-theme="light"] .pill.is-on { color: #fdf8ef; }
/* the price inside a selected pill kept its own gold while the pill
   turned gold underneath it: about 1.3:1, and the figure beside the
   legible "60 min" could not be read at all */
.pill.is-on i,
.pill.is-on em,
.pill.is-on b { color: inherit; opacity: 0.82; }

/* the corner line breathes, so it reads as something waiting rather
   than as a stray border */
@media (prefers-reduced-motion: no-preference) {
  .railtab:not(.is-open):not(:hover):not(:focus-visible) {
    animation: tabBreathe 3.2s var(--ease-silk) infinite;
  }
}
@keyframes tabBreathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}


/* ---------- Calendar ---------- */
.cal { display: grid; gap: 0.85rem; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.cal__month { font-family: var(--font-display); font-size: var(--t-h4); font-weight: 400; }
.cal__nav { display: flex; gap: 0.35rem; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.cal__dow span { text-align: center; font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink-4); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.day {
  position: relative;
  aspect-ratio: 1;
  min-height: 2.5rem;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  gap: 0.1rem;
  font-size: var(--t-body-s);
  font-weight: 600;
  color: var(--c-ink-2);
  background: var(--c-surface);
  border: 1px solid transparent;
  transition: all var(--d-fast) var(--ease-silk);
}
.day:hover:not(.is-off):not(.is-blank) { border-color: var(--c-gold); color: var(--c-gold); transform: translateY(-2px); }
.day.is-blank { background: none; pointer-events: none; }
.day.is-off { color: var(--c-ink-4); background: none; pointer-events: none; text-decoration: line-through; opacity: 0.45; }
.day.is-today { border-color: var(--c-hair-strong); }
.day.is-on { color: #1a1206; background: var(--grad-gold); box-shadow: 0 8px 22px -10px var(--c-gold-glow); border-color: transparent; }
:root[data-theme="light"] .day.is-on { color: #fdf8ef; }
.day__dot { position: absolute; bottom: 0.3rem; width: 3px; height: 3px; border-radius: 50%; background: var(--c-jade); }
.day.is-tight .day__dot { background: var(--c-blush); }
.day.is-on .day__dot { background: rgba(0, 0, 0, 0.5); }

.cal__legend { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.62rem; color: var(--c-ink-4); }
.cal__legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }

/* ---------- Slots ---------- */
.slots { display: grid; gap: 0.85rem; }
.slots__part { display: grid; gap: 0.5rem; }
.slots__part > h5 { margin: 0; font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-ink-4); }
.slots__grid { display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); }
.slot {
  position: relative;
  padding: 0.6rem 0.4rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge);
  background: var(--c-surface);
  font-size: var(--t-body-s);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink-2);
  transition: all var(--d-fast) var(--ease-silk);
}
.slot small { display: block; font-size: 0.54rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-jade); margin-top: 0.14rem; }
.slot:hover:not(.is-taken) { border-color: var(--c-gold); color: var(--c-gold); transform: translateY(-2px); }
.slot.is-on { color: #1a1206; background: var(--grad-gold); border-color: transparent; box-shadow: 0 10px 26px -12px var(--c-gold-glow); }
:root[data-theme="light"] .slot.is-on { color: #fdf8ef; }
.slot.is-on small { color: rgba(0, 0, 0, 0.6); }
.slot.is-taken { opacity: 0.32; pointer-events: none; text-decoration: line-through; }
.slot.is-tight small { color: var(--c-blush); }

/* ---------- Form fields ---------- */
.fields { display: grid; gap: 0.95rem; }
.fields--2 { grid-template-columns: 1fr 1fr; }
.fields--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field > label, .field__legend {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-4);
  font-weight: 700;
}
.field__hint { font-size: var(--t-micro); color: var(--c-ink-4); line-height: 1.5; }

.inp {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  border: 1px solid var(--edge);
  box-shadow: var(--inner-light);
  font-size: var(--t-body-s);
  color: var(--c-ink);
  transition: border-color var(--d-fast) var(--ease-silk), box-shadow var(--d-fast) var(--ease-silk), background-color var(--d-fast) var(--ease-silk);
}
.inp::placeholder { color: var(--c-ink-4); }
.inp:focus { outline: 0; border-color: var(--c-gold); box-shadow: 0 0 0 3px var(--c-gold-glow), var(--inner-light); }
textarea.inp { min-height: 6.5rem; resize: vertical; line-height: 1.6; }
/* The native dropdown list is painted by the OS, not by us: it takes the
   select's own background, which is near-transparent here, and keeps the
   inherited near-white text — so the numbers came out white on white.
   Both the option colours and an opaque field background are needed. */
/* the closed control matches every other input; only the dropdown
   LIST below it needs a solid background, and that is the `option`
   rules underneath. --c-bg-raise here made it a black box. */
select.inp { background-color: var(--c-surface); color: var(--c-ink); }
select.inp option,
select.inp optgroup {
  background-color: var(--c-bg-raise);
  color: var(--c-ink);
}
/* ONLY the `option` elements. These rules used to name `select.inp`
   too, which painted the closed control a solid near-black while every
   other input stayed translucent — the "black box" in the form. The
   dropdown list genuinely does need a solid backing, because the OS
   draws it over the page. */
:root[data-theme="light"] select.inp option { background-color: #ffffff; color: #19120b; }
:root[data-theme="dark"] select.inp option { background-color: #15171d; color: #f4efe6; }

select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1.05rem; padding-right: 2.4rem; }
.inp.is-bad { border-color: var(--c-blush); box-shadow: 0 0 0 3px rgba(228, 169, 162, 0.2); }

.phone-row { display: grid; grid-template-columns: 7.6rem 1fr; gap: 0.5rem; }

/* choice chips (multi / single) */
.choices { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge);
  background: var(--c-surface);
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease-silk);
}
.choice span:hover { border-color: var(--c-gold); color: var(--c-gold); }
.choice input:checked + span { color: #1a1206; background: var(--grad-gold); border-color: transparent; box-shadow: 0 8px 20px -10px var(--c-gold-glow); }
:root[data-theme="light"] .choice input:checked + span { color: #fdf8ef; }
.choice input:focus-visible + span { outline: 2px solid var(--c-gold); outline-offset: 2px; }

/* pressure / stress sliders */
.slider-wrap { display: grid; gap: 0.55rem; }
.slider-wrap__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.slider-wrap__val { font-family: var(--font-display); font-size: var(--t-h4); color: var(--c-gold); font-variant-numeric: tabular-nums; }
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 2rem; background: none; }
.rng::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--c-jade) 0%, var(--c-gold) 55%, var(--c-blush) 100%); }
.rng::-moz-range-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--c-jade) 0%, var(--c-gold) 55%, var(--c-blush) 100%); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 1.25rem; height: 1.25rem; margin-top: -0.53rem; border-radius: 50%; background: var(--c-bg-raise); border: 2px solid var(--c-gold); box-shadow: 0 4px 14px -4px var(--c-gold-glow); cursor: grab; transition: transform var(--d-fast) var(--ease-spring); }
.rng::-moz-range-thumb { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--c-bg-raise); border: 2px solid var(--c-gold); cursor: grab; }
.rng:active::-webkit-slider-thumb { transform: scale(1.18); }
.rng__scale { display: flex; justify-content: space-between; font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-4); }

/* body-map focus picker */
.bodymap { display: grid; gap: 0.8rem; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
/* The zones ARE the figure — there is no separate outline to fall out of
   alignment with them. */
.bodymap__svg { width: 100%; max-width: 12rem; margin-inline: auto; display: block; color: var(--c-ink-4); overflow: visible; }
/* ============================================================
   BODY MAP — a real anatomical illustration
   Public-domain circulatory diagram (LadyofHats, Wikimedia Commons).
   Each region is a full-size layer masked by the same artwork, then
   clipped to its band — so a highlight paints only on the body and
   follows its true outline. clip-path also limits the click area.
   ============================================================ */
.bodymap__side { display: grid; align-content: start; }
.bodymap__fig {
  position: relative;
  width: 100%;
  max-width: 13.5rem;
  margin-inline: auto;
  /* set per view, with the artwork's own box as the default */
  --fig-art: url("../assets/img/anatomy-body.svg");
  aspect-ratio: 600 / 1000;
  border-radius: var(--r-md);
}
.bodymap__fig[data-view="vessels"] {
  --fig-art: url("../assets/img/anatomy-circulatory.svg");
  aspect-ratio: 371 / 821;
}
.bodymap__img {
  position: absolute;
  transition: opacity var(--d-mid) var(--ease-silk);
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
:root[data-theme="dark"] .bodymap__img { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)) saturate(1.1); }

.bodymap__fig .zone {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-mask-image: var(--fig-art);
  mask-image: var(--fig-art);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-color var(--d-mid) var(--ease-silk);
}
.bodymap__fig .zone:hover { background-color: rgba(229, 195, 137, 0.45); mix-blend-mode: multiply; }
.bodymap__fig .zone:focus-visible { outline: 2px solid var(--c-gold); outline-offset: -2px; }

/* --- the ache: a red pulse whose strength follows the pain slider --- */
.bodymap__fig { --pain: 0.35; }
.bodymap__fig .zone.is-on {
  /* multiply keeps the organs, bones and vessels readable under the ache */
  background-color: rgba(206, 32, 38, calc(0.26 + var(--pain) * 0.50));
  mix-blend-mode: multiply;
  /* a soft edge turns the band into radiating heat instead of a stripe */
  filter: blur(2.5px);
  animation: ache calc(2.2s - var(--pain) * 1s) ease-in-out infinite;
}
@keyframes ache {
  0%, 100% { opacity: calc(0.45 + var(--pain) * 0.25); filter: blur(2.5px); }
  50% { opacity: 1; filter: blur(2.5px) drop-shadow(0 0 calc(4px + var(--pain) * 10px) rgba(214, 48, 49, 0.85)); }
}
@media (prefers-reduced-motion: reduce) {
  .bodymap__fig .zone.is-on { animation: none; opacity: 1; filter: blur(2.5px); }
}
/* --- layer switch: organs & skeleton  <->  circulation --- */
.bodyviews {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
  padding: 0.22rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--c-bg-raise);
}
.bodyview {
  flex: 1 1 auto;
  padding: 0.38rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--c-ink-3);
  font: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--d-mid) var(--ease-silk), background var(--d-mid) var(--ease-silk);
}
.bodyview:hover { color: var(--c-ink); }
.bodyview.is-on {
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold));
  color: #1a1206;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.bodyview:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

.bodymap__credit {
  margin: 0.3rem 0 0;
  text-align: center;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: var(--c-ink-4);
  opacity: 0.7;
}

.bodymap__cap {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-4);
}

/* ---------- Summary aside ---------- */
.summary { display: grid; gap: 0.9rem; align-content: start; position: sticky; top: 6.5rem; }
.summary__brand { display: flex; align-items: center; gap: 0.6rem; }
.summary__brand svg { width: 1.6rem; height: 1.6rem; color: var(--c-gold); }
.summary__brand b { font-family: var(--font-display); font-size: var(--t-body); font-weight: 500; }
.summary__title { font-family: var(--font-display); font-size: var(--t-h4); font-weight: 400; line-height: 1.14; }
.summary__list { display: grid; gap: 0; }
/* a solid hairline, not dashed: nothing else on the site is dashed
   except the decorative hero ring, and a column of dashed rules reads
   as a dotted-line form rather than a summary */
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.9rem; padding: 0.62rem 0; border-bottom: 1px solid var(--c-hair); font-size: var(--t-body-s); }
.sum-row:last-child { border-bottom: 0; }
.sum-row dt { color: var(--c-ink-4); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; flex: 0 0 auto; }
.sum-row dd { margin: 0; text-align: right; color: var(--c-ink); font-weight: 600; }
.sum-row dd.is-empty { color: var(--c-ink-4); font-weight: 400; font-style: italic; }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; margin-top: 0.2rem; border-top: 1px solid var(--edge); }
.summary__total span { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ink-4); }
.summary__total b { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 400; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.summary__note { font-size: var(--t-micro); color: var(--c-ink-4); line-height: 1.55; }
.summary__cta { display: grid; gap: 0.5rem; margin-top: 0.3rem; }

/* ---------- "Good to know" ---------- */
.know {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--edge);
}
.know__h {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-ink-4);
  font-weight: 700;
}
.know__row { display: flex; gap: 0.65rem; align-items: flex-start; }
.know__row svg { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: 0.12rem; color: var(--c-gold); }
.know__row span { display: grid; gap: 0.1rem; font-size: var(--t-micro); color: var(--c-ink-3); line-height: 1.5; }
.know__row b { font-size: var(--t-body-s); font-weight: 700; color: var(--c-ink); }
.know__live {
  justify-self: start;
  margin-top: 0.2rem;
  padding: 0.1em 0.55em;
  border-radius: var(--r-pill);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  background: var(--c-surface-2);
  border: 1px solid var(--edge);
}
.know__live.is-open { color: #35c777; border-color: rgba(53, 199, 119, 0.45); }

/* ---------- Review / confirm panel ---------- */
.confirm { display: grid; gap: var(--sp-5); }
.confirm__card { padding: 0; }
.wa-preview {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(56, 210, 107, 0.12), transparent 70%);
  border: 1px solid rgba(56, 210, 107, 0.26);
}
.wa-preview__head { display: flex; align-items: center; gap: 0.6rem; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ink-3); }
.wa-preview__head svg { width: 1.1rem; height: 1.1rem; color: #25d366; }

/* ---- the chat itself ---------------------------------------- */
/* WhatsApp's own wallpaper is a warm sand; the faint cross-hatch is
   what makes it recognisable at a glance rather than just green. */
.wa-chat {
  position: relative;
  padding: 0.9rem 0.8rem 0.9rem 1.4rem;
  border-radius: 0.9rem;
  background-color: #efe7dd;
  background-image:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.022) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.022) 0 2px, transparent 2px 9px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
:root[data-theme="dark"] .wa-chat { background-color: #0b141a; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 9px); border-color: rgba(255,255,255,0.08); }

/* an OUTGOING bubble: pale green, tail on the right */
.wa-bubble {
  position: relative;
  margin-left: auto;
  /* fit-content, not 100%: a block element with auto width fills its
     container, so margin-left:auto did nothing and the bubble spanned
     the whole chat. An outgoing message hugs its text and sits right,
     with wallpaper showing down the left. */
  width: fit-content;
  max-width: 88%;
  padding: 0.6rem 0.75rem 1.4rem 0.75rem;
  border-radius: 0.5rem 0 0.5rem 0.5rem;
  background: #d9fdd3;
  color: #111b21;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13);
  font-size: var(--t-micro);
  line-height: 1.62;
  word-break: break-word;
  max-height: 24rem;
  overflow: auto;
  font-family: var(--font-body);
}
:root[data-theme="dark"] .wa-bubble { background: #005c4b; color: #e9edef; }
/* the tail */
.wa-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 13px;
  background: #d9fdd3;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
:root[data-theme="dark"] .wa-bubble::before { background: #005c4b; }
.wa-bubble b { font-weight: 700; color: inherit; }
.wa-bubble i { font-style: italic; }
.wa-bubble s { opacity: 0.6; }
.wa-bubble code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; background: rgba(0, 0, 0, 0.07); padding: 0.05em 0.35em; border-radius: 4px; }
:root[data-theme="dark"] .wa-bubble code { background: rgba(255, 255, 255, 0.1); }

/* time and the two ticks, bottom-right inside the bubble */
.wa-stamp {
  position: absolute;
  right: 0.7rem;
  bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.62rem;
  color: rgba(17, 27, 33, 0.5);
}
:root[data-theme="dark"] .wa-stamp { color: rgba(233, 237, 239, 0.6); }
.wa-stamp svg { width: 1rem; height: 1rem; color: #53bdeb; }

html[lang="th"] .wa-bubble { font-family: var(--font-body-th); }
.wa-bubble::-webkit-scrollbar { width: 6px; }
.wa-bubble::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.22); border-radius: 99px; }
.wa-meta { display: flex; justify-content: space-between; font-size: 0.6rem; color: var(--c-ink-4); }

.check-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: var(--t-micro); color: var(--c-ink-3); line-height: 1.55; }
.check-row input { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; accent-color: var(--c-gold); flex: 0 0 auto; }

.done-state { display: grid; gap: var(--sp-5); justify-items: center; text-align: center; padding: var(--sp-7) 1.2rem; }
.done-state__mark { width: 4.2rem; height: 4.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad-jade); box-shadow: 0 0 0 10px rgba(44, 107, 93, 0.12); }
.done-state__mark svg { width: 2rem; height: 2rem; color: #fff; }
.done-state__code { font-family: var(--font-display); font-size: var(--t-h3); letter-spacing: 0.06em; }

/* ---------- Mobile ---------- */
@media (max-width: 1020px) {
  .booking__frame { grid-template-columns: 1fr; }
  .booking__aside { border-left: 0; border-top: 1px solid var(--edge); }
  .summary { position: static; }
  .bodymap { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .fields--2, .fields--3 { grid-template-columns: 1fr; }
  .stepper__label { display: none; }
  .phone-row { grid-template-columns: 6.4rem 1fr; }
  .slots__grid { grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); }
}

/* ============================================================
   COMING BACK, COMING TOGETHER, GETTING HERE
   ============================================================ */

/* --- "same as last time" --- */
.rebook {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.7rem 0.75rem 0.7rem 0.9rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background:
    linear-gradient(120deg, rgba(212, 173, 109, 0.14), rgba(212, 173, 109, 0) 55%),
    var(--c-bg-raise);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}
.rebook__ico { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; color: var(--c-gold); }
.rebook__txt { display: grid; gap: 0.12rem; min-width: 0; flex: 1 1 auto; }
.rebook__txt b { font-size: 0.74rem; letter-spacing: 0.02em; }
.rebook__txt span {
  font-size: 0.66rem;
  color: var(--c-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rebook__x {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-ink-4);
  cursor: pointer;
  transition: color var(--d-mid) var(--ease-silk), background var(--d-mid) var(--ease-silk);
}
.rebook__x svg { width: 0.7rem; height: 0.7rem; }
.rebook__x:hover { color: var(--c-ink); background: var(--c-surface-2); }

/* --- the party-size note --- */
.party {
  margin: 0.45rem 0 0;
  font-size: 0.64rem;
  line-height: 1.55;
  color: var(--c-gold-2);
}

/* --- walking distance --- */
.hotel-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.pill-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--c-bg-raise);
  color: var(--c-ink-2);
  font: inherit;
  font-size: 0.62rem;
  cursor: pointer;
  transition: border-color var(--d-mid) var(--ease-silk), color var(--d-mid) var(--ease-silk);
}
.pill-sm svg { width: 0.72rem; height: 0.72rem; }
.pill-sm:hover { border-color: var(--c-gold); color: var(--c-gold); }
.pill-sm:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.hotel-dist { font-size: 0.62rem; color: var(--c-gold-2); }

/* --- the stamp card --- */
.stamps:empty { display: none; }
.stamps {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: var(--c-bg-raise);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.stamps__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 0.6rem 0 0.55rem;
}
.stamp {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  /* an empty stamp is a place waiting to be filled, not a dead ring —
     a real line rather than a dashed one, and the next one up breathes */
  border: 1px solid rgba(212, 173, 109, 0.45);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  font-size: 0.62rem;
  color: var(--c-ink-3);
  transition: transform var(--d-mid) var(--ease-silk);
}
.stamp svg { width: 0.9rem; height: 0.9rem; }
.stamp.is-on {
  border-style: solid;
  border-color: transparent;
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold));
  color: #1a1206;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.stamps__row.is-full .stamp { animation: stampPop 2.4s var(--ease-silk) infinite; }
.stamps__row.is-full .stamp:nth-child(2) { animation-delay: 0.1s; }
.stamps__row.is-full .stamp:nth-child(3) { animation-delay: 0.2s; }
.stamps__row.is-full .stamp:nth-child(4) { animation-delay: 0.3s; }
.stamps__row.is-full .stamp:nth-child(5) { animation-delay: 0.4s; }
.stamps__row.is-full .stamp:nth-child(6) { animation-delay: 0.5s; }
@keyframes stampPop {
  0%, 70%, 100% { transform: none; }
  80% { transform: translateY(-3px) scale(1.06); }
}
.stamps__txt { margin: 0; font-size: 0.68rem; line-height: 1.55; color: var(--c-ink-2); }
.stamps__fine { margin: 0.4rem 0 0; font-size: 0.56rem; line-height: 1.5; color: var(--c-ink-4); }

@media (prefers-reduced-motion: reduce) {
  .stamps__row.is-full .stamp { animation: none; }
}

@media (max-width: 460px) {
  /* on a phone the sparkle costs more room than it earns */
  .rebook { gap: 0.55rem; padding-left: 0.75rem; }
  .rebook__ico { display: none; }
  .rebook__txt b { font-size: 0.7rem; }
  .hotel-acts { gap: 0.35rem; }
}

/* --- a quiet hour, marked on the slot rather than discounted --- */
.slot.is-quiet { border-color: rgba(212, 173, 109, 0.55); }
.slot__perk {
  position: absolute;
  top: 0.32rem;
  right: 0.32rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 2px var(--c-bg-raise);
}
.slot { position: relative; }
.slots__perk {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  font-size: 0.64rem;
  line-height: 1.5;
  color: var(--c-gold-2);
}
.slots__perk i {
  flex: 0 0 auto;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--c-gold);
}


/* the next square to be earned, breathing gently */
.stamp.is-next {
  animation: stampNext 3.4s var(--ease-silk) infinite;
  color: var(--c-gold-2);
}
@keyframes stampNext {
  0%, 100% { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(212, 173, 109, 0.35); }
  55% { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(212, 173, 109, 0); }
}
@media (prefers-reduced-motion: reduce) { .stamp.is-next { animation: none; } }

/* ============================================================
   THE COLUMN'S LAST INCH
   ============================================================ */
.aside-x { display: grid; gap: 0.7rem; margin-top: 0.9rem; }
.aside-x:empty { display: none; }

/* --- the soonest bed, offered --- */
.soon {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: var(--c-bg-raise);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  color: var(--c-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--d-mid) var(--ease-silk), transform var(--d-fast) var(--ease-silk);
}
.soon:hover { border-color: var(--edge-hi); }
.soon:active { transform: scale(0.99); }
.soon:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.soon__l { font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ink-4); }
.soon__t { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.soon__go {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold-2);
}
.soon__go svg { width: 0.7rem; height: 0.7rem; transition: transform var(--d-mid) var(--ease-silk); }
.soon:hover .soon__go svg { transform: translateX(3px); }

/* --- someone else's words --- */
.voice {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: var(--c-bg-raise);
  opacity: 1;
  transform: none;
  transition: opacity 300ms var(--ease-silk), transform 300ms var(--ease-silk);
}
.voice.is-out { opacity: 0; transform: translateY(-6px); }
.voice__stars { display: flex; gap: 0.1rem; margin-bottom: 0.45rem; }
.voice__stars svg { width: 0.65rem; height: 0.65rem; color: var(--c-gold); }
.voice blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--c-ink-2);
}
.voice figcaption {
  margin-top: 0.5rem;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-4);
}
@media (prefers-reduced-motion: reduce) { .voice { transition: none; } }

/* No light-mode override here. The shared --edge / --edge-hi tokens
   already carry both themes, and a hand-written light value is how
   this one card ended up at 1.55:1 while every other card sat at
   3.2:1 — invisible, and invisible only in light mode. */
:root[data-theme="light"] .voice { border-color: var(--edge); }
:root[data-theme="light"] .stamp {
  border-color: rgba(150, 110, 48, 0.5);
  box-shadow: inset 0 1px 2px rgba(120, 90, 40, 0.12);
}

/* ============================================================
   PANEL FILL

   These cards were filled with --c-bg-raise, which is an OPAQUE
   near-black (#101219 in the dark theme). On this warm, gradient
   page that reads as a black rectangle dropped on top of it.

   Every other card on the site uses --grad-panel: a translucent
   wash that lets the page's own colour through, which is where the
   depth comes from. Same material here.

   Fill only. Border, radius, padding and type are untouched.
   ============================================================ */
.stamps,
.soon,
.voice,
.mcard {
  background-color: transparent;
  background-image: var(--grad-panel);
}

/* ============================================================
   THE WELLNESS FORM — hierarchy and proximity

   Two faults this fixes:

   The slider's value was pushed to the far end of its own column by
   `justify-content: space-between`, so "Gentle" sat in the middle of
   the screen, nearer the NEXT slider's label than its own. A value
   belongs beside the thing it is the value of — it now sits directly
   after the label.

   Every block in this form was set at the same quiet weight, so
   nothing led the eye. The section labels now carry a gold rule and
   real weight, and every block gets the same treatment, so "What do
   you want from this session" and "Health conditions" read as
   section headings rather than captions.
   ============================================================ */

/* --- the value sits with its label --- */
.slider-wrap__top {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.slider-wrap__val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
}
.slider-wrap { gap: 0.3rem; }
.rng__scale { margin-top: -0.3rem; }

/* --- every section label leads with the same weight --- */
.field__legend,
.field > label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.15rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}
.field__legend::before,
.field > label::before,
.slider-wrap__top > .field__legend::before {
  content: "";
  flex: 0 0 auto;
  width: 0.85rem;
  height: 1px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
}
/* the slider label keeps its rule but stays on one line with the value */
.slider-wrap__top .field__legend { margin-bottom: 0; }

.field__hint {
  font-size: 0.62rem;
  color: var(--c-ink-4);
  line-height: 1.55;
}

/* --- blocks get air between them so each reads as its own thing --- */
.panel .field + .field,
.panel .fields + .field,
.panel .field + .fields,
.panel .fields + .fields { margin-top: 1.5rem; }

/* ...but NOT inside a .fields grid, where the grid's own gap already
   does it. The rule above matched grid children too, so every field
   except the first carried an extra 24px on top — which in a
   two-column grid pushed the right-hand column down by 24px against
   the left, and the row below it back up. That stagger was the
   "needs proper alignment" in the name/phone and email/hotel rows. */
.panel .fields > .field + .field { margin-top: 0; }

/* the confidentiality note is reassurance, so give it a quiet frame
   rather than letting it trail off the bottom of the form */
#condRow + .field__hint,
.panel .field__hint.is-note {
  margin-top: 0.7rem;
  padding: 0.55rem 0.8rem;
  border-left: 2px solid var(--c-gold);
  background: var(--c-surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-ink-3);
}

/* the preview is a WhatsApp message, so it is styled like one */
.wa-bubble b { font-weight: 600; color: var(--c-ink); }
.wa-bubble i { font-style: italic; opacity: 0.85; }
.wa-bubble s { opacity: 0.6; }
.wa-bubble code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

/* ============================================================
   THE RESERVATION BAR

   Four steps, four segments, one control. It replaces a sticky 8px
   line that said "Step 2 of 4" and a separate stepper inside the card
   that said the same thing with nicer dots and then scrolled away.

   Each segment carries its number, its name and its own fill, and is
   a button: back to a step you have passed, forward only if the form
   validates. Sticky, so it is still there when you are three fields
   deep, which is when knowing how much is left actually matters.
   ============================================================ */
.bkbar {
  position: sticky;
  top: 4.6rem;
  z-index: 6;
  margin-bottom: 1.9rem;
  padding: 0.55rem 0.2rem 0.5rem;
}
/* Frosted, not a plate.
   The previous version read --c-bg-80, which does not exist, so it
   fell through to its fallback - rgba(10, 12, 16, 0.72), a near-opaque
   dark slate over a green page, with a hard edge that stopped short of
   the screen on both sides. A black box.

   The blur does the masking; the tint is barely there. The ground
   fades out at the bottom instead of ending on a line, and the
   negative inset is the page gutter, so it reaches both edges of the
   screen at every width. */
.bkbar::before {
  content: "";
  position: absolute;
  inset: -0.8rem calc(var(--gutter) * -1) -0.2rem;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.12) 68%, transparent 100%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}
:root[data-theme="light"] .bkbar::before {
  background: linear-gradient(to bottom,
    rgba(255, 252, 246, 0.82) 0%, rgba(255, 252, 246, 0.5) 68%, transparent 100%);
}
/* without backdrop-filter the blur cannot mask anything, so the
   fallback is a fade of the page's own background - still not a slab */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bkbar::before {
    background: linear-gradient(to bottom, var(--c-bg) 0%, var(--c-bg) 66%, transparent 100%);
  }
}
.bkbar__sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}
.stepper__node {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "dot label" "rail rail";
  align-items: center;
  gap: 0 0.5rem;
  padding: 0.1rem 0.1rem 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: opacity var(--d-fast) var(--ease-silk);
  opacity: 0.68;
}
.stepper__node:hover { opacity: 1; }
.stepper__node.is-active,
.stepper__node.is-done { opacity: 1; }
.stepper__node:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

.stepper__dot {
  grid-area: dot;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 1px solid var(--c-hair-strong);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--c-ink-2);
  transition: background var(--d-mid) var(--ease-silk),
              color var(--d-mid) var(--ease-silk),
              box-shadow var(--d-mid) var(--ease-silk);
}
.stepper__label {
  grid-area: label;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-ink-2);
  transition: color var(--d-mid) var(--ease-silk);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stepper__rail {
  grid-area: rail;
  display: block;
  height: 2px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--c-hair);
  overflow: hidden;
}
.stepper__rail > b {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-gold-2), var(--c-gold));
  transition: width 680ms var(--ease-spring);
}

.stepper__node.is-active .stepper__dot {
  color: #1a1206;
  background: var(--grad-gold);
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--c-gold-glow);
}
.stepper__node.is-active .stepper__label { color: var(--c-ink); letter-spacing: 0.2em; }
.stepper__node.is-done .stepper__dot {
  color: var(--c-jade);
  border-color: var(--c-jade);
  background: transparent;
}
.stepper__node.is-done .stepper__rail > b { opacity: 0.55; }

@media (max-width: 760px) {
  .stepper { gap: 0.5rem; }
  .stepper__node { grid-template-columns: auto; grid-template-areas: "dot" "rail"; justify-items: start; }
  .stepper__label { display: none; }
  .stepper__node.is-active { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "dot label" "rail rail"; }
  .stepper__node.is-active .stepper__label { display: block; }
}
@media (max-width: 560px) {
  .bkbar { top: 4.1rem; }
}

/* ============================================================
   FIELD GROUPS

   The Your body step asks a lot, which is right — the answers reach
   the therapist before the guest does. But it was one flat stack of
   seven blocks with no grouping and rows alternating between two and
   three columns, so nothing lined up down the page and nothing said
   which questions belonged together.

   Four named groups, each separated by a rule, each on the same grid.
   ============================================================ */
.fgroup {
  padding-top: var(--sp-5);
  margin-top: var(--sp-5);
  border-top: 1px solid var(--c-hair);
  display: grid;
  gap: var(--sp-4);
}
.fgroup:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.fgroup__h {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fgroup__h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--c-hair-strong), transparent);
}

/* the three sliders share one even row rather than two-plus-one */
.fields--3 { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .fields--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields--3 > .field:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .fields--3 { grid-template-columns: 1fr; }
  .fields--3 > .field:last-child:nth-child(odd) { grid-column: auto; }
}

/* ============================================================
   PAIRED FIELDS LINE UP

   See the note in README: a one-line label beside a two-line label
   was pushing the two inputs to different heights AND different
   sizes. The label reserves two lines, the row aligns to the top,
   and an input is one height everywhere.
   ============================================================ */
.fields { align-items: start; }
.field { align-content: start; }

/* two lines' worth of room, so a label that wraps and a label that
   does not still put their inputs on the same line */
.field > label,
.field__legend {
  min-height: 2.4em;
  align-items: flex-end;
}
/* the slider label sits inline with its value and must not grow */
.slider-wrap__top .field__legend,
.slider-wrap__top > .field__legend { min-height: 0; align-items: center; }

/* one height for every single-line control, so a row never looks ragged */
.inp { min-height: 3.05rem; }
textarea.inp { min-height: 6.5rem; }
select.inp { min-height: 3.05rem; }

/* a row of chips should start where its neighbour's input starts,
   not float up against the label */
.field > .choices { align-content: start; }

/* ============================================================
   THE WHATSAPP FRAME

   The header and the message box are what make this read as
   WhatsApp at a glance rather than as a green box.
   ============================================================ */
.wa-screen {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--sh-soft);
}
:root[data-theme="dark"] .wa-screen { border-color: rgba(255, 255, 255, 0.09); }

.wa-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  background: #008069;
  color: #fff;
}
:root[data-theme="dark"] .wa-top { background: #202c33; }
.wa-top__back { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.wa-top__av {
  width: 2.1rem; height: 2.1rem; flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold));
  color: #1a1206;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em;
}
.wa-top__who { display: grid; line-height: 1.25; min-width: 0; }
.wa-top__who b { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-top__who span { font-size: 0.64rem; opacity: 0.8; }
.wa-top__ico { margin-left: auto; display: flex; gap: 0.9rem; opacity: 0.9; }
.wa-top__ico svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wa-chat { border-radius: 0; }

.wa-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  background: #f0f2f5;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
:root[data-theme="dark"] .wa-foot { background: #202c33; border-top-color: rgba(255, 255, 255, 0.06); }
.wa-foot__box {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  color: rgba(17, 27, 33, 0.45);
  font-size: 0.72rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
:root[data-theme="dark"] .wa-foot__box { background: #2a3942; color: rgba(233, 237, 239, 0.5); }
.wa-foot__send {
  width: 2rem; height: 2rem; flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #00a884;
  color: #fff;
}
.wa-foot__send svg { width: 1rem; height: 1rem; fill: currentColor; }

/* The sticky bar sits over the form as it scrolls, so it carries its
   own background — otherwise fields slide visibly underneath a
   translucent track. The negative margins let that background reach
   the card's edges while the bar itself keeps the card's padding. */

/* ============================================================
   THE SIGNATURE

   Two ways in, because this runs on a phone at the counter and on a
   laptop in a hotel room. The pad needs touch-action:none or the
   browser pans the page instead of drawing.
   ============================================================ */
.sig { display: grid; gap: 0.7rem; }

.sig__tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sig__tab {
  appearance: none;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--c-ink-3);
  font: inherit;
  font-size: 0.76rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--d-fast) var(--ease-silk), background var(--d-fast) var(--ease-silk);
}
.sig__tab:hover { border-color: var(--edge-hi); }
.sig__tab.is-on { background: rgba(212,173,109,.16); border-color: var(--c-gold); color: var(--c-ink); font-weight: 600; }

.sig__pad {
  position: relative;
  height: 11rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  box-shadow: var(--inner-light);
  overflow: hidden;
}
.sig__canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* without this the browser pans the page instead of drawing */
  touch-action: none;
  cursor: crosshair;
}
.sig__baseline {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-hair-strong), transparent);
  pointer-events: none;
}
.sig__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-4);
  pointer-events: none;
}

.sig__type { display: grid; gap: 0.6rem; }
.sig__input {
  width: 100%;
  padding: 0.78rem 1rem;
  min-height: 3.05rem;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  border: 1px solid var(--edge);
  box-shadow: var(--inner-light);
  font: inherit;
  font-size: var(--t-body-s);
  color: var(--c-ink);
}
.sig__input:focus { outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px var(--c-gold-glow); }
/* the typed name, set as a signature rather than as data entry */
.sig__shown {
  min-height: 5.2rem;
  display: grid;
  place-items: center;
  padding: 0.6rem 1rem 1.3rem;
  border-bottom: 1px solid var(--c-hair-strong);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem);
  line-height: 1.2;
  color: var(--c-ink);
  text-align: center;
  word-break: break-word;
}

.sig__foot { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.sig__mark {
  margin-right: auto;
  font-size: 0.72rem;
  color: var(--c-ink-4);
}
.sig.is-signed .sig__mark { color: var(--c-gold); font-weight: 600; }
.sig__clear {
  appearance: none;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--c-ink-3);
  font: inherit;
  font-size: 0.74rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.sig__clear:hover { border-color: var(--edge-hi); color: var(--c-ink); }

/* ============================================================
   THE CONFIRMATION, IN TWO GROUPS

   Sending it to the shop and keeping a copy are different jobs.
   They were one undifferentiated row, so neither read clearly.
   ============================================================ */
.donegrp {
  width: 100%;
  max-width: 34rem;
  display: grid;
  gap: 0.7rem;
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
  border-top: 1px solid var(--c-hair);
}
.donegrp:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.donegrp__h {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.donegrp__h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--c-hair-strong), transparent);
}

/* the card inside the step-4 preview */
.wa-bubble--card { padding: 0.3rem 0.3rem 1.35rem; }
.wa-bubble--card canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 13rem;
  border-radius: 0.4rem;
}
