/* ============================================================
   ReInspirar — Agenda / Booking Wizard
   ============================================================ */

/* Wizard wrapper */
.wizard-page {
  min-height: 100vh;
  background: var(--surface-lowest);
  padding-top: 80px;
}

.wizard-container {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
}

/* Progress steps */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--sp-12);
  position: relative;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 1;
}

.wizard-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: rgba(174, 220, 228, 0.4);
  transition: background var(--transition-base);
  z-index: 0;
}

.wizard-step:last-child::after { display: none; }

.wizard-step--completed::after { background: var(--menta); }

.wizard-step__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(174, 220, 228, 0.5);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: var(--font-bold);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.wizard-step--active .wizard-step__circle {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(1, 92, 103, 0.35);
}

.wizard-step--completed .wizard-step__circle {
  background: var(--menta);
  border-color: transparent;
  color: white;
}

.wizard-step__label {
  font-size: 12px;
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-align: center;
}

.wizard-step--active .wizard-step__label { color: var(--azul-petroleo); }
.wizard-step--completed .wizard-step__label { color: var(--menta); }

/* Wizard panel */
.wizard-panel {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.wizard-panel__header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid rgba(174, 220, 228, 0.2);
}

.wizard-panel__step-label {
  font-size: 12px;
  font-weight: var(--font-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--menta);
  margin-bottom: 6px;
}

.wizard-panel__title {
  font-size: 26px;
  font-weight: var(--font-extrabold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.wizard-panel__body { padding: 32px 40px; }

.wizard-panel__footer {
  padding: 20px 40px;
  border-top: 1px solid rgba(174, 220, 228, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Service selector */
.service-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-option {
  border: 2px solid rgba(174, 220, 228, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.service-option:hover {
  border-color: var(--menta);
  background: rgba(0, 157, 162, 0.03);
}

.service-option.selected {
  border-color: var(--azul-petroleo);
  background: rgba(1, 92, 103, 0.04);
}

.service-option__check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(174, 220, 228, 0.4);
  background: white;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-option.selected .service-option__check {
  background: var(--azul-petroleo);
  border-color: var(--azul-petroleo);
}

.service-option.selected .service-option__check::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-2px);
}

.service-option__icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 157, 162, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-option__icon svg, .service-option__icon img { width: 26px; height: 26px; }

.service-option__name { font-size: 17px; font-weight: var(--font-bold); margin-bottom: 6px; }
.service-option__desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.service-option__price { font-size: 20px; font-weight: var(--font-extrabold); color: var(--azul-petroleo); }
.service-option__duration { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Professional selector */
.professional-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.professional-option {
  border: 2px solid rgba(174, 220, 228, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 14px;
}

.professional-option:hover { border-color: var(--menta); }
.professional-option.selected { border-color: var(--azul-petroleo); background: rgba(1, 92, 103, 0.04); }

.professional-option__photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: var(--font-bold);
  color: white;
  flex-shrink: 0;
}

.professional-option__name  { font-size: 16px; font-weight: var(--font-semibold); }
.professional-option__spec  { font-size: 12px; color: var(--menta); font-weight: var(--font-semibold); letter-spacing: 0.04em; }
.professional-option__avail { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Calendar slot picker */
.slot-calendar { }

.slot-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.slot-calendar__title { font-size: 18px; font-weight: var(--font-bold); }

.slot-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}

.slot-calendar__day-header {
  text-align: center;
  font-size: 11px;
  font-weight: var(--font-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 0;
}

.slot-calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.slot-calendar__day:hover:not(.disabled):not(.empty) {
  background: rgba(0, 157, 162, 0.1);
  color: var(--azul-petroleo);
}

.slot-calendar__day.has-slots { color: var(--text-primary); font-weight: var(--font-semibold); }
.slot-calendar__day.selected { background: var(--azul-petroleo); color: white; }
.slot-calendar__day.today:not(.selected) { border: 2px solid var(--menta); }
.slot-calendar__day.disabled { color: rgba(174, 220, 228, 0.5); cursor: default; }
.slot-calendar__day.empty { cursor: default; }

/* Time slots */
.time-slots { }
.time-slots__title { font-size: 15px; font-weight: var(--font-semibold); margin-bottom: 12px; }

.time-slots__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot {
  padding: 8px 16px;
  border: 1.5px solid rgba(174, 220, 228, 0.5);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: var(--font-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: white;
}

.time-slot:hover:not(.unavailable) { border-color: var(--menta); color: var(--menta); background: rgba(0,157,162,0.04); }
.time-slot.selected { background: var(--azul-petroleo); border-color: var(--azul-petroleo); color: white; }
.time-slot.unavailable { opacity: 0.35; cursor: default; text-decoration: line-through; }

/* Summary */
.booking-summary {
  background: var(--surface-lowest);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}

.booking-summary__title {
  font-size: 14px;
  font-weight: var(--font-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.booking-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(174, 220, 228, 0.2);
  font-size: 14px;
}

.booking-summary__row:last-child { border-bottom: none; }
.booking-summary__row-label { color: var(--text-muted); }
.booking-summary__row-value { font-weight: var(--font-semibold); text-align: right; }

.booking-summary__total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 20px;
  font-weight: var(--font-extrabold);
}

.booking-summary__total-label { color: var(--text-secondary); }
.booking-summary__total-value { color: var(--azul-petroleo); }

/* Responsive */
@media (max-width: 640px) {
  .wizard-container { padding: var(--sp-6) var(--sp-4); }
  .wizard-panel__body, .wizard-panel__header, .wizard-panel__footer { padding-left: 20px; padding-right: 20px; }
  .service-selector { grid-template-columns: 1fr; }
  .professional-selector { grid-template-columns: 1fr; }
  .wizard-step__label { display: none; }
  .wizard-panel__title { font-size: 20px; }
}
