/* Booking wizard — extends style.css */

.booking-body { background: var(--washi); }

.booking-wrap {
  max-width: 560px;
  margin-inline: auto;
  padding: 2.5rem 1.25rem 5rem;
}

.booking-brand {
  justify-content: center;
  margin-bottom: 2.25rem;
  font-size: 1.35rem;
}

/* Progress dots */
.steps { text-align: center; margin-bottom: 2.5rem; }

.step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.step-dots li {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
  position: relative;
}

.step-dots li + li { margin-left: 44px; }

.step-dots li + li::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 2px;
  background: var(--border);
}

.step-dots li.is-current,
.step-dots li.is-done { background: var(--sakura); }
.step-dots li.is-done::before,
.step-dots li.is-current::before { background: var(--sakura); }

.step-count { color: var(--ink-soft); font-size: 0.875rem; }

/* Panels */
.step-panel h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Service cards */
.service-list { display: grid; gap: 0.875rem; }

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem 1.375rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover { border-color: #DFA3BA; }

.service-card.is-selected {
  border-color: var(--sakura);
  box-shadow: 0 0 0 3px rgba(176, 68, 107, 0.12);
}

.service-card .service-name {
  font-family: var(--font-head);
  font-weight: 700;
  display: block;
}

.service-card .service-duration {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.service-card .service-price {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--sakura);
  white-space: nowrap;
}

/* Step subtitle */
.step-sub {
  text-align: center;
  color: var(--ink-soft);
  margin: -1.25rem auto 1.75rem;
}

/* Calendar */
.calendar { margin-bottom: 0.5rem; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-month {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
}

.cal-nav {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.cal-nav:hover:not(:disabled) { background: var(--washi-deep); color: var(--ink); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  justify-items: center;
}

.cal-weekdays {
  margin-bottom: 0.375rem;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.8125rem;
}

.cal-day {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.cal-day:hover:not(:disabled) { background: var(--washi-deep); }

.cal-day:disabled {
  color: #CBB4BE;
  font-weight: 400;
  cursor: default;
}

.cal-day.is-loading { animation: cal-pulse 1.2s ease-in-out infinite; }

@keyframes cal-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .cal-day.is-loading { animation: none; opacity: 0.4; }
}

.cal-day.is-selected {
  background: var(--sakura);
  color: #fff;
}

/* Footer mini-summary between Back and Continue */
.footer-summary {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  white-space: nowrap;
}

/* Date + slots */
.booking-wrap .form-row input,
.booking-wrap .form-row textarea {
  background: var(--card);
}

.tz-note { color: var(--ink-soft); font-size: 0.875rem; margin: -0.5rem 0 1rem; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.slot-btn {
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.25rem;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.slot-btn:hover { border-color: #DFA3BA; }

.slot-btn.is-selected {
  background: var(--sakura);
  border-color: var(--sakura);
  color: #fff;
}

.slot-empty, .slot-loading {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  text-align: center;
  padding: 1.25rem 0;
}

/* Summary, actions, feedback */
.booking-summary {
  text-align: center;
  background: var(--washi-deep);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  margin: 0 auto 1.5rem;
  font-weight: 600;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  gap: 1rem;
}

.step-actions-center { justify-content: center; }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-error {
  color: var(--sakura);
  font-weight: 700;
  min-height: 1.4em;
  margin-top: 0.75rem;
}

.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(176, 68, 107, 0.12);
  color: var(--sakura);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-panel[data-step="done"] { text-align: center; }
.step-panel[data-step="done"] p { margin-inline: auto; margin-bottom: 1rem; }
