/* Delayed newsletter signup popup (assets/js/newsletter-popup.js builds the
   markup and toggles .np-visible). Visual language matches the recent
   chatbot-widget/footer-newsletter redesign: dark teal base, green accent,
   teal-tinted shadows, "Poppins" everywhere. */
.np-overlay {
  position: fixed;
  inset: 0;
  z-index: 999995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 20, 27, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  font-family: "Poppins", sans-serif;
}
.np-overlay.np-visible {
  opacity: 1;
  visibility: visible;
}

.np-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 30px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(155deg, #0c5069 0%, #04384c 60%, #052e3d 100%);
  box-shadow: 0 24px 64px rgba(4, 56, 76, 0.5);
  transform: scale(.94) translateY(10px);
  transition: transform .28s ease;
}
.np-overlay.np-visible .np-card {
  transform: scale(1) translateY(0);
}

.np-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #dce8ec;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}
.np-close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.np-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: #071b26;
  background: #96d83f;
  font-size: 22px;
}

.np-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.np-card > p {
  margin: 0 0 20px;
  color: #cfe1e7;
  font-size: 13.5px;
  line-height: 1.55;
}

.np-field { margin-bottom: 12px; }
.np-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.np-card input[type="email"],
.np-card input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  outline: none;
  color: #fff;
  background: rgba(3, 18, 27, 0.55);
  font-size: 14px;
  font-family: inherit;
}
.np-card input::placeholder { color: #8fa7ae; }
.np-card input:focus {
  border-color: #96d83f;
  box-shadow: 0 0 0 3px rgba(150, 216, 63, 0.16);
}

.np-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0;
  color: #b9cbd2;
  font-size: 11.5px;
  line-height: 1.45;
  cursor: pointer;
}
.np-consent input { margin-top: 3px; flex-shrink: 0; accent-color: #7dcb37; }
.np-consent a { color: #dff5c9; }

.np-captcha {
  display: grid;
  grid-template-columns: 96px 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}
.np-captcha img {
  width: 96px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.np-captcha button {
  width: 34px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #dce8ec;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  font-size: 13px;
}
.np-captcha button:hover { background: rgba(255, 255, 255, 0.18); }
.np-captcha input[type="text"] { min-height: 40px; font-size: 13px; }

.np-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  color: #071b26;
  background: linear-gradient(90deg, #62c534, #a7dc34);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s ease;
}
.np-submit:hover { filter: brightness(1.05); }
.np-submit:disabled { opacity: .65; cursor: default; }

.np-message {
  display: none;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
}
.np-message.is-success,
.np-message.is-error { display: block; }
.np-message.is-success { color: #dff5c9; background: rgba(82, 190, 56, 0.16); }
.np-message.is-error { color: #ffd6d6; background: rgba(220, 70, 70, 0.16); }

@media (max-width: 767.98px) {
  .np-card { padding: 26px 20px 22px; max-width: 100%; }
  .np-card h3 { font-size: 19px; }
  .np-captcha { grid-template-columns: 84px 32px minmax(0, 1fr); }
  .np-captcha img { width: 84px; }
}

@media (max-width: 359px) {
  .np-captcha { grid-template-columns: 1fr; }
  .np-captcha img { width: 100%; height: 44px; }
}
