/* ===========================================
   CAB Morocco – Booking Form Styles
   =========================================== */

/* ---- Steps indicator ---- */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.booking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.booking-step + .booking-step::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 16px;
  width: 60px;
  height: 2px;
  background: var(--border);
}
.booking-step.done + .booking-step::before { background: var(--gold); }
.booking-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all .2s;
}
.booking-step.active .booking-step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.booking-step.done .booking-step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.booking-step-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.booking-step.active .booking-step-label { color: var(--navy); }
.booking-step.done  .booking-step-label { color: var(--text-mid); }
@media (max-width: 480px) {
  .booking-step + .booking-step::before { width: 30px; }
  .booking-step-label { display: none; }
}

/* ---- Layout ---- */
.booking-wrapper {
  max-width: 720px;
  margin: 0 auto;
}
.booking-card {
  background: var(--white);
  border: 1px solid #C8D0DA;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 2px 8px rgba(11,31,58,.06), 0 8px 32px rgba(11,31,58,.08);
}
@media (max-width: 600px) { .booking-card { padding: 24px 20px; } }

/* ---- Form elements ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) {
  .form-row, .form-row.triple { grid-template-columns: 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .3px;
}
.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #A8B5C0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: #F4F7FA;
  transition: border-color .15s, background .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7E93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232,160,32,.15);
}
.form-group select.error,
.form-group input.error { border-color: #e53e3e; }
.form-error { font-size: .78rem; color: #e53e3e; margin-top: 2px; }

.form-section-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ---- Return trip toggle ---- */
.return-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  margin-bottom: 20px;
}
.return-toggle input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--gold); }
.return-toggle span { font-size: .9rem; font-weight: 600; color: var(--navy); }
#return-fields { display: none; }
#return-fields.visible { display: block; }

/* ---- Vehicle cards ---- */
.vehicle-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.vehicle-card {
  display: grid;
  grid-template-columns: 20px 110px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--white);
}
.vehicle-card:hover { border-color: var(--gold); }
.vehicle-card.selected { border-color: var(--gold); background: rgba(232,160,32,.05); }
.vehicle-card--unavailable { opacity: .4; pointer-events: none; }
.vehicle-card input[type="radio"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); }
.vehicle-card-img {
  width: 110px;
  height: 64px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
}
.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vehicle-card-info { flex: 1; min-width: 0; }
.vehicle-card-name { font-weight: 800; color: var(--navy); font-size: .95rem; }
.vehicle-card-model { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.vehicle-card-features { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.vehicle-feature-tag {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}
.vehicle-card-price-col { text-align: right; flex-shrink: 0; }
.vehicle-card-price { font-size: 1.3rem; font-weight: 900; color: var(--navy); white-space: nowrap; }
.vehicle-card-price small { font-size: .72rem; font-weight: 500; color: var(--text-muted); display: block; }
.price-unavailable { color: var(--text-muted); font-size: .82rem; white-space: nowrap; }
@media (max-width: 560px) {
  .vehicle-card { grid-template-columns: 18px 80px 1fr; gap: 10px; }
  .vehicle-card-price-col { display: none; }
  .vehicle-card-img { width: 80px; height: 50px; }
  .vehicle-card-name::after { content: attr(data-price); display: block; font-size: .95rem; color: var(--gold-dark); font-weight: 900; margin-top: 2px; }
}

/* ---- Confirm page: info block ---- */
.confirm-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
}
@media (max-width: 600px) { .confirm-section { padding: 20px 18px; } }
.confirm-section-title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.confirm-trip-summary {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.confirm-trip-item { display: flex; flex-direction: column; gap: 4px; }
.confirm-trip-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.5); }
.confirm-trip-value { font-size: .9rem; font-weight: 700; color: var(--white); }
.confirm-trip-arrow {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.confirm-trip-price { margin-left: auto; text-align: right; }
.confirm-trip-price .price-big { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.confirm-trip-price small { font-size: .72rem; color: rgba(255,255,255,.5); display: block; }

/* ---- Return info block in confirm ---- */
.return-info-block {
  background: rgba(232,160,32,.08);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: .88rem;
  color: var(--navy);
}
.return-info-block strong { font-weight: 700; }

/* ---- Booking summary strip ---- */
.booking-summary-strip {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.booking-summary-item { display: flex; flex-direction: column; gap: 3px; }
.booking-summary-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.booking-summary-value { font-size: .9rem; font-weight: 700; color: var(--navy); }

/* ---- Payment toggle ---- */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.payment-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .15s;
}
.payment-option:hover { border-color: var(--gold); }
.payment-option.selected { border-color: var(--gold); background: rgba(232,160,32,.05); }
.payment-option input[type="radio"] { width: 16px; height: 16px; accent-color: var(--gold); }
.payment-option-name { font-weight: 800; color: var(--navy); font-size: .9rem; }
.payment-option-desc { font-size: .8rem; color: var(--text-muted); }
@media (max-width: 480px) { .payment-options { grid-template-columns: 1fr; } }

/* ---- Price total ---- */
.price-total-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.price-total-label { font-size: .9rem; font-weight: 600; opacity: .8; }
.price-total-amount { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.price-total-note { font-size: .75rem; opacity: .6; margin-top: 2px; }

/* ---- Form actions ---- */
.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.form-actions .btn { flex-shrink: 0; }
.form-back { font-size: .88rem; color: var(--text-muted); font-weight: 600; text-decoration: none; }
.form-back:hover { color: var(--navy); }

/* ---- Thank you page ---- */
.thankyou-icon {
  width: 72px;
  height: 72px;
  background: rgba(232,160,32,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.thankyou-ref {
  display: inline-block;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 18px;
  letter-spacing: 2px;
  color: var(--navy);
  margin-bottom: 20px;
}
