/* Arise Promo Popup — full-screen, site teal. Scoped under #arise-promo / #arise-promo-tab */
#arise-promo, #arise-promo-tab {
  --apx-teal-dk: #02616D;   /* site deep teal */
  --apx-teal: #119FAD;      /* site teal */
  --apx-teal-2: #04ACBC;
  --apx-ink: #023B43;       /* text on orange */
  --apx-ice: #E5F6F9;       /* site pale teal */
  --apx-aqua: #A9EEF4;
  --apx-orange: #FC944C;    /* site orange */
  --apx-logo-orange: #FF914D; /* orange in the Arise logo */
  --apx-orange-hi: #FFB547;
  --apx-white: #ffffff;
  --apx-soft: rgba(255, 255, 255, .86);
  --apx-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
#arise-promo[hidden], #arise-promo-tab[hidden], #arise-promo [hidden] { display: none !important; }

#arise-promo {
  position: fixed; inset: 0; z-index: 2147483000;
  font-family: var(--apx-font); line-height: 1.35; color: var(--apx-white);
  -webkit-font-smoothing: antialiased;
}
#arise-promo *, #arise-promo *::before, #arise-promo *::after { box-sizing: border-box; }
#arise-promo .apx-backdrop { position: absolute; inset: 0; background: var(--apx-teal-dk); opacity: 0; transition: opacity .35s ease; }

/* Full-screen layout: content left, photo right */
#arise-promo .apx-dialog {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%; height: 100%; height: 100dvh;
  background: var(--apx-teal-dk); overflow: hidden; outline: none;
  opacity: 0; transition: opacity .4s ease;
}
#arise-promo.apx-open .apx-backdrop, #arise-promo.apx-open .apx-dialog { opacity: 1; }

#arise-promo .apx-photo {
  grid-column: 2; grid-row: 1; position: relative; min-height: 100%;
  background-size: cover; background-position: 55% 45%;
  transform: scale(1.04); transition: transform 6s ease-out;
}
#arise-promo.apx-open .apx-photo { transform: scale(1); }
#arise-promo .apx-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--apx-teal-dk) 0%, rgba(2, 97, 109, .55) 14%, rgba(2, 97, 109, 0) 38%);
}
#arise-promo .apx-panel {
  grid-column: 1; grid-row: 1; position: relative; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 6vh, 72px) clamp(28px, 6vw, 96px);
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(4, 172, 188, .55) 0%, rgba(4, 172, 188, 0) 70%),
    radial-gradient(70% 50% at 10% 100%, rgba(252, 148, 76, .18) 0%, rgba(252, 148, 76, 0) 70%),
    linear-gradient(160deg, #0A8796 0%, var(--apx-teal-dk) 65%);
}
#arise-promo .apx-step { display: flex; flex-direction: column; align-items: flex-start; width: 100%; max-width: 520px; animation: apx-in .4s ease both; }
@keyframes apx-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#arise-promo .apx-logo { display: block; width: 170px; height: auto; margin: 0 0 clamp(20px, 4vh, 40px); }

#arise-promo button.apx-x {
  position: fixed; top: 20px; right: 20px; z-index: 3; width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(2, 59, 67, .55); border: 1px solid rgba(255, 255, 255, .35); color: var(--apx-white);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .2s;
}
#arise-promo button.apx-x:hover, #arise-promo button.apx-x:focus-visible { background: rgba(2, 59, 67, .85); }

#arise-promo .apx-h {
  margin: 0; font-family: var(--apx-font); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -.01em; color: var(--apx-white);
}
#arise-promo .apx-h .apx-teal { display: block; color: var(--apx-aqua); }
#arise-promo .apx-h-sm { text-transform: none; font-size: clamp(28px, 3vw, 40px); }
#arise-promo .apx-swoosh { width: 220px; height: 14px; margin: 10px 0 8px; }

#arise-promo .apx-kicker { margin: 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; color: var(--apx-white); }
#arise-promo .apx-big {
  margin: 4px 0 0; font-family: var(--apx-font); font-weight: 800; font-size: clamp(64px, 7.6vw, 112px); line-height: .95;
  letter-spacing: -.025em;
  background: linear-gradient(180deg, var(--apx-orange-hi) 0%, var(--apx-orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(2, 59, 67, .45));
}
#arise-promo .apx-what {
  margin: 10px 0 0; font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.45vw, 21px); letter-spacing: .01em; color: var(--apx-white);
}
#arise-promo .apx-fine { margin: 6px 0 0; font-size: 15px; color: var(--apx-soft); }
#arise-promo .apx-sub { margin: 12px 0 0; font-size: 17px; color: var(--apx-soft); max-width: 36ch; }

#arise-promo .apx-ticks { list-style: none; margin: 20px 0 0; padding: 0; }
#arise-promo .apx-ticks li {
  position: relative; margin: 0 0 8px; padding: 0 0 0 30px; font-size: 16px; font-weight: 600; color: var(--apx-white);
}
#arise-promo .apx-ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--apx-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2302616D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

#arise-promo .apx-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 14px 7px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4);
  font-size: 13px; font-weight: 700; color: var(--apx-white);
}
#arise-promo .apx-pill svg { flex: none; color: var(--apx-orange-hi); }

#arise-promo button.apx-btn {
  display: block; width: 100%; max-width: 420px; margin: 28px 0 0; padding: 18px 22px;
  border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--apx-font); font-weight: 800; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--apx-ink); background: linear-gradient(180deg, var(--apx-orange-hi), var(--apx-orange));
  box-shadow: 0 10px 26px rgba(2, 59, 67, .35); transition: transform .15s, box-shadow .15s, filter .15s;
}
#arise-promo button.apx-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(2, 59, 67, .45); }
#arise-promo button.apx-btn:focus-visible { outline: 3px solid var(--apx-white); outline-offset: 3px; }
#arise-promo button.apx-btn[disabled] { filter: saturate(.5) brightness(.95); cursor: progress; transform: none; }

#arise-promo button.apx-link {
  margin: 16px 0 0; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font-family: var(--apx-font); font-size: 15px; color: var(--apx-soft); text-decoration: underline; text-underline-offset: 3px;
}
#arise-promo button.apx-link:hover { color: var(--apx-white); }

#arise-promo .apx-form { width: 100%; max-width: 420px; margin: 22px 0 0; }
#arise-promo .apx-field { display: block; margin: 0 0 12px; }
#arise-promo .apx-field span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
#arise-promo .apx-field input {
  display: block; width: 100%; height: 58px; margin: 0; padding: 0 18px;
  font-family: var(--apx-font); font-size: 17px; font-weight: 600; color: var(--apx-ink);
  background: var(--apx-white); border: 2px solid transparent; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(2, 59, 67, .18); outline: none; transition: border-color .2s, box-shadow .2s;
}
#arise-promo .apx-field input::placeholder { color: #5E7F84; opacity: 1; }
#arise-promo .apx-field input:focus { border-color: var(--apx-orange); box-shadow: 0 0 0 4px rgba(252, 148, 76, .3); }
#arise-promo .apx-field input[aria-invalid="true"] { border-color: #E2483D; }
#arise-promo .apx-form button.apx-btn { margin-top: 6px; }
#arise-promo .apx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
#arise-promo .apx-err {
  margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--apx-white); background: rgba(176, 40, 30, .55);
}
#arise-promo .apx-terms { margin: 18px 0 0; font-size: 13px; font-weight: 600; color: var(--apx-soft); }
#arise-promo .apx-legal + .apx-legal { margin-top: 6px; font-weight: 600; }
#arise-promo .apx-legal { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--apx-soft); }

#arise-promo .apx-check {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 0 18px;
  color: var(--apx-teal-dk); background: var(--apx-white); box-shadow: 0 0 0 10px rgba(255, 255, 255, .18);
}
#arise-promo .apx-call { margin: 18px 0 0; font-size: 16px; color: var(--apx-soft); }
#arise-promo .apx-call a { color: var(--apx-white); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- side tab ---------- */
#arise-promo-tab {
  position: fixed; right: 0; top: 50%; z-index: 2147482000;
  display: flex; flex-direction: column; align-items: stretch;
  border-radius: 12px 0 0 12px; overflow: hidden;
  transform: translate(110%, -50%); transition: transform .4s cubic-bezier(.2, .9, .3, 1.1);
  font-family: var(--apx-font);
  box-shadow: 0 6px 18px rgba(2, 59, 67, .3);
}
#arise-promo-tab.apx-in { transform: translate(0, -50%); }
#arise-promo-tab button.apx-tab-open {
  writing-mode: vertical-rl;
  margin: 0; padding: 18px 12px; border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--apx-font); font-weight: 800; font-size: 16px; letter-spacing: .08em; line-height: 1;
  color: var(--apx-ink); background: linear-gradient(180deg, #FFA96E 0%, var(--apx-logo-orange) 55%, #F5803A 100%);
}
#arise-promo-tab button.apx-tab-open:hover { filter: brightness(1.08); }
#arise-promo-tab button.apx-tab-x {
  margin: 0; padding: 9px 0; border: 0; border-radius: 0; cursor: pointer; display: grid; place-items: center;
  color: var(--apx-ink); background: var(--apx-orange);
}
#arise-promo-tab button.apx-tab-open:focus-visible, #arise-promo-tab button.apx-tab-x:focus-visible { outline: 3px solid var(--apx-orange); outline-offset: -3px; }

/* ---------- tablets & phones: photo on top, content below ---------- */
@media (max-width: 899px) {
  #arise-promo .apx-dialog { grid-template-columns: 1fr; grid-template-rows: 34vh 1fr; grid-template-rows: 34dvh 1fr; }
  #arise-promo .apx-photo { grid-column: 1; grid-row: 1; min-height: 0; background-position: 50% 38%; }
  #arise-promo .apx-photo::after { background: linear-gradient(180deg, rgba(2, 97, 109, 0) 50%, #0A8796 100%); }
  #arise-promo .apx-panel { grid-column: 1; grid-row: 2; justify-content: flex-start; padding: 8px 24px 28px; }
  #arise-promo .apx-logo { width: 120px; margin-bottom: 16px; }
  #arise-promo button.apx-x { top: 12px; right: 12px; width: 44px; height: 44px; }
  #arise-promo .apx-h { font-size: 26px; }
  #arise-promo .apx-h-sm { font-size: 25px; }
  #arise-promo .apx-big { font-size: 62px; }
  #arise-promo .apx-what { font-size: 15px; }
  #arise-promo .apx-fine { font-size: 14px; }
  #arise-promo .apx-sub { font-size: 16px; }
  #arise-promo .apx-ticks { margin-top: 14px; }
  #arise-promo .apx-ticks li { font-size: 15px; margin-bottom: 5px; }
  #arise-promo button.apx-btn { max-width: none; margin-top: 20px; }
  #arise-promo .apx-form { max-width: none; }
  #arise-promo button.apx-link { align-self: center; }
  #arise-promo-tab button.apx-tab-open { font-size: 14px; padding: 14px 10px; }
}
@media (max-width: 899px) and (max-height: 680px) {
  #arise-promo .apx-dialog { grid-template-rows: 22vh 1fr; grid-template-rows: 22dvh 1fr; }
  #arise-promo .apx-ticks { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #arise-promo .apx-dialog, #arise-promo .apx-backdrop, #arise-promo-tab, #arise-promo .apx-step, #arise-promo .apx-photo { transition: none; animation: none; transform: none; }
}
html.apx-lock, html.apx-lock body { overflow: hidden !important; }

/* ---------- fit short windows (v1.3.4) ----------
   Everything on the content side scales with the window HEIGHT as well as width, so the
   offer and the form fit without a scroll bar down to ~560px tall. If a window is even
   shorter, the panel can still scroll, but the scroll bar itself is hidden. */
#arise-promo .apx-panel { scrollbar-width: none; -ms-overflow-style: none; }
#arise-promo .apx-panel::-webkit-scrollbar { display: none; width: 0; height: 0; }

@media (min-width: 900px) {
  #arise-promo .apx-panel { padding-top: clamp(18px, 5vh, 72px); padding-bottom: clamp(18px, 5vh, 72px); }
  #arise-promo .apx-logo { width: clamp(110px, 19vh, 170px); margin-bottom: clamp(10px, 3.2vh, 40px); }
  #arise-promo .apx-h { font-size: clamp(22px, min(3.4vw, 5.4vh), 46px); }
  #arise-promo .apx-h-sm { font-size: clamp(22px, min(3vw, 4.8vh), 40px); }
  #arise-promo .apx-swoosh { margin: clamp(4px, 1.2vh, 10px) 0 clamp(2px, 1vh, 8px); }
  #arise-promo .apx-kicker { font-size: clamp(17px, min(1.8vw, 3vh), 26px); }
  #arise-promo .apx-big { font-size: clamp(44px, min(7.6vw, 12.5vh), 112px); }
  #arise-promo .apx-what { margin-top: clamp(4px, 1.1vh, 10px); font-size: clamp(14px, min(1.45vw, 2.5vh), 21px); }
  #arise-promo .apx-fine { margin-top: clamp(2px, .7vh, 6px); font-size: clamp(13px, 2vh, 15px); }
  #arise-promo .apx-sub { font-size: clamp(14px, 2.3vh, 17px); }
  #arise-promo .apx-ticks { margin-top: clamp(8px, 2.2vh, 20px); }
  #arise-promo .apx-ticks li { margin-bottom: clamp(3px, .9vh, 8px); font-size: clamp(14px, 2.1vh, 16px); }
  #arise-promo button.apx-btn { margin-top: clamp(12px, 3vh, 28px); padding-top: clamp(11px, 2vh, 18px); padding-bottom: clamp(11px, 2vh, 18px); font-size: clamp(15px, 2.2vh, 17px); }
  #arise-promo button.apx-link { margin-top: clamp(6px, 1.6vh, 16px); }
  #arise-promo .apx-form { margin-top: clamp(10px, 2.4vh, 22px); }
  #arise-promo .apx-field { margin-bottom: clamp(8px, 1.4vh, 12px); }
  #arise-promo .apx-field input { height: clamp(42px, 7vh, 58px); font-size: clamp(15px, 2.2vh, 17px); }
  #arise-promo .apx-legal { margin-top: clamp(8px, 1.8vh, 16px); font-size: clamp(11.5px, 1.7vh, 12.5px); }
  #arise-promo .apx-terms { margin-top: clamp(8px, 2vh, 18px); font-size: clamp(12px, 1.75vh, 13px); }
  #arise-promo .apx-check { width: clamp(52px, 9vh, 72px); height: clamp(52px, 9vh, 72px); margin-bottom: clamp(10px, 2.2vh, 18px); }
}
/* very short desktop windows: drop the decorative extras first */
@media (min-width: 900px) and (max-height: 620px) {
  #arise-promo .apx-swoosh { display: none; }
  #arise-promo .apx-h { font-size: clamp(20px, 4.6vh, 30px); }
}
@media (min-width: 900px) and (max-height: 540px) {
  #arise-promo .apx-ticks { display: none; }
}
/* phones/tablets: give the content more room on shorter screens */
@media (max-width: 899px) and (max-height: 780px) {
  #arise-promo .apx-dialog { grid-template-rows: 27vh 1fr; grid-template-rows: 27dvh 1fr; }
}
/* small phones (e.g. iPhone SE): tighten the form so it fits without scrolling */
@media (max-width: 899px) and (max-height: 700px) {
  #arise-promo .apx-logo { width: 100px; margin-bottom: 10px; }
  #arise-promo .apx-kicker { font-size: 17px; }
  #arise-promo .apx-big { font-size: 50px; }
  #arise-promo .apx-what { margin-top: 6px; font-size: 14px; }
  #arise-promo .apx-form { margin-top: 12px; }
  #arise-promo .apx-field { margin-bottom: 8px; }
  #arise-promo .apx-field input { height: 48px; }
  #arise-promo button.apx-btn { padding-top: 14px; padding-bottom: 14px; margin-top: 14px; }
  #arise-promo .apx-legal { margin-top: 10px; font-size: 11.5px; }
  #arise-promo .apx-terms { margin-top: 10px; }
}
