﻿/* ============================================================
   ADAMS OMONDI — BOOKING FLOW
   ============================================================ */

.booking-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  isolation: isolate;
}
.booking-hero__inner { max-width: 820px; }
.booking-hero__title { margin-bottom: 1.25rem; }
.booking-hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 60ch;
}

/* ==================== SHELL ==================== */
.booking-shell {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

/* ==================== PROGRESS ==================== */
.booking-progress {
  position: relative;
  margin-bottom: 2.5rem;
  padding-top: 4px;
}
.booking-progress::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 2px;
}
.booking-progress__bar {
  position: absolute;
  top: 20px; left: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--dur-slow) var(--ease-out);
  max-width: calc(100% - 40px);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
}
.booking-progress__steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}
.booking-progress__step {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  transition: all var(--dur-base) var(--ease-out);
}
.booking-progress__step.is-done {
  background: var(--brand-primary-soft);
  border-color: rgba(0,212,255,0.35);
  color: var(--brand-primary);
}
.booking-progress__step.is-active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,212,255,0.18), 0 6px 18px rgba(0,212,255,0.35);
}

/* ==================== STEP ==================== */
.booking-step {
  display: none;
  animation: fadeUp var(--dur-slow) var(--ease-out) both;
}
.booking-step.is-active { display: block; }

.booking-step__head { margin-bottom: 1.75rem; }
.booking-step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.6rem;
}
.booking-step__title {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.booking-step__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.booking-step__error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--brand-danger);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-md);
}

/* ==================== OPTIONS ==================== */
.option-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
}
.option-card {
  padding: 1rem 1.1rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  padding-left: 2.75rem;
}
.option-card::before {
  content: '';
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  transition: all var(--dur-base) var(--ease-out);
}
.option-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}
.option-card.is-selected {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.10);
}
.option-card.is-selected::before {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  box-shadow: inset 0 0 0 3px var(--bg-surface), 0 0 10px rgba(0,212,255,0.6);
}

/* ==================== FORM GRID ==================== */
.booking-form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .booking-form-grid { grid-template-columns: 1fr 1fr; }
}
.booking-form-grid .form-group { margin-bottom: 0; }
#desc-counter { color: var(--brand-primary); font-weight: 600; }

/* ==================== REVIEW SUMMARY ==================== */
.booking-review {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.booking-review:empty { display: none; }
.booking-review h3 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.booking-review dl {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .booking-review dl { grid-template-columns: repeat(2, 1fr); }
}
.booking-review dl > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.booking-review dt {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.booking-review dd {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ==================== NAV ==================== */
.booking-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}
.booking-nav__spacer { flex: 1; }

/* ==================== SUCCESS STATE ==================== */
.booking-shell.is-complete {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.booking-shell.is-complete .booking-nav,
.booking-shell.is-complete .booking-progress,
.booking-shell.is-complete .booking-step { display: none; }

.booking-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.booking-success__icon {
  width: 72px; height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.35);
  color: #34d399;
  animation: fadeUp var(--dur-slow) var(--ease-spring) both;
}
.booking-success__icon svg { width: 34px; height: 34px; }
.booking-success h2 { margin-top: 0.5rem; }
.booking-success p {
  max-width: 46ch;
  color: var(--text-secondary);
  line-height: 1.65;
}
.booking-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ==================== MOBILE ==================== */
@media (max-width: 520px) {
  .booking-progress__step { width: 28px; height: 28px; font-size: 0.75rem; }
  .booking-progress::before, .booking-progress__bar { top: 17px; left: 16px; right: 16px; }
  .booking-progress__bar { max-width: calc(100% - 32px); }
  .booking-nav { flex-direction: column-reverse; align-items: stretch; }
  .booking-nav__spacer { display: none; }
}