/* ==========================================================================
   Notting Hill Vape — newsletter signup
   NHV-08 - Newsletter

   Depends on the design tokens in ../nhv.css. No colour, font or spacing
   literal below — add a token there first.
   ========================================================================== */

.nhv-newsletter-blurb {
  margin: 0 0 12px;
  font-size: var(--nhv-fs-base);
  line-height: 1.5;
  color: var(--nhv-grey-link);
}

.nhv-newsletter-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 10px;
}

.nhv-newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--nhv-navy-border);
  border-right: 0;
  background: var(--nhv-white);
  color: var(--nhv-ink);
  font-family: var(--nhv-font-body);
  font-size: var(--nhv-fs-base);
  border-radius: var(--nhv-radius);
}
.nhv-newsletter-input::placeholder { color: var(--nhv-ink-soft); }

.nhv-newsletter-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border: 0;
  background: var(--nhv-copper);
  color: var(--nhv-cream-bright);
  font-family: var(--nhv-font-display);
  font-size: var(--nhv-fs-small);
  font-weight: var(--nhv-fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: var(--nhv-radius);
  transition: background var(--nhv-transition);
}
.nhv-newsletter-btn:hover { background: var(--nhv-copper-muted); }
.nhv-newsletter-btn[disabled] { opacity: 0.6; cursor: default; }

.nhv-newsletter-input:focus-visible,
.nhv-newsletter-btn:focus-visible,
.nhv-newsletter-agree input:focus-visible {
  outline: 2px solid var(--nhv-copper);
  outline-offset: 2px;
}

.nhv-newsletter-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: var(--nhv-fs-small);
  font-weight: var(--nhv-fw-normal);
  line-height: 1.4;
  color: var(--nhv-grey-link);
  cursor: pointer;
}
.nhv-newsletter-agree input { margin: 2px 0 0; flex: 0 0 auto; }
.nhv-newsletter-agree a { color: var(--nhv-copper-text); }
.nhv-newsletter-agree a:hover { color: var(--nhv-cream); }

/* Empty until the endpoint replies, so it must not reserve space when silent. */
.nhv-newsletter-status {
  margin: 10px 0 0;
  font-size: var(--nhv-fs-small);
  line-height: 1.4;
}
.nhv-newsletter-status:empty { margin: 0; }
.nhv-newsletter-status.is-success { color: var(--nhv-cream-bright); }
.nhv-newsletter-status.is-error   { color: var(--nhv-gold); }
