/* BOOK NOW PAGE */

.book-hero {
  background: var(--ivory-warm);
  padding: 56px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--plum-mist);
}
@media (min-width: 768px) { .book-hero { padding: 80px 0 56px; } }
.book-hero .eyebrow { display: block; margin-bottom: 12px; }
.book-hero-title {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--plum-deepest);
  margin-bottom: 16px;
}
.book-hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.book-form { padding: 56px 0 80px; }
.book-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .book-form-grid { grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
}

.book-form-main { display: flex; flex-direction: column; gap: 32px; }

/* DISCOUNT BANNER */
.book-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--plum-deepest);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) {
  .book-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .book-banner-cta { width: 100%; text-align: center; }
}
.book-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, oklch(0.78 0.13 85 / 0.12), transparent);
}
.book-banner.active {
  background: linear-gradient(135deg, oklch(0.66 0.13 70) 0%, oklch(0.78 0.13 85) 100%);
  color: var(--plum-deepest);
}
.book-banner-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.book-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  position: relative;
}
.book-banner-text strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.book-banner-text span {
  font-size: 12px;
  opacity: 0.85;
}
.book-banner-cta {
  background: var(--gold);
  color: var(--plum-deepest);
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
}
.book-banner-cta:hover { background: var(--ivory); }

/* PERSON CARD */
.book-person {
  border: 1px solid var(--plum-mist);
  padding: 28px 24px;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) { .book-person { padding: 32px; } }
.book-person-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--plum-mist);
}
.book-person-num { display: flex; align-items: baseline; gap: 14px; }
.book-person-num span:first-child {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-deep);
}
.book-person-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum-deepest);
}
.book-person-remove {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
}
.book-person-remove:hover { color: oklch(0.5 0.18 25); }

/* FIELDS */
.book-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .book-fields { grid-template-columns: 1fr 1fr; } }
.book-field-wide { grid-column: 1 / -1; }
.book-field { display: flex; flex-direction: column; gap: 8px; }
.book-field label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum-deepest);
  font-weight: 500;
}
.book-optional {
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}
.book-field input {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--plum-mist);
  background: var(--ivory);
  color: var(--ink);
  border-radius: 2px;
  width: 100%;
  transition: border-color 0.2s;
}
.book-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px oklch(0.78 0.13 85 / 0.15);
}
.book-field input.invalid { border-color: oklch(0.55 0.20 25); }
.book-input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--plum-mist);
}
.book-input-prefix:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px oklch(0.78 0.13 85 / 0.15);
}
.book-input-prefix span {
  padding: 0 12px 0 16px;
  font-size: 15px;
  color: var(--muted);
  border-right: 1px solid var(--plum-mist);
}
.book-input-prefix input {
  border: none !important;
  flex: 1;
}
.book-input-prefix input:focus { box-shadow: none; }

/* SERVICES */
.book-services { display: flex; flex-direction: column; gap: 14px; }
.book-section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum-deepest);
  font-weight: 500;
}
.book-section-label span {
  color: var(--muted);
  letter-spacing: 0.1em;
  font-weight: 400;
  margin-left: 4px;
}
.book-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.book-service {
  position: relative;
  padding: 14px 14px;
  border: 1px solid var(--plum-mist);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s;
}
.book-service input { position: absolute; opacity: 0; pointer-events: none; }
.book-service:hover { border-color: var(--plum-soft); }
.book-service.active {
  border-color: var(--plum-deepest);
  background: oklch(0.92 0.02 320 / 0.4);
}
.book-service-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--plum-deepest);
}
.book-service-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.book-service-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 18px; height: 18px;
  border: 1px solid var(--plum-mist);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  color: var(--ivory);
}
.book-service.active .book-service-check {
  background: var(--plum-deepest);
  border-color: var(--plum-deepest);
}

.book-error {
  font-size: 12px;
  color: oklch(0.55 0.20 25);
  letter-spacing: 0.05em;
}

/* ADD PERSON */
.book-add-person {
  padding: 18px 20px;
  border: 1px dashed var(--plum-soft);
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum-deepest);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}
.book-add-person:hover {
  border-color: var(--gold);
  background: oklch(0.78 0.13 85 / 0.06);
}
.book-add-person span {
  font-size: 18px;
  color: var(--gold-deep);
}
.book-add-person em {
  font-style: normal;
  color: var(--gold-deep);
  letter-spacing: 0.16em;
}

/* SECTION (date/time) */
.book-section {
  background: var(--ivory);
  border: 1px solid var(--plum-mist);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) { .book-section { padding: 32px; } }

/* CALENDAR */
.book-cal { display: flex; flex-direction: column; gap: 16px; }
.book-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.book-cal-month {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--plum-deepest);
}
.book-cal-nav {
  width: 32px; height: 32px;
  border: 1px solid var(--plum-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum-deepest);
}
.book-cal-nav:hover:not(:disabled) { background: var(--plum-deepest); color: var(--ivory); }
.book-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.book-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.book-cal-dow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
  font-weight: 500;
}
.book-cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  border-radius: 2px;
  transition: all 0.15s;
}
.book-cal-day:not(:disabled):hover {
  border-color: var(--plum-soft);
  color: var(--plum-deepest);
}
.book-cal-day.today {
  color: var(--gold-deep);
  font-weight: 600;
}
.book-cal-day.selected {
  background: var(--plum-deepest);
  color: var(--gold);
  border-color: var(--plum-deepest);
}
.book-cal-day.past, .book-cal-day:disabled { color: var(--plum-mist); cursor: not-allowed; }
.book-cal-day.empty { pointer-events: none; }

/* TIME */
.book-time-groups { display: flex; flex-direction: column; gap: 20px; }
.book-time-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.book-time-grp-name {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}
.book-time-grp-line {
  flex: 1;
  height: 1px;
  background: var(--plum-mist);
}
.book-time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.book-time-slot {
  padding: 12px 0;
  border: 1px solid var(--plum-mist);
  background: var(--ivory);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: all 0.15s;
}
.book-time-slot:not(:disabled):hover {
  border-color: var(--plum-deepest);
  color: var(--plum-deepest);
}
.book-time-slot.selected {
  background: var(--plum-deepest);
  color: var(--gold);
  border-color: var(--plum-deepest);
}
.book-time-slot.unavail {
  color: var(--plum-mist);
  text-decoration: line-through;
  cursor: not-allowed;
  background: oklch(0.96 0.005 90);
}
.book-time-slot:disabled:not(.unavail):not(.selected) {
  opacity: 0.5;
  cursor: not-allowed;
}

/* SUMMARY */
.book-summary {
  position: sticky;
  top: 88px;
}
.book-summary-inner {
  background: var(--ivory);
  border: 1px solid var(--plum-mist);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.book-summary-head { display: flex; flex-direction: column; gap: 4px; }
.book-summary-head h3 {
  font-size: 32px;
  color: var(--plum-deepest);
}
.book-summary-when {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--plum-mist);
  border-bottom: 1px solid var(--plum-mist);
}
.book-summary-when > div { display: flex; flex-direction: column; gap: 4px; }
.book-summary-lbl {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-summary-when strong {
  font-size: 14px;
  color: var(--plum-deepest);
  font-weight: 500;
}
.book-summary-line { display: flex; flex-direction: column; gap: 16px; }
.book-summary-person { display: flex; flex-direction: column; gap: 6px; }
.book-summary-person-name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--plum-deepest);
}
.book-summary-svc {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.book-summary-empty {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.book-summary-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--plum-mist);
}
.book-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.book-summary-row.discount { color: var(--gold-deep); font-weight: 500; }
.book-summary-row.total {
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--plum-mist);
  font-size: 18px;
  color: var(--plum-deepest);
  font-weight: 600;
}
.book-submit {
  margin-top: 8px;
  padding: 18px;
  font-size: 13px;
}
.book-summary-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.05em;
}

/* CONFIRMATION */
.book-confirm { padding: 80px 0; }
.book-confirm-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--ivory);
}
.book-confirm-inner {
  padding: 56px 32px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
@media (min-width: 768px) { .book-confirm-inner { padding: 72px 56px 60px; } }
.book-confirm-icon { color: var(--gold-deep); }
.book-confirm-title {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--plum-deepest);
}
.book-confirm-card p {
  color: var(--muted);
  max-width: 480px;
  font-size: 15px;
  line-height: 1.65;
}
.book-confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  margin: 8px 0;
  border-top: 1px solid var(--plum-mist);
  border-bottom: 1px solid var(--plum-mist);
  text-align: left;
}
.book-confirm-grid > div { display: flex; flex-direction: column; gap: 4px; }
.book-confirm-grid span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-confirm-grid strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--plum-deepest);
  font-weight: 500;
}
.book-confirm-grid em {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.book-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.book-confirm-foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--plum-mist);
  text-align: left;
}
@media (min-width: 600px) { .book-confirm-foot { grid-template-columns: 1fr 1fr; } }
.book-confirm-foot > div { display: flex; flex-direction: column; gap: 4px; }
.book-confirm-foot strong {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum-deepest);
}
.book-confirm-foot span { font-size: 13px; color: var(--muted); }

/* =============================================================================
   COMPACT DATE PICKER (replaces giant calendar)
   ============================================================================= */
.book-date-quick {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .book-date-quick {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 64px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .book-date-quick::-webkit-scrollbar { display: none; }
  .book-date-chip { scroll-snap-align: start; }
}
.book-date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  background: var(--ivory);
  border: 1px solid var(--plum-mist);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  font-family: var(--font-sans);
}
.book-date-chip:hover { border-color: var(--gold-deep); transform: translateY(-1px); }
.book-date-chip.selected {
  background: var(--plum-deepest);
  color: var(--ivory);
  border-color: var(--plum-deepest);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2,0,73,0.18);
}
.book-date-chip-dow {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.book-date-chip.selected .book-date-chip-dow { color: rgba(255,255,255,0.65); }
.book-date-chip-day {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  margin: 2px 0;
}
.book-date-chip-mon {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-date-chip.selected .book-date-chip-mon { color: rgba(255,255,255,0.55); }

.book-date-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(2,0,73,0.025);
  border-radius: 4px;
  border: 1px dashed rgba(2,0,73,0.12);
}
.book-date-picker-lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-date-input {
  border: 1px solid var(--plum-mist);
  background: #fff;
  border-radius: 2px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--plum-deepest);
  flex: 1;
  min-width: 140px;
}
.book-date-input:focus {
  outline: 0;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201,164,94,0.15);
}

.book-time-syncing {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

.book-summary-quote {
  margin-top: 18px;
  padding: 16px;
  background: rgba(2,0,73,0.03);
  border-left: 2px solid var(--gold-deep);
  border-radius: 0 4px 4px 0;
}
.book-summary-quote span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--plum-deepest);
}
.book-summary-quote p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.book-summary-svc-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =============================================================================
   MOBILE OVERFLOW FIX — force flex/grid children to shrink below content size
   ============================================================================= */
.book-form-grid,
.book-form-main,
.book-form-main > *,
.book-person,
.book-section,
.book-fields,
.book-fields > *,
.book-services-grid,
.book-services-grid > *,
.book-time-slots,
.book-time-slots > *,
.book-date-quick,
.book-cal,
.book-banner,
.book-summary,
.book-summary-inner {
  min-width: 0;
}

.book-form-main input,
.book-form-main select,
.book-form-main textarea,
.book-summary input,
.book-summary select {
  max-width: 100%;
  box-sizing: border-box;
}

.book-input-prefix {
  display: flex;
  width: 100%;
  min-width: 0;
}
.book-input-prefix input {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 600px) {
  .book-form { padding: 32px 0 56px; }
  .book-form-grid { gap: 24px; }
  .book-form-main { gap: 20px; }
  .book-person { padding: 18px 16px; }
  .book-section { padding: 18px 16px; }
  .book-banner { padding: 14px 16px; }
  .book-banner-cta { padding: 10px 14px; font-size: 11px; }

  /* Tighter service cards on mobile */
  .book-services-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .book-service { padding: 12px 12px 12px 14px; }
  .book-service-name { font-size: 15px; }
  .book-service-meta { font-size: 11px; }

  /* Time slots — 4 across at narrow widths */
  .book-time-slots { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .book-time-slot { padding: 8px 4px; font-size: 12px; }

  /* Fields stack on mobile (already 1fr by default but enforce) */
  .book-fields { grid-template-columns: 1fr; gap: 14px; }

  /* Hero copy a bit tighter */
  .book-hero { padding: 32px 0 28px; }
  .book-hero-title { font-size: 36px; line-height: 1.05; }
  .book-hero-sub { font-size: 14px; }

  /* Summary aside */
  .book-summary { margin-top: 8px; }
  .book-summary-inner { padding: 18px 16px; }

  /* Add-person dotted divider button */
  .book-add-person { padding: 14px; font-size: 11px; flex-wrap: wrap; }

  /* Date chip column scroll smoother */
  .book-date-quick { gap: 6px; padding-bottom: 6px; }
}

/* TIME DROPDOWN — replaces chip grid */
.book-time-select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--plum-mist);
  background: var(--ivory);
  color: var(--plum-deepest);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath d='M1 1l5 5 5-5' stroke='%23020049' stroke-width='1.6' fill='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.book-time-select:focus {
  outline: 0;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201,164,94,0.15);
}
.book-time-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(2,0,73,0.025);
}
.book-time-note {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
@media (max-width: 600px) {
  .book-time-select { padding: 12px 16px; padding-right: 40px; font-size: 14px; }
}
