/* =============================================================
   SENDA HEALTH — NEWSLETTER CTA BLOCK
   Componente reutilizable. Usar con template-parts/newsletter-cta.php
   ============================================================= */

.senda-newsletter-cta {
  background: var(--gradient-ocean);
  padding: clamp(3rem, 6vw, 5rem) var(--page-margin);
  color: var(--color-neutral-50);
  text-align: center;
}

.senda-newsletter-cta__inner {
  max-width: 860px;
  margin-inline: auto;
}

.senda-newsletter-cta__label {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-neutral-50);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  font-weight: var(--weight-black);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.senda-newsletter-cta__titulo {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3vw + 0.5rem, 2.25rem);
  font-weight: var(--weight-black);
  color: var(--color-neutral-50);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-5);
}

.senda-newsletter-cta__subtexto {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.88);
  line-height: var(--leading-normal);
  margin: 0 auto var(--space-10);
  max-width: 680px;
}

/* Formulario */
.senda-newsletter-cta__form {
  width: 100%;
  text-align: left;
}

.newsletter-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .newsletter-row {
    flex-direction: row;
    align-items: stretch;
  }

  .newsletter-row__field {
    flex: 1;
  }

  .newsletter-row__submit {
    flex: 0 0 auto;
    width: 200px;
  }
}

.newsletter-row__field {
  flex: 1;
}

.newsletter-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-full) !important; /* pill, igual que el botón */
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--color-neutral-50) !important;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.4;
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--transition-base);
  height: 100%;
  -webkit-appearance: none;
}

.newsletter-input::placeholder,
.senda-newsletter-cta .newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
  opacity: 1 !important;
}

.newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.9);
}

.newsletter-submit {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-neutral-50);
  color: var(--color-brand);
  border: none;
  border-radius: var(--radius-full); /* pill, consistente con inputs */
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.newsletter-submit:hover {
  background-color: var(--color-primary-40);
}

.newsletter-submit:active {
  transform: scale(0.98);
}

.newsletter-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Checkbox de privacidad */
.newsletter-privacy {
  display: flex;
  align-items: center; /* centrado vertical del checkbox con texto */
  gap: var(--space-2);
  justify-content: center; /* centrado horizontal en la fila */
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-small);
  cursor: pointer;
  margin-bottom: var(--space-4);
  text-align: left;
}

.newsletter-privacy input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-neutral-50);
  width: 16px;
  height: 16px;
}

.newsletter-privacy a {
  color: var(--color-neutral-50);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mensajes de estado */
.newsletter-msg {
  display: none;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  text-align: center;
  margin-bottom: var(--space-4);
}

.newsletter-msg--error  { color: #ffb3b3; }
.newsletter-msg--success{ color: #8be8b2; }
