/* A Superior Transportation - Main CSS */
:root {
  --st-blue:   #1a8fc1;
  --st-red:    #cc0000;
  --st-dark:   #1a1a2e;
  --st-white:  #ffffff;
  --st-light:  #f4f8fc;
  --st-border: #dde3ea;
  --st-gold:   #c9a84c;
  --st-green:  #1b8a3c;
  --st-shadow: 0 4px 24px rgba(26,143,193,0.12);
}

/* BOOKING WRAP */
#st-booking-wrap { font-family: Arial, Helvetica, sans-serif; max-width: 1200px; margin: 0 auto; }

.st-booking-hero {
  background: linear-gradient(135deg, var(--st-dark) 0%, var(--st-blue) 100%);
  padding: 40px 30px;
  text-align: center;
  color: #fff;
  border-radius: 8px 8px 0 0;
}
.st-booking-hero h2 { font-size: 2rem; margin: 0 0 8px; letter-spacing: 1px; }
.st-booking-hero p  { color: rgba(255,255,255,0.8); margin: 0; }

.st-booking-body { background: var(--st-white); border: 1px solid var(--st-border); border-top: none; border-radius: 0 0 8px 8px; padding: 30px; }

/* STEPS */
.st-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 30px; }
.st-step {
  flex: 1; text-align: center; padding: 12px 8px;
  font-size: 0.85rem; font-weight: 600;
  color: #999; border-bottom: 3px solid var(--st-border);
  transition: all 0.3s;
}
.st-step span {
  display: inline-block; width: 28px; height: 28px; line-height: 28px;
  border-radius: 50%; background: #ddd; color: #999;
  font-size: 0.85rem; margin-right: 6px; transition: all 0.3s;
}
.st-step.active { color: var(--st-blue); border-bottom-color: var(--st-blue); }
.st-step.active span { background: var(--st-blue); color: #fff; }
.st-step.completed { color: var(--st-green); border-bottom-color: var(--st-green); }
.st-step.completed span { background: var(--st-green); color: #fff; }

/* GRID */
.st-booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* STEP CONTENT */
.st-step-content { display: none; }
.st-step-content.active { display: block; }

/* FIELDS */
.st-field { margin-bottom: 18px; }
.st-field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--st-dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.st-field input[type="text"],
.st-field input[type="email"],
.st-field input[type="tel"],
.st-field input[type="date"],
.st-field select,
.st-field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--st-border);
  border-radius: 6px; font-size: 0.95rem; color: var(--st-dark);
  transition: border-color 0.2s; box-sizing: border-box;
  background: #fff;
}
.st-field input:focus, .st-field select:focus, .st-field textarea:focus {
  border-color: var(--st-blue); outline: none;
  box-shadow: 0 0 0 3px rgba(26,143,193,0.1);
}
.req { color: var(--st-red); }

/* FARE BOX */
.st-fare-box {
  background: var(--st-light); border: 1px solid var(--st-border);
  border-radius: 8px; padding: 16px; margin: 16px 0;
}
.st-fare-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px solid var(--st-border); }
.st-fare-row:last-child { border-bottom: none; }
.st-fare-total { font-weight: 700; font-size: 1.1rem; color: var(--st-dark); }
.st-fare-note { font-size: 0.8rem; color: var(--st-blue); margin-top: 8px; font-style: italic; }
.st-prepay-note { color: var(--st-red); font-weight: 600; }

/* PAYMENT */
.st-payment-options { display: flex; gap: 12px; flex-wrap: wrap; }
.st-pay-opt {
  flex: 1; padding: 14px; border: 2px solid var(--st-border);
  border-radius: 8px; cursor: pointer; font-size: 0.9rem;
  transition: all 0.2s; display: flex; align-items: center; gap: 8px;
  min-width: 140px;
}
.st-pay-opt:hover { border-color: var(--st-blue); }
.st-pay-opt.disabled { opacity: 0.4; pointer-events: none; }
.st-pay-opt input { margin: 0; }
#st-card-container { border: 1.5px solid var(--st-border); border-radius: 6px; padding: 12px; min-height: 50px; }

/* NOTICE */
.st-notice {
  background: #fff8e1; border: 1px solid #ffd54f; border-left: 4px solid var(--st-red);
  padding: 12px 16px; border-radius: 4px; font-size: 0.9rem; color: var(--st-dark);
}

/* BUTTONS */
.st-btn {
  display: inline-block; padding: 12px 28px;
  background: var(--st-blue); color: #fff;
  border: none; border-radius: 30px; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; text-decoration: none;
  transition: all 0.2s; letter-spacing: 0.5px;
}
.st-btn:hover { background: var(--st-dark); color: #fff; transform: translateY(-1px); }
.st-btn-next { background: var(--st-blue); }
.st-btn-back { background: #888; margin-right: 10px; }
.st-btn-accept { background: var(--st-green); }
.st-btn-gps { background: var(--st-dark); font-size: 0.8rem; padding: 8px 16px; }
.st-btn-call { background: var(--st-red); margin-left: 10px; }
.st-btn-out { background: transparent; color: var(--st-dark); border: 2px solid var(--st-border); }
.st-btn-sm { padding: 7px 16px; font-size: 0.8rem; margin-left: 8px; }
.st-btn-row { display: flex; align-items: center; margin-top: 20px; }
.st-error { color: var(--st-red); font-size: 0.85rem; margin-top: 6px; }

/* MAP */
.st-map-col {}
#st-map { width: 100%; height: 380px; border-radius: 8px; border: 1px solid var(--st-border); }
.st-map-info { display: flex; gap: 0; margin-top: 12px; border: 1px solid var(--st-border); border-radius: 8px; overflow: hidden; }
.st-map-stat { flex: 1; padding: 12px; text-align: center; border-right: 1px solid var(--st-border); background: var(--st-light); }
.st-map-stat:last-child { border-right: none; }
.st-map-stat-label { display: block; font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
#st-map-dist, #st-map-time, #st-map-fare { font-weight: 700; font-size: 1rem; color: var(--st-dark); }

/* CONFIRMATION */
.st-confirmation { text-align: center; padding: 40px 20px; }
.st-conf-icon { font-size: 4rem; color: var(--st-green); margin-bottom: 16px; }
.st-confirmation h3 { color: var(--st-green); font-size: 1.8rem; margin-bottom: 16px; }
.st-conf-details { background: var(--st-light); border-radius: 8px; padding: 16px; margin: 20px auto; max-width: 400px; text-align: left; }
.st-conf-details p { margin: 6px 0; font-size: 0.9rem; }
.st-conf-note { color: #888; font-size: 0.85rem; margin-top: 20px; }
.st-conf-note a { color: var(--st-blue); }

/* LOADING OVERLAY */
#st-loading-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(26,26,46,0.7); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.st-spinner {
  width: 50px; height: 50px; border: 5px solid rgba(255,255,255,0.3);
  border-top-color: var(--st-blue); border-radius: 50%;
  animation: stSpin 0.8s linear infinite; margin-bottom: 16px;
}
@keyframes stSpin { to { transform: rotate(360deg); } }

/* DRIVER PORTAL */
.st-driver-portal { max-width: 900px; margin: 0 auto; padding: 20px; font-family: Arial, sans-serif; }
.st-driver-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--st-dark); color: #fff; border-radius: 8px; margin-bottom: 20px; }
.st-driver-header h2 { margin: 0; color: #fff; }
.st-admin-notice { background: #fff3cd; border: 1px solid #ffc107; padding: 10px 16px; border-radius: 4px; margin-bottom: 20px; font-size: 0.9rem; }
.st-booking-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.st-booking-card { border: 1px solid var(--st-border); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--st-shadow); }
.st-status-pending  .st-bcard-header { background: #fff3cd; }
.st-status-confirmed .st-bcard-header { background: #d4edda; }
.st-status-accepted  .st-bcard-header { background: #d1ecf1; }
.st-bcard-header { padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.st-bcard-ref { font-weight: 700; font-size: 0.9rem; }
.st-bcard-status { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; }
.st-bcard-body { padding: 14px; font-size: 0.88rem; }
.st-bcard-body p { margin: 4px 0; }
.st-bcard-actions { margin-top: 10px; display: flex; gap: 8px; }
.st-empty { color: #888; text-align: center; padding: 30px; }
.st-driver-login { max-width: 400px; margin: 40px auto; padding: 30px; border: 1px solid var(--st-border); border-radius: 8px; }
.st-login-form .st-field { margin-bottom: 16px; }

/* GAS TRACKER */
.st-gas-wrap { font-family: Arial, sans-serif; }
.st-gas-hero { background: linear-gradient(135deg, #1a1a2e, #1a8fc1); color: #fff; padding: 40px 20px; text-align: center; border-radius: 8px 8px 0 0; }
.st-gas-hero h2 { margin: 0 0 8px; font-size: 1.8rem; }
.st-gas-legend { background: #f4f4f4; padding: 12px 20px; display: flex; gap: 20px; flex-wrap: wrap; }
.st-leg { font-size: 0.85rem; font-weight: 600; }
.st-leg.obama { color: #2e7d32; }
.st-leg.trump { color: #b71c1c; }
.st-leg.biden { color: #1565c0; }
.st-leg.trump2 { color: #880e4f; }
.st-gas-table-wrap { overflow-x: auto; }
.st-gas-table { border-collapse: collapse; width: 100%; min-width: 800px; font-size: 0.85rem; }
.st-gas-table th, .st-gas-table td { border: 1px solid #ddd; padding: 7px 9px; text-align: center; }
.st-gas-era th { font-weight: 700; color: #fff; padding: 9px; }
.st-gas-month { background: #1a1a2e; color: #c9a84c; font-weight: 700; text-align: left; padding-left: 12px; }
.era-obama { background: #2e7d32; } .era-biden { background: #1565c0; } .era-trump { background: #b71c1c; } .era-trump2 { background: #880e4f; }
.era-bg-obama { background: #e8f5e9; } .era-bg-biden { background: #e3f2fd; } .era-bg-trump { background: #ffebee; } .era-bg-trump2 { background: #fce4ec; }
.gas-high { font-weight: 700; color: #b71c1c; }
.gas-low  { font-weight: 700; color: #2e7d32; }

/* SUGGESTED PLACES */
.st-places-wrap { font-family: Arial, sans-serif; max-width: 1200px; margin: 0 auto; }
.st-places-hero { background: linear-gradient(135deg, #1a1a2e, #1a8fc1); color: #fff; padding: 50px 30px; text-align: center; border-radius: 8px; margin-bottom: 30px; }
.st-places-hero h2 { font-size: 2rem; margin: 0 0 10px; }
.st-places-section { margin-bottom: 40px; }
.st-places-section h3 { font-size: 1.4rem; color: var(--st-dark); border-bottom: 3px solid var(--st-blue); padding-bottom: 10px; margin-bottom: 20px; }
.st-places-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.st-place-card { border: 1px solid var(--st-border); border-radius: 8px; padding: 20px; background: #fff; box-shadow: var(--st-shadow); transition: transform 0.2s; }
.st-place-card:hover { transform: translateY(-3px); }
.st-place-card h4 { color: var(--st-blue); font-size: 1rem; margin: 0 0 8px; }
.st-place-card p { color: #555; font-size: 0.88rem; line-height: 1.6; margin: 0 0 12px; }
.st-place-btn { display: inline-block; background: var(--st-blue); color: #fff; padding: 7px 16px; border-radius: 20px; font-size: 0.8rem; text-decoration: none; font-weight: 700; }
.st-place-btn:hover { background: var(--st-dark); }
.st-places-cta { background: var(--st-dark); color: #fff; padding: 50px 30px; text-align: center; border-radius: 8px; margin-top: 40px; }
.st-places-cta h3 { font-size: 1.6rem; margin: 0 0 12px; }
.st-places-cta p { color: rgba(255,255,255,0.7); margin: 0 0 24px; }

/* STATUS BADGES */
.st-status-badge { padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.st-status-pending   { background: #fff3cd; color: #856404; }
.st-status-confirmed { background: #d4edda; color: #155724; }
.st-status-accepted  { background: #d1ecf1; color: #0c5460; }
.st-status-completed { background: #d4edda; color: #155724; }
.st-status-cancelled { background: #f8d7da; color: #721c24; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .st-booking-grid { grid-template-columns: 1fr; }
  .st-map-col { order: -1; }
  #st-map { height: 240px; }
  .st-steps { flex-wrap: wrap; }
  .st-step { font-size: 0.72rem; }
  .st-booking-body { padding: 16px; }
  .st-payment-options { flex-direction: column; }
  .st-places-grid { grid-template-columns: 1fr; }
  .st-driver-header { flex-direction: column; gap: 12px; text-align: center; }
}
