/* Modern Glassmorphism Auth Modal Styles */

/* Hide elements by default */
.hidden {
  display: none !important;
}

/* Alert positioning */
.alert {
  margin-top: 1rem;
}

.alert.hidden {
  display: none !important;
}

.modern-auth-modal .modal-dialog {
  max-width: 800px;
  margin: 1.75rem auto;
  max-height: 95vh; /* Prevent modal from exceeding viewport height */
}

.modern-auth-modal.driver-signup .modal-dialog {
  max-width: 900px;
  margin: 1.75rem auto;
  max-height: 95vh; /* Ensure modal doesn't exceed viewport height */
}

/* Driver Registration Modal - Larger size for better layout */
.modern-auth-modal .modal-dialog.modal-lg {
  max-width: 1000px;
  margin: 1rem auto;
  width: 115%;
  max-height: 95vh; /* Ensure large modal doesn't exceed viewport */
}

.glassmorphism-modal {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  position: relative;
  overflow: hidden;
  max-height: 90vh; /* Limit modal height to 90% of viewport */
  display: flex;
  flex-direction: column;
}

.glassmorphism-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #172a74, #21a9af);
  opacity: 0.8;
  z-index: -10;
  pointer-events: none;
}

.glassmorphism-modal .modal-body {
  padding: 2.5rem 2rem;
  color: white;
  position: relative;
  z-index: 1;
  overflow-y: auto; /* Enable vertical scrolling */
  flex: 1; /* Take remaining space */
  max-height: calc(90vh - 120px); /* Account for header/footer space */
}

/* Enhanced padding for driver registration modal */
.modal-lg .glassmorphism-modal .modal-body {
  padding: 2.5rem 4rem 2.5rem 4rem;
  overflow-y: auto; /* Enable scrolling for large modals */
  max-height: calc(95vh - 120px); /* Limit height for scrolling */
}

/* Auth Icon */
.auth-icon-container {
  margin-bottom: 1.5rem;
}

.auth-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-icon i {
  font-size: 2rem;
  color: white;
}

/* Titles */
.auth-title {
  color: white;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Form Styles */
.auth-form {
  margin-top: 1rem;
}

.auth-form .form-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
  font-size: 1rem;
  /* Ensure icons never intercept clicks so inputs remain interactive */
  pointer-events: none;
}

.auth-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 12px 15px 12px 45px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
  /* Keep input on top of decorative icons */
  position: relative;
  z-index: 3;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.auth-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.auth-input:focus + .input-icon {
  color: white;
}

/* Textarea specific */
textarea.auth-input {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
  padding-top: 12px;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.form-check {
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 8px;
  margin-top: 0;
}

.form-check-label {
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  margin-bottom: 0;
}

.forgot-password-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-password-link:hover {
  color: white;
  text-decoration: underline;
}

/* Auth Button */
.auth-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 0.5rem;
  cursor: pointer;
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

.auth-btn:active {
  transform: translateY(0);
}

/* Links */
.signup-link {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.signup-link a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.signup-link a:hover {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.9);
}

/* Alerts */
.modern-auth-modal .alert {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  padding: 10px 15px;
}

.modern-auth-modal .alert-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.modern-auth-modal .alert-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Responsive Design */
@media (max-width: 576px) {
  .modern-auth-modal .modal-dialog {
    margin: 1rem;
    max-width: none;
  }

  .glassmorphism-modal .modal-body {
    padding: 2rem 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-icon {
    width: 60px;
    height: 60px;
  }

  .auth-icon i {
    font-size: 1.5rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Driver Registration Modal Specific Styles */
#driverSignUpModal .form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  display: block;
  letter-spacing: 0.3px;
}

#driverSignUpModal .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 14px 18px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 0;
  min-height: 48px;
  width: 100%;
}

#driverSignUpModal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

#driverSignUpModal .form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

#driverSignUpModal .form-group {
  margin-bottom: 1.8rem;
}

#driverSignUpModal .row {
  margin-left: -15px;
  margin-right: -15px;
}

#driverSignUpModal .row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

#driverSignUpModal select.form-control {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 40px;
}

#driverSignUpModal textarea.form-control {
  resize: vertical;
  min-height: 100px;
  max-height: 150px;
  padding: 14px 18px;
}

#driverSignUpModal input[type="file"].form-control {
  padding: 10px 15px;
  font-size: 0.95rem;
  min-height: 48px;
}

#driverSignUpModal input[type="date"].form-control {
  color-scheme: dark;
}

#driverSignUpModal input[type="date"].form-control::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Better spacing for file upload sections */
#driverSignUpModal .row:last-of-type .form-group {
  margin-bottom: 1rem;
}

/* Additional spacing improvements for driver registration */
#driverSignUpModal .auth-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

#driverSignUpModal .auth-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 1rem;
}

#driverSignUpModal .auth-icon i {
  font-size: 2.2rem;
}

/* Better button styling */
#driverSignUpModal .auth-btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  min-height: 55px;
}

/* Improved select dropdown spacing */
#driverSignUpModal select.form-control {
  padding-right: 45px;
  background-position: right 15px center;
}

/* Enhanced form field focus states */
#driverSignUpModal .form-control:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive Improvements for Driver Registration */
@media (max-width: 768px) {
  .modern-auth-modal .modal-dialog.modal-lg {
    max-width: 98%;
    margin: 0.5rem auto;
    width: 98%;
  }

  .modal-lg .glassmorphism-modal .modal-body {
    padding: 2rem 2rem;
  }

  #driverSignUpModal .auth-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  #driverSignUpModal .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  #driverSignUpModal .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 0.5rem;
  }

  #driverSignUpModal .form-group {
    margin-bottom: 1.3rem;
  }

  #driverSignUpModal .form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  #driverSignUpModal .form-control {
    padding: 12px 15px;
    font-size: 0.95rem;
    min-height: 44px;
  }
}

@media (max-width: 576px) {
  .modal-lg .glassmorphism-modal .modal-body {
    padding: 1.5rem 1.2rem;
  }

  #driverSignUpModal .auth-title {
    font-size: 1.4rem;
  }

  #driverSignUpModal .auth-icon {
    width: 70px;
    height: 70px;
  }

  #driverSignUpModal .auth-icon i {
    font-size: 1.8rem;
  }

  #driverSignUpModal .form-control {
    padding: 10px 12px;
    font-size: 0.9rem;
    min-height: 42px;
  }

  #driverSignUpModal .auth-btn {
    padding: 12px 30px;
    font-size: 1rem;
    min-height: 50px;
  }
}

/* Animation */
.modern-auth-modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.modern-auth-modal.show .modal-dialog {
  transform: none;
}

/* Loading state */
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn.loading {
  position: relative;
}

.auth-btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Date input specific styling */
input[type="date"].auth-input {
  color-scheme: dark;
}

input[type="date"].auth-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* MULTI-STEP FORM REDESIGN */
.driver-signup-modal {
  max-width: 900px !important;
}

.driver-signup-modal .modal-body {
  padding: 3rem 2.5rem;
  min-height: 600px;
  overflow-y: auto; /* Enable vertical scrolling for long forms */
  max-height: calc(90vh - 120px); /* Limit height to allow scrolling */
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  min-width: 120px;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.4s ease;
  margin-bottom: 0.5rem;
}

.step-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.progress-step.active .step-circle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.progress-step.active .step-label {
  color: white;
  font-weight: 600;
}

.progress-step.completed .step-circle {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-color: #11998e;
  color: white;
}

.progress-step.completed .step-circle i {
  font-size: 1rem;
}

.progress-step.completed .step-label {
  color: #38ef7d;
}

/* Form Steps Container */
.form-steps-container {
  position: relative;
  min-height: 400px;
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Step Headers */
.step-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.step-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Enhanced Form Controls */
.form-group-enhanced {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-label-enhanced {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-label-enhanced.required::after {
  content: " *";
  color: #ff6b6b;
  font-weight: bold;
}

.form-control-enhanced {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  padding: 15px 20px !important;
  color: white !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  backdrop-filter: blur(10px);
  pointer-events: auto !important;
  z-index: auto !important;
}

.form-control-enhanced::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
}

.form-control-enhanced:focus {
  outline: none !important;
  border-color: #667eea !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2) !important;
  transform: translateY(-2px);
}

.form-control-enhanced.is-valid {
  border-color: #38ef7d !important;
  background: rgba(56, 239, 125, 0.1) !important;
}

.form-control-enhanced.is-invalid {
  border-color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.1) !important;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Validation Feedback */
.validation-feedback {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.validation-feedback.invalid {
  color: #ff6b6b;
}

.validation-feedback.valid {
  color: #38ef7d;
}

/* File Upload Redesign */
.file-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.file-upload-area:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.file-upload-area.has-file {
  border-color: #38ef7d;
  background: rgba(56, 239, 125, 0.1);
}

.file-upload-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.file-upload-area:hover .file-upload-icon {
  color: #667eea;
  transform: scale(1.1);
}

.file-upload-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.file-upload-subtext {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

.file-input-hidden {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Navigation Buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
}

.nav-btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Select Dropdown Enhancement */
select.form-control-enhanced {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="white" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  appearance: none;
}

/* Fix select dropdown options visibility */
select.form-control-enhanced option {
  background-color: #2c3e50 !important;
  color: white !important;
  padding: 8px !important;
}

select.form-control-enhanced:focus option {
  background-color: #34495e !important;
  color: white !important;
}

/* Ensure Modal Interactivity */
.driver-signup .modal-dialog,
.driver-signup .modal-content,
.driver-signup .modal-body,
.driver-signup .form-steps-container,
.driver-signup .form-step {
  pointer-events: auto !important;
  z-index: auto !important;
}

.driver-signup input,
.driver-signup textarea,
.driver-signup select,
.driver-signup button {
  pointer-events: auto !important;
  position: relative !important;
  user-select: auto !important;
}

.driver-signup input:focus,
.driver-signup textarea:focus,
.driver-signup select:focus {
  pointer-events: auto !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .driver-signup-modal .modal-body {
    padding: 2rem 1.5rem;
  }

  .progress-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .progress-steps::before {
    display: none;
  }

  .step-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-btn {
    width: 100%;
  }

  .file-upload-area {
    padding: 1.5rem;
  }

  .glassmorphism-modal {
    max-height: 95vh; /* Use more screen space on mobile */
  }

  .glassmorphism-modal .modal-body,
  .driver-signup-modal .modal-body {
    max-height: calc(95vh - 100px); /* Adjust for mobile */
  }
}

/* Fix for input field interaction issues */
#driverSignUpModal input,
#driverSignUpModal textarea,
#driverSignUpModal select,
#driverSignUpModal button,
#driverLoginModal input,
#driverLoginModal textarea,
#driverLoginModal select,
#driverLoginModal button,
.form-control-enhanced,
.auth-input,
.form-control,
input,
textarea,
select,
button.nav-btn {
  pointer-events: auto !important;
  position: relative !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  cursor: text !important;
  z-index: 1 !important;
}

button.nav-btn,
button.auth-btn,
button {
  cursor: pointer !important;
}

.modal input,
.modal textarea,
.modal select {
  pointer-events: auto !important;
  user-select: text !important;
  cursor: text !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

#driverSignUpModal input,
#driverSignUpModal textarea,
#driverSignUpModal select,
#loginModal input,
#signUpModal input,
#signUpModal textarea {
  pointer-events: auto !important;
  user-select: text !important;
  cursor: text !important;
  z-index: 1 !important;
  position: relative !important;
}

/* Ensure modal content is always interactive */
.modal-content,
.modal-body,
.glassmorphism-modal,
.form-step,
.form-steps-container {
  pointer-events: auto !important;
}

/* Make sure no overlay blocks input */
.glassmorphism-modal::before {
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Force input interactivity - CRITICAL FIX */
.modal input,
.modal textarea,
.modal select,
.modal button {
  pointer-events: auto !important;
  user-select: text !important;
  cursor: text !important;
  position: relative !important;
  z-index: 9999 !important;
  opacity: 1 !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  outline: 2px solid #667eea !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.modal button {
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 9999 !important;
}

/* Ensure text is always visible */
#driverSignUpModal input,
#driverSignUpModal textarea,
#driverSignUpModal select {
  color: white !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

#driverSignUpModal input::placeholder,
#driverSignUpModal textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Multi-step Form Styles */
.form-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 0.8rem;
}

.step.active {
  color: white;
}

.step.active .step-number {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.step-connector {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 10px;
}

/* Form Step Content */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* Required Field Indicators */
.form-label.required::after {
  content: " *";
  color: #ff6b6b;
}

/* Form Control Improvements */
.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  color: white;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-control.is-valid {
  border-color: rgba(16, 185, 129, 0.6);
}

.form-control.is-invalid {
  border-color: rgba(239, 68, 68, 0.6);
}

/* Validation Feedback */
.invalid-feedback {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Step Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-step {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
}

.btn-step:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-step:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Multi-step Form Styles */
.form-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.step {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 500;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.step.active {
  color: white;
}

.step.active .step-number {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.step.completed .step-number {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.6);
}

.step-connector {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 10px;
}

.step.completed + .step .step-connector {
  background: rgba(16, 185, 129, 0.4);
}

/* Form Step Content */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Required Field Indicators */
.form-label.required::after {
  content: " *";
  color: #ff6b6b;
  font-weight: bold;
}

/* Form Group Improvements */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Input Validation States */
.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-control.is-valid {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.1);
}

.form-control.is-invalid {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
}

/* Validation Feedback */
.invalid-feedback {
  display: block;
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.valid-feedback {
  display: block;
  color: #51cf66;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* File Upload Improvements */
.file-upload-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-upload-input {
  position: absolute;
  left: -9999px;
}

.file-upload-label {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  color: rgba(255, 255, 255, 0.8);
}

.file-upload-label:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.file-upload-label i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.file-selected {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Step Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-step {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-step:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-step:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* License Category Descriptions */
.license-info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Form Section Headers */
.form-section-header {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Improved Grid Alignment */
.row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  .form-steps {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .step-connector {
    display: none;
  }

  .step-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .btn-step {
    width: 100%;
  }
}
