.progress { position: fixed; top: 0; left: 0; right: 0; height: 5px; background: rgba(81,14,6,.12); z-index: 5; }
#bar { height: 100%; width: 0; background: var(--red); transition: width .4s ease; border-radius: 0 3px 3px 0; }
.quiz-wrap { width: min(640px, 92vw); margin: 0 auto; padding: 4vh 0 90px; }
.intro, .done, .thinking { text-align: center; }
.intro { padding-top: 6vh; }
.intro .lead { max-width: 560px; margin: 0 auto 28px; }
.small-note { color: var(--tan); font-size: 14px; margin-top: 12px; }
.start { font-size: 18px; padding: 18px 44px; }
.step { animation: rise .35s ease both; }
.step.back { animation-name: drop; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.kicker { font-family: "Cardo", Georgia, serif; font-style: italic; color: var(--brown); font-size: 20px; margin: 0 0 6px; }
.step h1 { font-size: clamp(34px, 5.4vw, 50px); }
.sub { color: var(--brown); font-size: 18px; margin-bottom: 4px; }
.fields { margin-top: 22px; }
.q { display: block; font-weight: 400; margin: 0 0 20px; }
.q-label { font-weight: 400; margin: 8px 0 10px; }
.q input, .q textarea { display: block; width: 100%; margin-top: 8px; font: 400 17px "Montserrat", sans-serif; padding: 15px 16px; border-radius: 14px; border: 1.5px solid transparent; background: #fff; color: var(--ink); }
.q input:focus, .q textarea:focus { outline: none; border-color: var(--red); }
.fill input { font-family: "Cardo", Georgia, serif; font-style: italic; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; }
.list { display: grid; gap: 10px; margin: 0 0 22px; }
.chips label, .list label { cursor: pointer; }
.chips input, .list input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 12px 18px; border-radius: 999px; background: #fff; font-size: 16px; transition: background .15s, color .15s, transform .1s; }
.list span { display: block; padding: 17px 20px 17px 52px; border-radius: 16px; background: #fff; font-size: 17px; font-weight: 400; position: relative; transition: background .15s, color .15s; }
.list span::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 6px; border: 1.5px solid var(--tan); background: #fff; }
.list input:checked + span { background: var(--red); color: var(--cream); }
.list input:checked + span::before { border-color: var(--cream); background: var(--cream); box-shadow: inset 0 0 0 4px var(--red); }
.chips input:checked + span { background: var(--red); color: var(--cream); }
.chips label:active span, .list label:active span { transform: scale(.98); }
.chips input:focus-visible + span, .list input:focus-visible + span { outline: 2px solid var(--maroon); outline-offset: 2px; }
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.back { background: transparent; color: var(--brown); padding: 14px 6px; }
.go { min-width: 150px; }
.form-error { color: var(--red); font-weight: 400; }
.thinking { padding-top: 14vh; }
.dots { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.done { padding-top: 10vh; }
.big { font-size: 26px; color: var(--maroon); margin-top: 30px; line-height: 1.15; }
@media (max-width: 600px) { .quiz-wrap { padding-top: 2vh; } .list span { font-size: 16px; } }
