/* ── Booking page layout (buchen.html) ── */

/* ── Inline back link (steps 2+) ── */
.booking-back-step {
  display: none;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.15s ease;
}
.booking-back-step:hover {
  color: var(--dark, #0f172a);
}
.booking-back-step.is-visible {
  display: inline-flex;
}

/* ── Progress header (headline + chip) ── */
.booking-progress-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ── Step badge ── */
.booking-step-chip {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background: var(--gray-light, #f8fafc);
  border: 1.5px solid var(--gray-border-alt, #e2e8f0);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-label);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-top: 0.25rem;
}

/* ── Progress track + fill ── */
.booking-progress-track {
  width: 100%;
  height: 2px;
  background: var(--gray-border-alt, #e2e8f0);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.booking-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background: var(--dark, #0f172a);
  transform-origin: left;
  transform: scaleX(0.25);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dynamic step headline ── */
.booking-step-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark, #0f172a);
  line-height: 1.2;
  margin: 0;
}
.booking-step-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-label);
  margin: 0.375rem 0 0;
  line-height: 1.4;
}

/* ── Step visibility + transition ── */
.booking-step {
  display: none;
}
.booking-step.is-active {
  display: block;
  animation: stepFadeIn 0.3s ease both;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .booking-step.is-active { animation: none; }
  .booking-progress-fill { transition: none; }
}

/* ── Inline brand icon in input ── */
.input-with-icon {
  position: relative;
}
.input-with-icon .el-input {
  transition: padding-left 0.15s ease;
}
.input-with-icon.has-icon .el-input {
  padding-left: 2.75rem;
}
.input-brand-icon {
  position: absolute;
  left: 0.75rem;
  /* .el-input has margin-top:0.5rem — offset by half to stay centered on the input */
  top: calc(50% + 0.25rem);
  transform: translateY(-50%) scale(0.85);
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.input-brand-icon.is-loaded {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ── Car model suggestion dropdown ── */
.car-model-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--gray-border-alt);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: 220px;
}
/* Shorter dropdown when soft keyboard is likely open (landscape / small height) */
@media (max-height: 500px) {
  .car-model-dropdown { max-height: 140px; }
}
.car-model-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.875rem;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-hover);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.car-model-item:last-child {
  border-bottom: none;
}
@media (hover: hover) {
  .car-model-item:hover {
    background: var(--gray-light);
  }
}
.car-model-item:active,
.car-model-item.is-active {
  background: var(--gray-light);
}

/* ── Staggered field entry for Step 3 ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes stepFieldEntry {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .booking-step[data-booking-step="3"].is-active > * {
    animation: stepFieldEntry 0.3s ease both;
  }
  .booking-step[data-booking-step="3"].is-active > :nth-child(1) { animation-delay: 0s; }
  .booking-step[data-booking-step="3"].is-active > :nth-child(2) { animation-delay: 0.05s; }
  .booking-step[data-booking-step="3"].is-active > :nth-child(3) { animation-delay: 0.1s; }
}

@media (prefers-reduced-motion: reduce) {
  .input-brand-icon { transition: none; }
  .booking-step[data-booking-step="3"].is-active > * { animation: none; }
}

/* ── Time cards — minimal ── */
.booking-time-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 1px solid var(--gray-border-alt);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
@media (hover: hover) {
  .booking-time-card:hover {
    border-color: var(--border-soft);
  }
}
.booking-time-card.has-value {
  border-color: var(--dark);
}
.booking-time-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
}
.booking-time-card-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 0.1rem;
}
.booking-time-card:not(.has-value) .booking-time-card-value {
  color: var(--text-tertiary);
  font-weight: 500;
}
.booking-time-card-chevron {
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.booking-time-card.is-panel-active .booking-time-card-chevron {
  transform: rotate(180deg);
}
.booking-time-card.is-panel-active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

/* ── Time sheet (slot picker) ── */
.booking-time-sheet {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.25s ease, opacity 0.2s ease;
}
.booking-time-sheet > .booking-time-sheet-content {
  overflow: hidden;
}
.booking-time-sheet.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.booking-time-sheet-content {
  border: 1px solid var(--gray-border-alt);
  border-radius: 0 0 12px 12px;
  border-top: none;
  padding: 0.25rem 1rem 0.5rem;
  background: var(--gray-light);
}
.booking-time-sheet.has-value > .booking-time-sheet-content {
  border-color: var(--dark);
}
.booking-time-sheet-grid {
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
}
.booking-slot {
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--gray-border-alt);
  border-radius: 0;
  padding: 0.85rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}
.booking-slot:last-child {
  border-bottom: none;
}
@media (hover: hover) {
  .booking-slot:hover {
    background: rgba(0, 0, 0, 0.04);
  }
}
.booking-slot.is-selected {
  font-weight: 700;
  background: rgba(0, 0, 0, 0.04);
}

/* ── Date sheet (date picker panel) ── */
.booking-date-sheet {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.25s ease, opacity 0.2s ease;
}
.booking-date-sheet > .booking-date-sheet-content {
  overflow: hidden;
}
.booking-date-sheet.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.booking-date-sheet-content {
  border: 1px solid var(--gray-border-alt);
  border-radius: 0 0 12px 12px;
  border-top: none;
  padding: 1rem 1.25rem;
  background: var(--gray-light);
}
.booking-date-sheet.has-value > .booking-date-sheet-content {
  border-color: var(--dark);
}

/* ── Calendar month grid ── */
.booking-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.booking-cal-month {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
}
.booking-cal-nav {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--dark);
  transition: background 0.15s ease;
}
@media (hover: hover) {
  .booking-cal-nav:hover {
    background: var(--gray-hover);
  }
}
.booking-cal-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.booking-cal-nav:disabled:hover {
  background: transparent;
}
.booking-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}
.booking-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
  margin-top: 0.25rem;
  justify-items: center;
}
.booking-cal-day {
  position: relative;
  width: 100%;
  max-width: 2.75rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}
@media (hover: hover) {
  .booking-cal-day:not(:disabled):hover {
    background: var(--gray-hover);
  }
}
.booking-cal-day.is-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
}
.booking-cal-day.is-selected {
  border: 2px solid var(--dark);
  font-weight: 700;
}
.booking-cal-day.is-selected.is-today::after {
  background: var(--dark);
}
.booking-cal-day:disabled {
  color: var(--text-tertiary);
  opacity: 0.35;
  cursor: not-allowed;
}
.booking-cal-day--empty {
  visibility: hidden;
  pointer-events: none;
}

/* ── Dual-month desktop layout ── */
.booking-cal-panels {
  display: flex;
  flex-direction: column;
}
.booking-cal-panel--next {
  display: none;
}
#bookingCalNext {
  display: none;
}
@media (min-width: 540px) {
  .booking-date-sheet-content {
    padding: 1.25rem 1.5rem;
  }
  .booking-cal-panels {
    flex-direction: row;
    gap: 1.5rem;
  }
  .booking-cal-panel {
    flex: 1;
    min-width: 0;
  }
  .booking-cal-panel--next {
    display: block;
  }
  /* On desktop: hide right arrow on left panel, show right arrow on right panel */
  #bookingCalNextMobile {
    display: none;
  }
  #bookingCalNext {
    display: flex;
  }
}


/* ── Navigation buttons ── */
.booking-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.booking-next-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem;
  border-radius: 12px;
  border: none;
  background: var(--dark);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}
.booking-next-btn:hover {
  background: var(--dark-hover);
}
.booking-next-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* ── Hide back-to-homepage link on mobile ── */
.booking-back-home {
  display: none;
}
@media (min-width: 640px) {
  .booking-back-home {
    display: inline-flex;
  }
}

/* ── Form messages ── */
.form-message { margin-top: 0.75rem; font-size: 0.875rem; color: var(--dark); }
.form-message.error { color: var(--color-error-dark); }
.form-message.success { color: var(--color-success); }
.form-message.info {
  color: var(--color-info-dark);
  background: rgba(59, 130, 246, 0.06);
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

/* ── Auth tab (shared) ── */
.auth-tab.active { border-color: var(--dark); color: var(--dark); background: var(--gray-light); }

/* ── Booking Summary V2 ── */
.booking-summary-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bsv2-section--highlight {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px 16px 0 0;
  padding: 1.5rem;
  color: #fff;
}
.bsv2-date-block {
  margin-bottom: 1rem;
}
.bsv2-date {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}
.bsv2-time-strip {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.1rem;
  backdrop-filter: blur(8px);
}
.bsv2-time-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  gap: 0.2rem;
}
.bsv2-time-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}
.bsv2-time-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.bsv2-time-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
}

/* Details section */
.bsv2-section--details {
  background: var(--bg-card);
  border: 1px solid var(--gray-border-alt);
  border-top: none;
  border-radius: 0;
  border-bottom: none;
  padding: 0.25rem 0;
}
.bsv2-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
}
.bsv2-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}

/* ── Check badge on detail row icons ── */
.bsv2-check-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #16a34a;
  border: 1.5px solid var(--bg-card, #fff);
}
.bsv2-check-badge svg {
  width: 7px;
  height: 7px;
  color: #fff;
}
.bsv2-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.bsv2-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.bsv2-primary {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}
.bsv2-secondary {
  font-size: 0.825rem;
  color: var(--text-label);
  line-height: 1.4;
}
.bsv2-text {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.4;
}
.bsv2-divider {
  height: 1px;
  background: var(--gray-hover);
  margin: 0 1.25rem;
}

/* ── Access notice ── */
.booking-access-notice {
  display: none;
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.35;
}
.booking-access-notice.is-visible { display: block; }

/* ── Hero CTA card (index page) ── */
.hero-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(14, 165, 233, 0.18) 0%, rgba(2, 6, 23, 0.55) 50%, rgba(2, 6, 23, 0.95) 100%),
    linear-gradient(165deg, #0b1222 0%, #0a0f1f 55%, #070b16 100%);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.35);
}
.hero-cta-card::before {
  content: "";
  position: absolute;
  inset: -50% -30% auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.22) 0%, rgba(148, 163, 184, 0.0) 70%);
  opacity: 0.7;
  pointer-events: none;
}
.hero-cta-card::after {
  content: "";
  position: absolute;
  inset: auto auto -70% -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.0) 70%);
  opacity: 0.6;
  pointer-events: none;
}
.hero-cta-title { position: relative; z-index: 1; }
.hero-cta-button {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--bg) 0%, var(--gray-border-alt) 100%);
  color: #0b1222;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.28), 0 0 0 6px rgba(148, 163, 184, 0.08);
  letter-spacing: 0.01em;
}
.hero-cta-button:hover { filter: brightness(0.98); transform: translateY(-1px); }
.hero-primary-cta {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.hero-primary-cta:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.hero-cta-panel {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}
.hero-cta-check {
  background: transparent;
  color: #ffffff;
  border: none;
  box-shadow: none;
}

/* ── Priority modal ── */
.priority-modal-backdrop { display: none; }
.priority-modal-backdrop.is-open { display: flex; }

/* ── Responsive 5-step progress on narrow screens ── */
@media (max-width: 374px) {
  .booking-step-chip {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
}

/* ── Interactive Map (Step 2: Abholort) ── */
.booking-map-wrapper {
  margin-top: 0.5rem;
}
.booking-map {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  border: 1px solid var(--gray-border-alt);
  overflow: hidden;
  background: var(--gray-light);
}
@media (min-width: 640px) {
  .booking-map {
    height: 280px;
  }
}
.booking-map-hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ── Map Autocomplete ── */
.map-autocomplete-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--gray-border-alt);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 50;
  overflow: hidden;
}
.map-autocomplete-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-hover);
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
  line-height: 1.4;
}
.map-autocomplete-item:last-child {
  border-bottom: none;
}
.map-autocomplete-item:hover,
.map-autocomplete-item.is-active {
  background: var(--gray-light);
}

/* ── Geolocation Button ── */
.booking-map-locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--gray-border-alt);
  border-radius: 10px;
  background: var(--bg-card);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
  line-height: 1;
}
@media (hover: hover) {
  .booking-map-locate-btn:hover {
    border-color: var(--border-soft);
    background: var(--gray-light);
  }
}
.booking-map-locate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.booking-map-locate-btn svg {
  flex-shrink: 0;
}

/* ── Map Marker ── */
.map-marker svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* ── MapLibre Control Overrides ── */
.booking-map .maplibregl-ctrl-group {
  border-radius: 10px;
  border: 1px solid var(--gray-border-alt);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.booking-map .maplibregl-ctrl-group button {
  width: 32px;
  height: 32px;
}
.booking-map .maplibregl-ctrl-attrib {
  font-size: 0.625rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}

details > summary::-webkit-details-marker { display: none; }

/* ── Card / label invalid states ── */
.booking-time-card.is-invalid {
  border-color: var(--color-error);
  background: var(--color-error-bg-light);
}
.consent-label.is-invalid {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ── Inline field validation ── */
.el-input.is-invalid {
  border-color: var(--color-error);
  background: var(--color-error-bg-light);
}
.el-input.is-invalid:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.el-input.is-valid {
  border-color: var(--color-success);
}
.el-input.is-valid:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.field-hint {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-error);
}
.field-hint.is-visible {
  display: block;
}

/* ── Return card grayed out state ── */
#bookingReturnCardWrapper.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
#bookingReturnCardWrapper .booking-return-hint {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
  padding-left: 0.25rem;
}

/* ── Trust bar ── */
.booking-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem 0 1.25rem;
  margin-bottom: 0;
}
.booking-trust-bar.is-hidden {
  display: none;
}
.booking-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  background: var(--gray-hover);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.booking-trust-item svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.booking-trust-sep {
  display: none;
}

/* ── Login prompt (positive framing) ── */
.form-message.login-prompt {
  color: var(--dark);
  background: rgba(15, 23, 42, 0.04);
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-weight: 500;
}

/* ── Waitlist success screen ── */
.booking-step[data-booking-step="waitlist"] .waitlist-success-icon {
  margin: 0 auto 1rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
}
.booking-step[data-booking-step="waitlist"] .waitlist-success-icon svg {
  color: #fff;
}

/* ── Summary edit buttons (pencil icon) ── */
.bsv2-edit-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}
@media (hover: hover) {
  .bsv2-edit-btn:hover {
    background: var(--gray-hover);
    color: var(--dark);
  }
}
.bsv2-section--highlight .bsv2-edit-btn {
  color: rgba(255, 255, 255, 0.5);
}
@media (hover: hover) {
  .bsv2-section--highlight .bsv2-edit-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
}
.bsv2-row {
  position: relative;
}
.bsv2-date-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* ── Pricing section (integrated into receipt card) ── */
.bsv2-section--pricing {
  background: var(--gray-light);
  border: 1px solid var(--gray-border-alt);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 0.875rem 1.25rem;
}
.bsv2-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.825rem;
  color: var(--text-body);
  line-height: 1.6;
}
.bsv2-pricing-row + .bsv2-pricing-row {
  margin-top: 0.15rem;
}
.bsv2-pricing-row span:last-child {
  font-weight: 600;
  color: var(--dark);
}
.bsv2-trust-line {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── Action zone (consent + trust micro + CTA) ── */
.booking-action-zone {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.25rem;
}
.booking-trust-micro {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.booking-trust-micro span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.booking-trust-micro svg {
  flex-shrink: 0;
}

/* ── Sticky CTA on mobile ── */
@media (max-width: 639px) {
  .booking-nav.is-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--bg-card, #fff);
    border-top: 1px solid var(--gray-border-alt);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
  body.has-sticky-nav .booking-step[data-booking-step="5"] {
    padding-bottom: 5rem;
  }
}

/* ── Staggered entry animation for summary ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes summaryFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .booking-step[data-booking-step="5"].is-active .bsv2-section--highlight {
    animation: summaryFadeIn 0.35s ease both;
    animation-delay: 0s;
  }
  .booking-step[data-booking-step="5"].is-active .bsv2-section--details {
    animation: summaryFadeIn 0.35s ease both;
    animation-delay: 0.05s;
  }
  .booking-step[data-booking-step="5"].is-active .bsv2-section--pricing {
    animation: summaryFadeIn 0.35s ease both;
    animation-delay: 0.1s;
  }
  .booking-step[data-booking-step="5"].is-active .booking-action-zone {
    animation: summaryFadeIn 0.35s ease both;
    animation-delay: 0.15s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .booking-step[data-booking-step="5"].is-active .bsv2-section--highlight,
  .booking-step[data-booking-step="5"].is-active .bsv2-section--details,
  .booking-step[data-booking-step="5"].is-active .bsv2-section--pricing,
  .booking-step[data-booking-step="5"].is-active .booking-action-zone {
    animation: none;
  }
}

/* ── Focus-visible for interactive booking elements (accessibility) ── */
.booking-time-card:focus-visible,
.booking-slot:focus-visible,
.booking-cal-day:focus-visible,
.booking-cal-nav:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}
.booking-next-btn:focus-visible,
.booking-submit-btn:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}
