/* Booking Wizard Styles */

.booking-wizard-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Progress Steps */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.wizard-progress::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
  background: #4caf50;
  color: white;
}

.step-label {
  font-size: 12px;
  color: #666;
  text-align: center;
}

.progress-step.active .step-label {
  color: #4caf50;
  font-weight: 600;
}

/* Wizard Content */
.wizard-content {
  padding: 20px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tabs */
.booking-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  border-color: #4caf50;
  color: #4caf50;
}

.tab-btn.active {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Form Styles */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group label i {
  margin-right: 5px;
  color: #4caf50;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Phone Input Group */
.phone-input-group {
  display: flex;
  gap: 10px;
}

.dial-code {
  width: 120px;
  flex-shrink: 0;
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 12px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f5f5f5;
}

.suggestion-item i {
  margin-right: 8px;
  color: #4caf50;
}

/* Vehicle Prices Preview */
.vehicle-prices-preview {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.loading-prices {
  text-align: center;
  color: #666;
  padding: 20px;
}

.vehicle-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.vehicle-price-item:hover {
  border-color: #4caf50;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vehicle-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.vehicle-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.vehicle-details h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #333;
}

.vehicle-details p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.vehicle-price {
  font-size: 20px;
  font-weight: bold;
  color: #4caf50;
}

/* Buttons */
.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #4caf50;
  color: white;
}

.btn-primary:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-next,
.btn-back,
#proceed-to-payment {
  margin-top: 10px;
}

.btn-back {
  margin-right: 10px;
}

.btn-link {
  background: none;
  border: none;
  color: #4caf50;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 450px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #333;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.modal-content p {
  color: #666;
  margin-bottom: 20px;
}

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.otp-input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.btn-verify {
  width: 100%;
  margin-top: 15px;
}

.resend-otp {
  text-align: center;
  margin-top: 15px;
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4caf50;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
}

/* Alert Messages */
.alert {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-wizard-container {
    margin: 20px;
    padding: 15px;
  }

  .wizard-progress {
    flex-wrap: wrap;
  }

  .progress-step {
    flex: 0 0 50%;
    margin-bottom: 20px;
  }

  .step-label {
    font-size: 10px;
  }

  .booking-tabs {
    flex-direction: column;
  }

  .phone-input-group {
    flex-direction: column;
  }

  .dial-code {
    width: 100%;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

/* User Menu Styles */
.bw-auth-area {
  position: relative;
}

.bw-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: #f5f5f5;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bw-user-menu:hover {
  background: #e0e0e0;
}

.bw-user-icon {
  font-size: 20px;
}

.bw-user-name {
  font-weight: 500;
  color: #333;
}

.bw-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  display: none;
  z-index: 1000;
}

.bw-user-menu:hover .bw-user-dropdown {
  display: block;
}

.bw-user-dropdown a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}

.bw-user-dropdown a:hover {
  background: #f5f5f5;
}

#login-btn {
  padding: 8px 20px;
  background: #4caf50;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

#login-btn:hover {
  background: #45a049;
}

/* Stops Section */
.stops-container {
  margin-bottom: 15px;
}

.stop-item {
  position: relative;
  margin-bottom: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.stop-item .remove-stop {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.btn-add-stop {
  padding: 10px 20px;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-add-stop:hover {
  background: #1976d2;
}

/* Vehicle Selection Grid */
.vehicle-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.vehicle-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.vehicle-card:hover {
  border-color: #4caf50;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.vehicle-card.selected {
  border-color: #4caf50;
  background: #f1f8f4;
}

.vehicle-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.vehicle-card-icon img {
  width: 80px;
  height: 60px;
  object-fit: contain;
}

.vehicle-card-info h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #333;
}

.vehicle-card-info p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.vehicle-card-price {
  font-size: 28px;
  font-weight: bold;
  color: #4caf50;
  text-align: center;
  margin: 15px 0;
}

.vehicle-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.vehicle-card-features li {
  padding: 5px 0;
  font-size: 13px;
  color: #666;
}

.vehicle-card-features li i {
  margin-right: 8px;
  color: #4caf50;
}

.btn-select-vehicle {
  width: 100%;
  padding: 12px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-select-vehicle:hover {
  background: #45a049;
}

.vehicle-card.selected .btn-select-vehicle {
  background: white !important;
  color: #d2af58 !important;
}
.vehicle-card.selected h3,
.vehicle-card.selected p,
.vehicle-card.selected .vehicle-card-price,
.vehicle-card.selected li,
.vehicle-card.selected i {
  color: white !important;
}
/* Payment Summary */
.payment-summary {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.payment-summary h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  font-size: 18px;
  font-weight: bold;
  color: #4caf50;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid #4caf50;
}

/* Stripe Card Element */
.stripe-card-element {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
}

.card-errors {
  color: #f44336;
  margin-top: 8px;
  font-size: 14px;
}

/* Step Actions */
.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.step-actions button {
  flex: 1;
}

/* Fix stops container */
.stops-container {
  min-height: 20px;
}

.stop-item {
  position: relative;
  margin-bottom: 15px;
  padding: 15px;
  padding-right: 50px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.stop-item .remove-stop {
  position: absolute;
  top: 15px;
  right: 25px;
  background: #f44336;
  /* color: white; */
  border: none !important;
  border-radius: 5px !important;
  height: 40px;
  cursor: pointer;
  font-size: 30px;
  line-height: 14px;
  padding: 5px !important;
  transition: all 0.3s ease;
}

.stop-item .remove-stop:hover {
  background: #d32f2f;
  transform: scale(1.1);
}

.stop-item .form-group {
  margin-bottom: 0;
}
.btn-add-stop {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #666 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.btn-add-stop i {
  font-size: 12px !important;
}

.btn-add-stop:hover {
  color: #000 !important;
  text-decoration: underline !important;
}

.btn-add-stop:focus {
  outline: none !important;
}

.wizard-progress {
  position: relative;
}

.wizard-car {
  position: absolute;
  top: -25px;
  font-size: 26px;
  transition:
    left 0.5s ease,
    transform 0.25s ease;
  transform: scaleX(-1); /* face right initially */
}

/* Face right */
.wizard-car.forward {
  transform: scaleX(1);
}

/* Face left */
.wizard-car.backward {
  transform: scaleX(-1);
}
/* Map Container Styles */
.route-map-container {
  position: relative;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

#route-map {
  border: 2px solid #e0e0e0;
}

/* Route Info Overlay */
.route-info-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  pointer-events: none;
}

.route-info-card {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
}

.route-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: #333;
}

.route-info-item:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.route-info-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.pickup-icon {
  color: #4caf50;
}

.dropoff-icon {
  color: #f44336;
}

.distance-info {
  font-weight: 600;
  color: #1976d2;
}

.distance-info i {
  color: #1976d2;
}

/* Vehicle Selection */
.vehicle-selection-container {
  margin-top: 30px;
}

.vehicle-selection-container h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.vehicle-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.vehicle-card:hover {
  border-color: #1976d2;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.15);
}

.vehicle-card.selected {
  border-color: #fff;
  background: #d2af58 !important;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.2);
}

.vehicle-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

.vehicle-card h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
}

.vehicle-card .vehicle-capacity {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.vehicle-card .vehicle-price {
  font-size: 22px;
  font-weight: 700;
  color: #1976d2;
}

/* Responsive Design */
@media (max-width: 768px) {
  #route-map {
    height: 300px;
  }

  .route-info-overlay {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .route-info-card {
    padding: 12px 16px;
  }

  .route-info-item {
    font-size: 12px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }
}
/* User Profile Section */
.user-profile-section {
  position: relative;
  display: flex;
  justify-content: flex-end; /* ✅ Align to right */
  margin-bottom: 20px;
}

.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-profile-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s;
}

.user-profile-btn:hover {
  background: #f5f5f5;
  border-color: #4caf50;
}

.user-profile-btn i.fa-user-circle {
  font-size: 20px;
  color: #4caf50;
}

.user-profile-btn i.fa-chevron-down {
  font-size: 12px;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  z-index: 1000;
}

.user-dropdown.active .user-dropdown-menu {
  display: block;
}

.user-dropdown-menu .dropdown-item {
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  transition: background 0.2s;
}

.user-dropdown-menu .dropdown-item:hover {
  background: #f5f5f5;
}

.user-dropdown-menu .dropdown-item i {
  color: #f44336;
}
/* Driver Tracking Panel - Fixed on Right Side */
.driver-tracking-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  transition: all 0.3s ease;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.driver-tracking-panel.minimized {
  height: 70px;
  overflow: hidden;
}

.driver-tracking-panel.minimized .tracking-content {
  display: none;
}

.tracking-header {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.tracking-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-status {
  display: flex;
  align-items: center;
}

.status-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.status-badge.searching {
  background: rgba(255, 193, 7, 0.9);
  color: #333;
}

.status-badge.found {
  background: rgba(33, 150, 243, 0.9);
  color: white;
}

.status-badge.arriving {
  background: rgba(255, 152, 0, 0.9);
  color: white;
}

.status-badge.arrived {
  background: rgba(76, 175, 80, 0.9);
  color: white;
}

.status-badge.started {
  background: rgba(156, 39, 176, 0.9);
  color: white;
}

.tracking-content {
  padding: 15px;
  overflow-y: auto;
  flex: 1;
}

/* Driver Info */
.driver-info {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
}

.driver-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #4caf50;
  flex-shrink: 0;
}

.driver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-details {
  flex: 1;
}

.driver-details h5 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.driver-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 13px;
  color: #666;
}

.driver-meta .fa-star {
  color: #ffc107;
}

.driver-plate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
}

/* Tracking Map */
.tracking-map-container {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
}

.tracking-mini-map {
  width: 100%;
  height: 200px;
}

/* Tracking Stats */
.tracking-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.stat-item {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-item i {
  font-size: 24px;
  color: #4caf50;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Booking Summary Mini */
.booking-summary-mini {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #333;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row i {
  font-size: 16px;
  margin-top: 2px;
}

.pickup-icon {
  color: #4caf50;
}

.dropoff-icon {
  color: #f44336;
}

/* Action Buttons */
.tracking-actions {
  display: flex;
  gap: 10px;
}

.btn-track-action {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
  background: #4caf50;
  color: white;
}

.btn-track-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-track-action.btn-cancel {
  background: #f44336;
}

.btn-track-action.btn-cancel:hover {
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Toggle Button */
.tracking-toggle-btn {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid #4caf50;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  color: #4caf50;
  font-size: 16px;
}

.tracking-toggle-btn:hover {
  background: #4caf50;
  color: white;
}

.driver-tracking-panel.minimized .tracking-toggle-btn i {
  transform: rotate(180deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .driver-tracking-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .tracking-stats {
    grid-template-columns: 1fr;
  }

  .tracking-mini-map {
    height: 150px;
  }
}

/* Pulsing animation for searching status */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.status-badge.searching {
  animation: pulse 2s infinite;
}
/* Cancel Modal Specific Styles */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-actions .btn-secondary {
  background: #9e9e9e;
  color: white;
}

.modal-actions .btn-secondary:hover {
  background: #757575;
}

.modal-actions .btn-cancel {
  background: #f44336;
  color: white;
}

.modal-actions .btn-cancel:hover {
  background: #d32f2f;
}
/* Header Actions Container */
.header-actions-container {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-end;
}

/* Notifications Dropdown */
.notifications-dropdown {
  position: relative;
  display: inline-block;
}

.notifications-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 45px;
  height: 45px;
  transition: all 0.3s;
}

.notifications-btn:hover {
  background: #f5f5f5;
  border-color: #4caf50;
}

.notifications-btn i {
  font-size: 20px;
  color: #333;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #f44336;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  border: 2px solid white;
}

.notifications-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 380px;
  max-width: 90vw;
  max-height: 500px;
  z-index: 1000;
  overflow: hidden;
  flex-direction: column;
}

.notifications-dropdown.active .notifications-dropdown-menu {
  display: flex;
}

.notifications-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.notifications-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.mark-read-btn {
  background: none;
  border: none;
  color: #4caf50;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.mark-read-btn:hover {
  background: rgba(76, 175, 80, 0.1);
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  max-height: 350px;
}

.notifications-loading {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.notification-empty i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #ddd;
}

.notification-item {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: #e8f5e9;
}

.notification-item.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #4caf50;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.notification-icon.booking {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

.notification-icon.driver {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.notification-icon.payment {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.notification-icon.alert {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.notification-message {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

.notification-time {
  font-size: 12px;
  color: #999;
}

.notifications-footer {
  padding: 12px 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.view-all-btn {
  width: 100%;
  padding: 10px;
  border: none;
  background: none;
  color: #4caf50;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.view-all-btn:hover {
  background: rgba(76, 175, 80, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .notifications-dropdown-menu {
    width: calc(100vw - 20px);
    right: -10px;
  }

  .header-actions-container {
    gap: 10px;
  }
  .user-profile-btn {
    padding: 8px 15px;
    font-size: 13px;
  }

  .user-profile-btn span {
    display: none; /* Hide name on mobile */
  }
}
/* Disable Step 2 when user is logged in */
.progress-step[data-step="2"].user-logged-in {
  opacity: 0.5;
  pointer-events: none;
}

.progress-step[data-step="2"].user-logged-in .step-number {
  background: #ccc !important;
}

.progress-step[data-step="2"].user-logged-in .step-label::after {
  content: " (Skipped)";
  font-size: 10px;
  color: #999;
}
/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* Wizard Progress - Better Mobile Layout */
@media (max-width: 576px) {
  .wizard-progress {
    margin-bottom: 30px;
  }

  .wizard-progress::before {
    display: none; /* Remove connecting line on mobile */
  }

  .progress-step {
    flex: 0 0 25%;
    margin-bottom: 0;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-bottom: 5px;
  }

  .step-label {
    font-size: 9px;
    max-width: 60px;
    line-height: 1.2;
  }

  /* Hide car animation on very small screens */
  .wizard-car {
    display: none;
  }
}

/* Container Padding */
@media (max-width: 576px) {
  .booking-wizard-container {
    margin: 10px;
    padding: 12px;
    border-radius: 8px;
  }

  .wizard-content {
    padding: 10px;
  }
}

/* Form Groups */
@media (max-width: 576px) {
  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Tabs */
@media (max-width: 576px) {
  .booking-tabs {
    flex-direction: row; /* Keep horizontal on mobile */
    gap: 8px;
  }

  .tab-btn {
    padding: 12px 10px;
    font-size: 13px;
  }

  .tab-btn i {
    font-size: 14px;
  }
}

/* Stop Items */
@media (max-width: 576px) {
  .stop-item {
    padding: 12px;
    padding-right: 45px;
  }

  .stop-item .remove-stop {
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

/* Buttons */
@media (max-width: 576px) {
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .step-actions {
    flex-direction: column;
  }

  .step-actions button {
    width: 100%;
  }
}

/* Vehicle Selection Grid */
@media (max-width: 576px) {
  .vehicle-selection-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }

  .vehicle-card {
    padding: 15px;
  }

  .vehicle-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vehicle-card-price {
    font-size: 24px;
  }
}

/* Payment Summary */
@media (max-width: 576px) {
  .payment-summary {
    padding: 15px;
  }

  .summary-item {
    font-size: 13px;
    padding: 8px 0;
  }

  .summary-item span:first-child {
    font-size: 12px;
  }
}

/* OTP Modal */
@media (max-width: 576px) {
  .modal-content {
    padding: 20px;
    width: 95%;
  }

  .otp-inputs {
    gap: 8px;
  }

  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* Driver Tracking Panel - Mobile */
@media (max-width: 576px) {
  .driver-tracking-panel {
    right: 5px;
    bottom: 5px;
    left: 5px;
    width: auto;
    max-height: 70vh;
  }

  .tracking-mini-map {
    height: 180px;
  }

  .driver-info {
    padding: 10px;
  }

  .driver-avatar {
    width: 50px;
    height: 50px;
  }

  .tracking-actions {
    flex-direction: column;
  }

  .btn-track-action {
    width: 100%;
  }
}

/* Map Containers */
@media (max-width: 576px) {
  #step2-route-map {
    height: 250px !important;
  }

  .route-map-wrapper {
    margin-bottom: 20px;
  }

  .map-route-info {
    padding: 12px;
  }

  .map-route-info > div {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
}

/* User Profile Section */
@media (max-width: 576px) {
  .user-profile-section {
    margin-bottom: 15px;
  }

  .header-actions-container {
    gap: 8px;
  }

  .user-profile-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .user-profile-btn i.fa-user-circle {
    font-size: 18px;
  }

  #user-name-display {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Notifications - Mobile Fix */
@media (max-width: 576px) {
  .notifications-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .notifications-btn i {
    font-size: 18px;
  }

  .notifications-dropdown-menu {
    position: fixed;
    right: 5px;
    left: 5px;
    top: auto;
    bottom: 5px;
    width: auto;
    max-height: 60vh;
  }

  .notification-item {
    padding: 12px 15px;
  }
}

/* Autocomplete Suggestions */
@media (max-width: 576px) {
  .autocomplete-suggestions {
    font-size: 13px;
  }

  .suggestion-item {
    padding: 10px 12px;
  }
}

/* Landscape Mode for Small Devices */
@media (max-width: 768px) and (orientation: landscape) {
  .driver-tracking-panel {
    max-height: 85vh;
  }

  .tracking-mini-map {
    height: 150px;
  }

  #step2-route-map {
    height: 200px !important;
  }
}

/* Very Small Devices (< 360px) */
@media (max-width: 360px) {
  .step-label {
    font-size: 8px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .wizard-progress {
    margin-bottom: 25px;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Verified User Message */
.verified-user-message {
  animation: fadeIn 0.3s ease;
}

.verified-user-message i.fa-check-circle {
  display: block;
}

.verified-user-message h3 {
  font-size: 24px;
  font-weight: 600;
}

.verified-user-message p {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .verified-user-message {
    padding: 20px;
  }

  .verified-user-message i.fa-check-circle {
    font-size: 36px !important;
  }

  .verified-user-message h3 {
    font-size: 20px;
  }

  .verified-user-message p {
    font-size: 14px;
  }
}
/* Disabled Button State */
#submit-payment:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #9e9e9e !important;
}

#submit-payment:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Success State */
#submit-payment.booking-success {
  background: #4caf50 !important;
  cursor: not-allowed;
}

/* Processing State */
#submit-payment .fa-spinner {
  margin-right: 8px;
}

/* Better Autocomplete Suggestions */
.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f5f5f5;
}

.suggestion-item i {
  margin-top: 2px;
  color: #4caf50;
  flex-shrink: 0;
}

.suggestion-text {
  flex: 1;
}

.suggestion-main {
  font-weight: 500;
  color: #333;
  font-size: 14px;
  margin-bottom: 3px;
}

.suggestion-secondary {
  font-size: 12px;
  color: #666;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .suggestion-item {
    padding: 10px 12px;
  }

  .suggestion-main {
    font-size: 13px;
  }

  .suggestion-secondary {
    font-size: 11px;
  }
}
/* Confirmation Modal */
.confirm-modal .modal-content {
  max-width: 400px;
  text-align: center;
}

.confirm-modal h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 20px;
}

.confirm-modal p {
  color: #666;
  margin-bottom: 25px;
  font-size: 15px;
}

.confirm-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-modal .modal-actions button {
  flex: 1;
  max-width: 150px;
}

/* Booking Type Label */
.booking-type-label {
  animation: fadeIn 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .booking-type-label {
    font-size: 12px;
    padding: 5px 10px;
  }
}
/* Booking History Styles */
.booking-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.filter-btn:hover {
    border-color: #4CAF50;
}

.status-badge {
    display: inline-block;
    white-space: nowrap;
}

.status-pending { background: #FFF3E0; color: #F57C00; }
.status-accepted { background: #E3F2FD; color: #1976D2; }
.status-arrived { background: #F3E5F5; color: #7B1FA2; }
.status-started { background: #E8F5E9; color: #388E3C; }
.status-completed { background: #E8F5E9; color: #2E7D32; }
.status-cancelled { background: #FFEBEE; color: #C62828; }

/* Mobile responsive */
@media (max-width: 576px) {
    .booking-card {
        padding: 15px !important;
    }
    
    .booking-card h3 {
        font-size: 14px !important;
    }
}

/* Booking Details Modal */
#booking-details-modal .modal-content {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-details-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styling */
.booking-details-body::-webkit-scrollbar {
    width: 6px;
}

.booking-details-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.booking-details-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.booking-details-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile responsive */
@media (max-width: 576px) {
    #booking-details-modal .modal-content {
        max-width: 95%;
        padding: 20px;
    }
    
    .booking-details-header h2 {
        font-size: 18px !important;
    }
    
    .booking-details-body {
        font-size: 13px;
    }
}

/* Driver Registration Modal */
#driver-registration-modal .modal-content {
    padding: 40px 30px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.become-driver {
    font-weight: 600;
    color: #4CAF50 !important;
}

.become-driver:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    #driver-registration-modal .modal-content {
        padding: 20px 15px;
    }
}