:root { --accent: #ce326d; --tint: #fff5f8; }
[hidden] { display: none !important; }
button, a, input { touch-action: manipulation; }
a { color: #076e9b; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ec4381; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.back-link { display: block; padding: 14px 20px; font-size: 14px; text-decoration: none; }
.quiz-page { --accent: #cb326c; }
.quiz-page[data-step="2"] { --accent: #176dc2; }
.quiz-header { position: relative; aspect-ratio: 1080 / 328; overflow: hidden; }
.quiz-header img { position: absolute; width: 100%; height: auto; top: -132%; }
.quiz-body { padding: 16px clamp(14px, 4vw, 24px) 0; background: linear-gradient(white, #fff9fc); }
.steps { display: flex; justify-content: center; align-items: center; gap: 20px; color: #737b85; font-weight: bold; font-size: 16px; }
.steps [aria-current="step"] { border-bottom: 3px solid var(--accent); color: var(--accent); padding-bottom: 7px; }
.intro { text-align: center; font-size: 16px; line-height: 1.8; margin: 22px 0; }
.progress-label { text-align: right; font-size: 14px; color: #476279; margin: 8px 0; }
progress { display: block; appearance: none; width: 100%; height: 7px; margin-bottom: 28px; border: none; border-radius: 8px; background: #f0eaf1; }
progress::-webkit-progress-bar { background: #f0eaf1; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--accent); }
fieldset { min-width: 0; margin: 0 0 23px; padding: 14px 12px 16px; border: 1px solid #f2cbdc; border-radius: 16px; background: white; }
legend { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 0 5px; font-size: 16px; font-weight: bold; line-height: 1.6; }
.question-number { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; color: white; background: var(--accent); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-box { height: 100%; min-height: 94px; display: flex; align-items: center; gap: 8px; padding: 12px 9px; border: 1px solid #eea9c4; border-radius: 12px; font-size: 16px; line-height: 1.65; color: #294967; transition: background .15s; }
.option-box b { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #bf3266; color: white; font-size: 14px; }
.option:nth-child(2) .option-box { border-color: #a4c9ef; }
.option:nth-child(2) b { background: #2175c3; }
.option input:checked + .option-box { background: #fff0f6; border: 2px solid #ca326c; padding: 11px 8px; box-shadow: 0 2px 8px #f6d3e3; }
.option:nth-child(2) input:checked + .option-box { background: #eaf5ff; border-color: #2175c3; box-shadow: 0 2px 8px #d5e8fb; }
.option input:focus-visible + .option-box { outline: 3px solid #183f68; outline-offset: 3px; }
.unanswered { border: 2px solid #c62944; }
.error { color: #b62545; font-size: 16px; line-height: 1.6; }
.primary, .secondary { display: block; width: 100%; text-align: center; font: inherit; font-size: 16px; font-weight: bold; border-radius: 999px; padding: 16px 20px; cursor: pointer; text-decoration: none; line-height: 1.6; }
.primary { color: white; background: var(--accent); border: 2px solid var(--accent); box-shadow: 0 4px 0 #dbe2ec; }
.secondary { color: #264a68; background: white; border: 1px solid #a8bfcc; margin-top: 14px; }
.primary:hover, .secondary:hover { filter: brightness(.96); }
.quiz-footer { position: relative; aspect-ratio: 1080 / 390; overflow: hidden; background: white; }
.quiz-footer img { position: absolute; width: 100%; height: auto; top: -618%; }
.result-page { background: #fff; }
.result-art { position: relative; width: 100%; overflow: hidden; }
.result-art img { display: block; width: 100%; height: auto; }
.result-content { padding: 22px clamp(16px, 4vw, 26px) 36px; background: linear-gradient(white, var(--tint)); }
.result-content h1 { font-size: clamp(22px, 5vw, 28px); line-height: 1.5; color: var(--accent); text-align: center; margin: 0 0 12px; }
.result-description { margin: 18px 0 28px; border: 1px solid #d4e1e9; border-radius: 12px; padding: 14px 16px; font-size: 16px; line-height: 1.85; }
summary { cursor: pointer; font-weight: bold; }
.result-description p { white-space: pre-line; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 12px 0 0; }
.tags li { border: 1px solid #d0dce5; border-radius: 5px; padding: 3px 7px; font-size: 14px; color: var(--accent); background: white; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 12px; }
.actions .secondary { margin: 0; border-radius: 12px; padding: 12px 8px; }
.status { font-size: 14px; line-height: 1.7; color: #476279; overflow-wrap: anywhere; }
.schools-title { font-size: 24px; text-align: center; margin: 34px 0 25px; }
.schools-title::after { content: ''; display: block; background: var(--accent); width: 48px; height: 3px; margin: 14px auto; }
.school { border-radius: 12px; background: white; box-shadow: 0 3px 18px #24374c0c; border: 1px solid #ebedf0; padding: 18px; margin-bottom: 16px; }
.school summary { display: flex; align-items: center; gap: 14px; list-style: none; font-size: 17px; line-height: 1.6; }
.school summary::-webkit-details-marker { display: none; }
.school summary::after { content: '+'; font-size: 24px; margin-left: auto; color: var(--accent); }
.school[open] summary::after { content: '−'; }
.school-photo { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.school-body { margin-top: 16px; border-top: 1px solid #e5ebef; padding-top: 12px; font-size: 16px; line-height: 1.8; }
.school-body p { margin: 10px 0; }
.school-body dl { display: grid; grid-template-columns: 48px 1fr; gap: 8px 10px; }
.school-body dt { color: var(--accent); font-weight: bold; }
.school-body dd { margin: 0; overflow-wrap: anywhere; }
.request { border: 1px solid #f4cad7; border-radius: 16px; background: white; padding: 24px 18px; margin-top: 30px; box-shadow: 0 3px 14px #eaa5ba15; }
.request h2 { font-size: 22px; line-height: 1.6; text-align: center; margin: 0 0 18px; }
.request h2 strong { color: #d62769; }
.request p { font-size: 16px; line-height: 1.8; }
.keyword { display: block; margin: 12px 0; padding: 12px; background: #f5f8fb; border-radius: 8px; text-align: center; font-weight: bold; }
.request .primary { margin-top: 14px; border-radius: 10px; box-shadow: none; }
.line { background: #07852c; border-color: #07852c; }
.email { background: #176fd0; border-color: #176fd0; }
.primary[aria-disabled="true"] { background: #eff2f5; color: #657789; border-color: #d8e0e6; cursor: default; }
.share-fallback { width: 100%; min-height: 100px; padding: 12px; font: inherit; font-size: 16px; line-height: 1.6; }
@media (max-width: 359px) { .options { grid-template-columns: 1fr; } .option-box { min-height: 64px; } .school { padding: 14px; } .school-photo { width: 56px; height: 56px; } .actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
