/* ============================================
   DAR ZAFRAN — RESERVATION WIZARD
   5-step booking flow
   Progress · Panels · Time slots · Guest btns · Review
   ============================================ */


/* ============================================
   WRAPPER
   ============================================ */

.reservation-wizard {
  /* inherits from .reservation-form-col */
}


/* ============================================
   PROGRESS INDICATOR
   ============================================ */

.wizard-progress {
  margin-bottom: var(--space-10);
}

.wizard-progress__list {
  display: flex;
  align-items: flex-start;
  padding: 0;
}

.wizard-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  position: relative;
}

/* Connecting line between steps */
.wizard-progress__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.25rem;                       /* half of num height (2.5rem) */
  left: calc(50% + 1.35rem);
  right: calc(-50% + 1.35rem);
  height: 1px;
  background-color: var(--color-border-cream);
  transition: background-color var(--duration-slow) var(--ease-luxury);
  z-index: 0;
}

.wizard-progress__step.is-done:not(:last-child)::after {
  background-color: var(--color-terracotta);
}


/* Step circle */
.wizard-progress__num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border-cream);
  background: var(--color-bg-cream);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-muted-cream);
  transition: border-color var(--duration-normal) var(--ease-luxury),
              background-color var(--duration-normal) var(--ease-luxury),
              color var(--duration-normal) var(--ease-luxury);
}

.wizard-progress__step.is-active .wizard-progress__num {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta);
  color: #fff;
}

.wizard-progress__step.is-done .wizard-progress__num {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta);
  color: transparent;             /* hide number text */
  font-size: 0;
}

/* Checkmark for completed steps */
.wizard-progress__step.is-done .wizard-progress__num::before {
  content: '';
  display: block;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}


/* Step label */
.wizard-progress__label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted-cream);
  text-align: center;
  transition: color var(--duration-fast) var(--ease-luxury);
  white-space: nowrap;
}

.wizard-progress__step.is-active .wizard-progress__label {
  color: var(--color-text-accent);
}

.wizard-progress__step.is-done .wizard-progress__label {
  color: var(--color-text-on-cream);
}

/* On small mobile, hide labels */
@media (max-width: 420px) {
  .wizard-progress__label {
    display: none;
  }
  .wizard-progress__step:not(:last-child)::after {
    top: 1.25rem;
    left: calc(50% + 1.25rem);
    right: calc(-50% + 1.25rem);
  }
}


/* ============================================
   WIZARD PANELS
   ============================================ */

.wizard-panel {
  animation: wizardPanelIn var(--duration-normal) var(--ease-out-quart) both;
}

@keyframes wizardPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Panel heading */
.wizard-panel__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-on-cream);
  margin-bottom: var(--space-8);
  line-height: var(--leading-snug);
}


/* ============================================
   STEP 1 — DATE
   ============================================ */

.wizard-date-field {
  max-width: 340px;
}

.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted-cream);
  margin-top: var(--space-2);
}

.form-optional {
  font-weight: 300;
  letter-spacing: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted-cream);
  margin-left: var(--space-2);
}


/* ============================================
   STEP 2 — TIME SLOTS
   ============================================ */

.wizard-time-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-4);
}

@media (max-width: 560px) {
  .wizard-time-groups {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.wizard-time-group__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-accent);
  margin-bottom: var(--space-1);
}

.wizard-time-group__hours {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted-cream);
  margin-bottom: var(--space-4);
}

.wizard-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.wizard-time-slot {
  min-width: 70px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-cream);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-on-cream);
  background: var(--color-bg-cream);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-luxury),
              background-color var(--duration-fast) var(--ease-luxury),
              color var(--duration-fast) var(--ease-luxury);
  text-align: center;
}

.wizard-time-slot:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.wizard-time-slot.is-selected,
.wizard-time-slot[aria-pressed="true"] {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta);
  color: #fff;
}

.wizard-time-slot:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}


/* ============================================
   STEP 3 — GUEST COUNT
   ============================================ */

.wizard-guest-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.wizard-guest-btn {
  width: 3.75rem;
  height: 3.75rem;
  border: 1px solid var(--color-border-cream);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-text-on-cream);
  background: var(--color-bg-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast) var(--ease-luxury),
              background-color var(--duration-fast) var(--ease-luxury),
              color var(--duration-fast) var(--ease-luxury);
}

/* "8+" wide pill */
.wizard-guest-btn--large {
  width: auto;
  min-width: 3.75rem;
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.wizard-guest-btn:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.wizard-guest-btn.is-selected,
.wizard-guest-btn[aria-pressed="true"] {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta);
  color: #fff;
}

.wizard-guest-btn:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

/* Mobile: slightly smaller */
@media (max-width: 480px) {
  .wizard-guest-btn {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.2rem;
  }
}


/* ============================================
   STEP 5 — REVIEW SUMMARY
   ============================================ */

.wizard-review {
  background: var(--color-bg-cream-deep);
  border: 1px solid var(--color-border-cream);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
}

.wizard-review__row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-cream);
  align-items: baseline;
}

.wizard-review__row:last-child {
  border-bottom: none;
  padding-bottom: var(--space-1);
}

.wizard-review__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted-cream);
  padding-top: 1px;
}

.wizard-review__value {
  font-size: var(--text-base);
  color: var(--color-text-on-cream);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  min-width: 0;
  word-break: break-word;
}

.wizard-review__edit {
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-luxury);
}

.wizard-review__edit:hover {
  color: var(--color-text-on-cream);
}

.wizard-review-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted-cream);
  margin-bottom: var(--space-8);
  line-height: var(--leading-normal);
}

/* Mobile: stack label above value */
@media (max-width: 480px) {
  .wizard-review__row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
  .wizard-review__value {
    flex-wrap: wrap;
  }
  .wizard-review__edit {
    margin-left: 0;
  }
}


/* ============================================
   NAVIGATION ROW (next/back buttons)
   ============================================ */

.wizard-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.wizard-nav .btn--outline {
  /* Ghost/outline variant on cream bg */
  border: 1px solid var(--color-border-cream);
  color: var(--color-text-on-cream);
  background: transparent;
  padding: 0.75rem var(--space-6);
  transition: border-color var(--duration-fast) var(--ease-luxury),
              color var(--duration-fast) var(--ease-luxury);
}

.wizard-nav .btn--outline:hover {
  border-color: var(--color-text-on-cream);
}

@media (max-width: 420px) {
  .wizard-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .wizard-nav .btn {
    text-align: center;
    justify-content: center;
  }
}
