/* ============================================================
   Transfer Booking System – booking.css
   ============================================================ */

/* ---- Wrap ---- */
.tbs-booking-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 40px;
  font-family: inherit;
}

/* ---- Step Indicator Bar ---- */
.tbs-steps-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 24px 0 32px;
  counter-reset: step;
}
.tbs-step-ind {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  color: #aaa;
  font-size: 12px;
  text-align: center;
}
.tbs-step-ind + .tbs-step-ind::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #ddd;
  z-index: 0;
}
.tbs-step-ind span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ddd;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
}
.tbs-step-ind.active {
  color: #1a73e8;
}
.tbs-step-ind.active span {
  background: #1a73e8;
  color: #fff;
}
.tbs-step-ind.done span {
  background: #34a853;
  color: #fff;
}
.tbs-step-ind.done + .tbs-step-ind::before,
.tbs-step-ind.active + .tbs-step-ind::before {
  background: #1a73e8;
}

/* ---- Panel Show/Hide (CRITICAL) ---- */
.tbs-panel {
  display: none !important;
}
.tbs-panel.active {
  display: block !important;
}

/* ---- Panel Title ---- */
.tbs-panel-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #222;
}

/* ---- Form Fields ---- */
.tbs-field {
  margin-bottom: 16px;
}
.tbs-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.tbs-field input[type="text"],
.tbs-field input[type="email"],
.tbs-field input[type="tel"],
.tbs-field input[type="date"],
.tbs-field input[type="time"],
.tbs-field select,
.tbs-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s;
}
.tbs-field input:focus,
.tbs-field select:focus,
.tbs-field textarea:focus {
  border-color: #1a73e8;
  outline: none;
}
.tbs-field textarea {
  resize: vertical;
}

/* ---- Row Layouts ---- */
.tbs-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tbs-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ---- Buttons ---- */
.tbs-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}
.tbs-btn {
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.tbs-btn:active { transform: scale(.97); }
.tbs-btn-primary {
  background: #1a73e8;
  color: #fff;
}
.tbs-btn-primary:hover { background: #1558b0; }
.tbs-btn-primary:disabled { background: #aaa; cursor: not-allowed; }
.tbs-btn-back {
  background: #f1f3f4;
  color: #555;
  margin-right: auto;
}
.tbs-btn-back:hover { background: #e0e0e0; }

/* ---- Search Error ---- */
.tbs-error {
  background: #fce8e6;
  color: #c62828;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 8px;
}

/* ---- Map ---- */
#tbs-map {
  width: 100%;
  height: 260px;
  margin: 12px 0;
  border-radius: 8px;
  background: #e8eaed;
  border: 1px solid #ddd;
}

/* ---- Vehicles Grid ---- */
.tbs-vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.tbs-vehicle-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  background: #fff;
}
.tbs-vehicle-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(26,115,232,.15);
  transform: translateY(-2px);
}
.tbs-vehicle-card.selected {
  border-color: #1a73e8;
  background: #e8f0fe;
  box-shadow: 0 4px 16px rgba(26,115,232,.2);
}
.tbs-vehicle-icon { font-size: 36px; margin-bottom: 8px; }
.tbs-vehicle-name { font-weight: 700; font-size: 15px; color: #222; margin-bottom: 4px; }
.tbs-vehicle-cap { font-size: 12px; color: #777; margin-bottom: 8px; }
.tbs-price {
  font-size: 16px;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 10px;
}
.tbs-select-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.tbs-select-btn:hover { background: #1558b0; }
.tbs-vehicle-card.selected .tbs-select-btn { background: #34a853; }

/* ---- Route Info ---- */
.tbs-route-info {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

/* ---- Payment Layout ---- */
.tbs-payment-wrap {}
.tbs-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 20px;
}
.tbs-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}
.tbs-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* ---- Pay Button ---- */
.tbs-btn-pay {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #34a853, #1e8e3e);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: opacity .2s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tbs-btn-pay:hover { opacity: .9; transform: translateY(-1px); }
.tbs-btn-pay:disabled { background: #aaa; cursor: not-allowed; transform: none; }

/* ---- Summary Box ---- */
.tbs-summary-box {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
}
.tbs-summary-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}
.tbs-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}
.tbs-summary-row:last-child { border-bottom: none; }
.tbs-summary-row span:first-child { color: #666; font-weight: 500; }
.tbs-summary-row span:last-child { font-weight: 600; color: #333; text-align: right; }
.tbs-summary-row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid #e0e0e0;
  border-bottom: none;
}
.tbs-summary-row.total span:first-child { font-weight: 700; color: #333; font-size: 15px; }
.tbs-summary-row.total span:last-child { font-size: 18px; color: #1a73e8; font-weight: 800; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .tbs-row-2, .tbs-row-3 { grid-template-columns: 1fr; }
  .tbs-payment-grid { grid-template-columns: 1fr; }
  .tbs-vehicles-grid { grid-template-columns: 1fr 1fr; }
  .tbs-card-row { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 400px) {
  .tbs-vehicles-grid { grid-template-columns: 1fr; }
}