:root {
  --r-border: #e5e5e5;
  --r-muted: #747474;
  --r-gold: #a3844d;
  --r-ink: #111;
  --r-bg: #fff;
  --r-bg-soft: #fafafa;
  --r-danger: #b3261e;
  --r-danger-bg: #fdecea;
  --r-radius: 4px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--r-bg);
  color: var(--r-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--r-gold); }

/* Header */
.book-header {
  border-bottom: 1px solid var(--r-border);
  background: var(--r-bg);
}
.book-header-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 22px 20px;
}
.book-brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--r-ink);
}
.book-brand-tag {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--r-gold);
  letter-spacing: 0.02em;
}

/* Main */
.book-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* Step indicator */
.book-steps {
  display: flex;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  counter-reset: none;
}
.book-step {
  flex: 1;
  text-align: center;
  position: relative;
  color: var(--r-muted);
}
.book-step::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--r-border);
  z-index: 0;
}
.book-step:last-child::after { display: none; }
.book-step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--r-border);
  background: var(--r-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--r-muted);
}
.book-step-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--r-muted);
}
.book-step.is-active .book-step-num,
.book-step.is-done .book-step-num {
  border-color: var(--r-gold);
  color: var(--r-gold);
}
.book-step.is-done .book-step-num {
  background: var(--r-gold);
  color: #fff;
}
.book-step.is-active .book-step-label { color: var(--r-ink); }

/* Alert */
.book-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: var(--r-radius);
  background: var(--r-danger-bg);
  border: 1px solid #f3c3bf;
  color: var(--r-danger);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Panels */
.book-panel { display: none; }
.book-panel.is-active { display: block; }

.book-panel-title {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 22px;
  color: var(--r-ink);
}

/* Form fields */
.book-field {
  margin-bottom: 16px;
  flex: 1;
  min-width: 0;
}
.book-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--r-ink);
  margin-bottom: 6px;
}
.book-optional {
  font-weight: 400;
  color: var(--r-muted);
}
.book-field input,
.book-field select {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  background: var(--r-bg);
  color: var(--r-ink);
  font-family: inherit;
}
.book-field input:focus,
.book-field select:focus {
  outline: none;
  border-color: var(--r-gold);
}
.book-field input.book-invalid,
.book-field select.book-invalid {
  border-color: var(--r-danger);
}

.book-row {
  display: flex;
  gap: 14px;
}
.book-row .book-field { margin-bottom: 16px; }

/* Suggestions sit beneath the original address input on every device. */
.book-suggest {
  display: block;
}
.book-suggest:empty { display: none; }
.book-suggest:not(:empty) { border: 1px solid var(--r-border); border-radius: 4px; background: #fff; color: #171717; color-scheme: light; }
.book-address-options { max-height: 260px; overflow-y: auto; }
.book-address-options button { display: block; width: 100%; min-height: 48px; padding: 12px; border: 0; border-bottom: 1px solid #eee; background: #fff; color: #171717; text-align: left; white-space: normal; overflow-wrap: anywhere; font: inherit; font-size: 16px; cursor: pointer; }
.book-address-options button:hover, .book-address-options button:focus { background: #f4f4f4; outline: 2px solid #444; outline-offset: -2px; }
.book-address-attribution { padding: 10px 12px; text-align: right; background: #fff; color: #5e5e5e; font: 14px Arial, sans-serif; white-space: nowrap; }
.book-field input, .book-field select { color-scheme: light; }

/* Buttons */
.book-btn {
  appearance: none;
  border: 1px solid var(--r-gold);
  border-radius: var(--r-radius);
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
}
.book-btn-primary {
  background: #171717;
  border-color: #171717;
  color: #fff;
  width: 100%;
  margin-top: 8px;
}
.book-btn-primary:hover { background: #262626; border-color: #262626; }
.book-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.book-btn-ghost {
  background: transparent;
  color: var(--r-ink);
  border-color: var(--r-border);
}
.book-btn-ghost:hover { border-color: var(--r-muted); }

.book-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.book-actions .book-btn-primary { margin-top: 0; }
.book-actions .book-btn { flex: 1; }

/* Vehicle offers */
.book-offers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.book-offer {
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  background: var(--r-bg);
}
.book-offer:hover { border-color: var(--r-gold); }
.book-offer.is-selected {
  border-color: var(--r-gold);
  background: #fbf8f3;
}
.book-offer-info { min-width: 0; flex: 1; } .book-offer-media { width: 56px; height: 56px; border-radius: var(--r-radius); overflow: hidden; flex-shrink: 0; background: var(--r-bg-soft); border: 1px solid var(--r-border); } .book-offer-media img { width: 100%; height: 100%; object-fit: cover; display: block; } .book-offer-quote-btn { background: #000; color: #fff; border: 1px solid #000; border-radius: var(--r-radius); padding: 8px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; font-family: inherit; white-space: nowrap; } .book-offer-quote-btn:hover { background: #222; border-color: #222; }
.book-offer-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--r-ink);
}
.book-offer-meta {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--r-muted);
}
.book-offer-price {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}
.book-offer-price small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--r-muted);
  text-align: right;
}
.book-offer-unavailable {
  color: var(--r-muted);
  font-size: 13px;
  font-style: italic;
}
.book-offer.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.book-empty {
  color: var(--r-muted);
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
}

/* Trip summary */
.book-summary {
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 14px 16px;
  margin-bottom: 22px;
  background: var(--r-bg-soft);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--r-ink);
}
.book-summary strong { color: #111; }

/* Checkbox */
.book-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--r-muted);
  margin: 6px 0 18px;
  cursor: pointer;
}
.book-checkbox input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex-shrink: 0;
}

/* Status panel */
.book-status {
  text-align: center;
  padding: 40px 10px;
}
.book-status-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.book-status-icon.is-ok { background: #eaf5ec; color: #2e7d32; }
.book-status-icon.is-pending { background: #fbf3e6; color: var(--r-gold); }
.book-status-icon.is-error { background: var(--r-danger-bg); color: var(--r-danger); }
.book-status h2 {
  font-size: 20px;
  margin: 0 0 10px;
}
.book-status p {
  color: var(--r-muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 8px;
}
.book-status .book-btn {
  display: inline-block;
  width: auto;
  margin-top: 18px;
}
.book-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 18px;
  border: 3px solid var(--r-border);
  border-top-color: var(--r-gold);
  border-radius: 50%;
  animation: book-spin 0.8s linear infinite;
}
@keyframes book-spin { to { transform: rotate(360deg); } }

/* Footer */
.book-footer {
  border-top: 1px solid var(--r-border);
  padding: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--r-muted);
}

/* Responsive */
@media (max-width: 480px) {
  .book-row { flex-direction: column; gap: 0; }
  .book-step-label { display: none; }
  .book-panel-title { font-size: 19px; }
}

.book-return{margin:18px 0;padding:18px;border:1px solid var(--r-border);border-radius:4px;background:var(--r-bg-soft)}
.book-return legend,.book-intent legend{font-weight:600;padding:0 5px;font-size:14px}.book-return p,.book-time-note{font-size:12px;color:var(--r-muted);line-height:1.5}.book-return .book-row{margin-bottom:0}.book-intent{border:0;padding:0;margin:20px 0}.book-intent>label{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid var(--r-border);border-radius:4px;margin:9px 0;cursor:pointer}.book-intent>label:has(input:checked){border-color:#111;background:#f7f7f7}.book-intent input{width:17px;height:17px;flex:none;margin-top:3px;accent-color:#111}.book-intent strong{font-size:14px;display:block}.book-intent small{display:block;font-size:12px;line-height:1.5;color:var(--r-muted);margin-top:4px}

/* Booking entry reminder and consistent black primary action. */
.book-portal-reminder { padding: 16px 20px; margin: 0 0 24px; border: 1px solid #ddd; border-radius: 6px; background: #f7f7f5; font-size: 14px; }
.book-portal-reminder p { margin: 4px 0 0; }
.book-portal-reminder a { color: #171717; font-weight: 600; text-decoration: underline; }
#tripSubmit.book-btn-primary { background: #000 !important; border-color: #000 !important; color: #fff !important; }
#tripSubmit.book-btn-primary:hover { background: #262626 !important; border-color: #262626 !important; }
