:root { --navy: #0f172a; --blue: #2563eb; --deep-blue: #1d4ed8; --cyan: #06b6d4; --muted: #475569; --line: #dbe4f0; --surface: #ffffff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: #f5f8fc; font: 16px/1.55 Arial, Helvetica, sans-serif; }
[hidden] { display: none !important; }
button, textarea { font: inherit; }
a { color: inherit; }
:is(a, button, input, textarea, legend):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.shell { width: min(100% - 40px, 960px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: -100px; left: 16px; padding: 10px 14px; color: white; background: var(--navy); }
.skip-link:focus { top: 10px; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 20px; }
.brand { display: inline-flex; align-items: center; width: 160px; }
.brand img { display: block; width: 100%; height: auto; }
.back-link { color: var(--deep-blue); font-weight: 700; text-decoration: none; }
.back-link:hover, .site-footer a:hover { text-decoration: underline; }
.intro { padding: 66px 0 38px; max-width: 740px; }
.eyebrow { display: inline-block; color: var(--deep-blue); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 10px 0 14px; font-size: clamp(34px, 5vw, 54px); line-height: 1.13; letter-spacing: -.035em; }
.intro p, .result > p { color: var(--muted); font-size: 18px; }
.intro-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.intro-points span { padding: 7px 12px; border: 1px solid #cfe1f9; border-radius: 99px; color: #1e40af; background: #eaf2ff; font-size: 13px; font-weight: 700; }
.diagnostic-card { padding: clamp(24px, 5vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 55px rgb(15 23 42 / 6%); }
.progress-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; }
.progress-heading span:first-child { color: var(--deep-blue); font-weight: 800; }
.progress-track { height: 8px; overflow: hidden; margin: 13px 0 34px; border-radius: 99px; background: #e9eef5; }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .2s ease; }
.suggestion-note { margin: -15px 0 26px; padding: 11px 14px; border: 1px solid #b9e8ef; border-radius: 10px; color: #075985; background: #e9faff; font-size: 14px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { max-width: 100%; padding: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.step-help { margin: 10px 0 24px; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 15px 17px; border: 1px solid #d9e2ef; border-radius: 13px; background: white; cursor: pointer; font-weight: 700; transition: border-color .15s ease, background .15s ease; }
.choice:hover { border-color: #8cb3f7; background: #f8fbff; }
.choice:has(input:checked) { border-color: var(--blue); background: #eff6ff; box-shadow: inset 0 0 0 1px var(--blue); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--blue); }
.choice span { min-width: 0; }
.detail-label, .result label { display: block; margin-bottom: 8px; font-weight: 700; }
textarea { display: block; width: 100%; padding: 14px 16px; resize: vertical; border: 1px solid #b8c6d8; border-radius: 12px; color: var(--navy); background: white; }
textarea::placeholder { color: #64748b; }
.step small { display: inline-block; margin-top: 8px; color: var(--muted); }
.form-error { margin: 16px 0 0; color: #b91c1c; font-weight: 700; }
.form-actions, .result-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 21px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; font-weight: 800; line-height: 1.25; text-decoration: none; cursor: pointer; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: var(--deep-blue); }
.button-secondary { color: var(--navy); background: #eef2f7; border-color: var(--line); }
.button-secondary:hover { background: #e3eaf4; }
.result h2 { margin: 10px 0 12px; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; }
.result > p { margin: 0 0 25px; }
.result textarea { min-height: 260px; }
.result .result-note { margin: 20px 0 0; font-size: 14px; }
.privacy-note { max-width: 750px; margin: 25px auto 70px; color: var(--muted); font-size: 14px; text-align: center; }
.site-footer { padding: 24px 0; border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 14px; }
.site-footer .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--deep-blue); font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .shell { width: min(100% - 28px, 960px); } .header-inner { min-height: 70px; } .brand { width: 126px; } .back-link { font-size: 13px; } .intro { padding: 44px 0 30px; } .intro p { font-size: 16px; } .diagnostic-card { padding: 22px 18px; border-radius: 17px; } .choices { grid-template-columns: 1fr; } .form-actions, .result-actions { display: grid; grid-template-columns: 1fr; } .form-actions .button, .result-actions .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
