/* Booking component styles extracted from booking-component.njk */
#booking-component {
  --primary: #1d1d1b;
  --accent: #b5d045;
  --border: #e1e1e1;
  --bg-soft: #fafafa;
  --text-secondary: #666;
  --error: #d32f2f;
  --success: #2e7d32;
}

.booking-card {
  max-width: 1120px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  padding: 48px 40px;
}

.booking-header {
  margin-bottom: 48px;
}

.booking-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.booking-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Times Grid */
.step-label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--primary);
}

/* Week Navigation */
.week-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.week-nav-btn {
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  color: var(--primary);
  transition: all 0.15s ease;
}

.week-nav-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--bg-soft);
}

.week-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.week-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
}

/* Calendar Days */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.calendar-day {
  padding: 16px 8px;
  border: 1px solid var(--border);
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calendar-day:hover:not(.disabled) {
  border-color: var(--primary);
  background: var(--bg-soft);
}

.calendar-day.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--bg-soft);
}

.calendar-day.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.calendar-day .day-name {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 500;
}

.calendar-day .day-number {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

/* Times Section */
.times-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.times-heading {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--primary);
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.time-slot {
  padding: 14px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  font-size: 14px;
  font-weight: 500;
}

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

.time-slot .date {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 400;
}

/* Form */
.back-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  display: inline-block;
}

.back-link:hover {
  color: var(--primary);
}

.selected-info {
  background: var(--bg-soft);
  padding: 16px 18px;
  margin-bottom: 32px;
  border-left: 3px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-info .label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.selected-info .value {
  font-weight: 600;
  font-size: 15px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-row input:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease;
  resize: vertical;
}

.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Summary Card */
.summary-card {
  background: var(--bg-soft);
  padding: 20px;
  margin-top: 32px;
  border-top: 2px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.summary-row.discount-row {
  color: var(--success);
}

.summary-row.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 16px;
}

/* Review Step */
.review-section {
  max-width: 640px;
}

.review-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.review-block:last-of-type {
  border-bottom: none;
}

.review-heading {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.review-value {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
}

.review-summary {
  background: var(--bg-soft);
  padding: 20px;
  margin: 32px 0 24px;
  border-top: 2px solid var(--border);
}

/* Buttons */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
  background: #000;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary-btn {
  padding: 14px 28px;
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  border-color: var(--primary);
}

/* Loading & Empty States */
.loading-state,
.empty-state {
  text-align: center;
  padding: 48px 20px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--bg-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state .help-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.empty-state a {
  color: var(--primary);
  text-decoration: underline;
}

/* Feedback */
.feedback-content {
  text-align: center;
  padding: 32px 0;
}

.success-mark,
.error-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.success-mark {
  background: #f1f8f4;
  color: var(--success);
}

.error-mark {
  background: #fef1f1;
  color: var(--error);
}

.feedback-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 600;
}

.feedback-message {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

.confirmation-details {
  background: var(--bg-soft);
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
  border-top: 2px solid var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.detail-row.price-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.detail-label {
  color: var(--text-secondary);
}

.detail-value {
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-card {
    padding: 32px 24px;
  }

  .calendar-days {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .calendar-day {
    padding: 12px 4px;
  }

  .calendar-day .day-name {
    font-size: 10px;
  }

  .calendar-day .day-number {
    font-size: 14px;
  }

  .times-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-split {
    grid-template-columns: 1fr;
  }
}

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

  .promo-input-group {
    flex-direction: column;
  }

  .apply-promo-btn {
    width: 100%;
  }
}