/**
 * ECOTEC Posgrado Forms — estilos unificados (versión compacta)
 */

.epf-form {
  padding: 4px;
  max-width: 720px;
  box-sizing: border-box;
}

.epf-form label {
  font-weight: 600;
  margin-bottom: 3px;
  display: block;
  color: #403f2b;
  font-size: 13px;
}

.epf-form .epf-req {
  color: #c00;
}

.epf-form input[type="text"],
.epf-form input[type="email"],
.epf-form input[type="tel"],
.epf-form input[type="number"],
.epf-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  padding: 8px 12px;
  background: #fff;
  color: #403f2b;
  outline: none;
  box-sizing: border-box;
  line-height: 1.3;
}

.epf-form input:focus,
.epf-form select:focus {
  border-color: #bfc7d1;
  box-shadow: 0 0 0 2px rgba(10, 92, 168, .15);
}

.epf-form .epf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: start;
}

.epf-form .epf-field {
  margin: 0;
}

.epf-form .epf-full {
  grid-column: span 2;
}

.epf-form .epf-checkbox {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #403f2b;
  line-height: 1.3;
  font-weight: 400;
}

.epf-form .epf-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #0a5ca8;
  flex-shrink: 0;
}

.epf-form .epf-checkbox a {
  color: #0a5ca8;
  font-weight: 700;
  text-decoration: underline;
}

.epf-form button[type="submit"] {
  width: 100%;
  background: #0a5ca8;
  color: #fff;
  font-size: 16px;
  padding: 10px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  transition: opacity .15s ease;
}

.epf-form button[type="submit"]:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.epf-form .epf-error {
  margin-top: 10px;
  padding: 8px 10px;
  background: #fff2f2;
  border: 1px solid #ffcaca;
  color: #a30000;
  border-radius: 8px;
  font-size: 13px;
}

.epf-form .epf-hp {
  /* Honeypot oculto (refuerzo por si el inline style se sobreescribe) */
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 600px) {
  .epf-form .epf-grid {
    grid-template-columns: 1fr;
  }
  .epf-form .epf-full {
    grid-column: span 1;
  }
}

/* Estado deshabilitado para lógica SENESCYT */
.epf-form .epf-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.epf-form .epf-disabled input,
.epf-form .epf-disabled select,
.epf-form .epf-disabled textarea {
  background: #f5f5f5 !important;
  cursor: not-allowed;
}

/* SENESCYT siempre activa aunque el resto esté bloqueado */
.epf-form .epf-field-senescyt {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.epf-form .epf-field-senescyt select {
  background: #fff !important;
  cursor: pointer;
}

/* Avisos (Bachillerato) */
.epf-form .epf-notice {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.epf-form .epf-notice-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffe8a1;
}

.epf-form .epf-notice-warning a {
  color: #856404;
  font-weight: 700;
  text-decoration: underline;
}
