/* =============================================================================
   PIERCING WORD — NEON EMBED CONTAINER + LOADER
   Parent-side styling for [pw_neon_form]. The form's own interior is styled
   from inside the iframe by Neon's Custom CSS (pw-neon-theme.css) — the two
   files are a pair and only look finished together.
   ============================================================================= */

.pw-neon-form{
  display:block;
  width:100%;
  position:relative;
}

/* Panel treatment — gives the embed a deliberate edge instead of letting an
   iframe float loose on the page. Opt out with .pw-neon-form--bare. */
.pw-neon-form:not(.pw-neon-form--bare){
  background:#fff;
  border:1px solid rgba(23,25,63,.10);
  border-radius:var(--pw-radius-card,12px);
  padding:28px 26px;
  box-shadow:0 1px 2px rgba(23,25,63,.05);
}

/* On the deep/midnight sections the white panel would blow out — soften it. */
.bg-deep .pw-neon-form:not(.pw-neon-form--bare),
.bg-mid  .pw-neon-form:not(.pw-neon-form--bare){
  background:#FFFDF9;
  border-color:rgba(255,255,255,.14);
  box-shadow:0 18px 44px rgba(11,12,42,.28);
}

@media (max-width:640px){
  .pw-neon-form:not(.pw-neon-form--bare){ padding:20px 16px; }
}

/* ---------- loader ---------- */
.pw-neon-loading{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:transparent;
  z-index:2;
  pointer-events:none;
}

.pw-neon-spinner{
  width:34px;
  height:34px;
  border-radius:50%;
  border:2px solid rgba(35,41,147,.18);
  border-top-color:var(--pw-coral,#F0603F);
  animation:pw-neon-spin 900ms linear infinite;
}

.pw-neon-loading-text{
  font-family:var(--pw-body,'Sora',system-ui,sans-serif);
  font-weight:600;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--pw-muted,#6B6C86);
}

@keyframes pw-neon-spin{ to{ transform:rotate(360deg); } }

@media (prefers-reduced-motion:reduce){
  .pw-neon-spinner{ animation-duration:2.4s; }
}

/* ---------- messages ----------
   .__fallback  = form slug missing / form unpublished in Neon
   .__blocked   = Neon's frame-ancestors CSP refused this origin (staging) */
.pw-neon-form__fallback{
  font-family:var(--pw-body,'Sora',system-ui,sans-serif);
  font-weight:300;
  font-size:15px;
  line-height:1.7;
  color:var(--pw-ink,#17193F);
  margin:0;
  max-width:56ch;
}

.pw-neon-form__blocked{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:18px;
  padding:10px 0;
}

.pw-neon-form__blocked .pw-neon-form__fallback strong{
  font-weight:600;
  color:var(--pw-indigo,#232993);
}
