: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: 15px;
  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; }

/* The Google search widget replaces the plain pickup/dropoff input in
   place once it loads (see book.js mountAddressAutocomplete), so this
   sits where the input used to be rather than stacking below it. */
.book-suggest {
  display: block;
}
.book-suggest:empty { display: none; }
.book-suggest gmp-place-autocomplete {
  width: 100%;
}

/* 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: var(--r-gold);
  color: #fff;
  width: 100%;
  margin-top: 8px;
}
.book-btn-primary:hover { background: #8f7241; border-color: #8f7241; }
.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; }
.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: var(--r-gold);
  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: var(--r-gold); }

/* 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 {
  margin-top: 3px;
  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; }
}
