/* Compact multi-step — fits viewport without scroll */
.jsw-steps-card{overflow:hidden}

.jsw-step-progress{
  display:flex;gap:8px;justify-content:center;margin:0 0 12px;
}
.jsw-step-dot{
  width:9px;height:9px;border-radius:50%;background:#e5e0ee;
  transition:background .2s,transform .2s;
}
.jsw-step-dot.is-active{background:#7c3aed;transform:scale(1.15)}
.jsw-step-dot.is-done{background:#a78bfa}

.jsw-steps-viewport{overflow:hidden;width:100%}
.jsw-steps-track{
  display:flex;width:400%;
  transition:transform .32s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}
.jsw-step-pane{
  width:25%;flex:0 0 25%;padding:0 2px 4px;box-sizing:border-box;
}
.jsw-step-title{
  font-size:1.15rem;font-weight:700;color:#1a0b2e;margin:0 0 2px;letter-spacing:-0.01em;
}
.jsw-step-desc{
  font-size:13px;color:#5b4a72;margin:0 0 10px;line-height:1.35;
}
.jsw-opt{font-weight:500;color:#8b7a9e;font-size:12px}

.jsw-step-actions{
  display:flex;gap:10px;margin-top:12px;align-items:center;width:100%;
}
.jsw-step-primary-wrap{flex:1 1 auto;min-width:0;width:100%}
.jsw-step-primary-wrap .jsw-step-primary{
  width:100%;max-width:100%;min-height:46px;height:46px;padding:0 18px;
  font-size:15px;font-weight:700;border:0;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  box-sizing:border-box;color:#fff;
  background:linear-gradient(135deg,#8b5cf6 0%,#7c3aed 55%,#6d28d9 100%);
  box-shadow:0 6px 16px rgba(124,58,237,.25);
  transition:transform .15s,box-shadow .15s,opacity .15s,filter .15s;
}
.jsw-step-primary-wrap .jsw-step-primary:hover:not(:disabled){
  filter:brightness(1.05);box-shadow:0 8px 18px rgba(124,58,237,.32);
}
.jsw-step-primary-wrap .jsw-step-primary:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.jsw-step-primary-wrap .jsw-step-primary[hidden]{display:none!important}

.jsw-step-back{
  flex:0 0 auto;min-width:100px;min-height:46px;height:46px;padding:0 14px;
  font-size:14px;font-weight:600;border-radius:12px;border:1px solid #e8e0f2;
  background:#f7f3fb;color:#4a2f6a;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;
}
.jsw-step-back:hover{background:#efe8f8}
.jsw-step-back[hidden]{display:none!important}

.jsw-step-error{
  margin-top:8px;padding:8px 12px;border-radius:10px;
  background:#fef2f2;color:#b91c1c;font-size:13px;font-weight:600;
}
.jsw-step-error[hidden]{display:none!important}

@media (max-width:575.98px){
  .jsw-step-actions{flex-direction:column-reverse}
  .jsw-step-back,.jsw-step-primary-wrap,.jsw-step-primary-wrap .jsw-step-primary{width:100%}
  .jsw-step-back{min-width:0}
}
