/* ============================================================
   Educa Newsletter – Modal form styles
   ============================================================ */

.edu-nl-modal__body {
  padding: 4px 32px 36px;
}

.edu-nl__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--edu-color-navy, #192B5D);
}

.edu-nl__subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  color: #666;
}

.edu-nl__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-nl__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edu-nl__field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--edu-color-navy, #192B5D);
}

.edu-nl__field label span {
  color: #e53e3e;
  margin-left: 2px;
}

.edu-nl__field input {
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #e2e6ea;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  background: #f8f9fb;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}

.edu-nl__field input:focus {
  border-color: var(--edu-color-primary-soft, #5f6fbd);
  background: #fff;
}

.edu-nl__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.edu-nl__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--edu-color-primary-soft, #5f6fbd);
  cursor: pointer;
}

.edu-nl__check label {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  cursor: pointer;
}

.edu-nl__check label a {
  color: var(--edu-color-primary-soft, #5f6fbd);
  text-decoration: underline;
}

/* Mensaje de respuesta */
.edu-nl__msg {
  font-size: 13px;
  border-radius: 8px;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s ease;
}

.edu-nl__msg--error,
.edu-nl__msg--success {
  max-height: 80px;
  padding: 8px 12px;
}

.edu-nl__msg--error {
  background: #fff2f2;
  color: #c53030;
  border: 1px solid #fed7d7;
}

.edu-nl__msg--success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}

/* Botón de envío */
.edu-nl__submit {
  position: relative;
  height: 48px;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--edu-color-primary-soft, #5f6fbd);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.edu-nl__submit:hover:not(:disabled) {
  background: var(--edu-color-primary-hover, #4a5aa8);
  transform: translateY(-1px);
}

.edu-nl__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.edu-nl__submit-loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.edu-nl__submit.is-loading .edu-nl__submit-text {
  visibility: hidden;
}

.edu-nl__submit.is-loading .edu-nl__submit-loading {
  display: flex;
}

/* Responsive */
@media (max-width: 500px) {
  .edu-nl-modal__body {
    padding: 4px 20px 28px;
  }
}
