/* =========================================================================
   Booking wizard — "Focus Ring" stepper metaphor continues from the hero.
   ========================================================================= */

.book-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 56px 0 40px;
}
.book-hero .eyebrow { color: #7FD3D9; }
.book-hero .eyebrow::before { background: #7FD3D9; }
.book-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-top: 14px; }
.book-hero p { color: #B9C8DF; margin-top: 12px; max-width: 520px; font-size: 16px; }

/* --- Stepper --- */
.stepper {
  display: flex;
  justify-content: space-between;
  max-width: 720px;
  margin: 40px auto 0;
  position: relative;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 19px; left: 6%; right: 6%;
  height: 2px;
  background: rgba(255,255,255,0.14);
  z-index: 0;
}
.stepper .fill {
  content: "";
  position: absolute;
  top: 19px; left: 6%;
  height: 2px;
  background: var(--frame-gold);
  z-index: 1;
  width: 0%;
  transition: width .4s ease;
}
.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.step .dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-2);
  border: 2px solid rgba(255,255,255,0.25);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #B9C8DF;
  transition: all .25s ease;
}
.step span.label {
  font-size: 12px;
  color: #8FA4C4;
  text-align: center;
  max-width: 90px;
}
.step.is-active .dot { background: var(--frame-gold); border-color: var(--frame-gold); color: var(--navy-2); }
.step.is-active span.label { color: #fff; font-weight: 600; }
.step.is-done .dot { background: var(--lens-teal); border-color: var(--lens-teal); color: #fff; }
.step.is-done .dot::after { content: "✓"; }

/* --- Form shell --- */
.book-shell {
  padding: 56px 0 90px;
}
.book-panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: -70px auto 0;
  position: relative;
  z-index: 5;
  padding: 46px;
}
.panel-head { margin-bottom: 30px; }
.panel-head .eyebrow { color: var(--lens-teal); }
.panel-head h2 { font-size: 26px; margin-top: 10px; }
.panel-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }

.fieldset-step { display: none; }
.fieldset-step.is-active { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Branch picker */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.option-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 20px 18px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s;
  background: var(--paper-2);
}
.option-card:hover { border-color: rgba(28,127,224,0.4); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .tag {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--lens-teal);
}
.option-card h4 { font-size: 17px; margin: 8px 0 3px; color: var(--navy); font-family: var(--font-body); font-weight: 700; }
.option-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.option-card .check {
  position: absolute; top: 16px; right: 16px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
}
.option-card .check::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--optic-blue); opacity: 0; transition: opacity .15s;
}
.option-card input:checked ~ .check::after { opacity: 1; }
.option-card:has(input:checked) {
  border-color: var(--optic-blue);
  background: var(--optic-blue-light);
  box-shadow: 0 0 0 3px rgba(28,127,224,0.12);
}

.option-grid.services { grid-template-columns: repeat(2, 1fr); }
.option-card .meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--navy); }

/* Date + time */
.dt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input[type="date"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--optic-blue);
  outline: none;
}
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.slot {
  padding: 11px 6px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--paper-2);
  color: var(--navy);
  transition: all .15s;
}
.slot:hover:not(:disabled) { border-color: var(--optic-blue); }
.slot.is-selected { background: var(--optic-blue); border-color: var(--optic-blue); color: #fff; }
.slot:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.slot-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 14px; padding: 20px 0; }

/* Details form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .field.full { grid-column: 1 / -1; }

.checkline {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
}
.checkline input { width: 17px; height: 17px; accent-color: var(--optic-blue); }

/* Summary (step 5) */
.summary-card {
  background: var(--optic-blue-light);
  border-radius: var(--radius-m);
  padding: 24px 26px;
  margin-bottom: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(18,41,79,0.15);
  font-size: 14.5px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 700; color: var(--navy); text-align: right; }

/* Navigation buttons in wizard */
.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  gap: 14px;
}
.step-actions .btn { min-width: 140px; }

/* Success state */
.success-block { text-align: center; padding: 20px 0 10px; }
.success-ring {
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 2px solid var(--lens-teal);
  margin: 0 auto 24px;
  display: grid; place-items: center;
  position: relative;
}
.success-ring::before {
  content: "";
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(14,124,134,0.35);
}
.success-ring svg { width: 38px; height: 38px; stroke: var(--lens-teal); }
.success-block h2 { font-size: 26px; }
.success-block p { color: var(--muted); margin-top: 10px; max-width: 420px; margin-left: auto; margin-right: auto; }
.ref-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.08em;
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  margin: 20px 0 26px;
}
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.form-error {
  background: #FDECEC;
  border: 1px solid #F3C4C4;
  color: #A32323;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}
.form-error.is-visible { display: block; }

@media (max-width: 720px) {
  .book-panel { padding: 30px 22px; margin-top: -50px; }
  .option-grid, .option-grid.services { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .stepper span.label { display: none; }
  .step-actions .btn { min-width: 0; flex: 1; }
}
