/*
 * HolDent — Block: Newsletter Form
 */

.holdent-newsletter {
  padding-block: var(--space-4xl);
}

.holdent-newsletter--canvas    { background: var(--color-canvas); }
.holdent-newsletter--alternate { background: var(--color-alternate); }
.holdent-newsletter--dark      { background: var(--color-dark); color: #fff; }

.holdent-newsletter__box {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.holdent-newsletter__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: inherit;
}

.holdent-newsletter__subtitle {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.holdent-newsletter--dark .holdent-newsletter__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Form native */
.holdent-newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .holdent-newsletter__form {
    flex-direction: column;
  }
}

.holdent-newsletter__input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  color: var(--color-ink);
  min-height: 48px;
  transition: border-color var(--transition-fast);
}

.holdent-newsletter__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.holdent-newsletter__submit {
  background: var(--color-dark);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--fs-body-s);
  min-height: 48px;
  white-space: nowrap;
  transition: transform var(--transition-fast);
}

.holdent-newsletter--dark .holdent-newsletter__submit {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.holdent-newsletter__submit:hover {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .holdent-newsletter__submit:hover {
    transform: none;
  }
}

/* Shortcode wrapper */
.holdent-newsletter__shortcode {
  max-width: 420px;
  margin-inline: auto;
}

.holdent-newsletter__empty {
  padding: var(--space-md);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  color: #78350F;
  font-size: var(--fs-body-s);
  font-style: italic;
}

/* GDPR */
.holdent-newsletter__gdpr {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

.holdent-newsletter--dark .holdent-newsletter__gdpr {
  color: rgba(255, 255, 255, 0.5);
}
