.nw-demo-open{overflow:hidden}
.nw-demo-overlay{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(1,12,39,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:nw-demo-fade .2s ease-out}
.nw-demo-overlay[hidden]{display:none}
.nw-demo-dialog{position:relative;width:min(100%,660px);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:hidden;border-radius:26px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.32);animation:nw-demo-rise .28s ease-out}
.nw-demo-dialog .nwf-card{padding:30px 28px 22px;border:0;border-radius:26px;box-shadow:none}
.nw-demo-dialog .nwf-card::after{display:none}
.nw-demo-dialog .nwf-eyebrow{margin-bottom:8px;padding:5px 10px}
.nw-demo-dialog .nwf-card .nwf-sub{margin-bottom:16px}
.nw-demo-dialog .nwf-grid{gap:10px 14px}
.nw-demo-dialog .nwf-card .nwf-input{height:44px}
.nw-demo-dialog .nwf-consent{margin:12px 0 2px}
.nw-demo-dialog .nwf-submit{height:48px;margin-top:12px}
.nw-demo-dialog .nwf-fine{margin-top:8px}
.nw-demo-close{position:absolute;top:15px;right:15px;z-index:10;width:38px;height:38px;display:grid;place-items:center;border:1px solid #e4e8f1;border-radius:50%;background:#fff;color:#34405f;cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}
.nw-demo-close:hover{transform:rotate(90deg);background:#f8eaf1;color:#a60052}
.nw-demo-close:focus-visible{outline:3px solid rgba(186,2,94,.32);outline-offset:2px}
.nw-demo-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.nw-demo-dialog-success{width:min(860px,calc(100vw - 48px));height:min(590px,calc(100vh - 48px));height:min(590px,calc(100dvh - 48px));max-height:none}
.nw-demo-dialog-success #nwDemoFormMount{height:100%;min-height:0}
.nw-demo-dialog .nwf-card.nw-demo-card-success{height:100%;padding:0;overflow:hidden}
.nw-demo-dialog .nw-demo-card-success::before,.nw-demo-dialog .nw-demo-card-success::after{display:none}
.nw-demo-dialog .nw-demo-card-success .nwf-success{height:100%;padding:0;text-align:left;animation:none}
.nw-demo-success-layout{display:grid;grid-template-columns:42% 58%;height:100%;min-height:0;background:#fff}
.nw-demo-success-brand{position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;padding:32px 28px 30px;background:linear-gradient(145deg,#091448 0%,#17165a 58%,#94165f 100%);color:#fff}
.nw-demo-success-brand::after{position:absolute;inset:0;content:"";pointer-events:none;background:linear-gradient(135deg,transparent 54%,rgba(255,255,255,.035) 54%,transparent 100%)}
.nw-demo-brand-logo{position:relative;z-index:1;display:flex;align-items:center;gap:10px;color:#fff}
.nw-demo-brand-logo span{display:grid;width:33px;height:33px;place-items:center;border:1px solid rgba(255,255,255,.42);border-radius:10px;font-size:17px;font-weight:800}
.nw-demo-brand-logo b{font-size:15px;letter-spacing:.08em}
.nw-demo-brand-orbit{position:absolute;top:26%;left:50%;display:grid;width:220px;height:220px;place-items:center;transform:translateX(-50%);border:1px solid rgba(255,255,255,.14);border-radius:50%}
.nw-demo-brand-orbit::before,.nw-demo-brand-orbit::after{position:absolute;content:"";border:1px solid rgba(255,255,255,.13);border-radius:50%}
.nw-demo-brand-orbit::before{inset:22px}
.nw-demo-brand-orbit::after{inset:44px;border-style:dashed;animation:nw-demo-spin 8s linear infinite}
.nw-demo-brand-orbit span{display:grid;width:68px;height:68px;place-items:center;transform:rotate(-5deg);border:1px solid rgba(255,255,255,.48);border-radius:19px;background:rgba(255,255,255,.12);box-shadow:0 14px 32px rgba(0,0,0,.14);font-size:39px;font-weight:900}
.nw-demo-brand-copy{position:relative;z-index:1}
.nw-demo-brand-copy p{margin:0 0 12px;color:#ffc1dc;font-size:10px;font-weight:800;letter-spacing:.16em}
.nw-demo-brand-copy h3{margin:0 0 10px;color:#fff!important;font-size:29px;font-weight:800;line-height:1.13;letter-spacing:-.03em}
.nw-demo-brand-copy>span{display:block;max-width:275px;color:rgba(255,255,255,.8);font-size:11.5px;line-height:1.65}
.nw-demo-success-content{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;padding:38px 48px 34px}
.nw-demo-success-check{position:relative;display:grid;width:68px;height:68px;place-items:center;margin-bottom:17px;border-radius:50%;background:linear-gradient(135deg,#14104f,#a60062);box-shadow:0 10px 26px rgba(166,0,98,.19)}
.nw-demo-success-check::after{position:absolute;inset:-6px;border:2px solid rgba(166,0,98,.18);border-top-color:#a60062;border-right-color:transparent;border-radius:50%;content:"";animation:nw-demo-spin 1.6s linear infinite}
.nw-demo-success-check svg{width:34px;height:34px;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.nw-demo-success-eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:12px;padding:5px 11px;border-radius:99px;background:#fff0f6;color:#ba025e;font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.nw-demo-success-eyebrow::before{width:5px;height:5px;border-radius:50%;background:#e72d7c;content:""}
.nw-demo-success-content h2{margin:0 0 12px;color:#091448;font-size:clamp(29px,3.3vw,37px);font-weight:800;line-height:1.08;letter-spacing:-.04em}
.nw-demo-success-content h2 em{color:#a60062;font-style:normal}
.nw-demo-success-message{margin:0 0 18px;color:#687594;font-size:12.5px;line-height:1.75}
.nw-demo-next-card{display:flex;align-items:flex-start;gap:11px;width:100%;margin-bottom:12px;padding:12px;border:1px solid #e9ebf4;border-radius:14px;background:#fafaff}
.nw-demo-next-icon{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:10px;background:#ffedf5;color:#cf176d}
.nw-demo-next-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nw-demo-next-card b{display:block;margin:1px 0 4px;color:#101943;font-size:11px;font-weight:800}
.nw-demo-next-card small{display:block;color:#697693;font-size:10.5px;line-height:1.5}
.nw-demo-success-ref{margin:0 0 14px;color:#7a849f;font-size:10px}
.nw-demo-success-ref b{color:#283152;letter-spacing:.03em}
.nw-demo-countdown{display:flex;align-items:center;gap:4px;margin:0 0 12px;color:#7a849f;font-size:10px}
.nw-demo-countdown-value{color:#283152;font-variant-numeric:tabular-nums}
.nw-demo-back{display:inline-flex;align-items:center;gap:12px;min-height:42px;padding:0 17px;border:0;border-radius:11px;background:linear-gradient(100deg,#101044,#b50060);box-shadow:0 8px 18px rgba(147,0,82,.18);color:#fff!important;font:inherit;font-size:11px;font-weight:800;text-decoration:none;cursor:pointer}
.nw-demo-back span{font-size:16px;line-height:1}
.nw-demo-back:focus-visible{outline:3px solid rgba(186,2,94,.32);outline-offset:3px}

@keyframes nw-demo-fade{from{opacity:0}to{opacity:1}}
@keyframes nw-demo-rise{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes nw-demo-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){
  .nw-demo-dialog-success{width:min(100%,430px);height:auto;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
  .nw-demo-dialog-success #nwDemoFormMount,.nw-demo-dialog .nwf-card.nw-demo-card-success,.nw-demo-dialog .nw-demo-card-success .nwf-success{height:auto}
  .nw-demo-success-layout{height:auto;grid-template-columns:1fr;grid-template-rows:auto auto}
  .nw-demo-success-brand{min-height:64px;flex-direction:row;align-items:center;padding:13px 18px;background:linear-gradient(100deg,#091448,#5f155e)}
  .nw-demo-brand-orbit,.nw-demo-brand-copy{display:none}
  .nw-demo-success-content{padding:24px 22px 22px}
  .nw-demo-success-check{width:56px;height:56px;margin-bottom:12px}
  .nw-demo-success-check svg{width:28px;height:28px}
  .nw-demo-success-eyebrow{margin-bottom:9px}
  .nw-demo-success-content h2{margin-bottom:9px;font-size:30px}
  .nw-demo-success-message{margin-bottom:12px;font-size:12px}
  .nw-demo-next-card{margin-bottom:9px;padding:10px}
  .nw-demo-success-ref{margin-bottom:10px}
  .nw-demo-countdown{margin-bottom:10px}
  .nw-demo-dialog .nwf-card{padding:42px 18px 18px}
  .nw-demo-dialog .nwf-grid{grid-template-columns:1fr 1fr;gap:9px 10px}
  .nw-demo-dialog .nwf-field{grid-column:1/-1}
  .nw-demo-dialog .nwf-field.half{grid-column:span 1}
  .nw-demo-dialog .nwf-card .nwf-sub{font-size:13px;line-height:1.55}
  .nw-demo-close{top:10px;right:10px;width:34px;height:34px}
}
@media(max-width:380px){
  .nw-demo-success-content{padding:20px 17px 18px}
  .nw-demo-success-content h2{font-size:27px}
  .nw-demo-dialog .nwf-card{padding:40px 14px 14px}
}
@media(max-height:640px) and (max-width:700px){
  .nw-demo-dialog{max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px)}
  .nw-demo-dialog .nwf-card{padding-top:34px;padding-bottom:12px}
  .nw-demo-dialog .nwf-eyebrow{margin-bottom:5px}
  .nw-demo-dialog .nwf-card .nwf-sub{margin-bottom:9px}
  .nw-demo-dialog .nwf-grid{gap:7px 9px}
  .nw-demo-dialog .nwf-card .nwf-input{height:40px}
  .nw-demo-dialog .nwf-consent{margin:7px 0 0}
  .nw-demo-dialog .nwf-submit{height:43px;margin-top:8px}
  .nw-demo-dialog .nwf-fine{margin-top:5px}
}
@media(prefers-reduced-motion:reduce){
  .nw-demo-overlay,.nw-demo-dialog{animation:none}
  .nw-demo-brand-orbit::after,.nw-demo-success-check::after{animation:none}
  .nw-demo-close{transition:none}
}
