/* app/static/wizard.css — uses theme vars from style.css; celebration never blocks submit. */
.wz { max-width: 560px; margin: 0 auto; position: relative; }
.wz-progress { display: flex; gap: 6px; margin-bottom: 1.1rem; }
.wz-seg { flex: 1; height: 6px; border-radius: 4px; background: var(--border); transition: background .3s; }
.wz-seg.wz-on { background: var(--blue); }
.wz-step { animation: wz-slide .28s ease; }
@keyframes wz-slide { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.wz-title { margin: 0 0 .15rem; font-size: 1.25rem; color: var(--ink); }
.wz-sub { margin: 0 0 1rem; color: var(--muted); }
.wz-field { margin: .55rem 0; padding: .75rem .85rem; background: rgba(127, 127, 127, .07); border-radius: 12px; }
.wz-field label, .wz-label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .45rem; color: var(--muted); text-align: left; }
.wz-field input, .wz-field select, .wz-field textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--field); border-radius: 8px;
  font: inherit; background: var(--surface); color: var(--ink); }
.wz-field input:focus, .wz-field select:focus, .wz-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--cta-glow); }
.wz-err { color: #c0392b; font-size: .85rem; min-height: 1em; margin-top: .25rem; }
.wz-reward { color: var(--green); font-size: .9rem; margin-top: .3rem; font-weight: 600; }
.wz-submit-err { color: #c0392b; margin-top: .6rem; }
.wz-note { font-size: .72rem; line-height: 1.45; color: var(--muted); text-align: center; margin: .5rem .2rem 0; }
.wz-note a { color: var(--blue); }
.wz-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.wz-chip { padding: .5rem .9rem; border: 1px solid var(--field); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: all .15s; }
.wz-chip:hover { border-color: var(--blue); color: var(--blue); }
.wz-chip:active { transform: scale(.96); }
.wz-chip-on, .wz-chip-on:hover { background: var(--blue); border-color: var(--blue);
  color: var(--on-brand); font-weight: 600; }
.wz-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.2rem; }
.wz-back { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; }
.wz-next { margin-left: auto; padding: .7rem 1.5rem; border: 0; border-radius: 8px;
  background: var(--blue); color: var(--on-brand); font: inherit; font-weight: 600; cursor: pointer; }
.wz-next:disabled { opacity: .6; cursor: default; }
.wz-done { text-align: center; font-size: 1.2rem; padding: 2rem 1rem; color: var(--ink); animation: wz-pop .4s ease; }
@keyframes wz-pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* Celebration layer — purely decorative, sits above and self-removes; never in the submit path. */
.wz-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.wz-confetti::before { content: "\2728"; position: absolute; left: 50%; top: 30%; font-size: 1.6rem; animation: wz-spark .7s ease forwards; }
.wz-finale::before { content: "\1F389"; font-size: 2.4rem; animation: wz-spark 1.3s ease forwards; }
@keyframes wz-spark { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px) scale(1.3); } }
/* Delight: a tactile pop when a chip is chosen, and a dopamine beat on the Next button. */
.wz-bounce { animation: wz-chip-bounce .32s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes wz-chip-bounce { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }
.wz-next.wz-go { animation: wz-next-pop .3s ease; }
@keyframes wz-next-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); filter: brightness(1.15); } 100% { transform: scale(1); } }
.wz-confetti::after { content: "\2728"; position: absolute; left: 62%; top: 22%; font-size: 1.05rem; animation: wz-spark .9s ease forwards; }
.wz-finale::after { left: 37%; top: 26%; font-size: 1.6rem; }
@media (prefers-reduced-motion: reduce) {
  .wz-step, .wz-done, .wz-bounce, .wz-next.wz-go { animation: none; }
  .wz-confetti { display: none; }
}
