/* ── Translucent newsletter signup modal ─────────────────────────────────────
   Triggered on /for-companies when the URL carries ?subscribe=1.
   Used for outbound campaign links so a click lands on the marketing page
   with the signup card already open. */

.nlm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.nlm-overlay.is-open { display: flex; }

/* Frosted-glass backdrop. The blur is what makes it visibly "translucent"
   instead of just a dim wash — it ties the modal to the page underneath. */
.nlm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 1, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.nlm-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35);
  padding: 2rem;
  font-family: 'Geist', sans-serif;
  color: #020301;
}

.nlm-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem;
}
.nlm-close:hover { color: #020301; }

.nlm-eyebrow {
  color: #c9962a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.nlm-title {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.nlm-body {
  color: #4a4640;
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.nlm-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 0.75rem;
  color: #020301;
  font-size: 0.9rem;
  font-family: 'Geist', sans-serif;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.nlm-input:focus {
  border-color: #f1b240;
  background: #fff;
}
.nlm-hint {
  color: #8a8278;
  font-size: 0.7rem;
  margin: 0.4rem 0 1rem;
}

.nlm-submit {
  width: 100%;
  padding: 0.9rem;
  background: #f1b240;
  color: #020301;
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.nlm-submit:hover:not(:disabled) { background: #f9d07a; }
.nlm-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.nlm-error {
  display: none;
  color: #b91c1c;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: rgba(254, 226, 226, 0.7);
  border: 1px solid rgba(252, 165, 165, 0.6);
  border-radius: 0.55rem;
}
.nlm-error.is-shown { display: block; }

.nlm-success {
  display: none;
  text-align: center;
  padding: 1rem 0 0.5rem;
}
.nlm-success.is-shown { display: block; }
.nlm-success .nlm-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(241, 178, 64, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #c9962a;
}
.nlm-success h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.nlm-success p {
  color: #4a4640;
  font-size: 0.85rem;
  line-height: 1.55;
}

@keyframes nlmFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nlm-overlay.is-open .nlm-card {
  animation: nlmFadeIn 0.28s ease both;
}
