/* PeakNow newsletter popup — uses the theme palette (violet-dark #292642, violet-bright #5246b8, bright-purple #8342fe, purple-light #f6f1fb). */

#peak-coupon-popup.pn-nl.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#peak-coupon-popup.pn-nl .pn-nl__overlay {
  background: rgba(41, 38, 66, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#peak-coupon-popup .pn-nl__modal {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(20, 16, 50, 0.35);
  font-family: var(--font-family, "Avenir", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  color: #292642;
  animation: pn-nl-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pn-nl-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #peak-coupon-popup .pn-nl__modal { animation: none; }
}

#peak-coupon-popup .pn-nl__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f6f1fb;
  color: #292642;
  cursor: pointer;
  transition: background 0.2s;
}

#peak-coupon-popup .pn-nl__close:hover,
#peak-coupon-popup .pn-nl__close:focus-visible {
  background: #ece3f8;
}

/* Left: offer panel */
#peak-coupon-popup .pn-nl__offer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 40px 32px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #8342fe 0%, #5246b8 45%, #292642 100%);
  color: #fff;
}

#peak-coupon-popup .pn-nl__mark {
  position: absolute;
  right: -40%;
  bottom: -18%;
  width: 150%;
  max-width: none;
  opacity: 0.18;
  pointer-events: none;
}

#peak-coupon-popup .pn-nl__eyebrow {
  position: relative;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#peak-coupon-popup .pn-nl__big {
  position: relative;
  margin-top: 18px;
  font-size: 104px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

#peak-coupon-popup .pn-nl__big sup {
  font-size: 0.45em;
  vertical-align: 0.95em;
  margin-left: 2px;
}

#peak-coupon-popup .pn-nl__off {
  position: relative;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: #e9e3ff;
}

/* Right: form */
#peak-coupon-popup .pn-nl__body {
  padding: 44px 40px 32px;
}

#peak-coupon-popup .pn-nl__title {
  margin: 0 32px 10px 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  color: #292642;
  outline: none;
}

#peak-coupon-popup .pn-nl__lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #5b5873;
}

#peak-coupon-popup .pn-nl__form {
  display: grid;
  gap: 14px;
}

#peak-coupon-popup .pn-nl__field {
  display: grid;
  gap: 6px;
  margin: 0;
}

#peak-coupon-popup .pn-nl__label {
  font-size: 13px;
  font-weight: 700;
  color: #292642;
}

#peak-coupon-popup .pn-nl__label em {
  font-style: normal;
  font-weight: 500;
  color: #8a87a0;
}

#peak-coupon-popup .pn-nl__field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #dcd6ea;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px; /* Prevents iOS zoom. */
  color: #292642;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#peak-coupon-popup .pn-nl__field input::placeholder {
  color: #a9a6bb;
}

#peak-coupon-popup .pn-nl__field input:focus {
  border-color: #5246b8;
  box-shadow: 0 0 0 4px rgba(82, 70, 184, 0.15);
  outline: none;
}

#peak-coupon-popup .pn-nl__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#peak-coupon-popup .pn-nl__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecee;
  color: #a1242f;
  font-size: 14px;
}

#peak-coupon-popup .pn-nl__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #5246b8;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#peak-coupon-popup .pn-nl__submit:hover,
#peak-coupon-popup .pn-nl__submit:focus-visible {
  background: #3f349b;
}

#peak-coupon-popup .pn-nl__submit:active {
  transform: translateY(1px);
}

#peak-coupon-popup .pn-nl__submit:disabled {
  cursor: wait;
  opacity: 0.85;
}

#peak-coupon-popup .pn-nl__submit--ghost {
  margin-top: 18px;
  background: #f6f1fb;
  color: #5246b8;
}

#peak-coupon-popup .pn-nl__submit--ghost:hover,
#peak-coupon-popup .pn-nl__submit--ghost:focus-visible {
  background: #ece3f8;
}

#peak-coupon-popup .pn-nl__spinner {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pn-nl-spin 0.7s linear infinite;
}

#peak-coupon-popup.pn-nl.is-loading .pn-nl__spinner {
  display: inline-block;
}

@keyframes pn-nl-spin {
  to { transform: rotate(360deg); }
}

#peak-coupon-popup .pn-nl__fine {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8a87a0;
}

#peak-coupon-popup .pn-nl__fine a {
  color: #5246b8;
  text-decoration: underline;
}

#peak-coupon-popup .pn-nl__step--done {
  text-align: center;
  padding-top: 18px;
}

#peak-coupon-popup .pn-nl__step--done .pn-nl__title {
  margin-right: 0;
}

#peak-coupon-popup .pn-nl__check {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #efeafe;
  color: #5246b8;
}

/* Mobile: offer becomes a compact band on top */
@media (max-width: 680px) {
  #peak-coupon-popup.pn-nl.is-active {
    align-items: flex-end;
    padding: 0;
  }

  #peak-coupon-popup .pn-nl__modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    animation-name: pn-nl-up;
  }

  @keyframes pn-nl-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }

  #peak-coupon-popup .pn-nl__offer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    min-height: 0;
    padding: 22px 24px;
  }

  #peak-coupon-popup .pn-nl__offer {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  #peak-coupon-popup .pn-nl__eyebrow {
    grid-column: 1 / -1;
    justify-self: start;
    align-self: auto;
  }

  #peak-coupon-popup .pn-nl__mark {
    grid-column: 1;
  }

  #peak-coupon-popup .pn-nl__big {
    margin-top: 6px;
    font-size: 64px;
  }

  #peak-coupon-popup .pn-nl__off {
    flex: 1;
    margin-top: 6px;
    font-size: 17px;
  }

  #peak-coupon-popup .pn-nl__mark {
    right: -30%;
    bottom: -60%;
    width: 110%;
  }

  #peak-coupon-popup .pn-nl__close {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  #peak-coupon-popup .pn-nl__body {
    padding: 24px 22px 28px;
  }

  #peak-coupon-popup .pn-nl__title {
    margin-right: 0;
    font-size: 23px;
  }

  #peak-coupon-popup .pn-nl__lead {
    margin-bottom: 16px;
    font-size: 14px;
  }
}
