/* Booker theme: royal blue + navy, Geist font, compact card layout from design/references.
   Loaded after style.css; remove the <link> in frontend/views/partials/header.ejs to revert.
   Type scale: 12 / 13 / 14 / 15 / 18 / 22 / 28px. Spacing on a 4px grid. */

:root {
  --theme-navy: #082b45;
  --theme-blue: #16a8d3;
  --theme-blue-hover: #0e94bd;
  --theme-blue-tint: #edf8fc;
  --theme-ring: rgba(22, 168, 211, 0.24);
  --theme-text: #092640;
  --theme-muted: #5B6B7F;
  --theme-border: #cfd8e3;
  --theme-page: #f7fafc;
  --theme-card: #FFFFFF;
  --theme-error: #DC3545;
  --theme-shadow: 0 10px 30px rgba(8, 43, 69, 0.08);
  --theme-radius: 8px;
  --theme-radius-sm: 8px;
  --theme-control-height: 40px;

  --bs-body-font-size: 0.9375rem;
  --bs-body-color: var(--theme-text);
  --bs-primary: var(--theme-blue);
  --bs-primary-rgb: 22, 168, 211;
  --bs-dark: var(--theme-navy);
  --bs-dark-rgb: 8, 43, 69;
  --bs-danger: var(--theme-blue);
  --bs-danger-rgb: 22, 168, 211;
  --bs-light: var(--theme-blue-tint);
  --bs-light-rgb: 238, 244, 255;
}

/* Base */
body {
  font-family: 'Geist', 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--theme-text);
  background: var(--theme-page);
}

h1, h2, h3, h4, h5, h6, .display-4 {
  color: var(--theme-navy);
  letter-spacing: -0.02em;
}

a {
  color: var(--theme-blue);
}

.text-muted {
  color: var(--theme-muted) !important;
}

/* Accent text; error icons stay red */
.text-danger {
  color: var(--theme-blue) !important;
}

.bi-x-circle-fill.text-danger {
  color: var(--theme-error) !important;
}

.text-dark {
  color: var(--theme-navy) !important;
}

/* Buttons: one standard size (40px) across the booker */
.btn {
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--theme-radius-sm);
}

.booker .btn,
.booker .btn-lg {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.875rem;
}

.booker .btn-sm {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 0.8125rem;
}

.btn-primary,
.btn-danger {
  background-color: var(--theme-blue);
  border-color: var(--theme-blue);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background-color: var(--theme-blue-hover) !important;
  border-color: var(--theme-blue-hover) !important;
  color: #fff;
}

/* Disabled: a pale version of the theme blue (was a lavender from the old theme) */
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #96d8eb;
  border-color: #96d8eb;
  color: #fff;
  opacity: 1;
  cursor: not-allowed;
}

.btn:focus,
.btn-check:focus + .btn {
  box-shadow: 0 0 0 0.2rem var(--theme-ring) !important;
}

.btn-light {
  color: var(--theme-navy);
  background-color: #fff;
  border-color: var(--theme-border);
}

.btn-light:hover {
  background-color: var(--theme-blue-tint) !important;
  border-color: var(--theme-border);
  color: var(--theme-navy);
}

.btn-outline-primary {
  color: var(--theme-blue);
  border-color: var(--theme-blue);
}

.btn-outline-primary:hover {
  background-color: var(--theme-blue);
  border-color: var(--theme-blue);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--theme-navy);
  border-color: var(--theme-navy);
}

.btn-outline-secondary:hover {
  background-color: var(--theme-navy);
  border-color: var(--theme-navy);
  color: #fff;
}

.booker .btn-back,
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--theme-blue);
  font-weight: 600;
  font-size: 0.875rem;
}

.btn-back:hover {
  color: var(--theme-blue-hover);
}

/* Forms */
.form-control,
.form-select,
.input-group-text,
#booking .input-group button {
  border-color: var(--theme-border) !important;
  color: var(--theme-text);
}

.form-control,
.form-select {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 0.9375rem;
  border-radius: var(--theme-radius-sm);
}

textarea.form-control {
  min-height: 0;
}

.form-control::placeholder {
  color: #8A97A8;
}

.input-group-text {
  padding: 0 12px;
  background: #fff;
  color: var(--theme-muted);
  font-size: 1rem;
  border-radius: var(--theme-radius-sm);
}

.booker .input-group > .btn {
  min-height: var(--theme-control-height);
  padding: 0 12px;
}

.form-control:focus,
.form-select:focus,
#booking .form-control:focus {
  border-color: var(--theme-blue) !important;
  box-shadow: 0 0 0 0.2rem var(--theme-ring);
}

.form-check-input:checked {
  background-color: var(--theme-blue);
  border-color: var(--theme-blue);
}

.form-check-input:focus {
  border-color: var(--theme-blue);
  box-shadow: 0 0 0 0.2rem var(--theme-ring);
}

.field-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--theme-navy);
}

.field-label .optional {
  font-weight: 400;
  color: var(--theme-muted);
}

/* Cards and tints */
.card,
.booker-card {
  background: var(--theme-card);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
}

.booker-card {
  padding: 16px;
}

.booker-card-title {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
}

.booker-card-sub {
  margin-bottom: 12px;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

.bg-light {
  background-color: var(--theme-blue-tint) !important;
}

.modal-content {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
}

/* Address autocomplete dropdown */
.ui-menu {
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-sm);
  box-shadow: var(--theme-shadow);
  font-family: 'Geist', 'Segoe UI', Arial, sans-serif;
  font-size: 0.875rem;
}

.ui-menu .ui-menu-item-wrapper {
  color: var(--theme-text);
  padding: 6px 12px;
}

.ui-menu .ui-state-active,
.ui-menu .ui-menu-item-wrapper:hover {
  background: var(--theme-blue-tint) !important;
  border-color: var(--theme-blue-tint) !important;
  color: var(--theme-navy) !important;
}

/* Header */
#navbar.booker-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--theme-navy);
  border-bottom: 0;
  box-shadow: none;
}

.booker-nav .nav-container {
  max-width: 1140px;
  min-height: 56px;
  padding: 8px 12px;
  justify-content: flex-end;
}

.nav-help {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-help-text {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-phone,
.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--theme-radius-sm);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-phone .bi {
  color: var(--theme-blue);
}

.nav-whatsapp .bi {
  font-size: 1.125rem;
}

.nav-phone:hover,
.nav-phone:focus,
.nav-whatsapp:hover,
.nav-whatsapp:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.35);
}

/* Footer */
.booker-footer {
  margin-top: 40px;
  padding: 14px 0;
  background: #EDF1F6;
  color: var(--theme-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.booker-footer a {
  color: var(--theme-muted);
}

.booker-footer a:hover {
  color: var(--theme-navy);
}

/* Page header + step indicator */
.booker {
  padding-top: 18px;
}

.booker .container {
  max-width: 1456px;
  padding-left: 40px;
  padding-right: 40px;
}

.booker .row.g-4 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.booker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.booker-title {
  margin-bottom: 4px;
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.booker-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--theme-muted);
}

.booker-steps {
  display: flex;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.booker-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 96px;
  text-align: center;
  color: var(--theme-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.booker-step + .booker-step::before {
  content: '';
  position: absolute;
  top: 15px;
  right: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: var(--theme-border);
}

.booker-step.is-done + .booker-step::before {
  background: var(--theme-blue);
}

.booker-step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
  border-radius: 50%;
  border: 2px solid var(--theme-border);
  background: #f7f9fb;
  color: var(--theme-muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.booker-step.is-active {
  color: var(--theme-blue);
  font-weight: 700;
}

.booker-step.is-active .booker-step-dot {
  border-color: var(--theme-blue);
  background: var(--theme-blue);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 3px 10px rgba(22, 168, 211, 0.25);
}

.booker-step.is-done {
  color: var(--theme-navy);
}

.booker-step.is-done .booker-step-dot {
  border-color: var(--theme-blue);
  background: var(--theme-blue);
  color: #fff;
  font-size: 0;
}

.booker-step.is-done .booker-step-dot::after {
  content: '\2713';
  font-size: 13px;
}

/* Step 1: journey toggle, route stops, payment */
.booking-split {
  overflow: hidden;
  overflow: clip; /* clips the corners without blocking the sticky map */
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 43, 69, 0.03), 0 18px 48px rgba(8, 43, 69, 0.06);
}

.booking-split .booker-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.journey-card {
  height: 100%;
  padding: 16px 18px 12px;
}

/* Step 1: Plan your journey */
.jp-title {
  margin: 0;
  color: var(--theme-navy);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.jp-sub {
  margin: 0 0 10px;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

.journey-toggle {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 0 0 10px;
  padding: 0;
  border-radius: var(--theme-radius-sm);
  border: 1px solid var(--theme-border);
  background: #fff;
  overflow: hidden;
}

.booker .journey-toggle-btn {
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  border-radius: 0;
  color: var(--theme-navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-check:checked + .journey-toggle-btn {
  background: var(--theme-blue);
  color: #fff;
}

.jp-panel {
  margin-bottom: 10px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.jp-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 6px;
}

/* Light-blue heading strip on every journey panel (one way and return) */
.jp-panel-head {
  padding-bottom: 8px;
  background: var(--theme-blue-tint);
}

.jp-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--theme-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.jp-panel-title {
  flex: 1;
  margin: 0;
  color: var(--theme-navy);
  font-size: 0.9375rem;
  font-weight: 700;
}

.jp-panel-body {
  padding: 8px 12px 12px;
}

.jp-panel .field-label {
  display: block;
  margin-bottom: 6px;
  color: #3d5068;
  font-size: 0.78125rem;
  font-weight: 600;
}

/* Address fields with the swap button on the right */
.jp-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.jp-fields {
  position: relative;
}

.route-stop {
  position: relative;
}

.route-stop + .route-stop,
.jp-flight + .route-stop,
#viapoints + .route-stop,
#return-viapoints + .route-stop,
#viapoints .route-stop,
#return-viapoints .route-stop {
  margin-top: 14px;
}

.jp-fields .input-group {
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
  min-height: 38px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jp-fields .input-group:focus-within {
  border-color: rgba(22, 168, 211, 0.72);
  box-shadow: 0 0 0 3px var(--theme-ring);
}

.jp-fields .input-group-text {
  justify-content: center;
  width: 38px;
  padding: 0;
  border: 0;
  border-right: 1px solid #e3eaf1;
  border-radius: 8px 0 0 8px;
  background: transparent;
}

.jp-fields .input-group > .form-control {
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--theme-navy);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: none;
}

.jp-fields .form-control::placeholder {
  color: #8d9bab;
  font-weight: 400;
}

.jp-stop-remove {
  flex: 0 0 36px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--theme-muted);
}

.jp-stop-remove:hover,
.jp-stop-remove:focus {
  background: var(--theme-page);
  color: var(--theme-navy);
}

.jp-flight {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.jp-flight .form-control {
  min-height: 36px;
  border-radius: 8px;
  font-size: 0.8125rem;
}

.jp-swap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: #fff;
  color: var(--theme-navy);
  font-size: 1rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.jp-swap:hover,
.jp-swap:focus {
  border-color: var(--theme-blue);
  color: var(--theme-blue);
}

.btn-add-stop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--theme-blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

.btn-add-stop .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--theme-blue);
  color: #fff;
  font-size: 0.75rem;
}

.btn-add-stop:hover {
  color: var(--theme-blue-hover);
}

/* Date and time: formatted text, native picker invisible on top */
.jp-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--theme-border);
}

.jp-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: #fff;
  color: var(--theme-navy);
  cursor: pointer;
}

.jp-picker:focus-within {
  border-color: rgba(22, 168, 211, 0.72);
  box-shadow: 0 0 0 3px var(--theme-ring);
}

.jp-picker .bi {
  font-size: 1rem;
}

.jp-picker-text {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.jp-picker-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.jp-picker-input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  cursor: pointer;
}

/* Payment: one option today, so a plain row */
.jp-payment {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: #fff;
}

.jp-payment > .bi {
  color: var(--theme-navy);
  font-size: 1.125rem;
}

.jp-payment > div {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
}

.jp-payment-label {
  display: block;
  color: var(--theme-navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.jp-payment-name {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.875rem;
}

.booker-hint {
  margin: 6px 0 0;
  text-align: center;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

.journey-card #next-vehicle {
  min-height: 40px;
  font-size: 0.9375rem;
}

/* Step 1: map card */
.map-card {
  position: relative;
  height: 100%;
  min-height: 545px;
  padding: 0;
  overflow: hidden;
  background: #edf6fa;
}

/* Desktop: the map stays in view while the (taller, Return) form scrolls; as tall as the form on One Way */
@media (min-width: 992px) {
  .booking-split > .col-lg-7 {
    border-left: 1px solid var(--theme-border);
  }

  .map-card {
    position: sticky;
    top: 72px;
    height: min(100%, calc(100vh - 88px));
  }
}

#booking-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #edf6fa;
}

#booking-map .leaflet-tile-pane {
  filter: grayscale(0.35) sepia(0.04) saturate(1.12) hue-rotate(166deg) brightness(1.13) contrast(0.9);
}

.map-card::before,
.map-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 350;
  pointer-events: none;
}

.map-card::before {
  background:
    linear-gradient(135deg, rgba(8, 43, 69, 0.035), rgba(22, 168, 211, 0.04)),
    radial-gradient(circle at 24% 28%, rgba(109, 211, 244, 0.08), transparent 32%),
    radial-gradient(circle at 78% 72%, rgba(7, 83, 130, 0.045), transparent 38%);
  mix-blend-mode: soft-light;
}

.map-card::after {
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.18;
}

.map-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(207, 216, 227, 0.72);
  border-radius: var(--theme-radius-sm);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(8, 43, 69, 0.08);
  color: var(--theme-navy);
  font-size: 0.875rem;
  font-weight: 700;
}

.map-chip .bi {
  color: var(--theme-blue);
  font-size: 1.1rem;
}

.map-glance {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  min-height: 50px;
  padding: 10px 16px;
  border: 1px solid rgba(207, 216, 227, 0.72);
  border-radius: var(--theme-radius-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(8, 43, 69, 0.08);
}

.map-glance-icon {
  font-size: 1.15rem;
  color: var(--theme-blue);
}

.map-glance-text {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.9375rem;
}

.map-glance-stats {
  margin: 2px 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--theme-navy);
}

.map-card.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  height: auto;
  max-height: none;
  min-height: 0;
  border-radius: 0;
}

.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(10, 39, 64, 0.35);
}

.map-pin span {
  transform: rotate(45deg);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

.map-pin-pickup {
  background: var(--theme-blue);
}

.map-pin-dropoff {
  background: var(--theme-navy);
}

.map-route {
  stroke: var(--theme-blue);
  stroke-width: 6px;
  filter: drop-shadow(0 0 4px rgba(22, 168, 211, 0.32)) drop-shadow(0 2px 3px rgba(8, 43, 69, 0.16));
}

.leaflet-container {
  font-family: 'Geist', 'Segoe UI', Arial, sans-serif;
}

.leaflet-bar a {
  color: var(--theme-navy);
}

.leaflet-control-zoom,
.leaflet-bar {
  border: 0 !important;
  box-shadow: 0 6px 18px rgba(8, 43, 69, 0.08);
}

.leaflet-bar a {
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-color: var(--theme-border) !important;
  font-size: 1.35rem;
}

/* Step 2: counters */
.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.counter {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.counter + .counter {
  padding-left: 8px;
  border-left: 1px solid var(--theme-border);
}

.counter-icon {
  font-size: 0.9375rem;
  color: var(--theme-navy);
}

.counter-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.75rem;
  font-weight: 600;
}

.stepper {
  display: inline-flex;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  overflow: hidden;
}

.stepper-btn {
  width: 30px;
  border: 0;
  background: #fff;
  color: var(--theme-navy);
  font-size: 1rem;
  font-weight: 600;
}

.stepper-btn:hover {
  background: var(--theme-blue-tint);
}

.stepper-input {
  width: 38px;
  height: 30px;
  border: 0;
  border-left: 1px solid var(--theme-border);
  border-right: 1px solid var(--theme-border);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--theme-navy);
  -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-input:focus {
  outline: none;
  background: var(--theme-blue-tint);
}

.booker-note {
  margin: 0 0 9px;
  color: var(--theme-muted);
  font-size: 0.78125rem;
}

.booker-note .bi {
  cursor: pointer;
  color: var(--theme-blue);
}

/* Step 2: vehicle cards */
.vehicle-requirements {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 1px solid #cfe8f1;
  border-radius: var(--theme-radius-sm);
  background: #f2fbfe;
  color: var(--theme-navy);
  font-size: 0.78125rem;
  font-weight: 600;
}

.vehicle-requirements .bi {
  color: var(--theme-blue);
  font-size: 0.95rem;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vehicle-grid.is-loading {
  pointer-events: none;
}

.vehicle-load-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: #fff;
  color: var(--theme-muted);
  font-size: 0.875rem;
}

.vehicle-skeleton-card {
  min-height: 176px;
  padding: 10px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: #fff;
  box-shadow: var(--theme-shadow);
}

.vehicle-skeleton-image,
.vehicle-skeleton-line {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef3f7 0%, #f8fbfd 45%, #eef3f7 90%);
  background-size: 200% 100%;
  animation: vehicleSkeleton 1.1s ease-in-out infinite;
}

.vehicle-skeleton-image {
  height: 66px;
  margin-bottom: 12px;
}

.vehicle-skeleton-line {
  width: 70%;
  height: 14px;
  margin-bottom: 10px;
}

.vehicle-skeleton-line.wide {
  width: 88%;
}

.vehicle-skeleton-line.short {
  width: 42%;
  height: 20px;
  margin-top: 18px;
}

@keyframes vehicleSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.vehicle-option {
  position: relative;
  height: 100%;
}

.vehicle-card {
  position: relative;
  display: block;
  height: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: #fff;
  box-shadow: var(--theme-shadow);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.vehicle-card:hover {
  border-color: #9DB9F5;
}

.vehicle-card.is-recommended {
  border-color: rgba(22, 168, 211, 0.72);
  box-shadow: 0 8px 20px rgba(22, 168, 211, 0.1);
}

.vehicle-card.is-unavailable {
  cursor: not-allowed;
  background: #f7f9fb;
  opacity: 0.62;
}

.vehicle-card.is-unavailable:hover {
  border-color: var(--theme-border);
}

.vehicle-card.is-unavailable .vehicle-check {
  display: none;
}

.vehicle-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--theme-blue);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
}

.vehicle-badge-muted {
  background: #e8eef4;
  color: #647286;
}

.vehicle-image-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 68px;
  margin-bottom: 7px;
  overflow: visible;
}

.vehicle-card img {
  display: block;
  width: auto;
  max-width: 78%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
}

.vehicle-card img.vehicle-img-saloon,
.vehicle-card img.vehicle-img-executive {
  max-width: 74%;
  max-height: 56px;
}

.vehicle-card img.vehicle-img-estate {
  max-width: 72%;
  max-height: 54px;
}

.vehicle-card img.vehicle-img-mpv6 {
  max-width: 78%;
  max-height: 58px;
}

.vehicle-card img.vehicle-img-mpv7 {
  max-width: 68%;
  max-height: 54px;
}

.vehicle-card img.vehicle-img-mpv8 {
  max-width: 80%;
  max-height: 58px;
}

.vehicle-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #B8C3D1;
  background: #fff;
}

.vehicle-name {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: capitalize;
}

.vehicle-capacity {
  display: flex;
  gap: 8px;
  margin: 0 0 5px;
  color: var(--theme-muted);
  font-size: 0.75rem;
}

.vehicle-shortfall {
  margin: 0 0 5px;
  color: #7a8798;
  font-size: 0.71875rem;
  font-weight: 600;
}

.vehicle-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-navy);
}

.vehicle-price.is-loading {
  color: var(--theme-muted);
  font-size: 0.875rem;
}

.list-group-item-check:checked + .vehicle-card {
  border: 2px solid var(--theme-blue);
  background: var(--theme-blue-tint);
}

.list-group-item-check:checked + .vehicle-card .vehicle-check {
  border-color: var(--theme-blue);
  background: var(--theme-blue);
}

.list-group-item-check:checked + .vehicle-card .vehicle-check::after {
  content: '\2713';
  display: block;
  color: #fff;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
}

/* Summaries (steps 2 and 3, review page) */
.summary-card {
  position: sticky;
  top: 72px;
  padding: 14px;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px 0;
}

.summary-row + .summary-row {
  border-top: 1px solid #EEF1F5;
}

.summary-row > .bi,
.summary-row .d-flex > .bi {
  font-size: 0.9375rem;
  color: var(--theme-navy);
  line-height: 1.3;
}

.summary-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--theme-navy);
}

.summary-value,
input.summary-value {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--theme-muted);
  text-align: left;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.summary-value.plain {
  text-transform: none;
}

input[type="button"].summary-value {
  cursor: pointer;
}

input[type="button"].summary-value:hover {
  color: var(--theme-blue);
}

.summary-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.summary-split .d-flex {
  gap: 8px !important;
}

.selected-vehicle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  padding: 7px 9px;
  border-radius: var(--theme-radius-sm);
  background: var(--theme-blue-tint);
}

.selected-vehicle img {
  width: 56px;
  height: 30px;
  object-fit: contain;
  object-position: center bottom;
}

.selected-vehicle-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--theme-muted);
}

.selected-vehicle-name {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: capitalize;
}

.selected-vehicle-fare {
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 700;
}

.summary-vehicle-image {
  display: block;
  width: 100%;
  height: 76px;
  object-fit: contain;
  object-position: center bottom;
}

.summary-vehicle-image.vehicle-img-mpv7 {
  transform: scale(0.88);
  transform-origin: center bottom;
}

.summary-vehicle-image.vehicle-img-estate {
  transform: scale(0.94);
  transform-origin: center bottom;
}

.summary-vehicle-image.vehicle-img-saloon,
.summary-vehicle-image.vehicle-img-executive {
  transform: scale(0.96);
  transform-origin: center bottom;
}

.review-vehicle-stage {
  height: 108px;
  margin-bottom: 0;
}

.review-vehicle-stage img {
  width: auto;
  max-width: 72%;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
}

.review-vehicle-stage img.vehicle-img-mpv7 {
  max-width: 60%;
  max-height: 90px;
}

.summary-vehicle-name {
  margin: 2px 0 5px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
}

.summary-capacity {
  display: flex;
  justify-content: space-around;
  padding: 5px 0 8px;
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-muted);
  font-size: 0.75rem;
}

.summary-capacity strong {
  display: block;
  color: var(--theme-navy);
}

.summary-fare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--theme-border);
  font-size: 0.875rem;
  font-weight: 700;
}

.summary-fare strong {
  font-size: 1.125rem;
  font-weight: 700;
}

#vehicle-container,
#passenger-container {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

#vehicle-container .btn-lg,
#passenger-container .btn-lg {
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 0.875rem;
}

#vehicle-container .text-center.mt-3 {
  margin-top: 0.75rem !important;
}

#passenger-container .booker-card:not(.summary-card) {
  padding: 14px;
}

#passenger-container .booker-card-title {
  font-size: 0.9375rem;
}

#passenger-container .booker-card-sub {
  margin-bottom: 10px;
  font-size: 0.78125rem;
}

#passenger-container .row.g-3 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

#passenger-container .field-label {
  margin-bottom: 4px;
  font-size: 0.8125rem;
}

#passenger-container .input-group-text {
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.875rem;
}

#passenger-container .form-control {
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 0.875rem;
}

#passenger-container textarea.form-control {
  min-height: 82px;
}

.help-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--theme-radius);
  background: var(--theme-blue-tint);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Review (quote) page */
.review-section-title {
  margin: 4px 0 12px;
  font-size: 0.9375rem;
  font-weight: 700;
}

#booking .form-floating > .form-control {
  height: 52px;
  min-height: 52px;
  padding: 18px 12px 4px;
}

#booking .form-floating > label {
  padding: 14px 12px;
  font-size: 0.875rem;
}

#booking .input-group-lg > .form-control,
#booking .input-group-lg > .input-group-text,
#booking .input-group-lg > .form-floating > .form-control {
  font-size: 0.9375rem;
}

#vehicle-type .list-group-item {
  padding: 12px !important;
  border-radius: var(--theme-radius-sm);
}

#vehicle-type img {
  height: 90px !important;
  object-fit: contain;
}

#vehicle-type .lead {
  font-size: 1rem;
  font-weight: 700;
}

#booking .summary-fare .fs-4 {
  font-size: 1.375rem !important;
}

#booking .summary-fare .fs-5 {
  font-size: 1.125rem !important;
}

/* Confirmation / failure pages */
.result-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px;
}

.result-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--theme-blue);
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 0 0 6px var(--theme-blue-tint);
}

.result-icon-error {
  background: var(--theme-error);
  box-shadow: 0 0 0 6px #FDECEE;
}

.result-badge {
  margin-bottom: 12px;
  padding: 3px 12px;
  border: 1px solid #B9CEFB;
  border-radius: 999px;
  background: var(--theme-blue-tint);
  color: var(--theme-blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

.result-badge-error {
  border-color: #F5C2C7;
  background: #FDECEE;
  color: var(--theme-error);
}

.result-title {
  margin-bottom: 6px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.result-lead {
  max-width: 560px;
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.9375rem;
}

.result-next {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border-radius: var(--theme-radius);
  background: var(--theme-blue-tint);
}

.result-next-icon {
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid #C9D8F6;
  color: var(--theme-navy);
  font-size: 1.5rem;
}

.result-next-title {
  margin-bottom: 2px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.result-next-text {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.875rem;
}

.result-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--theme-border);
}

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

.result-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--theme-radius);
  background: #F7F9FC;
  color: inherit;
  text-decoration: none;
}

.result-info-link:hover {
  background: var(--theme-blue-tint);
  color: inherit;
}

.result-info-icon,
.result-help-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-blue-tint);
  color: var(--theme-navy);
  font-size: 1.1rem;
}

.result-info-title {
  margin-bottom: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.result-info-text {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

.result-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.result-help {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-help-icon {
  color: var(--theme-blue);
}

.result-help-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-navy);
}

.result-help-phone {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--theme-blue);
  text-decoration: none;
}

.result-footer .btn {
  min-width: 220px;
}

.result-note {
  margin: 16px 0 0;
  text-align: center;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

/* Confirm button states on the review page */
.confirm-hint {
  margin: 8px 0 0;
  text-align: center;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

.confirm-hint.is-error {
  color: var(--theme-error);
}

/* Responsive */
@media (max-width: 991px) {
  .booker .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .booker-head {
    flex-direction: column;
  }

  .booker-title {
    font-size: 2.375rem;
  }

  .booker-subtitle {
    font-size: 1rem;
  }

  .booker-steps {
    align-self: stretch;
    justify-content: space-between;
  }

  .booker-step {
    width: 33%;
  }

  .booking-split {
    border-radius: var(--theme-radius);
  }

  .map-card {
    border-left: 0 !important;
    border-top: 1px solid var(--theme-border) !important;
  }

  .map-card {
    position: relative;
    min-height: 0;
    height: 340px;
  }

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

  .summary-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .booker {
    padding-top: 20px;
  }

  .booker .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .booker-title {
    font-size: 2rem;
  }

  .booker-subtitle {
    font-size: 0.9375rem;
  }

  .booker-step {
    font-size: 0.8125rem;
  }

  .booker-step-dot {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    font-size: 1rem;
  }

  .booker-step + .booker-step::before {
    top: 18px;
    right: calc(50% + 26px);
    width: calc(100% - 52px);
  }

  .booker-card {
    padding: 16px;
  }

  .journey-card {
    padding: 14px 12px;
  }

  .field-label {
    font-size: 0.875rem;
  }

  .jp-panel-head,
  .jp-panel-body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .jp-route {
    gap: 8px;
  }

  .jp-swap {
    width: 36px;
    height: 36px;
  }

  .jp-schedule {
    gap: 10px;
  }

  .jp-picker {
    gap: 8px;
    padding: 0 10px;
  }

  .nav-help-text,
  .nav-whatsapp-label,
  .nav-phone .bi {
    display: none;
  }

  .nav-help {
    gap: 2px;
  }

  .nav-phone {
    padding: 6px;
    font-size: 0.8125rem;
  }

  .nav-divider {
    margin: 0 4px;
  }

  .map-card {
    height: 320px;
  }

  .map-glance {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px 12px;
  }

  .map-chip {
    top: 8px;
    left: 8px;
    padding: 10px 12px;
  }

  .counters {
    grid-template-columns: 1fr;
  }

  .counter + .counter {
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid var(--theme-border);
  }

  .stepper-btn {
    width: 34px;
    min-height: 34px;
  }

  .stepper-input {
    width: 42px;
    height: 34px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-card {
    padding: 12px;
  }

  .vehicle-image-stage {
    height: 76px;
  }

  .vehicle-card img {
    max-height: 66px;
  }

  #passenger-container .input-group-text,
  #passenger-container .form-control {
    min-height: 40px;
  }

  .result-card {
    padding: 20px 16px;
  }

  .result-title {
    font-size: 1.5rem;
  }

  .result-info,
  .result-info-2 {
    grid-template-columns: 1fr;
  }

  .result-footer .btn {
    width: 100%;
  }
}

/* Review and confirm page (quote.ejs) */
.review .booker-head {
  margin-bottom: 20px;
}

.rv-details .btn-back {
  margin-bottom: 8px;
}

.rv-section-title {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.rv-section-title + .rv-fields + .rv-section-title,
.rv-fields + .rv-section-title {
  padding-top: 18px;
  border-top: 1px solid var(--theme-border);
}

.rv-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rv-field {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-page);
}

.rv-field-wide {
  grid-column: 1 / -1;
}

.rv-field > .bi {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border-right: 1px solid var(--theme-border);
  color: var(--theme-muted);
  font-size: 1.0625rem;
}

.rv-field > div {
  min-width: 0;
  padding: 7px 12px;
}

.rv-icon-pickup,
.rv-icon-dropoff {
  color: var(--theme-blue) !important;
}

.rv-label {
  display: block;
  color: var(--theme-muted);
  font-size: 0.75rem;
}

.rv-value {
  display: block;
  color: var(--theme-navy);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.rv-value-text {
  white-space: pre-line;
}

.rv-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rv-summary .booker-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.rv-vehicle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--theme-radius);
  background: var(--theme-blue-tint);
}

.rv-vehicle-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 42%;
  height: 84px;
}

.rv-vehicle-stage img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.rv-vehicle-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rv-vehicle-name {
  margin: 0;
  color: var(--theme-navy);
  font-size: 1.125rem;
  font-weight: 700;
}

.rv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--theme-navy);
  font-size: 0.8125rem;
  font-weight: 600;
}

.rv-chip-accent {
  background: rgba(22, 168, 211, 0.14);
  color: #0b6f8f;
}

.rv-chip-plain {
  padding: 2px 8px;
  background: transparent;
  color: var(--theme-muted);
  font-weight: 500;
}

.rv-leg {
  padding: 12px 14px;
  border-radius: var(--theme-radius);
  background: var(--theme-blue-tint);
}

.rv-leg-return {
  background: #eef2f6;
}

.rv-leg-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv-leg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--theme-blue);
  color: #fff;
  font-size: 1.0625rem;
}

.rv-leg-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.rv-leg-when {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

.rv-leg-route {
  margin: 10px 0 0;
  color: var(--theme-navy);
  font-weight: 700;
}

.rv-leg-route .bi {
  margin: 0 4px;
  font-size: 0.875rem;
}

.rv-leg-via {
  margin: 2px 0 0;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

.rv-leg-stats {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 10px;
}

.rv-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-stat > .bi {
  color: var(--theme-navy);
  font-size: 1.125rem;
}

.rv-stat-value {
  display: block;
  color: var(--theme-navy);
  font-weight: 600;
  white-space: nowrap;
}

.rv-leg-fare {
  margin-left: auto;
  padding-left: 16px;
  border-left: 1px solid var(--theme-border);
  text-align: right;
}

.rv-leg-fare strong {
  display: block;
  color: var(--theme-navy);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.rv-leg-fare strong.is-loading {
  color: var(--theme-muted);
  font-size: 0.875rem;
  font-weight: 500;
  animation: rv-pulse 1.2s ease-in-out infinite;
}

.rv-leg-fare strong.is-error {
  color: var(--theme-error);
  font-size: 0.875rem;
}

@keyframes rv-pulse {
  50% { opacity: 0.45; }
}

.rv-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--theme-radius);
  background: var(--theme-navy);
  color: #fff;
}

.rv-total-label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
}

.rv-total-sub {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
}

.rv-total-value {
  font-size: 1.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.rv-disclaimer,
.rv-subject {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.75rem;
}

.rv-subject {
  margin-top: -4px;
  text-align: center;
  font-size: 0.8125rem;
}

.rv-summary .confirm-hint {
  margin: -4px 0 0;
}

.rv-sticky {
  display: none;
}

@media (max-width: 991px) {
  .rv-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--theme-border);
    background: #fff;
    box-shadow: 0 -6px 20px rgba(8, 43, 69, 0.08);
  }

  .rv-sticky-label {
    display: block;
    color: var(--theme-muted);
    font-size: 0.75rem;
  }

  .rv-sticky-total {
    color: var(--theme-navy);
    font-size: 1.25rem;
  }

  .rv-sticky-note {
    display: block;
    color: var(--theme-muted);
    font-size: 0.6875rem;
  }

  /* The bottom bar is the only send button on phones */
  .rv-summary .js-confirm,
  .rv-summary .rv-subject {
    display: none;
  }

}

@media (max-width: 575px) {
  .rv-fields {
    grid-template-columns: 1fr;
  }

  .rv-leg-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .rv-leg-fare {
    flex-basis: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid var(--theme-border);
  }

  .rv-vehicle-stage {
    flex-basis: 38%;
    height: 70px;
  }

  .rv-total-value {
    font-size: 1.5rem;
  }
}

/* Address field badges on the booking page: A pickup, B drop-off, 1/2 stops (same colours as the map pins) */
.route-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--theme-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.route-badge-dropoff {
  background: var(--theme-navy);
}

.route-badge-stop {
  background: #8a99ab;
}

/* Clear (x) inside the pickup / drop-off boxes; only shown once the box has text */
.jp-clear {
  flex: 0 0 36px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

.jp-clear:hover,
.jp-clear:focus {
  background: var(--theme-page);
  color: var(--theme-navy);
}

.jp-fields input:placeholder-shown + .jp-clear {
  display: none;
}

/* ---------- Mobile fixes and polish ---------- */
.booker {
  overflow-x: clip;
}

/* Step 2 summary: long addresses end in "..." instead of widening the page */
.summary-row .flex-grow-1,
.summary-split > div,
.summary-split .d-flex > div {
  min-width: 0;
}

input.summary-value {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-distance {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.summary-leg {
  flex: 0 0 auto;
  color: var(--theme-muted);
  font-size: 0.75rem;
}

/* Address suggestions stay inside the screen and wrap */
.ui-menu {
  max-width: calc(100vw - 24px);
}

.ui-menu .ui-menu-item-wrapper {
  white-space: normal;
}

/* Bottom bar with the current step's button (phones and tablets) */
.mobile-bar {
  display: none;
}

@media (max-width: 991px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--theme-border);
    background: #fff;
    box-shadow: 0 -6px 20px rgba(8, 43, 69, 0.08);
  }

  .mobile-bar-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--theme-navy);
    font-size: 0.875rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bar .btn {
    margin-left: auto;
    white-space: nowrap;
  }

  .mobile-bar .btn:only-child,
  .mobile-bar-info.d-none + .btn {
    width: 100%;
  }

  /* Room under the footer so the fixed bottom bar never covers it */
  .has-mobile-bar ~ .booker-footer,
  .review ~ .booker-footer {
    padding-bottom: 90px;
  }

  /* Map: only once both addresses are set, short */
  .map-card:not(.has-route) {
    display: none;
  }

  .map-card {
    height: 260px;
  }

  .has-route .map-glance-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-glance > div {
    min-width: 0;
  }

  /* The bottom bar replaces the in-card buttons */
  .has-mobile-bar #next-vehicle,
  .has-mobile-bar #next-passenger,
  .has-mobile-bar #passenger-container button[type="submit"] {
    display: none;
  }
}

@media (max-width: 767px) {
  /* Compact page head */
  .booker-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .booker-title {
    font-size: 1.5rem;
  }

  .booker-subtitle {
    margin: 0;
    font-size: 0.8125rem;
  }

  .booker-step {
    font-size: 0.75rem;
  }

  .booker-step-dot {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    font-size: 0.8125rem;
  }

  .booker-step + .booker-step::before {
    top: 14px;
    right: calc(50% + 20px);
    width: calc(100% - 40px);
  }

  /* Passengers / suitcases / hand luggage in one row */
  .counters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }

  .counter-icon {
    display: none;
  }

  .counter + .counter {
    padding-top: 0;
    padding-left: 6px;
    border-top: 0;
    border-left: 1px solid var(--theme-border);
  }

  .counter-label {
    margin-bottom: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .stepper-btn {
    width: 28px;
    min-height: 30px;
  }

  .stepper-input {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 575px) {
  /* Car list: compact rows (picture, name + capacity, price) */
  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vehicle-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    grid-template-areas:
      "img badge price"
      "img name price"
      "img cap price"
      "img short price";
    align-content: center;
    align-items: center;
    column-gap: 12px;
    padding: 10px 36px 10px 10px;
  }

  .vehicle-image-stage {
    grid-area: img;
    height: 52px;
    margin: 0;
  }

  .vehicle-card img {
    max-width: 100% !important;
    max-height: 48px !important;
  }

  .vehicle-badge {
    position: static;
    grid-area: badge;
    justify-self: start;
    margin-bottom: 3px;
  }

  .vehicle-name {
    grid-area: name;
    margin: 0;
  }

  .vehicle-capacity {
    grid-area: cap;
    margin: 2px 0 0;
  }

  .vehicle-shortfall {
    grid-area: short;
    margin: 2px 0 0;
  }

  .vehicle-price {
    grid-area: price;
    white-space: nowrap;
  }

  .vehicle-check {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }
}

/* ---------- Back button (top left) and tappable steps ---------- */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--theme-blue);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.page-back:hover,
.page-back:focus {
  color: var(--theme-blue-hover);
}

.booker-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.booker-step-btn:disabled {
  cursor: default;
}

.booker-step-btn:not(:disabled):hover,
.booker-step-btn:not(:disabled):focus-visible {
  color: var(--theme-blue);
}

.booker-step-btn:not(:disabled):hover .booker-step-dot,
.booker-step-btn:not(:disabled):focus-visible .booker-step-dot {
  box-shadow: 0 0 0 4px var(--theme-ring);
}

/* Optional email: message under the box when it's filled in wrongly */
.field-error {
  margin-top: 5px;
  color: var(--theme-error);
  font-size: 0.8125rem;
}

.input-group.is-invalid {
  border-radius: var(--theme-radius-sm);
  box-shadow: 0 0 0 1px var(--theme-error);
}

.input-group.is-invalid .input-group-text,
.input-group.is-invalid .form-control {
  border-color: var(--theme-error) !important;
}

/* ---------- Steps 2 and 3: summary card (same look as the review page) ---------- */
.trip-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rv-leg-head .rv-edit {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--theme-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.rv-leg-head .rv-edit:hover,
.rv-leg-head .rv-edit:focus-visible {
  color: var(--theme-blue-hover);
  text-decoration: underline;
}

.rv-vehicle-empty {
  color: #9db3c4;
  font-size: 2.5rem;
}

/* ---------- Step 3 contact boxes: same look as step 1 ---------- */
#passenger-container .input-group {
  flex-wrap: nowrap;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#passenger-container .input-group:focus-within {
  border-color: rgba(22, 168, 211, 0.72);
  box-shadow: 0 0 0 3px var(--theme-ring);
}

#passenger-container .input-group-text {
  justify-content: center;
  width: 42px;
  padding: 0;
  border: 0 !important;
  border-right: 1px solid #e3eaf1 !important;
  border-radius: 8px 0 0 8px;
  background: transparent;
  color: var(--theme-muted);
}

#passenger-container .input-group > .form-control {
  min-height: 40px;
  border: 0 !important;
  border-radius: 0 8px 8px 0;
  background: transparent;
  box-shadow: none;
}

#passenger-container textarea.form-control {
  border: 1px solid var(--theme-border);
  border-radius: 8px;
}

#passenger-container textarea.form-control:focus {
  border-color: rgba(22, 168, 211, 0.72);
  box-shadow: 0 0 0 3px var(--theme-ring);
}

#passenger-container .input-group.is-invalid {
  border-color: var(--theme-error);
  box-shadow: 0 0 0 1px var(--theme-error);
}

/* Full-screen map: clear "Close map" button (top left) */
.map-close {
  display: none;
}

.map-card.is-fullscreen .map-close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(8, 43, 69, 0.25);
}

.map-card.is-fullscreen .map-close:hover,
.map-card.is-fullscreen .map-close:focus-visible {
  background: var(--theme-blue);
}

/* The "Your route" label moves aside for the close button */
.map-card.is-fullscreen .map-chip {
  top: 68px;
}
