.book-page { padding-bottom: 120px; }

.nav { position: sticky; }
.progress { height: 2px; background: var(--line-soft); }
.progress span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--metal-gold);
  box-shadow: 0 0 12px rgba(241, 218, 160, 0.6);
  transition: width 0.5s var(--ease);
}

.booker {
  width: min(680px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) 0 40px;
  min-height: calc(100svh - 70px - 110px);
}

/* step transitions: driven by class swaps + timeouts, never rAF alone */
.step { transition: opacity 0.26s var(--ease), transform 0.34s var(--ease); }
.step.is-leaving { opacity: 0; transform: translateY(-10px); }
.step.is-leaving.is-back { transform: translateY(10px); }
.step.is-entering { opacity: 0; transform: translateY(14px); }
.step.is-entering.is-back { transform: translateY(-14px); }
@media (prefers-reduced-motion: reduce) {
  .step { transition: opacity 0.15s linear; transform: none !important; }
}

.step-count {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.step h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  outline: none;
}
.step .sub { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }
.step .opener { font-family: var(--script); color: var(--gold); font-size: 2.2rem; line-height: 1; margin-bottom: 4px; }

/* choice cards */
.choices { display: grid; gap: 12px; margin-top: 28px; }
.choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .choices.cols-3 { grid-template-columns: 1fr; } }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease), background-color 0.2s;
}
.choice:hover { border-color: var(--line); }
.choice:active { transform: scale(0.985); }
.choice[aria-pressed="true"] {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 106, 0.12), rgba(212, 175, 106, 0.04));
}
.choice .c-main { flex: 1; min-width: 0; }
.choice .c-title { display: block; font: 500 1.25rem/1.2 var(--display); letter-spacing: 0.04em; }
.choice .c-desc { display: block; margin-top: 4px; font-size: 0.92rem; color: var(--muted); line-height: 1.4; }
.choice .c-price { font: 500 1.5rem/1 var(--display); color: var(--gold-hi); white-space: nowrap; }
.choice .c-tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background-color 0.2s, border-color 0.2s;
}
.choice[aria-pressed="true"] .c-tick { background: var(--metal-gold); border-color: transparent; }
.choice .c-tick svg { width: 14px; height: 14px; opacity: 0; color: #1a1307; }
.choice[aria-pressed="true"] .c-tick svg { opacity: 1; }

/* size cards (step 1): stacked on desktop, rows on phones */
.size-choice { flex-direction: column; align-items: center; text-align: center; padding: 24px 14px 20px; gap: 10px; }
.size-choice svg { width: 100%; max-width: 150px; height: auto; color: var(--silver); transition: color 0.2s; }
.size-choice[aria-pressed="true"] svg,
.size-choice:hover svg { color: var(--gold); }
@media (max-width: 560px) {
  .size-choice { flex-direction: row; text-align: left; padding: 16px 18px; gap: 16px; }
  .size-choice svg { width: 96px; flex: none; }
}

/* package cards (step 2) */
.pkg-choice { flex-direction: column; align-items: stretch; gap: 0; padding: 22px 22px 20px; }
.pkg-choice .p-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pkg-choice .p-name { font: 600 2.2rem/0.9 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.pkg-choice .p-price { font: 500 2.2rem/1 var(--display); }
.pkg-choice .p-tag { margin-top: 8px; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.pkg-choice .p-list { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: #cfc6b6; font-size: 0.94rem; line-height: 1.5; }
.pkg-choice.is-silver[aria-pressed="true"] { border-color: var(--silver); background: linear-gradient(180deg, rgba(201, 205, 211, 0.1), rgba(201, 205, 211, 0.03)); }
@media (min-width: 620px) { .pkg-choices { grid-template-columns: 1fr 1fr; } }

/* dates */
.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 28px calc(-1 * var(--gutter)) 0;
  padding: 2px var(--gutter) 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none;
  scroll-snap-align: start;
  width: 68px;
  padding: 12px 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.day span { display: block; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.day b { display: block; margin: 4px 0 2px; font: 500 1.5rem/1 var(--display); }
.day[aria-pressed="true"] { border-color: var(--gold); background: rgba(212, 175, 106, 0.1); }
.day[aria-pressed="true"] b { color: var(--gold-hi); }
@media (min-width: 700px) { .days { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.slot {
  padding: 14px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  text-align: center;
}
.slot b { display: block; font-weight: 500; }
.slot span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.slot[aria-pressed="true"] { border-color: var(--gold); background: rgba(212, 175, 106, 0.1); }
.slot:disabled { opacity: 0.35; cursor: not-allowed; }

.flex-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  width: 100%;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.flex-toggle .box {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.flex-toggle[aria-pressed="true"] { border-style: solid; border-color: var(--gold); }
.flex-toggle[aria-pressed="true"] .box { background: var(--metal-gold); border-color: transparent; }
.flex-toggle .box svg { width: 13px; height: 13px; color: #1a1307; opacity: 0; }
.flex-toggle[aria-pressed="true"] .box svg { opacity: 1; }

/* fields */
.fields { display: grid; gap: 18px; margin-top: 28px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #cfc6b6; }
.field label small { color: var(--muted); font-size: 0.85rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
  color: var(--paper);
  font: 400 1.05rem/1.4 var(--body);
  transition: border-color 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6a6256; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold); }
.field .err { display: none; margin-top: 8px; font-size: 0.88rem; color: #e8a27c; }
.field.has-err input { border-color: #c9744d; }
.field.has-err .err { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  font-size: 0.95rem;
}
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); background: rgba(212, 175, 106, 0.1); }

/* review */
.summary { margin-top: 28px; padding: 6px 0; }
.summary .row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
}
.summary .row:first-child { border-top: 0; }
.summary dt { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.summary .edit {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--gold);
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.summary .total { background: rgba(212, 175, 106, 0.08); }
.summary .total dd { font: 500 1.6rem/1 var(--display); color: var(--gold-hi); }
@media (max-width: 480px) {
  .summary .row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .summary dt { grid-column: 1 / -1; }
}
.fine { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }

.send { display: grid; gap: 10px; margin-top: 26px; }
.send .btn { width: 100%; }
.send-help { margin-top: 14px; font-size: 0.92rem; color: #cfc6b6; }

/* done */
.done { text-align: center; padding-top: 20px; }
.done .seal {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 0 40px -8px rgba(212, 175, 106, 0.5);
}
.done .seal .diamond { width: 26px; height: 26px; }
.done .sub { max-width: 40ch; margin-inline: auto; }
.done .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* bottom dock: running estimate + navigation */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(11, 10, 8, 0.96);
  border-top: 1px solid var(--line-soft);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform 0.35s var(--ease);
}
.dock.is-hidden { transform: translateY(110%); }
.dock-inner {
  width: min(680px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
}
.dock-back {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.dock-back svg { width: 20px; height: 20px; }
.dock-back[hidden] { display: none; }
.dock-est { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.dock-label { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.dock-price { font: 500 1.5rem/1.1 var(--display); color: var(--gold-hi); grid-row: 2; grid-column: 1; transition: opacity 0.18s; }
.dock-price.is-swapping { opacity: 0; }
.dock-sum { grid-row: 2; grid-column: 2; font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-next { flex: none; min-height: 48px; }
.dock-next[hidden] { display: none; }
@media (max-width: 420px) {
  .dock-sum { display: none; }
  .dock-next { padding: 0 20px; }
}

.send-err {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 116, 77, 0.5);
  border-radius: 10px;
  background: rgba(201, 116, 77, 0.08);
  color: #f0c2a8;
  font-size: 0.94rem;
}
.send-err a { color: var(--gold-hi); }
.send-alt { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }
.send-alt a,
.linkish {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.linkish { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: progress; }
