/*
 * Newsletter sign-up (footer.php) and its message page (newsletter-message.php).
 */
.eq-newsletter {
  --nl-blue: #007cc3;
  --nl-blue-dark: #00669f;
  --nl-ink: #0f1c2e;
  --nl-ink-soft: #5a6e84;
  --nl-border: #cfdbe6;
  --nl-red: #d93636;
  --nl-green: #0e9f6e;

  position: relative;
  z-index: 2;
  padding: 0;
  /* the card sits half over the dark footer below */
  background: linear-gradient(to bottom, transparent 50%, #0c1622 50%);
}

.eq-newsletter-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  padding: 40px 44px;
  background: #fff;
  border: 1px solid #dde9f3;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 40, 80, .12);
}

.eq-newsletter-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 50px;
  background: #eef7fd;
  color: var(--nl-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eq-newsletter-title {
  margin: 0 0 10px;
  color: var(--nl-ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}
.eq-newsletter-intro p {
  margin: 0;
  color: var(--nl-ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.eq-newsletter-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: start;
}

.eq-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--nl-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}
.eq-field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--nl-border);
  border-radius: 10px;
  background: #fff;
  color: var(--nl-ink);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.eq-field input::placeholder { color: #9aabbd; }
.eq-field input:focus {
  outline: none;
  border-color: var(--nl-blue);
  box-shadow: 0 0 0 3px rgba(0, 124, 195, .15);
}
.eq-field.has-error input {
  border-color: var(--nl-red);
  box-shadow: 0 0 0 3px rgba(217, 54, 54, .1);
}
.eq-field-error {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: var(--nl-red);
  font-size: 12.5px;
  line-height: 1.4;
}

.eq-btn-subscribe {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 140px;
  margin-top: 24px;   /* label 18px + 6px gap: lines up with the inputs */
  padding: 0 26px;
  border: none;
  border-radius: 10px;
  background: var(--nl-blue, #007cc3);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.eq-btn-subscribe:hover { background: var(--nl-blue-dark, #00669f); }
.eq-btn-subscribe:focus-visible { outline: 3px solid rgba(0, 124, 195, .35); outline-offset: 2px; }
.eq-btn-subscribe:disabled { cursor: wait; opacity: .85; }
.eq-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: eq-spin .7s linear infinite;
}
.eq-btn-subscribe.is-loading .eq-btn-label { visibility: hidden; }
.eq-btn-subscribe.is-loading .eq-btn-spinner { display: block; position: absolute; }
@keyframes eq-spin { to { transform: rotate(360deg); } }

.eq-form-status {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.eq-form-status:empty { display: none; }
.eq-form-status.is-success,
.eq-form-status.is-error {
  padding: 12px 16px;
  border-radius: 10px;
}
.eq-form-status.is-success { background: #edfaf4; color: #08714e; border: 1px solid #b7e9d4; }
.eq-form-status.is-error   { background: #fff1f0; color: #b42626; border: 1px solid #f6c9c6; }

.eq-form-note {
  margin: 8px 0 0;
  color: var(--nl-ink-soft);
  font-size: 12.5px;
}

/* spam-bot trap: off screen for people, still in the form for bots */
.eq-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1199px) {
  .eq-newsletter-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 28px;
  }
}
@media (max-width: 575px) {
  .eq-newsletter-card { padding: 26px 20px; border-radius: 16px; }
  .eq-newsletter-title { font-size: 22px; }
  .eq-newsletter-fields { grid-template-columns: 1fr; gap: 4px; }
  .eq-btn-subscribe { width: 100%; margin-top: 6px; }
}

/* ── Message page (confirmation result) ── */
.eq-nl-message {
  padding: 72px 0 196px;   /* +100px: the theme pulls the footer up by 100px */
  background: linear-gradient(135deg, #e8f5fc 0%, #f0f8ff 60%, #ffffff 100%);
}
.eq-nl-message-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 44px 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #dde9f3;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 40, 80, .08);
}
.eq-nl-message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
}
.eq-nl-message-icon svg { width: 30px; height: 30px; }
.eq-nl-success .eq-nl-message-icon { background: #edfaf4; color: #0e9f6e; }
.eq-nl-info .eq-nl-message-icon    { background: #eef7fd; color: #007cc3; }
.eq-nl-error .eq-nl-message-icon   { background: #fff1f0; color: #d93636; }
.eq-nl-message-card h1 {
  margin: 0 0 12px;
  color: #0f1c2e;
  font-size: 28px;
  font-weight: 700;
  text-transform: none;
}
.eq-nl-message-card p {
  margin: 0 auto 28px;
  max-width: 460px;
  color: #5a6e84;
  font-size: 16px;
  line-height: 1.6;
}
.eq-nl-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.eq-nl-message-actions .eq-btn-subscribe { margin-top: 0; }
.eq-nl-link { color: #007cc3; font-weight: 600; }

/* the success message already says it - no need for the note too */
.eq-form-status.is-success + .eq-form-note { display: none; }
