/* Replit-inspired booking wizard — uses luxury CSS variables inside .lux-scope */

.booking-wizard {
  background: var(--lux-bg-tint);
  min-height: 100vh;
  padding-bottom: 6rem;
}

.booking-wizard__hero {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  background: color-mix(in srgb, var(--lux-secondary) 35%, white);
  border-bottom: 1px solid var(--lux-border);
}

@media (min-width: 768px) {
  .booking-wizard__hero {
    padding: 2.25rem 1.5rem 2.5rem;
  }
}

.booking-wizard__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--lux-primary-hex);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.booking-wizard__title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-foreground);
  margin: 0;
}

.booking-wizard__lead {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 0.95rem;
  color: var(--lux-muted-foreground);
  font-weight: 300;
  line-height: 1.65;
}

.booking-wizard__progress {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--lux-border);
  box-shadow: 0 2px 12px rgba(44, 35, 25, 0.06);
}

.booking-wizard__progress-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.booking-wizard__steps-row {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}

.booking-wizard__step-dot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.booking-wizard__step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--lux-secondary);
  color: var(--lux-muted-foreground);
}

.booking-wizard__step-num.is-active {
  background: var(--lux-primary-hex);
  color: #fff;
  box-shadow: 0 0 0 4px var(--lux-primary-soft);
}

.booking-wizard__step-num.is-done {
  background: var(--lux-primary-hex);
  color: #fff;
}

.booking-wizard__step-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lux-muted-foreground);
  text-align: center;
  display: none;
}

@media (min-width: 640px) {
  .booking-wizard__step-label {
    display: block;
  }
}

.booking-wizard__step-label.is-active {
  color: var(--lux-primary-hex);
  font-weight: 600;
}

.booking-wizard__progress-bar {
  margin-top: 0.75rem;
  height: 3px;
  background: var(--lux-secondary);
  border-radius: 999px;
  overflow: hidden;
}

.booking-wizard__progress-fill {
  height: 100%;
  background: var(--lux-primary-hex);
  transition: width 0.45s ease;
}

.booking-wizard__panel-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.booking-wizard__panel {
  background: #fff;
  border: 1px solid var(--lux-border);
  border-radius: 2px;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 40px rgba(44, 35, 25, 0.06);
}

.booking-wizard__section-title {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lux-primary-hex);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.booking-wizard__grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .booking-wizard__grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.booking-wizard__choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--lux-border);
  border-radius: 2px;
  background: color-mix(in srgb, var(--lux-secondary) 22%, white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font: inherit;
}

.booking-wizard__choice:hover {
  border-color: color-mix(in srgb, var(--lux-primary-hex) 45%, var(--lux-border));
}

.booking-wizard__choice.is-selected {
  border-color: var(--lux-primary-hex);
  background: var(--lux-primary-soft);
  box-shadow: 0 0 0 1px var(--lux-primary-hex);
}

.booking-wizard__choice-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-foreground);
  margin: 0 0 0.35rem;
}

.booking-wizard__choice.is-selected .booking-wizard__choice-title {
  color: var(--lux-primary-hex);
}

.booking-wizard__service-row--disabled {
  opacity: 0.55;
}

.booking-wizard__choice-desc {
  font-size: 0.78rem;
  color: var(--lux-muted-foreground);
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
}

.booking-wizard__service-row {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  border: 1px solid var(--lux-border);
  border-radius: 2px;
  background: color-mix(in srgb, var(--lux-secondary) 18%, white);
  cursor: pointer;
  margin-bottom: 0.65rem;
  transition: border-color 0.2s;
  font: inherit;
}

.booking-wizard__service-row:hover {
  border-color: color-mix(in srgb, var(--lux-primary-hex) 45%, var(--lux-border));
}

.booking-wizard__service-row.is-selected {
  border-color: var(--lux-primary-hex);
  background: var(--lux-primary-soft);
}

.booking-wizard__service-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.booking-wizard__service-name {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.booking-wizard__service-row.is-selected .booking-wizard__service-name {
  color: var(--lux-primary-hex);
}

.booking-wizard__service-meta {
  font-size: 0.72rem;
  color: var(--lux-muted-foreground);
  margin: 0.2rem 0 0;
}

.booking-wizard__service-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lux-primary-hex);
  flex-shrink: 0;
}

.booking-wizard__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lux-border);
  gap: 1rem;
}

.booking-wizard__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  font-family: "Montserrat", system-ui, sans-serif;
  transition: opacity 0.2s, background 0.2s;
}

.booking-wizard__btn--ghost {
  background: transparent;
  color: var(--lux-muted-foreground);
}

.booking-wizard__btn--ghost:hover {
  color: var(--lux-foreground);
}

.booking-wizard__btn--primary {
  background: var(--lux-primary-hex);
  color: #fff;
}

.booking-wizard__btn--primary:hover {
  opacity: 0.92;
}

.booking-wizard__btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-wizard__error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.booking-wizard__hint {
  font-size: 0.78rem;
  color: var(--lux-muted-foreground);
  font-weight: 300;
  line-height: 1.55;
  margin-top: 0.75rem;
}

.booking-wizard__note-box {
  margin-top: 1.25rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--lux-secondary) 45%, white);
  border: 1px solid var(--lux-border);
  border-radius: 2px;
  font-size: 0.78rem;
  color: var(--lux-muted-foreground);
  line-height: 1.55;
}

.booking-wizard__breakdown {
  border: 1px solid var(--lux-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.booking-wizard__breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--lux-border);
  font-size: 0.84rem;
}

.booking-wizard__breakdown-row:last-child {
  border-bottom: none;
}

.booking-wizard__breakdown-muted {
  color: var(--lux-muted-foreground);
  font-weight: 300;
}

.booking-wizard__breakdown-strong {
  font-weight: 600;
  color: var(--lux-primary-hex);
}

.booking-wizard__counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--lux-border);
}

.booking-wizard__counter-row:last-child {
  border-bottom: none;
}

.booking-wizard__counter-btns {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.booking-wizard__counter-btns button {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--lux-border);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.booking-wizard__counter-btns button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-wizard--hidden {
  display: none !important;
}

.booking-wizard__field {
  margin-bottom: 1rem;
}

.booking-wizard__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lux-muted-foreground);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.booking-wizard__input,
.booking-wizard__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--lux-border);
  border-radius: 2px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  background: #fff;
  color: var(--lux-foreground);
}

.booking-wizard__input:focus,
.booking-wizard__textarea:focus {
  outline: 2px solid var(--lux-primary-soft);
  outline-offset: 1px;
}

.booking-wizard__textarea {
  min-height: 5rem;
  resize: vertical;
}

.booking-wizard__radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.booking-wizard__radio {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.booking-wizard__spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: booking-wizard-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.35rem;
}

@keyframes booking-wizard-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Month calendar (live availability) */
.booking-wizard__calendar {
  margin-top: 0.75rem;
  border: 1px solid var(--lux-border);
  border-radius: 2px;
  background: #fff;
  padding: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.booking-wizard__cal-month {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-foreground);
}

.booking-wizard__cal-nav-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--lux-border);
  background: color-mix(in srgb, var(--lux-secondary) 25%, white);
  border-radius: 2px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--lux-foreground);
}

.booking-wizard__cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-wizard__cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  width: 100%;
}

.booking-wizard__cal-weekday {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--lux-muted-foreground);
}

.booking-wizard__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
}

.booking-wizard__cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid var(--lux-border);
  background: color-mix(in srgb, var(--lux-secondary) 15%, white);
  font-size: clamp(0.68rem, 2.5vw, 0.78rem);
  cursor: pointer;
  border-radius: 2px;
  color: var(--lux-foreground);
  font-family: inherit;
}

.booking-wizard__cal-day--muted {
  opacity: 0.35;
  cursor: default;
  background: #fafafa;
}

.booking-wizard__cal-day--blocked {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f5f5f5;
}

.booking-wizard__cal-day--selected {
  border-color: var(--lux-primary-hex);
  background: var(--lux-primary-soft);
  color: var(--lux-primary-hex);
  font-weight: 700;
}

.booking-wizard__cal-day:focus-visible {
  outline: 2px solid var(--lux-primary-hex);
  outline-offset: 2px;
}

.booking-wizard__card-wa {
  margin: 0.75rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--lux-border);
  background: color-mix(in srgb, var(--lux-secondary) 25%, white);
  border-radius: 2px;
}

.booking-wizard__card-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", system-ui, sans-serif;
  transition: opacity 0.2s;
}

.booking-wizard__card-wa-btn:hover {
  opacity: 0.92;
  color: #fff;
}
