﻿/* Customer booking site: minimal, monochrome, full-bleed. AVIS red is used only for primary actions. */

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 1001;
  padding: 10px 16px;
  background: var(--strong);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Top bar: transparent over the hero, solid once scrolled ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

body.is-scrolled .topbar {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--red);
  line-height: 1;
}

.brand-logo.small {
  font-size: 16px;
}

.brand-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.progress {
  flex: 1;
  height: 2px;
  background: var(--line-strong);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.5s var(--ease);
}

.progress-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  min-width: 36px;
  text-align: end;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lang {
  display: inline-flex;
  gap: 4px;
  flex: none;
}

.lang button {
  border: 0;
  background: transparent;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang button:hover {
  color: var(--ink);
}

.lang button[aria-pressed='true'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- Hero: full-width stage with the headline and two actions ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  margin-top: -64px;
  padding-top: 64px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 auto;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.hero-badges {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.hero-badges li::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
}

.hero-stage {
  position: relative;
  z-index: 0;
  margin: 40px auto 0;
  max-width: 1000px;
  padding: 0 32px;
}

.hero-stage svg {
  width: 100%;
  height: auto;
}

/* ---------- Layout ---------- */

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  padding: 16px 20px;
  margin: 40px 0 0;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.notice-closed {
  background: var(--warning-soft);
  color: var(--warning);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.steps {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.summary {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 36px 32px;
}

.card:first-child {
  border-top: 0;
  padding-top: 0;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: 96px;
}

.step-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.step-head h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.step-num {
  flex: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease);
}

.step.is-done .step-num {
  color: var(--success);
}

/* ---------- Vehicle selection ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  border-bottom: 1px solid var(--line);
}

.chip {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip:hover {
  color: var(--ink);
}

.chip[aria-pressed='true'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.vehicle {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: start;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.vehicle:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.vehicle.is-selected {
  box-shadow: inset 0 0 0 2px var(--ink);
}

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

.vehicle-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 16px;
}

.vehicle-media svg {
  width: 92%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

/* Photos are full scenes, so they fill the frame and crop to the card's shape. */
.vehicle-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.vehicle:hover:not(:disabled) .vehicle-media img {
  transform: scale(1.03);
}

.vehicle:hover:not(:disabled) .vehicle-media svg {
  transform: scale(1.03);
}

.vehicle-flag {
  z-index: 1;
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  padding: 4px 8px;
  background: var(--strong);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vehicle-check {
  z-index: 1;
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.vehicle.is-selected .vehicle-check {
  background: var(--strong);
  box-shadow: none;
  color: #fff;
}

.vehicle-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.vehicle-cat {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.vehicle h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.specs {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 14px;
  color: var(--muted);
}

.specs li {
  display: inline-flex;
  align-items: center;
}

.price {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.price strong {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border-radius: var(--radius);
}

/* ---------- Option cards (protection, mileage, delivery, payment) ---------- */

/* The radio inside each card is hidden, so the card shows the focus ring instead. */
.option:focus-within,
.pay-option:focus-within {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* Vehicle cards clip their contents, so their focus ring sits inside the card. */
.vehicle:focus-visible {
  outline-offset: -4px;
}

.option-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-group legend {
  padding: 0;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.option-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option,
.pay-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.option:hover,
.pay-option:hover {
  background: var(--bg);
}

.option.is-selected,
.pay-option.is-selected {
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.option input,
.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-title {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.option-desc {
  font-size: 14px;
  color: var(--muted);
}

.option-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.option-price.is-paid {
  color: var(--ink);
}

.option-radio {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  background: var(--surface);
}

.option.is-selected .option-radio {
  background: var(--strong);
  box-shadow: inset 0 0 0 5px var(--surface);
}

.address-field {
  margin-top: 8px;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.pay-option {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.pay-brand {
  min-width: 56px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  flex: none;
}

.pay-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pay-text strong {
  font-size: 15px;
  font-weight: 500;
}

.pay-text span {
  font-size: 13px;
  color: var(--muted);
}

.terms {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- ID lookup ---------- */

.id-input-wrap {
  position: relative;
}

.id-input-wrap .input {
  padding-inline-end: 48px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.id-status {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.id-status.is-checking .spinner {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.id-status.is-found::after {
  content: '';
  width: 20px;
  height: 20px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23171a20'/%3E%3Cpath d='M7 12.5l3.2 3.1L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#id-message.is-found {
  color: var(--ink);
  font-weight: 500;
}

#id-message.is-new {
  color: var(--info);
}

/* ---------- Summary ---------- */

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius);
}

.summary-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.summary-vehicle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  min-height: 72px;
}

.summary-vehicle .thumb {
  width: 80px;
  height: 50px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-vehicle .thumb svg,
.summary-vehicle .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-vehicle strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.summary-vehicle span {
  font-size: 14px;
  color: var(--muted);
}

.summary-vehicle.is-empty {
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
}

.summary-dates {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-dates div {
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.summary-dates dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.summary-dates dd {
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checklist .dot {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  background: var(--surface);
  transition: background 0.2s var(--ease);
}

.checklist li.is-done {
  color: var(--ink);
}

.checklist li.is-done .dot {
  background: var(--strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") no-repeat center / 10px;
  box-shadow: none;
}

.totals {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals dt {
  color: var(--muted);
}

.totals dd {
  margin: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.totals .is-free {
  color: var(--success);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--strong);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}

.summary-total strong {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.summary-total small {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.7;
}

.btn-lg {
  min-height: 56px;
  font-size: 16px;
}

.fine-print {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.help-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.help-card div {
  display: flex;
  flex-direction: column;
}

.help-card span {
  color: var(--muted);
  font-size: 14px;
}

.help-phone {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

/* ---------- Success ---------- */

.success {
  max-width: 640px;
  margin: 72px auto 0;
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.success:focus {
  outline: none;
}

.success h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--strong);
  color: #fff;
}

.success-text {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  color: var(--muted);
}

.ref-box {
  width: 100%;
  max-width: 380px;
  padding: 22px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.ref-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

#ref-code {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.success-details {
  margin: 8px 0 0;
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  text-align: start;
  border-top: 1px solid var(--line);
}

.success-details div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.success-details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.success-details dd {
  margin: 4px 0 0;
  font-weight: 500;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

/* ---------- Footer: dark, quiet ---------- */

.footer {
  background: var(--footer);
  color: #d0d1d2;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #d0d1d2;
}

.footer .brand-logo.small {
  color: #fff;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* ---------- Mobile total bar (phones and tablets) ---------- */

.mobile-bar {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line);
  }

  .mobile-bar-total {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-bar-total span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
  }

  .mobile-bar-total strong {
    font-size: 20px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .mobile-bar .btn {
    flex: none;
    min-height: 52px;
    padding: 0 26px;
  }

  .page {
    padding-bottom: 120px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 0 20px;
    gap: 14px;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    margin-top: -64px;
  }

  .hero-inner {
    padding: 48px 20px 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-badges {
    gap: 6px 16px;
  }

  .hero-stage {
    padding: 0 12px;
    margin-top: 28px;
  }

  .page {
    padding: 0 20px 120px;
  }

  .card {
    padding: 36px 20px;
  }

  .step-head h2 {
    font-size: 28px;
  }

  /* Option cards sit two to a row on phones to keep the page short. */
  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .option {
    padding: 12px 10px;
  }

  /* Only the chosen option explains itself, so the plan block stays short. */
  .option:not(.is-selected) .option-desc {
    display: none;
  }

  .option-title {
    font-size: 15px;
  }

  .option-desc {
    font-size: 13px;
  }

  /* Payment methods: two per row, with only the chosen method explained. */
  .pay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pay-option {
    padding: 10px 12px;
    gap: 10px;
  }

  .pay-option:not(.is-selected) .pay-text span {
    display: none;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0 24px;
    scrollbar-width: none;
  }

  .chip {
    flex: none;
  }

  /* Vehicles swipe sideways on phones, so the list takes one row of height. */
  .vehicle-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: -20px;
    padding: 4px 20px 12px;
    scrollbar-width: none;
  }

  .vehicle-grid::-webkit-scrollbar {
    display: none;
  }

  .vehicle {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .vehicle-media img,
  .vehicle-media svg {
    width: 100%;
  }

  .vehicle-flag {
    top: 10px;
    inset-inline-start: 10px;
    font-size: 10px;
    padding: 3px 6px;
  }

  .vehicle-check {
    top: 10px;
    inset-inline-end: 10px;
    width: 22px;
    height: 22px;
  }

  .vehicle-body {
    padding: 16px;
    justify-content: center;
  }

  .vehicle h3 {
    font-size: 19px;
  }

  .specs {
    font-size: 13px;
  }

  .price strong {
    font-size: 18px;
  }

  .summary-total {
    display: none;
  }

  .success {
    margin-top: 48px;
  }

  .success h2 {
    font-size: 34px;
  }

  .success-details {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 28px 20px 110px;
  }

  .toast-stack {
    inset-inline: 16px;
    bottom: 96px;
    max-width: none;
  }
}

@media (max-width: 380px) {
}

/* ---------- Loading placeholders ---------- */

.skeleton {
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg) 0%, var(--fill) 50%, var(--bg) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s var(--ease) infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

/* ---------- Hero photo: landscape on desktop, portrait on phones ---------- */

.hero-photo {
  display: block;
  margin: 40px 0 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 62%;
  /* Fade the top edge into the page so the photo sits on the hero background. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
}

@media (max-width: 720px) {
  .hero-photo {
    margin-top: 24px;
  }

  .hero-photo img {
    height: 340px;
    object-position: center 80%;
  }
}

/* ---------- Compact plan options (Dates and plan) ---------- */
/* Shorter cards: the description shows only for the chosen option. */

.option-group {
  gap: 10px;
}

.option-grid {
  gap: 8px;
}

.option {
  gap: 2px;
  padding: 12px 14px;
}

.option-title {
  font-size: 15px;
}

.option-radio {
  width: 18px;
  height: 18px;
}

.option.is-selected .option-radio {
  box-shadow: inset 0 0 0 4px var(--surface);
}

.option-price {
  font-size: 13px;
}

.option-desc {
  display: none;
}

.option.is-selected .option-desc {
  display: block;
}

/* Each card is only as tall as its own content, so unselected cards stay small. */
.option-grid {
  align-items: start;
}

.option {
  padding: 10px 12px;
}

/* ---------- Payment brand logos ---------- */

.pay-brand.has-logo {
  min-width: 0;
  height: 36px;
  padding: 0;
  gap: 6px;
  background: transparent;
  box-shadow: none;
}

.pay-brand.has-logo img {
  height: 22px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
}

/* Logo above the label, so each payment name has the full card width. */
.pay-option {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.pay-option .pay-text {
  width: 100%;
}

.pay-brand.has-logo {
  height: 28px;
}

/* Official logo sizes from the payment logo pack. Each logo keeps its own proportions. */
.pay-brand.has-logo {
  height: auto;
  min-height: 44px;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-brand.has-logo img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.pay-brand.has-logo img.visa { height: 28px; }
.pay-brand.has-logo img.american-express { height: 44px; }
.pay-brand.has-logo img.apple-pay { height: 38px; }
.pay-brand.has-logo img.tamara { height: 24px; }
.pay-brand.has-logo img.tabby { height: 28px; }
.pay-brand.has-logo img.mada { height: 30px; }

/* Keep multi-logo options (Visa with Amex) on one line; logos shrink a little if the card is narrow. */
.pay-brand.has-logo {
  flex-wrap: nowrap;
}

.pay-brand.has-logo img {
  flex: 0 1 auto;
  min-width: 0;
}

/* Tabby badge: green tile, shown at 28px tall. */
.pay-brand.has-logo img.tabby {
  height: 28px;
  width: auto;
}

/* Tamara badge: gradient tile, shown at 28px tall. */
.pay-brand.has-logo img.tamara {
  height: 28px;
  width: auto;
}

/* One click selects the whole reference, so it is easy to copy by hand. */
#ref-code {
  user-select: all;
}
