:root {
  --ptn-blue: #000aa7;
  --ptn-blue-dark: #05086d;
  --ptn-blue-ink: #11143f;
  --ptn-orange: #ff9700;
  --ptn-cream: #fffaf2;
  --ptn-line: #e8e9f1;
  --modal-open-dur: 250ms;
  --modal-close-dur: 150ms;
  --modal-scale: 0.96;
  --modal-scale-close: 0.96;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-modal {
  transform-origin: center;
  transform: scale(var(--modal-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-open-dur) var(--modal-ease),
    opacity   var(--modal-open-dur) var(--modal-ease);
  will-change: transform, opacity;
}
.t-modal.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-modal.is-closing {
  transform: scale(var(--modal-scale-close));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-close-dur) var(--modal-ease),
    opacity   var(--modal-close-dur) var(--modal-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-modal { transition: none !important; }
}

/* Keeps RD tracking active while suppressing only the legacy newsletter asset. */
#bricks-component-vLjmjM9h_JWQqYtK-BYj1g-overlay,
#bricks-component-vLjmjM9h_JWQqYtK-BYj1g-wrapper,
.rdstation-popup-position-center:has(input[name="conversion_identifier"][value="pop-up-newsletter"]),
.rdstation-popup-js-overlay:has(+ .rdstation-popup-position-center input[name="conversion_identifier"][value="pop-up-newsletter"]) {
  display: none !important;
}

body.ptn-modal-open {
  overflow: hidden !important;
}

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

.ptn-popup {
  position: fixed;
  inset: 0;
  z-index: 100000000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Open Sauce", sans-serif;
}

.ptn-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 32, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--modal-open-dur) var(--modal-ease);
}

.ptn-popup.is-open .ptn-popup__backdrop {
  opacity: 1;
}

.ptn-popup__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(420px, 1.24fr);
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(4, 6, 46, 0.34), 0 6px 24px rgba(4, 6, 46, 0.18);
  color: var(--ptn-blue-ink);
}

.ptn-popup__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(17, 20, 63, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ptn-blue-ink);
  box-shadow: 0 6px 18px rgba(4, 6, 46, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.ptn-popup__close:hover,
.ptn-popup__close:focus-visible {
  border-color: var(--ptn-blue) !important;
  background: var(--ptn-blue) !important;
  color: #fff !important;
  transform: rotate(6deg) scale(1.04);
}

.ptn-popup__close:focus-visible,
.ptn-popup button:focus-visible,
.ptn-popup input:focus-visible,
.ptn-popup a:focus-visible {
  outline: 3px solid rgba(255, 151, 0, 0.45);
  outline-offset: 3px;
}

.ptn-popup__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.ptn-popup__brand {
  position: relative;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px 36px 34px;
  border-radius: 27px 0 0 27px;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 151, 0, 0.24), transparent 25%),
    linear-gradient(145deg, #101bc8 0%, var(--ptn-blue) 38%, var(--ptn-blue-dark) 100%);
  color: #fff;
}

.ptn-popup__brand::before,
.ptn-popup__brand::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.ptn-popup__brand::before {
  right: -302px;
  top: 52px;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.035), 0 0 0 74px rgba(255, 255, 255, 0.025);
}

.ptn-popup__brand::after {
  left: -315px;
  bottom: -250px;
  border-color: rgba(255, 151, 0, 0.42);
  box-shadow: 0 0 0 40px rgba(255, 151, 0, 0.04);
}

.ptn-popup__brand-copy,
.ptn-popup__route {
  position: relative;
  z-index: 1;
}

.ptn-popup__brand-copy {
  display: grid;
  gap: 18px;
  margin: auto 0;
}

.ptn-popup__brand-copy strong {
  max-width: 276px;
  font-size: clamp(30px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.ptn-popup__brand-copy span {
  max-width: 250px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.ptn-popup__route {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ptn-popup__route span {
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
}

.ptn-popup__route span:nth-child(2) {
  width: 54px;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 151, 0, 0.88));
}

.ptn-popup__route span:last-child {
  border-color: var(--ptn-orange);
  background: var(--ptn-orange);
}

.ptn-popup__content {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 62px 58px 48px;
}

.ptn-popup__form-state,
.ptn-popup__success {
  width: 100%;
}

.ptn-popup__eyebrow {
  margin: 0 0 12px;
  color: var(--ptn-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ptn-popup h2 {
  margin: 0;
  color: var(--ptn-blue-ink);
  font-family: "Open Sauce", sans-serif;
  font-size: clamp(30px, 3.3vw, 45px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.ptn-popup__form-state h2 {
  max-width: 385px;
}

.ptn-popup__success h2 {
  width: min(100%, 410px);
  margin-right: auto;
  margin-left: auto;
}

.ptn-popup__description {
  margin: 16px 0 28px;
  color: #66687d;
  font-size: 15px;
  line-height: 1.6;
}

.ptn-form .wpcf7-response-output {
  display: none !important;
}

.ptn-form p,
.ptn-form br {
  margin: 0;
}

.ptn-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}

.ptn-fields > p {
  display: contents;
}

.ptn-fields br {
  display: none;
}

.ptn-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.ptn-field--full {
  grid-column: 1 / -1;
}

.ptn-field > span:first-child {
  color: #303248;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.ptn-popup .ptn-field input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--ptn-line);
  border-radius: 14px;
  background: #fafafe;
  color: var(--ptn-blue-ink);
  font-family: "Open Sauce", sans-serif;
  font-size: 14px;
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ptn-popup .ptn-field input::placeholder {
  color: #9a9baa;
  opacity: 1;
}

.ptn-popup .ptn-field input:hover {
  border-color: #cfd1df;
  background: #fff;
}

.ptn-popup .ptn-field input:focus {
  border-color: var(--ptn-blue);
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(0, 10, 167, 0.08);
}

.ptn-popup .wpcf7-not-valid {
  border-color: #d83a52 !important;
  box-shadow: 0 0 0 4px rgba(216, 58, 82, 0.08) !important;
}

.ptn-popup .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #bd2440;
  font-size: 11px;
  line-height: 1.35;
}

.ptn-consent {
  display: block;
  margin-top: 18px;
  color: #737589;
  font-size: 10.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.ptn-consent .wpcf7-form-control-wrap,
.ptn-consent .wpcf7-form-control,
.ptn-consent .wpcf7-list-item {
  display: inline;
  margin: 0;
}

.ptn-consent label {
  display: inline;
  cursor: pointer;
}

.ptn-consent input[type="checkbox"] {
  display: inline-block;
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin: 0 6px 0 0;
  vertical-align: -4px;
  accent-color: var(--ptn-blue);
}

.ptn-consent br {
  display: none;
}

.ptn-consent a {
  margin-left: 3px;
  color: var(--ptn-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ptn-submit-wrap {
  margin-top: 22px;
}

.ptn-popup .ptn-submit,
.ptn-popup .ptn-popup__done {
  --em-button-eff-bg-color-hover: rgba(255, 255, 255, 0.48);
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 14px 22px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--ptn-blue);
  color: #fff;
  font-family: "Open Sauce", sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(0, 10, 167, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ptn-popup .ptn-submit:hover,
.ptn-popup .ptn-submit:focus-visible,
.ptn-popup .ptn-popup__done:hover,
.ptn-popup .ptn-popup__done:focus-visible {
  background: #071292;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 10, 167, 0.26);
}

.ptn-submit svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  transition: transform 180ms ease;
}

.ptn-submit:hover svg {
  transform: translateX(3px);
}

.ptn-submit.is-loading {
  cursor: wait;
  opacity: 0.78;
  pointer-events: none;
}

.ptn-submit.is-loading svg {
  animation: ptn-arrow-pulse 900ms ease-in-out infinite alternate;
}

.ptn-popup__status {
  min-height: 18px;
  margin: 9px 0 0;
  color: #bd2440;
  font-size: 12px;
  line-height: 1.4;
}

.ptn-popup__success {
  text-align: center;
}

.ptn-popup__success .ptn-popup__description {
  max-width: 390px;
  margin-right: auto;
  margin-left: auto;
}

.ptn-popup__success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  color: var(--ptn-blue);
}

.ptn-popup__success-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ptn-popup__success-icon circle {
  fill: var(--ptn-blue);
  stroke: var(--ptn-blue);
  stroke-width: 1.5;
}

.ptn-popup__success-icon path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.ptn-popup__done {
  max-width: 280px;
}

@keyframes ptn-arrow-pulse {
  to { transform: translateX(4px); }
}

@media (max-width: 760px) {
  .ptn-popup {
    align-items: end;
    padding: 14px;
  }

  .ptn-popup__dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    border-radius: 24px;
  }

  .ptn-popup__brand {
    min-height: 142px;
    padding: 26px 28px;
    border-radius: 23px 23px 0 0;
  }

  .ptn-popup__brand-copy {
    margin-top: 24px;
  }

  .ptn-popup__brand-copy strong {
    max-width: 360px;
    font-size: 27px;
  }

  .ptn-popup__brand-copy span,
  .ptn-popup__route {
    display: none;
  }

  .ptn-popup__content {
    padding: 34px 28px 28px;
  }

  .ptn-popup__close {
    top: 16px;
    right: 16px;
  }

  .ptn-popup h2 {
    font-size: clamp(28px, 8vw, 38px);
  }
}

@media (max-width: 520px) {
  .ptn-consent {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .ptn-popup {
    padding: 8px;
  }

  .ptn-popup__dialog {
    max-height: calc(100vh - 16px);
    border-radius: 20px;
  }

  .ptn-popup__brand {
    min-height: 104px;
    padding: 22px 22px;
    border-radius: 19px 19px 0 0;
  }

  .ptn-popup__brand-copy {
    display: none;
  }

  .ptn-popup__content {
    padding: 28px 21px 22px;
  }

  .ptn-popup__eyebrow {
    padding-right: 46px;
  }

  .ptn-popup__description {
    margin: 12px 0 22px;
  }

  .ptn-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ptn-field--full {
    grid-column: auto;
  }

  .ptn-popup .ptn-field input {
    height: 48px;
  }

  .ptn-consent {
    margin-top: 14px;
  }

  .ptn-submit-wrap {
    margin-top: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ptn-popup *,
  .ptn-popup *::before,
  .ptn-popup *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
