/* ============================================
   Blue Legacy Studio - Booking Flow Styles
   Multi-step booking experience
   ============================================ */

/* --- Variables --- */
:root {
  --royal-blue: #1a3a6b;
  --royal-blue-dark: #12294d;
  --royal-blue-light: #e8eef6;
  --royal-blue-tint: rgba(26, 58, 107, 0.08);
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --silver: #c0c0c0;
  --silver-light: #e2e2e2;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --gold: #d4a843;
  --yellow-tint: rgba(212, 168, 67, 0.1);
  --shadow-sm: 0 2px 8px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.1);
  --shadow-lg: 0 8px 32px rgba(10, 10, 10, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* --- Booking Container --- */
.booking-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
}

/* ============================================
   1. Booking Steps Indicator
   ============================================ */
.booking-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 16px 8px 32px;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 60px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--silver);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--silver);
  transition: all var(--transition);
  position: relative;
}

.step.active .step-circle {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(26, 58, 107, 0.35);
}

.step.completed .step-circle {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.step.completed .step-circle::after {
  content: '\2713';
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.step.completed .step-number {
  display: none;
}

.step-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--silver);
  text-align: center;
  white-space: nowrap;
  transition: color var(--transition);
}

.step.active .step-label {
  color: var(--royal-blue);
  font-weight: 600;
}

.step.completed .step-label {
  color: var(--green-dark);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--silver-light);
  margin-top: 20px;
  min-width: 24px;
  transition: background var(--transition);
}

.step-line.active {
  background: var(--royal-blue);
}

.step-line.completed {
  background: var(--green);
}

/* ============================================
   2. Step Transitions
   ============================================ */
.booking-step {
  animation: fadeStepIn 0.4s ease forwards;
  opacity: 0;
}

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

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

.booking-step[hidden],
.booking-step.hidden {
  display: none;
}

.booking-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  text-align: center;
}

.booking-step-subtitle {
  font-size: 15px;
  color: var(--silver);
  text-align: center;
  margin-bottom: 28px;
}

/* ============================================
   3. Client Type Cards
   ============================================ */
.client-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.client-type-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 24px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.client-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--royal-blue);
}

.client-type-card:active {
  transform: translateY(-1px);
}

.client-type-card.selected {
  border-color: var(--royal-blue);
  background: var(--royal-blue-tint);
}

.client-type-card .card-icon {
  font-size: 48px;
  color: var(--royal-blue);
  margin-bottom: 14px;
  line-height: 1;
  display: block;
}

.client-type-card .card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.client-type-card .card-desc {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.4;
}

/* ============================================
   4. Booking Forms
   ============================================ */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.booking-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="password"],
.booking-form input[type="date"],
.booking-form input[type="number"],
.booking-form textarea,
.booking-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--silver-light);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.12);
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: var(--silver);
}

.booking-form .form-group {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row > * {
  flex: 1;
}

.form-hint {
  font-size: 12px;
  color: var(--silver);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
}

.booking-form input.error,
.booking-form select.error {
  border-color: #e74c3c;
}

/* ============================================
   5. Service Selection
   ============================================ */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1.5px solid var(--silver-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.service-card:hover {
  border-color: var(--royal-blue);
  box-shadow: var(--shadow-sm);
}

.service-card.selected {
  border-color: var(--royal-blue);
  background: var(--royal-blue-light);
}

.service-card .service-info {
  flex: 1;
  min-width: 0;
}

.service-card .service-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.service-card .service-meta {
  font-size: 13px;
  color: var(--silver);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-card .service-duration,
.service-card .service-price {
  white-space: nowrap;
}

.service-card .radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--silver);
  flex-shrink: 0;
  margin-left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.service-card.selected .radio-circle {
  border-color: var(--royal-blue);
  background: var(--royal-blue);
}

.service-card.selected .radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

.service-card .service-card-description {
  display: none;
  font-size: 13px;
  color: #555;
  margin-top: 8px;
  line-height: 1.5;
}

.service-card.selected .service-card-description {
  display: block;
}

.service-card.preferred-service {
  border-color: var(--royal-blue);
  border-width: 2px;
  position: relative;
}

.service-card.preferred-service::before {
  content: 'Your usual';
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--royal-blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.service-category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin: 20px 0 10px;
}

/* ============================================
   6. Calendar
   ============================================ */
.booking-calendar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 24px;
}

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

.calendar-header .calendar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
}

.calendar-header .calendar-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--silver-light);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--black);
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

.calendar-header .calendar-nav:hover {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
  background: var(--royal-blue-tint);
}

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

.calendar-day-name,
.calendar-day-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--silver);
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-day {
  aspect-ratio: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  user-select: none;
}

.calendar-day:hover {
  background: var(--royal-blue-tint);
  color: var(--royal-blue);
}

.calendar-day.today,
.calendar-day--today {
  box-shadow: inset 0 0 0 2px var(--royal-blue);
  font-weight: 700;
}

.calendar-day.selected,
.calendar-day--selected {
  background: var(--royal-blue);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(26, 58, 107, 0.3);
}

.calendar-day.selected.today,
.calendar-day--selected.calendar-day--today {
  box-shadow: 0 2px 10px rgba(26, 58, 107, 0.3);
}

.calendar-day.unavailable,
.calendar-day.past,
.calendar-day--disabled {
  color: var(--silver-light);
  cursor: default;
  pointer-events: none;
}

.calendar-day.unavailable:hover,
.calendar-day.past:hover,
.calendar-day--disabled:hover {
  background: transparent;
}

.calendar-day.empty,
.calendar-day--empty {
  pointer-events: none;
}

/* ============================================
   7. Time Slots
   ============================================ */
#timeSlots,
.time-slots-section {
  margin-top: 16px;
}

.time-slots-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.time-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-slot-btn {
  min-width: 80px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--silver-light);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.time-slot-btn:hover {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
}

.time-slot-btn.selected {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(26, 58, 107, 0.25);
}

.time-slot-btn:disabled,
.time-slot-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.no-slots-message {
  text-align: center;
  color: var(--silver);
  font-size: 14px;
  padding: 24px 16px;
}

/* ============================================
   7b. Time Picker (free-form scheduling)
   ============================================ */
.time-picker-section {
  margin-top: 24px;
}

.time-picker-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.schedule-hours-info {
  font-size: 14px;
  color: #6b7685;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px 0;
}

.windows-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.windows-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.window-chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--royal-blue-light);
  border: 1.5px solid rgba(26, 58, 107, 0.15);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--royal-blue);
}

.time-picker-input-group {
  margin-bottom: 16px;
}

.form-input--time-picker {
  font-size: 18px !important;
  padding: 14px 16px !important;
  border-radius: var(--radius-md) !important;
  border: 2px solid var(--silver-light) !important;
  width: 100%;
  max-width: 200px;
  transition: border-color var(--transition);
}

.form-input--time-picker:focus {
  border-color: var(--royal-blue) !important;
  outline: none;
}

.time-validation-msg {
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}

.time-validation-msg--valid {
  color: var(--green-dark);
  font-weight: 500;
}

.time-validation-msg--invalid {
  color: #e74c3c;
  font-weight: 500;
}

#confirmTimeBtn {
  margin-top: 8px;
}

/* ============================================
   8. Waitlist Option
   ============================================ */
#waitlistOption,
.waitlist-option {
  background: linear-gradient(135deg, var(--yellow-tint), var(--royal-blue-tint));
  border: 1.5px solid rgba(26, 58, 107, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
}

.waitlist-option .waitlist-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.waitlist-option .waitlist-content {
  flex: 1;
}

.waitlist-option .waitlist-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
  margin-bottom: 4px;
}

.waitlist-option .waitlist-message {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
}

.waitlist-option .waitlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--royal-blue);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.waitlist-option .waitlist-btn:hover {
  background: var(--royal-blue-dark);
}

/* ============================================
   9. Summary Card
   ============================================ */
#bookingSummary,
.booking-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.summary-header {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  padding: 20px 24px 12px;
  color: var(--black);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--off-white);
  gap: 12px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .summary-label {
  font-size: 14px;
  color: var(--silver);
  flex-shrink: 0;
}

.summary-row .summary-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-align: right;
}

.summary-row .edit-link {
  font-size: 12px;
  color: var(--royal-blue);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  margin-left: 8px;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.summary-row .edit-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.summary-row.summary-total {
  padding: 18px 24px;
  border-top: 2px solid var(--off-white);
  border-bottom: none;
}

.summary-row.summary-total .summary-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.summary-row.summary-total .summary-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--royal-blue);
}

/* ============================================
   9b. Coupon Section
   ============================================ */
.coupon-section {
  margin-bottom: 24px;
}

.coupon-section .form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  display: block;
}

.coupon-input-row {
  display: flex;
  gap: 10px;
}

.coupon-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--silver-light);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  letter-spacing: 1px;
  font-weight: 500;
}

.coupon-input:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.12);
}

.coupon-input::placeholder {
  color: var(--silver);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.btn-coupon {
  padding: 12px 24px;
  border: 1.5px solid var(--royal-blue);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--royal-blue);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-coupon:hover {
  background: var(--royal-blue);
  color: var(--white);
}

.btn-coupon:disabled {
  opacity: 0.5;
  cursor: default;
}

.coupon-result {
  margin-top: 10px;
}

.coupon-result-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--green-dark);
}

.coupon-result-success .coupon-result-icon {
  font-weight: 700;
  font-size: 16px;
}

.coupon-result-success .coupon-result-text {
  flex: 1;
  font-weight: 500;
}

.coupon-remove-btn {
  background: none;
  border: none;
  color: var(--silver);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--transition);
}

.coupon-remove-btn:hover {
  color: #e74c3c;
}

.coupon-result-error {
  padding: 10px 14px;
  background: rgba(231, 76, 60, 0.06);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #c0392b;
}

/* Discount Summary */
.discount-summary {
  background: var(--royal-blue-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.discount-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--black);
}

.discount-row-highlight {
  color: var(--green-dark);
  font-weight: 500;
}

.discount-row-total {
  border-top: 2px solid rgba(26, 58, 107, 0.15);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--royal-blue);
}

/* ============================================
   10. Confirm Button
   ============================================ */
#confirmBookingBtn,
.btn-confirm {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--royal-blue);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.2px;
}

#confirmBookingBtn:hover,
.btn-confirm:hover {
  background: var(--royal-blue-dark);
  box-shadow: 0 4px 16px rgba(26, 58, 107, 0.3);
}

#confirmBookingBtn:active,
.btn-confirm:active {
  transform: scale(0.99);
}

#confirmBookingBtn:disabled,
.btn-confirm:disabled {
  background: var(--silver-light);
  color: var(--silver);
  cursor: default;
  box-shadow: none;
}

/* ============================================
   11. Success Screen
   ============================================ */
/* --- Duplicate Client Notice --- */
.duplicate-client-notice {
  margin-top: 20px;
  padding: 20px;
  background: var(--royal-blue-light, #e8eef6);
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(26, 58, 107, 0.15);
}
.duplicate-notice-icon {
  font-size: 28px;
  color: var(--royal-blue, #1a3a6b);
  margin-bottom: 8px;
}
.duplicate-notice-text {
  font-size: 15px;
  color: var(--royal-blue-dark, #12294d);
  margin-bottom: 16px;
  line-height: 1.5;
}
.duplicate-client-notice .btn {
  width: 100%;
}

#bookingSuccess,
.booking-success {
  text-align: center;
  padding: 40px 20px;
  animation: fadeStepIn 0.5s ease forwards;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  position: relative;
}

.success-checkmark .checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 252;
  stroke-dashoffset: 252;
  animation: circleDraw 0.6s ease-out 0.2s forwards;
}

.success-checkmark .checkmark-check {
  stroke: var(--green);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkDraw 0.4s ease-out 0.7s forwards;
}

@keyframes circleDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.success-checkmark-alt {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
}

.success-checkmark-alt::after {
  content: '\2713';
  color: var(--white);
  font-size: 36px;
  font-weight: 700;
  animation: checkFade 0.3s ease 0.5s both;
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkFade {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.booking-success .success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.booking-success .success-message {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 28px;
}

.booking-success .success-details {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
}

.booking-success .success-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.booking-success .success-details .detail-label {
  color: var(--silver);
}

.booking-success .success-details .detail-value {
  font-weight: 600;
  color: var(--black);
}

/* ============================================
   12. Navigation Buttons
   ============================================ */
.booking-nav,
.booking-nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn-back,
.btn-next {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-back {
  background: transparent;
  border: 1.5px solid var(--silver-light);
  color: var(--black);
}

.btn-back:hover {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
  background: var(--royal-blue-tint);
}

.btn-back .arrow-left::before {
  content: '\2190';
  margin-right: 2px;
}

.btn-next {
  background: var(--royal-blue);
  border: 1.5px solid var(--royal-blue);
  color: var(--white);
}

.btn-next:hover {
  background: var(--royal-blue-dark);
  border-color: var(--royal-blue-dark);
  box-shadow: 0 4px 14px rgba(26, 58, 107, 0.25);
}

.btn-next:disabled {
  background: var(--silver-light);
  border-color: var(--silver-light);
  color: var(--silver);
  cursor: default;
  box-shadow: none;
}

.btn-next .arrow-right::after {
  content: '\2192';
  margin-left: 2px;
}

/* ============================================
   13. Utility & Misc
   ============================================ */
.booking-divider {
  height: 1px;
  background: var(--silver-light);
  margin: 24px 0;
}

.booking-note {
  font-size: 13px;
  color: var(--silver);
  text-align: center;
  line-height: 1.5;
  margin-top: 16px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--silver-light);
  border-top-color: var(--royal-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 32px auto;
}

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

/* ============================================
   14. Toast Notifications
   ============================================ */
.booking-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: #dc3545;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 400px;
  text-align: center;
  pointer-events: none;
}

.booking-toast--success {
  background: var(--green);
}

.booking-toast--error {
  background: #dc3545;
}

.booking-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================================
   15. Input Validation Error State
   ============================================ */
.form-input.input-error,
.booking-form input.input-error,
.booking-form select.input-error,
.lookup-form .form-input.input-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

/* ============================================
   16. Lookup Form Styles
   ============================================ */
.lookup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.lookup-form .form-group {
  display: flex;
  flex-direction: column;
}

.lookup-result-card {
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 16px;
}

.lookup-success {
  background: rgba(46, 204, 113, 0.08);
  border: 1.5px solid rgba(46, 204, 113, 0.25);
}

.lookup-not-found {
  background: rgba(231, 76, 60, 0.06);
  border: 1.5px solid rgba(231, 76, 60, 0.2);
}

.lookup-result-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.lookup-result-message {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 16px;
}

.lookup-register-link {
  color: var(--royal-blue);
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================
   17. Responsive
   ============================================ */

/* Tablets and small desktops */
@media (min-width: 600px) {
  .booking-container {
    padding: 32px 24px 56px;
  }

  .booking-step-title {
    font-size: 30px;
  }

  .booking-nav {
    flex-direction: row;
  }

  .btn-back,
  .btn-next {
    flex: none;
    min-width: 160px;
  }

  .booking-nav {
    justify-content: space-between;
  }
}

/* Mobile adjustments */
@media (max-width: 599px) {
  .booking-container {
    padding: 16px 12px 40px;
  }

  .booking-nav {
    flex-direction: column-reverse;
  }

  .btn-back,
  .btn-next {
    width: 100%;
  }

  .client-type-options {
    flex-direction: column;
    align-items: stretch;
  }

  .client-type-card {
    max-width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: 18px;
  }

  .summary-row {
    padding: 12px 18px;
  }

  .summary-row.summary-total {
    padding: 16px 18px;
  }
}

/* Very small screens */
@media (max-width: 374px) {
  .step-label {
    display: none;
  }

  .step-circle {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .step-line {
    margin-top: 17px;
    min-width: 16px;
  }

  .booking-step-title {
    font-size: 22px;
  }

  .booking-calendar {
    padding: 14px 10px;
  }

  .calendar-day {
    min-height: 44px;
    font-size: 13px;
  }

  .time-slot-btn {
    min-width: 70px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .client-type-card {
    padding: 22px 16px;
  }

  .client-type-card .card-icon {
    font-size: 38px;
  }

  .service-card {
    padding: 14px;
  }
}

/* Touch-friendly calendar cells */
@media (pointer: coarse) {
  .calendar-day {
    min-height: 44px;
    min-width: 44px;
  }

  .time-slot-btn {
    min-height: 44px;
  }

  .service-card {
    min-height: 56px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .booking-step {
    animation: none;
    opacity: 1;
  }

  .success-checkmark .checkmark-circle,
  .success-checkmark .checkmark-check {
    animation: none;
    stroke-dashoffset: 0;
  }

  .success-checkmark-alt {
    animation: none;
  }

  .success-checkmark-alt::after {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Maintenance Status Alerts
   ============================================ */
.maintenance-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.maintenance-alert--ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.maintenance-alert--expired {
  background: #fef7ee;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.maintenance-alert--new-application {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.maintenance-alert-icon {
  flex-shrink: 0;
  font-size: 22px;
  margin-top: 2px;
}
.maintenance-alert--ok .maintenance-alert-icon {
  color: #16a34a;
}
.maintenance-alert--expired .maintenance-alert-icon {
  color: #ea580c;
}
.maintenance-alert--new-application .maintenance-alert-icon {
  color: #dc2626;
}
.maintenance-alert-content strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.maintenance-alert-content p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}
