/* ============================================================
   Shared booking-flow chrome: header, progress, layout, controls.
   Pages link tokens.css then flow.css.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--bone);
  font-weight: var(--w-book);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 50% -8%, var(--gold-ghost) 0%, transparent 42%),
    repeating-radial-gradient(circle at 50% -8%, transparent 0 78px, rgba(255,255,255,0.012) 78px 79px);
  pointer-events: none; z-index: 0;
}

/* ---- top bar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  position: relative; z-index: 2;
  border-bottom: 1px solid var(--line-soft);
}
.topbar .brand { display: flex; align-items: center; gap: var(--s-4); }
.topbar .brand a.brand-logo { display: flex; align-items: center; }
.topbar .brand img { height: 46px; width: auto; display: block; }
.topbar .brand span {
  font-size: 1.05rem; letter-spacing: 0.04em; text-transform: none;
  color: var(--gold); font-weight: var(--w-light);
  border-left: 1px solid var(--line); padding-left: var(--s-4);
}
.topbar .acct {
  font-size: 12px; color: var(--smoke); letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: var(--w-light);
}

/* ---- step progress ---- */
.progress {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--s-5) var(--s-5) 0;
  position: relative; z-index: 1;
}
.progress .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); transition: all 0.4s var(--ease);
}
.progress .dot.done { background: var(--gold-dim); }
.progress .dot.active { background: var(--gold); width: 22px; border-radius: var(--r-pill); }

/* ---- flow container ---- */
.flow {
  flex: 1; width: 100%; max-width: var(--maxw-wide);
  margin: 0 auto; padding: var(--s-6) var(--s-5) var(--s-8);
  position: relative; z-index: 1;
}
.flow.narrow { max-width: var(--maxw); }

.step-head { text-align: center; margin-bottom: var(--s-7); }
.step-head .kicker {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: var(--w-regular); margin-bottom: var(--s-3);
  opacity: 0; animation: rise var(--dur) var(--ease) 0.05s forwards;
}
.step-head h1 {
  font-size: clamp(2rem, 5vw, 2.9rem); font-weight: var(--w-thin);
  letter-spacing: -0.02em; line-height: 1.02;
  opacity: 0; animation: rise var(--dur) var(--ease) 0.12s forwards;
}
.step-head h1 em { font-style: italic; font-weight: var(--w-xlight); color: var(--gold); }
.step-head p {
  margin-top: var(--s-4); color: var(--ash); font-weight: var(--w-light);
  font-size: 1.02rem; max-width: 46ch; margin-left: auto; margin-right: auto;
  opacity: 0; animation: rise var(--dur) var(--ease) 0.2s forwards;
}

/* ---- shared controls ---- */
.btn {
  background: var(--gold); color: var(--black); border: none;
  border-radius: var(--r-md); padding: 16px 28px;
  font-family: var(--font); font-size: 1rem; line-height: 1.2;
  font-weight: var(--w-medium); letter-spacing: 0.02em; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.1s var(--ease);
}
.btn:hover { background: var(--gold-bright); }
.btn:active { transform: scale(0.985); }
.btn:disabled { background: var(--line); color: var(--smoke); cursor: not-allowed; }

.btn-ghost {
  background: transparent; color: var(--bone); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 15px 28px;
  font-family: var(--font); font-size: 0.96rem; line-height: 1.2;
  font-weight: var(--w-book); cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-ghost:hover { border-color: var(--smoke); background: var(--ink-raised); }

.flow-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--s-7); gap: var(--s-4);
}
.flow-nav .spacer { flex: 1; }

input, select, textarea {
  font-family: var(--font); font-size: 1.02rem; line-height: 1.4;
  color: var(--bone); font-weight: var(--w-book);
  background: var(--black); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 15px 18px; width: 100%;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--smoke); font-weight: var(--w-light); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold-line); background: #0d0d0d;
}
label {
  display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--smoke); margin-bottom: var(--s-3); font-weight: var(--w-regular);
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; opacity: 1 !important; } }
