/* =============================================
   BOOKING SYSTEM STYLES
   ============================================= */

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

/* Hero */
.booking-hero {
  padding-block: calc(var(--space-20) + 64px) var(--space-12);
  background: var(--color-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.booking-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-divider) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 30%, transparent 100%);
}

.booking-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.booking-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border: 1px solid color-mix(in oklab, var(--color-primary) 30%, transparent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.booking-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6b3cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.booking-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Booking Container */
.booking-section {
  padding-bottom: var(--space-16);
}

.booking-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

/* Progress Steps */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.booking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.4;
  transition: opacity var(--transition-interactive);
}

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

.booking-step.completed {
  opacity: 1;
}

.booking-step.completed .booking-step__number {
  background: var(--color-success);
  color: #fff;
}

.booking-step__number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-interactive);
}

.booking-step.active .booking-step__number {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in oklab, var(--color-primary) 40%, transparent);
}

.booking-step__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.booking-step.active .booking-step__label {
  color: var(--color-text);
}

.booking-step__line {
  width: 40px;
  height: 2px;
  background: var(--color-divider);
  margin: 0 var(--space-2);
  margin-bottom: var(--space-5);
}

@media (max-width: 600px) {
  .booking-steps {
    gap: var(--space-1);
  }
  .booking-step__line {
    width: 20px;
  }
  .booking-step__label {
    font-size: 10px;
  }
}

/* Booking Panel */
.booking-panel {
  animation: fadeIn 0.3s ease-out;
}

.booking-panel.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-panel__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.booking-back {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-interactive);
}

.booking-back:hover {
  color: var(--color-primary);
  background: var(--color-surface-offset);
}

.booking-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.booking-panel__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: none;
}

/* Service Selection */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-option {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.service-option:hover {
  border-color: color-mix(in oklab, var(--color-primary) 40%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-option.selected {
  border-color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 4%, var(--color-surface-2));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 20%, transparent);
}

.service-option__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: all var(--transition-interactive);
}

.service-option.selected .service-option__icon {
  background: var(--color-primary);
  color: #fff;
}

.service-option__content {
  flex: 1;
}

.service-option__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.service-option__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.service-option__price {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Calendar & Time Selection */
.datetime-selection {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .datetime-selection {
    grid-template-columns: 1fr;
  }
}

/* Calendar */
.calendar-container {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.calendar-nav {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.calendar-nav:hover {
  background: var(--color-primary);
  color: #fff;
}

.calendar-month {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.calendar-weekdays span {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.calendar-day:hover:not(:disabled) {
  background: var(--color-surface-offset);
}

.calendar-day:disabled {
  color: var(--color-text-faint);
  cursor: not-allowed;
}

.calendar-day.other-month {
  color: var(--color-text-faint);
}

.calendar-day.today {
  border: 1px solid var(--color-primary);
}

.calendar-day.selected {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--color-primary) 40%, transparent);
}

/* Time Slots */
.time-slots-container {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.time-slots__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.time-slots__date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 320px;
  overflow-y: auto;
}

.time-slots__placeholder {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.time-slot {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-interactive);
  text-align: center;
}

.time-slot:hover {
  border-color: color-mix(in oklab, var(--color-primary) 40%, transparent);
  background: var(--color-surface-offset);
}

.time-slot.selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Booking Summary Card */
.booking-summary-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.booking-summary__item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
}

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

.booking-summary__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.booking-summary__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* Booking Form */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-checkbox label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}

/* Confirmation */
.booking-confirmation {
  text-align: center;
  padding: var(--space-8) 0;
}

.booking-confirmation__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-success) 12%, transparent);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.booking-confirmation__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.booking-confirmation__message {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-8);
}

.booking-confirmation__card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 480px;
  margin: 0 auto var(--space-8);
  text-align: left;
}

.booking-confirmation__detail {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

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

.booking-confirmation__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.booking-confirmation__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.booking-confirmation__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.booking-confirmation__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Info Section */
.booking-info-section {
  padding-bottom: var(--space-16);
  background: var(--color-bg);
}

.booking-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .booking-info-grid {
    grid-template-columns: 1fr;
  }
}

.booking-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-interactive);
}

.booking-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--color-primary) 20%, transparent);
}

.booking-info__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.booking-info__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.booking-info__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

/* Active nav link */
.nav__links a.active {
  color: var(--color-primary);
}

.nav__links a.active::after {
  width: 100%;
}
