/* Booking System Specific Styles */

:root {
  --booking-bg: #f9f9fa;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
}

body.bg-gray {
  background-color: var(--booking-bg);
}

.booking-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.booking-header__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.booking-header__secure {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: bold;
}

.booking-main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Progress Steps */
.booking-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.step {
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 0.8rem;
}

.step.active {
  color: var(--color-primary);
}
.step.active span {
  background: var(--color-primary);
  color: white;
}

.step.completed {
  color: var(--color-primary);
}

/* Layout */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 768px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--color-text);
}

.step-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}

.step-card.no-padding {
  padding: 0;
}

.step-desc.padding-msg {
  padding: 15px 24px;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  border-radius: 12px 12px 0 0;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group.half {
  flex: 1;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.required {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46,154,59,0.1);
}

.form-input:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.form-note {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 5px;
}

/* Vehicle List (Radio Cards) */
.vehicle-list {
  padding: 20px;
}

.vehicle-item {
  display: block;
  margin-bottom: 15px;
  cursor: pointer;
}

.vehicle-item input[type="radio"] {
  display: none;
}

.vehicle-card-ui {
  display: flex;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.2s;
  align-items: center;
  gap: 15px;
}

.vehicle-item input[type="radio"]:checked + .vehicle-card-ui {
  border-color: var(--color-primary);
  background: rgba(46,154,59,0.03);
}

.vehicle-img {
  width: 120px;
  min-width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vehicle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.vehicle-info {
  flex: 1;
  min-width: 0;
}
.vehicle-info h4 {
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}
.vehicle-info p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.4;
}

.vehicle-price {
  text-align: right;
  min-width: 100px;
}
.price-val {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-accent);
}
.price-unit {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.select-btn {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  background: #f3f4f6;
  color: #4b5563;
  margin-top: 8px;
}
.vehicle-item input[type="radio"]:checked + .vehicle-card-ui .select-btn {
  background: var(--color-primary);
  color: white;
}
.vehicle-item input[type="radio"]:checked + .vehicle-card-ui .select-btn::after {
  content: " ✓";
}

@media (max-width: 600px) {
  .vehicle-card-ui {
    flex-direction: column;
    align-items: stretch;
  }
  .vehicle-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
  }
  .vehicle-price {
    text-align: left;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Insurance Radios */
.insurance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.insurance-item {
  cursor: pointer;
}
.insurance-item input {
  display: none;
}
.ins-content {
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 6px;
  position: relative;
  transition: all 0.2s;
}
.insurance-item input[type="radio"]:checked + .ins-content {
  border-color: var(--color-accent);
  background: rgba(255,152,0,0.05);
}
.ins-content h4 {
  margin: 0 0 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ins-content .price {
  color: var(--color-accent);
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10px;
}
.ins-content p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--color-text-secondary);
}
.badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}

/* Green License Control */
.highlight-box {
  background: #fdfdea;
  border: 1px solid #fef08a;
}
.box-title {
  color: #b45309;
  font-size: 1rem;
  margin-bottom: 10px;
}
.box-text {
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.license-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  white-space: nowrap;
  justify-content: center;
}
.radio-label span {
  font-size: 0.9rem;
  font-weight: 600;
}
.alert-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 15px;
  margin-top: 15px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Options */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}
.opt-desc h4 {
  margin: 0 0 5px;
}
.opt-desc p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}
.opt-desc .price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 5px;
  display: block;
}
.opt-control {
  display: flex;
  align-items: center;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-input {
  width: 40px;
  height: 32px;
  text-align: center;
  border: none;
  font-weight: bold;
  -moz-appearance: textfield;
  appearance: textfield;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Cart Sidebar (Right) */
.cart-summary {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.cart-summary.sticky {
  position: sticky;
  top: 20px;
}
.cart-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 10px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 0.95rem;
}
.cart-row span {
  color: #4b5563;
  flex: 1;
  padding-right: 15px;
}
.cart-row strong {
  white-space: nowrap;
}
.cart-details hr {
  border: 0;
  border-top: 1px dashed var(--border-color);
  margin: 20px 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.cart-total span {
  font-weight: 600;
}
.total-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
}

.secure-note {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 20px;
}

/* Custom DateTime Picker */
.datetime-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dt-date {
  flex: 2;
  min-width: 0;
}
.dt-hour {
  flex: 1;
  min-width: 64px;
  padding: 12px 6px;
  text-align: center;
}
.dt-min {
  width: 64px;
  padding: 12px 6px;
  text-align: center;
  flex-shrink: 0;
}
.dt-sep {
  font-size: 1.1rem;
  font-weight: bold;
  color: #4b5563;
}

/* Disable Insurance when green license */
.insurance-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ===== Responsive Mobile Tweaks ===== */
@media (max-width: 600px) {
  /* Progress Steps: Hide text on tiny screens, show only bubbles */
  .booking-progress {
    padding: 12px 10px;
    gap: 5px;
  }
  .step {
    font-size: 0; /* hide text */
    gap: 0;
  }
  .step span {
    font-size: 0.8rem;
  }

  /* Form Layout */
  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  /* Step Actions */
  .step-actions {
    flex-direction: column-reverse;
    gap: 15px;
    padding: 15px 0 0 0;
  }
  .step-actions button {
    width: 100%;
  }

  /* DateTime Picker */
  .datetime-picker {
    flex-wrap: wrap;
  }
  .dt-date {
    flex: 1 1 100%;
    margin-bottom: 5px;
  }
  .dt-hour, .dt-min {
    flex: 1;
  }
  .dt-sep {
    padding: 0 5px;
  }

  /* Step 3: Options / Insurance */
  .license-toggle {
    grid-template-columns: 1fr;
  }
  .option-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .opt-control {
    align-self: flex-end;
    margin-top: 10px;
  }
}
