/* Estilos para el formulario de leads multipaso */

/* Sección de decisión - Planes pequeños con imagen */
.plan-card-small {
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-card-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* Sección de decisión - Evaluación */
.decision-card {
  transition: all 0.3s ease;
}

.decision-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
  border-color: #007bff !important;
}

.decision-card a.btn {
  transition: all 0.3s ease;
}

.decision-card a.btn:hover {
  background: #0056b3 !important;
}

@media (max-width: 991px) {
  .plan-card-small, .decision-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .plan-card-small {
    margin: 0 auto 30px;
    max-width: 350px;
  }
}

/* Estilos del formulario */
.lead-form-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  margin: 30px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Barra de progreso */
.progress-bar-container {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #007bff;
  border-radius: 10px;
  transition: width 0.4s ease;
  width: 12.5%;
}

/* Contador de pasos */
.step-counter {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 25px;
  font-weight: 500;
}

.step-counter #currentStep {
  color: #007bff;
  font-weight: 700;
  font-size: 15px;
}

/* Pasos del formulario */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

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

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

/* Títulos */
.form-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

.form-title .required-indicator {
  color: #dc3545;
  font-size: 24px;
  margin-left: 5px;
}

.form-subtitle {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 25px;
}

.helper-text {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}

/* Contenedor de opciones */
.options-container {
  display: grid;
  gap: 12px;
  margin-bottom: 25px;
}

/* Tarjetas de opciones */
.option-card {
  position: relative;
  display: block;
  cursor: pointer;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px 18px;
  transition: all 0.3s ease;
  background: white;
}

.option-card:hover {
  border-color: #007bff;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.option-card input[type="radio"]:checked ~ .option-content {
  color: #007bff;
}

.option-card input[type="radio"]:checked {
  border-color: #007bff;
}

.option-card:has(input[type="radio"]:checked) {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.05);
  box-shadow: 0 3px 15px rgba(0, 123, 255, 0.15);
}

.option-content {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease;
}

.option-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

/* Inputs de texto */
.text-input-container {
  margin-bottom: 25px;
}

.text-input-container textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Muli', sans-serif;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.text-input-container textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Inputs de contacto */
.contact-inputs {
  display: grid;
  gap: 15px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Muli', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group small {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* Navegación del formulario */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.form-navigation .btn {
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.form-navigation .btn-primary {
  background: #007bff;
  color: white;
}

.form-navigation .btn-primary:hover:not(:disabled) {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.25);
}

.form-navigation .btn-primary:disabled {
  background: transparent;
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.form-navigation .btn-secondary {
  background: transparent;
  color: #666;
  border: none;
}

.form-navigation .btn-secondary:hover {
  color: #333;
  background: transparent;
}

.form-navigation .btn-success {
  background: #28a745;
  color: white;
}

.form-navigation .btn-success:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.25);
}

.form-navigation .btn-success:disabled {
  background: transparent;
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Mensaje de éxito */
#successMessage {
  text-align: center;
  padding: 40px 20px;
}

.success-content {
  max-width: 450px;
  margin: 0 auto;
}

.success-icon {
  font-size: 60px;
  display: block;
  margin-bottom: 15px;
}

.success-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

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

/* Responsive */
@media (max-width: 768px) {
  .lead-form-container {
    padding: 25px 18px;
  }
  
  .form-title {
    font-size: 20px;
  }
  
  .form-subtitle {
    font-size: 13px;
  }
  
  .option-text {
    font-size: 14px;
  }
  
  .form-navigation {
    flex-direction: column;
  }
  
  .form-navigation .btn {
    width: 100%;
  }
}

/* Animación de error - deshabilitada */

/* Deshabilitar botón siguiente cuando no está listo */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: transparent !important;
  color: #ccc !important;
}