/* ============================================================
   Booking wizard — extends styles.css design system.
   ============================================================ */

.booking-body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.booking-body [hidden] { display: none !important; }

.book-topbar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut);
  border-bottom: 1px solid var(--iron);
  background: var(--coal-2);
  color: var(--bone);
}
.book-logo { display: inline-flex; align-items: center; gap: 10px; }
.book-exit {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  transition: color 0.16s;
}
.book-exit:hover { color: var(--bone); }

.book-progress {
  height: 2px;
  background: var(--iron);
}
.book-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.book-main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) var(--gut) 140px;
}

.book-step { text-align: center; animation: stepIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.book-step .kicker { justify-content: center; margin-bottom: 12px; }
.book-step h1 { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 14px; }
.step-sub {
  color: var(--smoke);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  max-width: 52ch;
  margin: 0 auto 34px;
}
.step-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--smoke-dim);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.returning-note {
  font-size: 13px;
  color: var(--smoke-dim);
  background: var(--red-wash);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 11px 16px;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.returning-note .btn-text { font-size: 12.5px; }

/* ---- Square footage ---- */
.sqft-field { max-width: 380px; margin: 0 auto 36px; text-align: center; }
.sqft-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 9px;
}
.sqft-field input {
  width: 100%;
  background: var(--coal-2);
  border: 1px solid var(--iron-2);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  text-align: center;
  color: var(--bone);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.sqft-field input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-wash);
}
.field-hint { margin-top: 9px; font-size: 12.5px; color: var(--smoke-dim); }

/* ---- Add-on pills ---- */
.addon-group { margin-bottom: 30px; text-align: left; }
.group-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  margin-bottom: 12px;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Project type toggle ---- */
.type-group { text-align: center; margin-bottom: 34px; }
.type-group .group-label { text-align: center; }
.type-group .pill-row { justify-content: center; }
.type-switch {
  position: relative;
  display: inline-flex;
  background: var(--coal);
  border: 1px solid var(--iron-2);
  border-radius: 999px;
  padding: 5px;
  gap: 2px;
}
.type-thumb {
  position: absolute;
  top: 5px; bottom: 5px;
  left: 5px;
  width: 0;
  background: var(--red);
  border-radius: 999px;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.32),
    0 1.5px 3px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: left 0.3s cubic-bezier(.65,0,.35,1), width 0.3s cubic-bezier(.65,0,.35,1), opacity 0.2s;
  z-index: 0;
  opacity: 0;
}
.type-switch.has-selection .type-thumb { opacity: 1; }
.type-opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--smoke);
  border-radius: 999px;
  transition: color 0.25s;
  white-space: nowrap;
}
.type-opt.selected { color: var(--bone); }
.type-opt:hover:not(.selected) { color: var(--bone); }
@media (max-width: 480px) {
  .type-opt { padding: 14px 16px; font-size: 12px; gap: 6px; }
}
.pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--coal-2);
  border: 1px solid var(--iron);
  border-radius: var(--radius);
  padding: 11px 20px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s, box-shadow 0.16s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pill:hover { border-color: var(--iron-2); }
.pill.selected {
  box-shadow: inset 0 0 0 1px var(--red);
  background: var(--red-wash);
  color: var(--bone);
  border-color: var(--red);
}
/* Locked state — an add-on that can't be selected yet because it depends on a
   video being in the order. It is NOT included; the label reads "Requires
   video", so there is deliberately no badge here. */
.pill.locked {
  cursor: default;
  color: var(--smoke-dim);
  background: var(--coal);
  border-color: transparent;
  opacity: 0.72;
}
.pill .qty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 2px;
}
.pill .qty .qbtn {
  width: 20px; height: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--red);
  background: none;
  color: var(--bone);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pill .qty .qbtn:hover { background: var(--red); color: var(--bone); }
.addon-note { font-size: 12px; color: var(--smoke-dim); margin-top: 10px; }

/* ---- Info icon + tooltip (self-contained per option, no shared/global positioning) ---- */
.info-wrap { position: relative; display: inline-flex; margin-left: 1px; }
.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.16s, border-color 0.16s, color 0.16s, background 0.16s;
}
/* Invisible padded hit area — the visible circle stays small and tidy,
   but the actual clickable/tappable zone is generous (~34px) so it's
   reliable on both mouse and touch. */
.info-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
}
.info-icon:hover, .info-icon:focus-visible { opacity: 1; border-color: var(--red); color: var(--red); }
.info-wrap.open .info-icon { opacity: 1; background: var(--red); border-color: var(--red); color: var(--bone); }
.info-pop {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: 220px;
  background: var(--coal-2);
  color: var(--bone);
  border: 1px solid var(--iron-2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  padding: 10px 12px;
  border-radius: var(--radius);
}
/* display:none (rather than visibility/opacity) keeps every closed popover
   fully out of layout — with dozens of these on the page, a visibility-hidden
   approach still contributes its box to scrollWidth at each icon's position,
   which was inflating the page's horizontal overflow site-wide on mobile. */
.info-wrap.open .info-pop { display: block; }

/* ---- Video preferences (speed slider + music link) ---- */
#video-prefs {
  max-width: 560px;
  margin: 34px auto 0;
  text-align: left;
}
#video-prefs .field { margin-bottom: 0; }
.optional { text-transform: none; letter-spacing: 0; color: var(--smoke-dim); font-weight: 400; }

/* ---- Video speed — discrete grid stops -----------------------------------
   The dot and its label live in the SAME grid cell, so they share the exact
   same center by construction — there's no separate geometry (thumb travel
   vs. label row) to fall out of sync, at any viewport width. The track/fill
   bar is inset 10% on each side, which is exactly the center of the first
   and last of 5 equal-width columns — so it always terminates precisely at
   the first and last dots. */
.speed-slider { position: relative; padding-top: 2px; }
.speed-track {
  position: absolute;
  top: 11px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--iron);
}
.speed-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.speed-stops {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.speed-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.speed-stop .dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--coal-2);
  border: 1px solid var(--iron-2);
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}
.speed-stop:hover .dot { border-color: var(--red); }
.speed-stop.active .dot { background: var(--red); border-color: var(--red); transform: scale(1.1); }
.speed-stop .lbl {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  text-align: center;
  transition: color 0.16s;
}
.speed-stop.active .lbl { color: var(--red); }

/* ---- Radio cards ---- */
.radio-list { display: flex; flex-direction: column; gap: 10px; }
.radio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--coal-2);
  border: 1px solid var(--iron);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.radio-card:hover { border-color: var(--iron-2); }
.radio-card .dot {
  flex: none;
  width: 18px; height: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--iron-2);
  transition: all 0.16s;
}
.radio-card.selected { box-shadow: inset 0 0 0 1px var(--red); border-color: var(--red); }
.radio-card.selected .dot {
  background: var(--red);
  border-color: var(--red);
  box-shadow: inset 0 0 0 3px var(--coal-2);
}

/* ---- Orientation grid ---- */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pill-grid .pill { justify-content: center; }

/* ---- Timing ---- */
.timing-note {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--smoke);
}

/* ---- Forms ---- */
.book-form .form-group { margin: 26px 0; text-align: left; }
.book-form .form-group .field-hint { margin: 10px 0 0; }

.book-form { max-width: 560px; margin: 0 auto; text-align: left; }
.book-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-form .form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.book-form .field-hint { margin: -6px 0 18px; }

/* ---- Review ---- */
.review-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--coal-2);
  border: 1px solid var(--iron);
  padding: 30px 32px;
  text-align: left;
}
.review-card h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  margin: 20px 0 8px;
}
.review-card h4:first-child { margin-top: 0; }
.review-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  padding: 7px 0;
  border-bottom: 1px solid var(--iron);
}
.review-line span:first-child { color: var(--smoke); }
.review-line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.review-line.total {
  border-bottom: 0;
  padding-top: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 21px;
}
.review-line.total span:first-child { color: var(--bone); }
.review-line.total span:last-child { color: var(--ember); }
.review-meta { font-size: 13.5px; color: var(--smoke); line-height: 1.7; }

/* ---- Terms & acknowledgment (final step, below the review card) ---- */
.terms-wrap {
  max-width: 560px;
  margin: 30px auto 0;
  text-align: left;
}
.terms-box {
  max-height: 300px;
  overflow-y: auto;
  background: var(--coal-2);
  border: 1px solid var(--iron);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.terms-box:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-wash);
}
.terms-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--smoke);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--iron);
}
.terms-box h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 18px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--red-wash);
}
.terms-box h5:first-of-type { margin-top: 0; }
.terms-box p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--smoke);
}
.terms-box p strong { color: var(--bone); font-weight: 500; }

.ack { margin-top: 20px; }
.ack .field { margin-bottom: 14px; }
.ack-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}
.ack-check input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}
.ack-check span {
  font-size: 13px;
  line-height: 1.65;
  color: var(--smoke);
}

/* ---- Bottom bar ---- */
.book-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1; /* above the ghost A watermark */
  background: rgba(11, 11, 12, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--iron-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gut);
}
.total-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke-dim);
}
.total-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  color: var(--bone);
}
.book-actions { display: flex; gap: 12px; }
.btn:disabled {
  background: var(--coal);
  color: var(--smoke-dim);
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .book-form .form-row, .book-form .form-row-3 { grid-template-columns: 1fr; gap: 0; }
  .book-main { padding-bottom: 170px; }
  .total-value { font-size: 22px; }
  .book-bar { flex-wrap: wrap; }
  .book-actions { flex: 1; }
  .book-actions .btn { flex: 1; }
}

/* ---------------- availability calendar ---------------- */
.avail-cal {
  background: var(--coal);
  border: 1px solid var(--iron);
  padding: clamp(12px, 1.6vw, 18px);
  max-width: 460px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.cal-nav {
  width: 36px; height: 36px;
  border: 1px solid var(--iron-2);
  background: none; color: var(--bone);
  font-size: 15px; cursor: pointer;
}
.cal-nav:hover:not(:disabled) { border-color: var(--ember); color: var(--ember); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow {
  text-align: center; font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--smoke-dim); padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1 / 1; min-height: 38px;
  border: 1px solid var(--iron); background: var(--coal-2);
  color: var(--bone); font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cal-day:hover:not(:disabled):not(.is-blank) { border-color: var(--ember); }
.cal-day.is-blank { border: none; background: none; cursor: default; }
.cal-day.is-past { opacity: 0.22; background: none; border-color: var(--iron); cursor: default; }
.cal-day.is-possible {
  background: rgba(214, 175, 122, 0.13);
  border-color: rgba(214, 175, 122, 0.5);
  color: #d9b47c;
}
.cal-day.is-full {
  background: var(--red-wash);
  border-color: rgba(154, 43, 35, 0.4);
  color: var(--smoke-dim);
  text-decoration: line-through;
  cursor: not-allowed;
}
.cal-day.is-selected { background: var(--red); border-color: var(--red); color: var(--bone); text-decoration: none; }
.cal-day.is-today::after {
  content: ''; position: absolute; bottom: 5px; left: 50%;
  width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor;
}
.avail-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 10px; font-size: 11.5px; color: var(--smoke);
}
.avail-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 11px; height: 11px; border: 1px solid var(--iron-2); background: var(--coal-2); }
.lg-possible { background: rgba(214, 175, 122, 0.3); border-color: #d9b47c; }
.lg-full { background: rgba(154, 43, 35, 0.35); border-color: #9a2b23; }

/* ---------------- ghost A watermark ----------------
   The standalone A mark, oversized and barely-there behind the
   wizard — same Robison-style treatment as the homepage sections. */
.booking-body::after {
  content: '';
  position: fixed;
  top: 50%;
  right: -6vw;
  width: min(80vh, 58vw);
  aspect-ratio: 244 / 239;
  transform: translateY(-50%);
  background: url('assets/logo/alpha-a-mark-dark.svg') no-repeat center / contain;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
.book-main, .book-topbar { position: relative; z-index: 1; }

/* ---------------- address suggestions dropdown ---------------- */
.addr-suggest {
  position: absolute;
  left: 0; right: 0;
  z-index: 25;
  background: var(--coal-2);
  border: 1px solid var(--iron-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  max-height: 264px;
  overflow-y: auto;
}
.addr-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--iron);
  color: var(--bone);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.addr-opt:last-child { border-bottom: 0; }
.addr-opt small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--smoke);
}
.addr-opt:hover, .addr-opt.is-active { background: var(--red-wash); color: var(--ember); }
.addr-opt:hover small, .addr-opt.is-active small { color: var(--ember); opacity: 0.75; }
