/* ═══════════════════════════════════════════════════════════════════════════
   Celeste Finds — Newsletter Signup Banner
   ═══════════════════════════════════════════════════════════════════════════ */

.cf-newsletter-section {
  padding: 2.5rem 1rem;
  background: transparent;
  font-family: inherit;
}

.cf-newsletter-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--nl-card-bg, #ffffff);
  border: 2px dashed var(--nl-green-light, #7fe4b4);
  border-radius: 1.125rem;
  padding: 2.25rem 2.5rem;
  text-align: center;
  overflow: visible;
}

/* Corner accent marks (bottom-left only, like the screenshot) */
.cf-newsletter-card::before,
.cf-newsletter-card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--nl-green, #00b67a);
  border-style: solid;
  pointer-events: none;
}

.cf-newsletter-card::before {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 0.75rem;
}

.cf-newsletter-card::after {
  bottom: 14px;
  left: 14px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 0.5rem;
}

/* Token overrides for dark mode */
[data-theme="dark"] .cf-newsletter-card,
.dark .cf-newsletter-card {
  --nl-card-bg: #1e2235;
  background: var(--nl-card-bg);
}

.cf-newsletter-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--nl-green, #00b67a);
  margin: 0 0 0.625rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cf-newsletter-sub {
  font-size: 0.88rem;
  color: #6e6e8a;
  margin: 0 0 1.5rem;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .cf-newsletter-sub,
.dark .cf-newsletter-sub {
  color: #8b8fb5;
}

/* ── Form ───────────────────────────────────────────────────────────────── */
.cf-nl-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
}

.cf-nl-input-row {
  display: flex;
  gap: 0.625rem;
  width: 100%;
  max-width: 460px;
  flex-wrap: wrap;
}

.cf-nl-email {
  flex: 1;
  min-width: 180px;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.6rem;
  background: #f9fafb;
  color: #191c2b;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.cf-nl-email:focus {
  border-color: #00b67a;
  box-shadow: 0 0 0 3px rgba(0,182,122,.15);
  background: #fff;
}

[data-theme="dark"] .cf-nl-email,
.dark .cf-nl-email {
  background: #171929;
  border-color: #2e3150;
  color: #e8eaf6;
}

[data-theme="dark"] .cf-nl-email:focus,
.dark .cf-nl-email:focus {
  background: #1e2235;
}

.cf-nl-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  background: #191c2b;
  color: #ffffff;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  white-space: nowrap;
  line-height: 1;
}

.cf-nl-btn:hover:not(:disabled) {
  background: #2d3250;
}

.cf-nl-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.cf-nl-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── GDPR consent row ───────────────────────────────────────────────────── */
.cf-nl-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 460px;
  text-align: left;
}

.cf-nl-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  accent-color: #00b67a;
  cursor: pointer;
}

.cf-nl-consent-label {
  font-size: 0.75rem;
  color: #6e6e8a;
  line-height: 1.5;
}

.cf-nl-consent-label a {
  color: #00b67a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-theme="dark"] .cf-nl-consent-label,
.dark .cf-nl-consent-label {
  color: #8b8fb5;
}

/* ── Status messages ────────────────────────────────────────────────────── */
.cf-nl-status {
  font-size: 0.83rem;
  border-radius: 0.5rem;
  padding: 0.55rem 0.85rem;
  display: none;
  max-width: 460px;
  width: 100%;
  text-align: left;
}

.cf-nl-status:not(:empty) { display: block; }

.cf-nl-status--error   { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }
.cf-nl-status--success { background: #e8f8f2; color: #007f55; border: 1px solid #9ae6c4; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .cf-newsletter-card {
    padding: 1.75rem 1.25rem;
  }

  .cf-newsletter-heading {
    font-size: 1.15rem;
  }

  .cf-nl-input-row {
    flex-direction: column;
  }

  .cf-nl-btn {
    width: 100%;
    justify-content: center;
  }
}
