/*! GetPower: thank-you window. */
/* The theme's old white boxes are replaced by .gp-thx. */
.popup-success, .popup-error, #thx { display: none !important; }

.gp-thx {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(3, 10, 28, .58);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.gp-thx.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease; }
html.gp-thx-open, html.gp-thx-open body { overflow: hidden; }

.gp-thx-card {
  position: relative; width: min(420px, 100%);
  padding: 34px 28px 26px; text-align: center; border-radius: 26px;
  color: #fff; font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  /* Glass card with a neon edge (cyan → violet), like the site's frames. */
  background:
    linear-gradient(160deg, rgba(23, 44, 92, .92), rgba(10, 21, 50, .95)) padding-box,
    linear-gradient(135deg, rgba(109, 238, 255, .9), rgba(179, 43, 204, .85)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 40px rgba(109, 238, 255, .18), 0 0 70px rgba(179, 43, 204, .14);
  transform: translateY(18px) scale(.94); opacity: 0;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}
.gp-thx.is-open .gp-thx-card { transform: none; opacity: 1; }

.gp-thx-icon { width: 76px; height: 76px; margin: 0 auto 18px; filter: drop-shadow(0 0 12px rgba(109, 238, 255, .55)); }
.gp-thx-icon svg { width: 100%; height: 100%; fill: none; stroke: url(#gpThxG); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.gp-thx-ring { stroke-dasharray: 176; stroke-dashoffset: 176; }
.gp-thx-mark { stroke-dasharray: 60; stroke-dashoffset: 60; }
.gp-thx-x { display: none; }
.gp-thx.is-fail .gp-thx-ok { display: none; }
.gp-thx.is-fail .gp-thx-x { display: inline; }
.gp-thx.is-open .gp-thx-ring { animation: gp-thx-draw .7s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.gp-thx.is-open .gp-thx-mark { animation: gp-thx-draw .45s cubic-bezier(.65, 0, .35, 1) .7s forwards; }
@keyframes gp-thx-draw { to { stroke-dashoffset: 0; } }

.gp-thx-title { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
.gp-thx-text { margin: 0 auto 16px; max-width: 320px; font-size: 15px; line-height: 1.55; color: rgba(225, 238, 255, .82); }
.gp-thx-phone {
  display: inline-block; margin: 0 0 22px; font-size: 17px; font-weight: 600; letter-spacing: .02em;
  color: #b6f6ff !important; text-decoration: none; font-variant-numeric: tabular-nums;
}
.gp-thx-phone:hover { text-decoration: underline; }
.gp-thx:not(.is-fail) .gp-thx-phone { display: none; }
.gp-thx-btn { width: 100%; font: inherit; }

@media (max-width: 767px) {
  /* On phones the window rises from the bottom, like an iOS sheet. */
  .gp-thx { align-items: flex-end; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .gp-thx-card { padding: 30px 22px 22px; border-radius: 26px; transform: translateY(40px); }
  .gp-thx-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-thx, .gp-thx-card { transition: opacity .2s ease; transform: none; }
  .gp-thx-ring, .gp-thx-mark { stroke-dashoffset: 0; animation: none !important; }
}
