/**
 * Insurance Quote Form - Estilos v4.4.0
 * Con fix para caché de navegadores móviles
 */
.car-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.progress-bar {
  background: #e0e0e0;
  border-radius: 10px;
  height: 24px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  background: #0E1941;
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
  min-width: 100px;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step h2 {
  color: #0E1941;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.form-step input[type="text"],
.form-step input[type="email"],
.form-step input[type="tel"],
.form-step input[type="date"] {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s;
  background-color: #ffffff;
  color: #333333;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-step input:focus {
  outline: none;
  border-color: #ED7766;
}

.birthdate-label {
  display: block;
  margin-bottom: 5px;
  color: #666;
  font-size: 14px;
}

/* CUSTOM DROPDOWN - MEJORADO PARA MÓVILES */
.custom-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  -webkit-tap-highlight-color: transparent;
}

.custom-dropdown-selected {
  width: 100%;
  padding: 15px;
  padding-right: 40px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #ffffff;
  color: #333333;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

.custom-dropdown-selected::after {
  content: '▼';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #333333;
  pointer-events: none;
}

.custom-dropdown.open .custom-dropdown-selected {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 9999;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-dropdown-options::-webkit-scrollbar {
  width: 8px;
}

.custom-dropdown-options::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.custom-dropdown.open .custom-dropdown-options {
  display: block;
}

.custom-dropdown-option {
  padding: 12px 15px;
  cursor: pointer;
  color: #333333;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  -webkit-user-select: none;
  user-select: none;
}

.custom-dropdown-option:last-child {
  border-bottom: none;
}

.custom-dropdown-option:hover,
.custom-dropdown-option:active {
  background-color: #f0f0f0;
}

.custom-dropdown-option.selected {
  background-color: #ED7766;
  color: #ffffff;
}

/* BUTTONS */
.form-step button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-step button:not(.secondary):not(.option-btn) {
  color: white;
}

.form-step button:not(.secondary):not(.option-btn):hover:not(:disabled) {
  transform: translateY(-2px);
}

.form-step button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-step button.secondary {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.form-step button.secondary:hover {
  background: #e8e8e8;
}

.form-step button.option-btn {
  background: #ffffff;
}

.form-step button.option-btn:hover,
.form-step button.option-btn:active {
  transform: translateY(-2px);
}

.zip-result {
  text-align: center;
  color: #0E1941;
  font-weight: bold;
  margin: 10px 0;
  min-height: 24px;
}

.error-message {
  color: #e74c3c;
  text-align: center;
  margin: 10px 0;
  font-size: 14px;
}

.vehicle-summary {
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-message h2 {
  color: #ED7766;
  font-size: 32px;
}

.success-message p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* RESPONSIVE - MÓVILES */
@media (max-width: 600px) {
  .car-form-wrapper {
    padding: 20px 15px;
  }
  
  .form-step h2 {
    font-size: 20px;
  }
  
  .form-step button {
    font-size: 16px;
    padding: 14px;
  }
  
  .custom-dropdown-options {
    max-height: 180px;
  }
  
  .custom-dropdown-option {
    padding: 14px 15px;
  }
  
  .form-step input[type="text"],
  .form-step input[type="email"],
  .form-step input[type="tel"],
  .form-step input[type="date"] {
    font-size: 16px;
    padding: 14px;
  }
}
