/* ============================================================
   Booking Flow Styles
   ============================================================ */

.booking-page { min-height: 100vh; background: var(--bg); }

.booking-topbar {
  background: var(--card); border-bottom: 1px solid var(--border); padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; max-width: var(--container); margin: 0 auto;
}
.booking-topbar .logo { font-size: 1.1rem; }

.booking-container { max-width: 960px; margin: 40px auto; padding: 0 24px; }

/* Progress */
.booking-progress { margin-bottom: 32px; }
.progress-steps { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.progress-circle {
  width: 36px; height: 36px; border-radius: 50%; background: var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem; transition: all var(--transition);
}
.progress-step.active .progress-circle { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-light); }
.progress-step.done .progress-circle { background: var(--success); color: #fff; }
.progress-label { font-size: 0.75rem; color: var(--text-muted); text-align: center; font-weight: 500; }
.progress-step.active .progress-label { color: var(--primary); font-weight: 600; }
.progress-line { height: 2px; flex: 1; background: var(--border); margin: 0 -8px; align-self: flex-start; margin-top: 17px; }
.progress-line.done { background: var(--success); }

/* Step card */
.step-card { background: var(--card); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.step-title { margin-bottom: 6px; }
.step-subtitle { margin-bottom: 24px; }

.step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.step-actions.center { justify-content: center; }

/* Service grid */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  background: var(--bg-alt); border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; cursor: pointer; transition: all var(--transition); text-align: left;
}
.service-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card.selected { border-color: var(--primary); background: var(--primary-light); }
.service-card.disabled-card { opacity: 0.85; cursor: default; background: #fffbeb; border-color: var(--warning); }
.service-card.disabled-card:hover { transform: none; }
.service-icon { width: 40px; height: 40px; color: var(--primary); margin-bottom: 12px; }
.service-icon svg { width: 100%; height: 100%; }
.service-name { font-weight: 600; color: var(--secondary); margin-bottom: 4px; font-size: 0.95rem; }
.service-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

/* Calendar */
.datetime-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calendar-wrap { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border); }
.calendar { }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-size: 1.05rem; margin: 0; }
.cal-nav { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--text); }
.cal-nav:hover { background: var(--card); color: var(--primary); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-weekday { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); padding: 4px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1; border: none; background: var(--card); border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; color: var(--text); cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.cal-day:hover:not(.disabled):not(.empty) { background: var(--primary-light); color: var(--primary); }
.cal-day.today { border: 1px solid var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; }
.cal-day.disabled { color: var(--text-light); background: transparent; cursor: not-allowed; text-decoration: line-through; }
.cal-day.empty { background: transparent; cursor: default; }

/* Slots */
.slots-wrap { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border); }
.slots-title { font-size: 1rem; margin-bottom: 8px; }
.slots-info { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot-btn {
  padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  font-size: 0.9rem; font-weight: 500; color: var(--text); transition: all var(--transition);
}
.slot-btn:hover { border-color: var(--primary); color: var(--primary); }
.slot-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Summary */
.summary-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 8px 16px; border: 1px solid var(--border); }
.summary-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.summary-value { font-size: 0.95rem; color: var(--secondary); font-weight: 500; word-break: break-word; }
.summary-edit { font-size: 0.8rem; color: var(--primary); background: transparent; padding: 4px 8px; border-radius: var(--radius-sm); }
.summary-edit:hover { background: var(--primary-light); }

/* Confirmation */
.confirmation-card { text-align: center; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 16px; background: var(--success-light); color: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.success-icon svg { width: 36px; height: 36px; }
.ref-box { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 10px 20px; border-radius: var(--radius); font-size: 1rem; margin: 16px 0 24px; }

/* Print */
@media print {
  .site-header, .booking-topbar, .step-actions, .btn { display: none !important; }
  .step-card { box-shadow: none; border: none; }
}
