/* ═══════════════════════════════════════════════
   BOOKING WIZARD
   ═══════════════════════════════════════════════ */

.booking-wizard {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

/* ── Step Indicator ── */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 36px;
  padding-bottom: 16px;
}

.wizard-steps::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #e9ecef;
  border-radius: 99px;
}

.wizard-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--theme-color, #14279b);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
  flex: 1;
}

.wizard-step.done {
  cursor: pointer;
}

.wizard-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f3f9;
  color: #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.wizard-step.active .wizard-step-icon {
  background: var(--theme-color, #14279b);
  color: #fff;
  border-color: var(--theme-color, #14279b);
  box-shadow: 0 4px 14px rgba(20, 39, 155, 0.35);
}

.wizard-step.done .wizard-step-icon {
  background: #e8f5e9;
  color: #16a34a;
  border-color: #16a34a;
}

.wizard-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #adb5bd;
  text-align: center;
  white-space: nowrap;
}

.wizard-step.active .wizard-step-label {
  color: var(--theme-color, #14279b);
}

.wizard-step.done .wizard-step-label {
  color: #16a34a;
}

/* ── Heading ── */
.wizard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.wizard-heading h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a2e;
}

.step-counter {
  font-size: 13px;
  color: #adb5bd;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 99px;
}

/* ── Step Content ── */
.booking-step-content {
  min-height: 320px;
}

.step-desc {
  color: #6c757d;
  margin-bottom: 24px;
  font-size: 14px;
}

/* ── Navigation ── */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.wizard-nav-right {
  margin-left: auto;
}

.wizard-btn-back {
  border: 2px solid #dee2e6;
  background: transparent;
  color: #495057;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-btn-back:hover {
  border-color: var(--theme-color, #14279b);
  color: var(--theme-color, #14279b);
}

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

/* ═══════════════════════════════════════════════
   STEP 1 — JOURNEY
   ═══════════════════════════════════════════════ */

.location-card {
  border: 2px solid #e9ecef;
  border-radius: 14px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.location-card:hover {
  border-color: var(--theme-color, #14279b);
  background: #f5f7ff;
}

.location-card-inner {
  flex: 1;
  min-width: 0;
}

.location-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.green { background: #16a34a; }
.dot.red   { background: #e53e3e; }

.location-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.loc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #adb5bd;
}

.loc-value {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-icon {
  color: var(--theme-color, #14279b);
  font-size: 16px;
  flex-shrink: 0;
}

.location-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0 4px 24px;
}

.location-card-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-color, #14279b);
  background: #e8ecff;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.distance-info,
.duration-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #495057;
  background: #f8f9fa;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.distance-info i,
.duration-info i {
  color: var(--theme-color, #14279b);
}

.datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .datetime-row {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   STEP 2 — VEHICLE
   ═══════════════════════════════════════════════ */

.service-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.service-tab {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.service-tab:hover {
  border-color: var(--theme-color, #14279b);
  color: var(--theme-color, #14279b);
}

.service-tab.active {
  background: var(--theme-color, #14279b);
  border-color: var(--theme-color, #14279b);
  color: #fff;
}

.self-drive-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8e1;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 20px;
  color: #795548;
}

.self-drive-notice i {
  color: #ff8f00;
  margin-top: 2px;
  flex-shrink: 0;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .vehicle-grid { grid-template-columns: 1fr; }
}

.vehicle-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.vehicle-card:hover {
  border-color: var(--theme-color, #14279b);
  background: #f5f7ff;
}

.vehicle-card.selected {
  border-color: var(--theme-color, #14279b);
  background: #eef0ff;
}

.vehicle-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f3f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--theme-color, #14279b);
  flex-shrink: 0;
}

.vehicle-card.selected .vehicle-icon {
  background: var(--theme-color, #14279b);
  color: #fff;
}

.vehicle-info {
  flex: 1;
  min-width: 0;
}

.vehicle-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.vehicle-desc {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 6px;
}

.vehicle-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6c757d;
}

.vehicle-price {
  font-weight: 600;
  color: var(--theme-color, #14279b);
}

.vehicle-check {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--theme-color, #14279b);
  font-size: 18px;
}

/* ═══════════════════════════════════════════════
   STEP 3 — TOURIST SPOTS
   ═══════════════════════════════════════════════ */

.spots-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
  color: #6c757d;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e9ecef;
  border-top-color: var(--theme-color, #14279b);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spots-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff0f0;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #dc2626;
}

.retry-btn {
  margin-left: auto;
  border: 1px solid #dc2626;
  background: transparent;
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.spots-empty {
  text-align: center;
  padding: 60px 0;
  color: #adb5bd;
}

.spots-empty i {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.spots-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 16px;
}

.spots-selected-count {
  color: #16a34a;
  font-weight: 600;
}

.refresh-btn {
  margin-left: auto;
  border: 1px solid #dee2e6;
  background: transparent;
  color: #6c757d;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.refresh-btn:hover {
  border-color: var(--theme-color, #14279b);
  color: var(--theme-color, #14279b);
}

.spots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .spots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .spots-grid { grid-template-columns: 1fr; }
}

.spot-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.spot-card:hover {
  border-color: var(--theme-color, #14279b);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.spot-card.selected {
  border-color: var(--theme-color, #14279b);
  box-shadow: 0 4px 16px rgba(20, 39, 155, 0.2);
}

.spot-image {
  height: 110px;
  background: #f1f3f9;
  position: relative;
  overflow: hidden;
}

.spot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dee2e6;
  font-size: 28px;
}

.spot-check-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 39, 155, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
}

.spot-info {
  padding: 10px 12px;
}

.spot-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-address {
  font-size: 11px;
  color: #6c757d;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 4px;
}

.spot-rating {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 600;
}

.step3-skip-note {
  font-size: 13px;
  color: #adb5bd;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════
   STEP 4 — CONFIRM
   ═══════════════════════════════════════════════ */

.booking-summary {
  background: #f8f9ff;
  border: 1px solid #e0e4ff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.summary-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-color, #14279b);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.summary-item.full-width {
  grid-column: 1 / -1;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #adb5bd;
  display: flex;
  align-items: center;
  gap: 5px;
}

.summary-value {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  color: #e53e3e;
}

.age-note {
  font-weight: 400;
  font-size: 12px;
  color: #6c757d;
  margin-left: 4px;
}

.self-drive-requirements {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 13px;
}

.self-drive-requirements h6 {
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.self-drive-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #374151;
}

.self-drive-requirements ul li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.self-drive-requirements ul li i {
  color: #16a34a;
  font-size: 12px;
}

.terms-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.terms-check a {
  color: var(--theme-color, #14279b);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   SUCCESS
   ═══════════════════════════════════════════════ */

.booking-success {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.success-icon {
  font-size: 64px;
  color: #16a34a;
  margin-bottom: 20px;
  animation: pop 0.4s ease;
}

@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.booking-success h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a2e;
}

.booking-success p {
  color: #6c757d;
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .booking-wizard {
    padding: 24px 16px;
  }

  .wizard-step-label {
    display: none;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .location-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-card-badge {
    align-self: flex-end;
  }
}
