/* ----------------------------------------------------------------------------
 * Booking layout — minimal mechanic theme (brand #2896d7)
 * ---------------------------------------------------------------------------- */
:root {
  --brand: #2896d7;
  --brand-fg: #fff;
  --brand-soft: rgba(40, 150, 215, 0.12);
  --bg: #f4f7fb;
  --surface: #ffffff;
  --border: #e4eaf1;
  --text: #1a2533;
  --muted: #5c6b7a;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(15, 40, 80, 0.06);
}

html,
body {
  height: 100%;
}

body.booking-page-body {
  background: var(--bg);
  color: var(--text);
}

.booking-page-main {
  min-height: 100%;
  padding: 1rem 0.75rem 2rem;
}

.booking-wizard {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .booking-wizard {
    border-radius: 0;
    box-shadow: none;
  }
  .booking-page-main {
    padding: 0;
  }
}

/* Header */
.booking-header {
  background: var(--brand);
  color: var(--brand-fg);
  padding: 1rem 1.25rem 1.25rem;
}

.booking-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.booking-header__logo-link img#company-logo {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.btn-contact {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.btn-contact:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Stepper */
.booking-stepper {
  margin-top: 1.25rem;
}

.booking-stepper__track {
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.booking-stepper__progress {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}

.booking-stepper__dots {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.25rem;
}

.book-step {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.book-step__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 auto 0.35rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.book-step.active-step {
  color: #fff;
  font-weight: 600;
}

.book-step.active-step .book-step__dot {
  background: #fff;
  transform: scale(1.35);
}

.book-step__label {
  display: block;
  line-height: 1.2;
}

/* Wizard frames — plate step visible first without waiting for JS */
#book-appointment-wizard #wizard-frame-1.wizard-frame--step1 {
  display: block;
  visibility: visible;
}

#book-appointment-wizard #wizard-frame-2,
#book-appointment-wizard #wizard-frame-3,
#book-appointment-wizard #wizard-frame-4 {
  display: none;
}

.wizard-frame {
  padding: 1.25rem 1.25rem 1rem;
  min-height: 320px;
}

.frame-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.frame-content--plate {
  display: flex;
  justify-content: center;
}

.nl-plate-wrap {
  text-align: center;
}

.nl-plate {
  display: inline-flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #0a2e6e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  background: #ffd500;
}

.nl-plate--small {
  font-size: 0.85rem;
  border-width: 1px;
}

.nl-plate-flag {
  background: #0a4a9a;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.5rem 0.45rem;
  display: flex;
  align-items: center;
}

.nl-plate-input {
  border: none;
  background: #ffd500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  min-width: 11rem;
  outline: none;
  color: #111;
}

.nl-plate--small .nl-plate-input {
  font-size: 0.95rem;
  min-width: 7rem;
  padding: 0.25rem 0.5rem;
}

.nl-plate--small .nl-plate-flag {
  padding: 0.25rem 0.35rem;
  font-size: 0.65rem;
}

/* Car card */
.car-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfd;
  overflow: hidden;
}

.car-card__header {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.car-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
}

@media (max-width: 575.98px) {
  .car-card__body {
    grid-template-columns: 1fr;
  }
}

.car-card__row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.car-card__icon {
  color: var(--brand);
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.car-card__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.car-card__value {
  display: block;
  font-weight: 600;
  color: var(--text);
}

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.service-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 12px var(--brand-soft);
}

.service-card.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px var(--brand);
}

.service-card__icon {
  color: var(--brand);
  font-size: 1.1rem;
}

.service-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.service-card__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Date / time — flatpickr matches booking brand (no green Material theme) */
#book-appointment-wizard .flatpickr-calendar {
  border-radius: var(--radius);
}

#book-appointment-wizard .flatpickr-months,
#book-appointment-wizard .flatpickr-months .flatpickr-month {
  background: var(--brand);
  color: #fff;
  fill: #fff;
}

#book-appointment-wizard .flatpickr-current-month .flatpickr-monthDropdown-months,
#book-appointment-wizard .flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: transparent;
  color: #fff;
}

#book-appointment-wizard .flatpickr-weekdays {
  background: var(--brand);
}

#book-appointment-wizard span.flatpickr-weekday {
  color: rgba(255, 255, 255, 0.92);
}

#book-appointment-wizard .flatpickr-day.selected,
#book-appointment-wizard .flatpickr-day.startRange,
#book-appointment-wizard .flatpickr-day.endRange {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

#book-appointment-wizard .flatpickr-day:hover {
  border-color: var(--brand);
}

.frame-content--datetime .booking-datepicker-wrap .flatpickr-calendar {
  margin: 0 auto 1rem;
  box-shadow: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.available-hours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.25rem;
}

@media (min-width: 992px) {
  .available-hours-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.available-hour {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.35rem;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.available-hour:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.available-hour.selected-hour {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff !important;
}

/* Summary + form */
.booking-summary {
  border-color: var(--border) !important;
  background: #f8fafc !important;
}

.command-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #fafbfd;
}

.command-buttons--final .book-appointment-form {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

#book-appointment-submit {
  min-width: 160px;
}

.booking-footer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* Messages */
#message-frame,
#success-frame {
  background: var(--surface);
  text-align: center;
  height: auto;
  border: none;
  padding: 35px;
}

.booking-header-bar {
  padding: 15px 0;
  margin: 0;
  background: #f3f2e7;
  border-bottom: 1px solid #e4e1c9;
  text-align: center;
}

@media (min-width: 768px) {
  .booking-header-bar {
    text-align: left;
  }
}
