.newsletter-popup[hidden],
.newsletter-popup [hidden] {
  display: none !important;
}

.newsletter-popup {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #183b3a;
  font-family: Inter, Arial, sans-serif;
}

.newsletter-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 25, 28, .58);
  opacity: 0;
  transition: opacity .22s ease;
}

.newsletter-popup__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid #d2e5e3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(22px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
  outline: 0;
}

.newsletter-popup.is-visible .newsletter-popup__backdrop { opacity: 1; }
.newsletter-popup.is-visible .newsletter-popup__panel { opacity: 1; transform: none; }

.newsletter-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #edf6f5;
  color: #246f6a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.newsletter-popup__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #fff;
  background: #2d9a92;
}

.newsletter-popup__icon svg { fill: currentColor; }

.newsletter-popup__eyebrow {
  margin: 0 0 8px;
  color: #287c76;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.newsletter-popup h2 {
  margin: 0 42px 12px 0;
  color: #123b3a;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  line-height: 1.12;
}

.newsletter-popup__panel > p:not(.newsletter-popup__eyebrow) {
  margin: 0 0 22px;
  color: #58706e;
  line-height: 1.6;
}

.newsletter-popup__form label {
  display: block;
  margin-bottom: 7px;
  font-size: .9rem;
  font-weight: 750;
}

.newsletter-popup__form input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #a9c8c5;
  border-radius: 9px;
  color: #152d2c;
  background: #fff;
}

.newsletter-popup__form input[type="email"]:focus {
  border-color: #2d9a92;
  outline: 3px solid rgba(45, 154, 146, .18);
}

.newsletter-popup__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.newsletter-popup__disclaimer {
  margin: 12px 0 16px;
  color: #647775;
  font-size: .78rem;
  line-height: 1.55;
}

.newsletter-popup__disclaimer a {
  color: #176b65;
  font-weight: 700;
  text-decoration: underline;
}

.newsletter-popup__form button[type="submit"] {
  width: 100%;
  min-height: 50px;
  padding: 11px 18px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #2d9a92;
  font-weight: 800;
  cursor: pointer;
}

.newsletter-popup__form button[type="submit"]:hover { background: #227f78; }
.newsletter-popup__form button[type="submit"]:disabled { opacity: .65; cursor: wait; }

.newsletter-popup__message {
  min-height: 1.35em;
  margin: 10px 0 0;
  font-size: .86rem;
  font-weight: 700;
}

.newsletter-popup__message.is-success { color: #20703e; }
.newsletter-popup__message.is-error { color: #a12e2e; }
.newsletter-popup-open { overflow: hidden; }

@media (max-width: 560px) {
  .newsletter-popup { padding: 14px; }
  .newsletter-popup__panel { max-height: calc(100vh - 28px); border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-popup__backdrop,
  .newsletter-popup__panel { transition: none; }
}

