/*
  Formulario de inscripción — integración con la marca Escuela FEP.
  Sobrescribe el estilo por defecto de Fluent Forms (.ff-*) con la
  identidad rojo/negro. Selectores prefijados con .frm-fluent-form
  para ganar por especificidad sin depender del orden de carga.
*/

.frm-fluent-form {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 1.8rem 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .06);
  counter-reset: efep-sec;
}
@media (max-width: 600px) {
  .frm-fluent-form { padding: 1.2rem 1.1rem; }
}

.frm-fluent-form .ff-el-group {
  margin-bottom: 1.1rem;
}

/* Etiquetas de campo */
.frm-fluent-form .ff-el-input--label label,
.frm-fluent-form .ff-el-input--label {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: .35rem;
}

/* Campos de texto, email, select y área de texto */
.frm-fluent-form .ff-el-form-control {
  width: 100%;
  padding: .7rem .85rem;
  border: 1.5px solid #d4d4d4;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.frm-fluent-form .ff-el-form-control:focus {
  border-color: #e10600;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, .15);
  outline: none;
}

/* Asterisco de campo obligatorio en rojo */
.frm-fluent-form .ff-el-is-required label:after {
  color: #e10600;
}

/* Casilla de consentimiento RGPD */
.frm-fluent-form .ff-el-form-check label {
  font-weight: 400;
  color: #333;
  line-height: 1.45;
}

.frm-fluent-form input[type="checkbox"].ff-el-form-check-input {
  accent-color: #e10600;
  width: 1.1rem;
  height: 1.1rem;
}

/* Botón de envío con el rojo de marca */
.frm-fluent-form .ff-btn-submit {
  background: #e10600 !important;
  border: none !important;
  color: #fff !important;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  padding: .85rem 1.9rem;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.frm-fluent-form .ff-btn-submit:hover {
  background: #b30500 !important;
  transform: translateY(-1px);
}

/* Errores de validación */
.frm-fluent-form .ff-el-is-error .ff-el-form-control,
.frm-fluent-form .has-error .ff-el-form-control {
  border-color: #e10600;
}

.frm-fluent-form .error.text-danger,
.frm-fluent-form .ff-el-is-error .text-danger {
  color: #e10600;
  font-size: .9rem;
}

/* Mensaje de confirmación tras enviar */
.ff-message-success {
  background: #f0fbf2;
  border: 1.5px solid #34a853;
  color: #176c2c;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 1.02rem;
}

/* Doble mapa de sedes en la página de Contacto */
.maps-sedes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.maps-sedes .map-col h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
}
@media (max-width: 760px) {
  .maps-sedes { grid-template-columns: 1fr; }
}

/* ============================================================
   Formulario de inscripción multi-sección (estética de marca)
   ============================================================ */

/* Cabecera de cada sección, numerada como un "paso" */
.frm-fluent-form .ff-el-section-break { margin: 1.7rem 0 .3rem; padding: 0; border: 0; }
.frm-fluent-form .ff-el-section-break hr { display: none; }
.frm-fluent-form .efep-step {
  counter-increment: efep-sec;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 .2rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid #f3d4d2;
}
.frm-fluent-form .efep-step::before {
  content: counter(efep-sec);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e10600;
  color: #fff;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Opciones de tipo radio en línea, con acento de marca */
.frm-fluent-form .ff-el-form-check { display: inline-flex; align-items: center; margin: 0 18px 6px 0; }
.frm-fluent-form input[type="radio"].ff-el-form-check-input {
  accent-color: #e10600;
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 6px;
}

/* Aviso de documentación a aportar */
.frm-fluent-form .efep-aviso {
  background: #fff8e6;
  border: 1px solid #f0d98a;
  border-left: 4px solid #e8b800;
  border-radius: 8px;
  padding: .9rem 1.1rem;
  font-size: .92rem;
  color: #5c4a00;
  line-height: 1.5;
}

/* Nota de privacidad sobre la casilla de consentimiento */
.frm-fluent-form .efep-rgpd-nota {
  font-size: .9rem;
  color: #555;
  margin-bottom: .5rem;
}
.frm-fluent-form .efep-rgpd-nota a { color: #e10600; }

/* Botón alternativo de WhatsApp bajo el formulario de contacto */
.form-wsp-alt {
  text-align: center;
  margin: 1.3rem 0 0;
}
.form-wsp-alt .btn-wsp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Campo "Curso de interés" bloqueado (viene preseleccionado desde el curso) */
.frm-fluent-form input.efep-locked,
.frm-fluent-form .ff-el-form-control.efep-locked {
  background: #f4f4f5;
  color: #444;
  cursor: not-allowed;
  border-style: dashed;
}
