.nd-newsletter-form,
.mailpoet_form {
  max-width: 620px;
  margin: 0;
  border: 1px solid #e3dbcf;
  border-radius: 8px;
  background: #f7f3ea;
  padding: 14px;
}

.nd-newsletter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.nd-newsletter-form input[type="email"],
.mailpoet_form input[type="email"],
.mailpoet_form input[type="text"].mailpoet_text {
  min-height: 54px;
  width: 100%;
  border: 1px solid #d6cec2;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  font-size: 16px;
  line-height: 1.35;
  padding: 14px 16px;
}

.nd-newsletter-form input[type="email"]:focus,
.mailpoet_form input[type="email"]:focus,
.mailpoet_form input[type="text"].mailpoet_text:focus {
  border-color: #b08968;
  outline: 3px solid rgba(176, 137, 104, 0.24);
  outline-offset: 1px;
}

.nd-newsletter-form button,
.mailpoet_form input[type="submit"],
.mailpoet_form button[type="submit"] {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  padding: 0 24px;
  text-align: center;
  white-space: nowrap;
}

.nd-newsletter-form button:hover,
.mailpoet_form input[type="submit"]:hover,
.mailpoet_form button[type="submit"]:hover {
  background: #2c3440;
}

.nd-newsletter-form button:focus-visible,
.mailpoet_form input[type="submit"]:focus-visible,
.mailpoet_form button[type="submit"]:focus-visible {
  outline: 3px solid rgba(176, 137, 104, 0.42);
  outline-offset: 3px;
}

.nd-newsletter-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.nd-newsletter-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nd-newsletter-message {
  min-height: 1.45em;
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.nd-newsletter-message.is-success {
  color: #31584a;
}

.nd-newsletter-message.is-error {
  color: #9f2f23;
}

.nd-newsletter-privacy {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.nd-newsletter-privacy a {
  color: #1f2933;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nd-newsletter-privacy a:focus-visible {
  outline: 3px solid rgba(176, 137, 104, 0.42);
  outline-offset: 3px;
}

.mailpoet_form .mailpoet_paragraph {
  margin: 0 0 10px;
}

.mailpoet_form .mailpoet_paragraph:last-child {
  margin-bottom: 0;
}

.nd-post-newsletter-cta {
  margin: clamp(34px, 5vw, 54px) 0 0;
  border: 1px solid #e3dbcf;
  border-radius: 8px;
  background: #f7f3ea;
  color: #1f2933;
  padding: clamp(24px, 4vw, 38px);
}

.nd-post-newsletter-inner {
  max-width: 700px;
}

.nd-post-newsletter-kicker {
  margin: 0 0 10px;
  color: #8f7358;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.nd-post-newsletter-cta h2 {
  margin: 0 0 12px;
  color: #111827;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.nd-post-newsletter-cta p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.7;
}

.nd-post-newsletter-cta .nd-newsletter-form {
  margin-top: 20px;
}

.nd-thank-you-page {
  margin: -42px calc(50% - 50vw) -70px;
  min-height: 62vh;
  background: #f7f3ea;
  color: #1f2933;
  padding: clamp(70px, 10vw, 132px) 18px;
}

.nd-thank-you-card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #e3dbcf;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: clamp(28px, 5vw, 54px);
}

.nd-thank-you-card h1 {
  margin: 0 0 18px;
  color: #111827;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.nd-thank-you-card p {
  color: #4b5563;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.72;
}

.nd-thank-you-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 0 24px;
  text-decoration: none;
}

.nd-thank-you-button:hover {
  background: #2c3440;
  color: #fff;
}

.nd-thank-you-button:focus-visible {
  outline: 3px solid rgba(176, 137, 104, 0.42);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .nd-newsletter-row {
    grid-template-columns: 1fr;
  }

  .nd-newsletter-form button,
  .mailpoet_form input[type="submit"],
  .mailpoet_form button[type="submit"] {
    width: 100%;
  }
}
