/* ============================================================
   MS STUDIO — BOOKING PAGE STYLES
   Wizard, Calendar, Form, Success Screen
   ============================================================ */

/* ── BOOKING HEADER ── */
.booking-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--accent-border);
  background: var(--bg-surface);
}

.booking-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--transition-base);
  margin-bottom: 8px;
}

.booking-back:hover {
  color: var(--accent);
}

.booking-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ── WIZARD STEPS BAR ── */
.booking-steps-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--accent-border);
  padding: 0;
  position: sticky;
  top: var(--navbar-height);
  z-index: 100;
}

.steps-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  opacity: 0.4;
  transition: opacity var(--transition-base);
}

.step-item.active {
  opacity: 1;
}

.step-item.done {
  opacity: 0.7;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-muted);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.step-item.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--glow-sm);
}

.step-item.done .step-num {
  background: rgba(84,195,234,0.15);
  border-color: var(--accent-border-2);
  color: var(--accent);
}

.step-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.step-item.active .step-label {
  color: var(--text-primary);
}

.step-connector {
  width: clamp(40px, 8vw, 80px);
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 12px;
  flex-shrink: 0;
  position: relative;
}

.step-connector.done::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  box-shadow: var(--glow-sm);
}

/* ── WIZARD CONTENT ── */
.booking-content {
  padding: 60px 0 80px;
  min-height: calc(100vh - var(--navbar-height) - 80px);
}

.wizard-step {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.wizard-step.active {
  display: block;
}

.step-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
}

/* ── STEP NAV BUTTONS ── */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── BOOKING SERVICE CARDS ── */
.booking-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

.booking-service-card {
  background: var(--bg-surface);
  border: 2px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
  cursor: pointer;
}

.booking-service-card:hover {
  border-color: var(--accent-border-2);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm), var(--shadow-card-hover);
}

.booking-service-card.selected {
  border-color: var(--accent);
  background: rgba(84,195,234,0.04);
  box-shadow: var(--glow-md);
}

.booking-service-both {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
}

.booking-service-both .bs-content {
  flex: 1;
}

.bs-icon {
  width: 60px;
  height: 60px;
  background: rgba(84,195,234,0.08);
  border: 1px solid var(--accent-border-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.bs-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.booking-service-card.selected .bs-icon {
  background: rgba(84,195,234,0.18);
  box-shadow: var(--glow-sm);
}

.bs-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.bs-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bs-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.bs-features li {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bs-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.7;
}

.bs-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--accent-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  background: transparent;
}

.bs-check svg {
  width: 12px;
  height: 12px;
  stroke: var(--bg-primary);
  fill: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.booking-service-card.selected .bs-check {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

.booking-service-card.selected .bs-check svg {
  opacity: 1;
}

.bs-badge {
  position: absolute;
  top: 16px;
  right: 52px;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(84,195,234,0.12);
  border: 1px solid var(--accent-border-2);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── BOOKING FORM ── */
.booking-form {
  max-width: 800px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.form-required {
  color: var(--accent);
  margin-left: 2px;
}

.form-input {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--accent-border-2);
  box-shadow: var(--glow-sm);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 12px rgba(255, 92, 92, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  min-height: 16px;
}

/* Radio cards */
.form-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-radio {
  cursor: pointer;
  display: block;
}

.form-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-radio-card {
  background: var(--bg-surface);
  border: 2px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition-base);
}

.form-radio-card strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.form-radio-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-radio input:checked + .form-radio-card {
  border-color: var(--accent);
  background: rgba(84,195,234,0.05);
  box-shadow: var(--glow-sm);
}

.form-radio-card:hover {
  border-color: var(--accent-border-2);
}

/* ── CALENDAR ── */
.calendar-booking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.calendar-panel {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.cal-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-muted);
}

.cal-nav-btn:hover {
  background: rgba(84,195,234,0.08);
  border-color: var(--accent-border-2);
  color: var(--accent);
}

.cal-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.cal-month-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.cal-weekdays span {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
  color: var(--text-muted);
}

.cal-day.empty {
  cursor: default;
}

.cal-day.past {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day.available:hover {
  background: rgba(84,195,234,0.12);
  border-color: var(--accent-border-2);
  color: var(--accent);
}

.cal-day.busy {
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  cursor: not-allowed;
  opacity: 0.45;
}

.cal-day.busy::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.cal-day.selected {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
  font-weight: 900;
}

.cal-day.today {
  border-color: rgba(84,195,234,0.3);
  color: var(--accent);
}

.cal-day.today.selected {
  color: var(--bg-primary);
}

.cal-legend {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  justify-content: center;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cal-dot.available { background: rgba(84,195,234,0.4); }
.cal-dot.busy      { background: rgba(255,255,255,0.15); }
.cal-dot.selected  { background: var(--accent); }

/* ── BOOKING SIDEBAR ── */
.booking-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Time slots */
.timeslots-panel {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.timeslots-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeslots-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.timeslots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.timeslot-btn {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.timeslot-btn:hover:not(:disabled) {
  border-color: var(--accent-border-2);
  color: var(--accent);
  background: rgba(84,195,234,0.06);
}

.timeslot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: var(--glow-sm);
}

.timeslot-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Booking Summary */
.booking-summary {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.summary-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent-border);
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-key {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  flex-shrink: 0;
}

.summary-val {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.summary-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  line-height: 1.5;
}

/* ── SUCCESS SCREEN ── */
.success-screen {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: scaleIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(84,195,234,0.1);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-md);
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.success-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 440px;
}

.success-detail {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  text-align: left;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .calendar-booking-layout {
    grid-template-columns: 1fr;
  }
  .booking-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .booking-services-grid {
    grid-template-columns: 1fr;
  }
  .booking-service-both {
    grid-column: auto;
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: 1;
  }
  .form-radio-group {
    grid-template-columns: 1fr;
  }
  .booking-sidebar {
    grid-template-columns: 1fr;
  }
  .steps-inner {
    gap: 0;
    justify-content: space-around;
  }
  .step-label {
    display: none;
  }
  .step-connector {
    width: 24px;
    margin: 0 4px;
  }
}

@media (max-width: 480px) {
  .booking-content {
    padding: 40px 0 60px;
  }
  .timeslots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
