/*!
  Taxi Casablanca Marrakech — booking flow styles
  (homepage quote widget, vehicle selection, confirm, thank-you)
  Extends the design tokens defined in modern.css.
*/

/* ---------- Homepage "instant quote" widget ---------- */
.quote-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quote-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-950);
  color: #fff;
  padding: 20px 24px;
}
.quote-card-head svg { width: 20px; height: 20px; color: var(--amber-400); flex: none; }
.quote-card-head h2 { color: #fff; font-size: 1.1rem; margin: 0; }
.quote-card-body { padding: 24px; }

.quote-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.quote-select-wrap { position: relative; margin-bottom: 14px; }
.quote-select-wrap select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border);
  background: #fbfcfd;
  border-radius: var(--radius-sm);
  padding: 11px 36px 11px 12px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--ink);
}
.quote-select-wrap select:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,166,35,.18); }
.quote-select-wrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-light); pointer-events: none; }

.quote-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: -6px auto 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fbfcfd;
  color: var(--amber-600);
  cursor: pointer;
}
.quote-swap svg { width: 15px; height: 15px; }
.quote-swap:hover { background: var(--amber-400); color: var(--navy-950); border-color: var(--amber-400); }

.quote-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.quote-row-3 .quote-input {
  width: 100%;
  border: 1px solid var(--border);
  background: #fbfcfd;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--ink);
}
.quote-row-3 .quote-input:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,166,35,.18); }

.quote-return-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--navy-800);
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 4px;
}
.quote-return-toggle input { accent-color: var(--amber-500); width: 16px; height: 16px; }

#quote-return-fields, #return-fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
#quote-return-fields.visible, #return-fields.visible { display: grid; }

.quote-submit { margin-top: 18px; }
.quote-note { text-align: center; font-size: .76rem; color: var(--muted-light); margin: 12px 0 0; }

/* ---------- Step indicator ---------- */
.booking-steps { display: flex; align-items: flex-start; justify-content: center; gap: 76px; margin-bottom: 32px; }
.booking-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.booking-step + .booking-step::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 17px;
  width: 60px;
  height: 2px;
  background: var(--border);
}
.booking-step.done + .booking-step::before { background: var(--amber-500); }
.booking-step-num {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: .82rem; font-weight: 700;
  color: var(--muted-light);
  transition: all .2s;
}
.booking-step.active .booking-step-num { background: var(--amber-500); border-color: var(--amber-500); color: var(--navy-950); }
.booking-step.done .booking-step-num { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.booking-step-label { font-size: .76rem; font-weight: 600; color: var(--muted-light); white-space: nowrap; }
.booking-step.active .booking-step-label { color: var(--navy-900); }
.booking-step.done .booking-step-label { color: var(--navy-800); }
@media (max-width: 480px) {
  .booking-step + .booking-step::before { width: 30px; }
}

/* ---------- Shared card / panel ---------- */
.booking-card-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .booking-card-panel { padding: 20px 16px; } }

.form-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
  margin: 0 0 18px;
}
.form-row.single { grid-template-columns: 1fr; }
.field select.error, .field input.error { border-color: #e53e3e; }
.form-error { display: block; font-size: .76rem; color: #e53e3e; margin-top: 5px; }

.form-actions { display: flex; justify-content: flex-end; }
.form-back { font-size: .84rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; align-self: center; margin-left: 16px; }

/* ---------- Empty state (no route chosen yet) ---------- */
.empty-card {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

/* ---------- Route summary bar ---------- */
.route-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: .88rem;
}
.route-bar-from, .route-bar-to { font-weight: 700; color: var(--navy-900); }
.route-bar-arrow { color: var(--amber-600); }
.route-bar-detail { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; }
.route-bar-detail svg { width: 14px; height: 14px; flex: none; color: var(--amber-600); }
.route-bar-edit { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--navy-800); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* ---------- Vehicle selection grid ---------- */
.vehicle-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.vehicle-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vehicle-card:has(input:checked) { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.vehicle-card.selected { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.vehicle-card--unavailable { opacity: .55; cursor: not-allowed; }
.vehicle-card input[type="radio"] { display: none; }
.vehicle-card-img { display: flex; align-items: center; justify-content: center; background: #eef1f4; border-radius: var(--radius-sm); overflow: hidden; height: 64px; }
.vehicle-card-img img { width: 100%; height: 100%; object-fit: contain; }
.vehicle-card-name { font-family: var(--font-heading); font-weight: 700; color: var(--navy-900); margin: 0 0 2px; font-size: .98rem; }
.vehicle-card-model { font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.vehicle-card-features { display: flex; flex-wrap: wrap; gap: 6px; }
.vehicle-feature-tag { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: .72rem; color: var(--muted); }
.vehicle-card-price-col { text-align: right; }
.vehicle-card-price { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--navy-900); margin: 0; white-space: nowrap; }
.vehicle-card-price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--muted-light); margin-top: 2px; line-height: 1.4; }
.price-unavailable { font-size: .8rem; font-weight: 600; color: var(--muted-light); margin: 0; }
@media (max-width: 640px) {
  .vehicle-card { grid-template-columns: 80px 1fr; }
  .vehicle-card-price-col { grid-column: 1 / -1; text-align: left; padding-top: 8px; border-top: 1px dashed var(--border); }
}

/* ---------- Confirm page: trip summary ---------- */
.confirm-trip-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 20px;
}
.confirm-trip-item { display: flex; flex-direction: column; gap: 3px; }
.confirm-trip-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-light); }
.confirm-trip-value { font-weight: 600; font-size: .92rem; }
.confirm-trip-arrow { color: var(--amber-400); font-weight: 700; }
.confirm-trip-price { margin-left: auto; text-align: right; }
.confirm-trip-price .price-big { display: block; font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; color: var(--amber-400); }
.confirm-trip-price small { font-size: .74rem; color: var(--muted-light); }

.return-info-block {
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: .86rem;
  color: var(--navy-800);
  margin-bottom: 20px;
  line-height: 1.6;
}

.confirm-section { border-top: 1px solid var(--border); padding: 24px 0; }
.confirm-section:first-of-type { border-top: none; padding-top: 0; }
.confirm-section-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--navy-900); margin: 0 0 16px; }

.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 600px) { .payment-options { grid-template-columns: 1fr; } }
.payment-option {
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.payment-option.selected, .payment-option:has(input:checked) { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.payment-option input { display: none; }
.payment-option-name { display: block; font-weight: 700; color: var(--navy-900); font-size: .92rem; margin-bottom: 6px; }
.payment-option-desc { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }

.price-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.price-total-label { font-weight: 700; color: var(--navy-900); margin: 0; font-size: .92rem; }
.price-total-note { font-size: .78rem; color: var(--muted); margin: 2px 0 0; }
.price-total-amount { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--navy-900); margin: 0; }

/* ---------- Thank-you page ---------- */
.thankyou-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(245,166,35,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.thankyou-ref {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .04em;
  background: var(--navy-950);
  color: var(--amber-400);
  border-radius: 999px;
  padding: 10px 22px;
}
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); font-size: .88rem; }
.summary-row:first-child { border-top: none; padding-top: 0; }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { font-weight: 600; color: var(--navy-900); text-align: right; }
