/* Start form: a premium guided experience. Loaded last on start.html. */
body:has(.wizard) { background: radial-gradient(900px 500px at 100% 0%, rgba(34, 211, 238, .14), transparent 70%), radial-gradient(800px 500px at 0% 100%, rgba(244, 114, 182, .12), transparent 70%), #fbfaff; }
.wiz-nav { display: flex; gap: 18px; }
.wiz-nav a { color: #0f0b2e !important; font-weight: 800; text-decoration: none; }

/* Phones: the question comes first; the score and summary sit underneath. */
.wizard > div { order: 1; }
.wizard > aside { order: 2; display: grid; gap: 14px; }
@media (min-width: 960px) { .wizard > aside { order: 0; } }

.wiz-head h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 6px 0 10px; color: #0f0b2e; }
.wiz-head p { font-size: 1.05rem !important; color: #2a2552 !important; }

/* Progress: one segmented bar that glows on the current step */
.progress { gap: 6px !important; }
.progress span { height: 8px !important; border-radius: 6px !important; background: #e8e4fb !important; transition: background .4s; }
.progress span.on { background: linear-gradient(90deg, #22d3ee, #7c3aed 60%, #f472b6) !important; }
.progress span.on:last-of-type, .progress span.on:not(:has(+ .on)) { box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.stepcount { font-weight: 800; color: #7c3aed !important; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem !important; }

/* The question panel */
#stepPanel {
  background: rgba(255, 255, 255, .9) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, .16) !important; border-radius: 24px !important; padding: 26px !important;
  box-shadow: 0 30px 60px -32px rgba(15, 11, 46, .45), 0 12px 24px -18px rgba(79, 70, 229, .35);
  animation: wiz-in .45s cubic-bezier(.2, .9, .3, 1);
}
#stepPanel h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem) !important; margin: 0 0 6px; }
#stepPanel .hint { font-size: 1.05rem; color: #2a2552; }
@keyframes wiz-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Choices: big, tappable, with a clear selected state */
.option {
  border: 2px solid #e4e0fa !important; border-radius: 16px !important; background: #fff !important; padding: 18px !important;
  min-height: 64px; transition: border-color .2s, transform .2s, box-shadow .2s; position: relative;
}
.option strong { font-size: 1.08rem; color: #0f0b2e; }
.option span { color: #57537a !important; }
.option:hover { border-color: #c4b8f7 !important; transform: translateY(-2px); }
.option[aria-pressed=true] { border-color: #7c3aed !important; background: linear-gradient(135deg, #f5f3ff, #fdf2f8) !important; box-shadow: 0 12px 24px -16px rgba(124, 58, 237, .7); }
.option[aria-pressed=true]::after {
  content: "✓"; position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: #7c3aed; color: #fff; font-weight: 900; font-size: .9rem;
}
.chip[aria-pressed=true] { background: #0f0b2e !important; color: #fff !important; border-color: #0f0b2e !important; }
.chip { border-radius: 12px !important; font-weight: 700; }
.field input, .field textarea, .field select { border-radius: 12px !important; border: 2px solid #e4e0fa !important; font-size: 1.02rem !important; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #4f46e5 !important; box-shadow: 0 0 0 4px rgba(79, 70, 229, .18) !important; outline: none; }

/* Buttons */
.go-next { min-height: 56px; border-radius: 14px !important; font-weight: 900 !important; font-size: 1.1rem !important; color: #fff !important;
  background: linear-gradient(100deg, #4f46e5, #7c3aed 55%, #db2777) !important; box-shadow: 0 14px 28px -12px rgba(124, 58, 237, .7); }
.go-back { min-height: 56px; border-radius: 14px !important; font-weight: 800 !important; }
.nav-bar { background: rgba(255, 255, 255, .94) !important; border-top: 1px solid #ece9fb !important; backdrop-filter: blur(10px); }
.nav-bar .go-back { background: #fff !important; color: #0f0b2e !important; border: 2px solid #e4e0fa !important; }

/* Side panels */
.meter { border-radius: 20px !important; background: #fff !important; border: 1px solid rgba(124, 58, 237, .14) !important; box-shadow: 0 16px 32px -24px rgba(15, 11, 46, .5); }
.meter .score { background: linear-gradient(90deg, #4f46e5, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 900; }
.meter .bar { height: 10px !important; }

@media (prefers-reduced-motion: reduce) { #stepPanel { animation: none; } .option { transition: none; } }
/* Phones: breathing room at the screen edges */
main.wizard { padding-left: 16px !important; padding-right: 16px !important; }
/* Colour presets: one per row on phones so names never split */
@media (max-width: 600px) { .swatches { grid-template-columns: 1fr !important; } .swatch span { white-space: normal; } }
