/* --- Estilos Globales --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

/* --- Página de Inicio (Landing) --- */
.landing-page {
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  color: white;
  text-align: center;
  padding: 1rem;
}
.landing-page .container {
  max-width: 650px;
}
.landing-page h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.landing-page p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}
.landing-page .button {
  background: #27ae60;
  padding: 1rem 2.5rem;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}
.landing-page .button:hover {
  background: #2ecc71;
  transform: translateY(-3px);
}

/* --- Página del Formulario de Registro --- */
.form-page {
  background-color: #f4f7f8;
  padding: 1rem;
}
.form-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
}

/* --- NUEVO: Clase para ocultar el formulario --- */
form.hidden {
  display: none;
}

form h2 {
  margin-bottom: 1.5rem;
  color: #333;
  text-align: center;
  font-size: 1.8rem;
}
.step {
  display: none;
  flex-direction: column;
}
.step.active {
  display: flex;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.option-box {
  border-radius: 10px;
  padding: 1.5rem;
  color: white;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #3498db;
}
.option-box[data-value="delegacion_total"] { background: #27ae60; }
.option-box[data-value="parcial"] { background: #f39c12; }
.option-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.option-box.selected {
  box-shadow: 0 0 0 4px #2980b9;
  transform: translateY(-5px);
}
.option-box img {
  max-width: 60px;
  margin-bottom: 1rem;
}
.option-box small {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 0.5rem;
}
label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #555;
  margin-top: 1rem;
}
label:first-child {
  margin-top: 0;
}
textarea, select, input[type="text"], input[type="email"], input[type="number"] {
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 1rem;
  background-color: #fdfdfd;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
textarea:focus, select:focus, input:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}
.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}
button {
  background: #27ae60;
  border: none;
  color: white;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
button:hover:not(:disabled) {
  background: #2ecc71;
  transform: translateY(-2px);
}
button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

/* --- NUEVO: Estilos para el mensaje de estado --- */
#form-submission-status {
  text-align: center;
  padding: 2rem 0;
}
#form-submission-status h3 {
  color: #27ae60; /* Verde para éxito */
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
#form-submission-status p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}
#form-submission-status.error h3 {
  color: #c0392b; /* Rojo para error */
}


/* --- Media Queries --- */
@media (min-width: 768px) {
  .form-container {
    padding: 2.5rem 3rem;
  }
  .options {
    flex-direction: row;
  }
  .landing-page h1 {
    font-size: 3.5rem;
  }
}