:root {
  color-scheme: light;
  --petrol: #07566a;
  --petrol-deep: #064354;
  --petrol-soft: #e5f0f0;
  --gold: #c4a52b;
  --gold-light: #eadb96;
  --cream: #f6f4eb;
  --paper: #fff;
  --ink: #1d3c46;
  --muted: #687c82;
  --line: #dce4e4;
  --shadow: 0 16px 44px rgba(14, 58, 67, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 10% 0%, #e9f1ef 0, var(--cream) 52%, #f3f1e8 100%); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--petrol); }
[hidden] { display: none !important; }

.page-shell { width: min(1060px, calc(100% - 36px)); margin: 0 auto; padding: 20px 0 30px; min-height: 100svh; display: flex; flex-direction: column; }
.brand-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 15px; }
.brand-logo { width: min(270px, 58vw); height: 54px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.brand-mark { display: block; width: 46px; height: 46px; border: 1px solid rgba(196, 165, 43, .56); border-radius: 50%; background: #fff url('/brand-mark.jpg') center / 86% no-repeat; box-shadow: 0 4px 13px rgba(9, 67, 81, .08); }
.panel { overflow: hidden; background: var(--paper); border: 1px solid rgba(7, 86, 106, .1); border-radius: 22px; box-shadow: var(--shadow); }
.hero-photo { display: block; width: 100%; height: clamp(180px, 22vw, 250px); object-fit: cover; object-position: center top; border-bottom: 1px solid #dce4e4; }
.eyebrow, .question-kicker { margin: 0 0 12px; color: var(--gold-light); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .77rem; }
.intro-copy { padding: 22px clamp(22px, 5vw, 56px) 22px; }
.intro-copy h1 { max-width: 830px; margin: 0 0 8px; color: #163d49; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.025em; }
.intro-copy > p { max-width: 760px; margin: 0 0 8px; color: #526970; font-size: 1.04rem; line-height: 1.48; }
.intro-copy .entry-note { color: var(--petrol); font-size: .98rem; font-weight: 700; }
.voluntary-note { margin: 12px 0 14px; color: #49636a; font-size: .95rem; font-weight: 700; line-height: 1.4; }
.voluntary-note span { margin-right: 9px; color: var(--gold); font-size: 1.15rem; }
.button { min-height: 54px; border: 0; border-radius: 14px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .14s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .choice-option:focus-visible, .scale-option:focus-visible, .filter-control:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button-primary { color: white; background: linear-gradient(135deg, var(--petrol), var(--petrol-deep)); box-shadow: 0 8px 19px rgba(7, 86, 106, .2); }
.button-primary:hover { background: #064455; }
.intro-panel .button-primary { color: #fff; background: linear-gradient(135deg, #07577a, #063f5c); }
.intro-panel .button-primary:hover { background: #063f5c; }
.button-secondary { color: var(--petrol); background: white; border: 1px solid #bdd0d1; }
.button-quiet { color: #536c72; background: #eef3f2; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }

.survey-panel { padding: 0 clamp(18px, 4vw, 40px) 24px; }
.question-hero { height: clamp(170px, 25vw, 250px); margin: 0 calc(clamp(18px, 4vw, 40px) * -1); background: #e8eeee url('/topic-overview.jpg') center 54% / cover no-repeat; border-bottom: 1px solid #dce4e4; }
.progress-header { margin: 0 calc(clamp(18px, 4vw, 40px) * -1); padding: 22px clamp(18px, 4vw, 40px) 19px; background: #fbfcfb; border-bottom: 1px solid #e6eceb; }
.progress-label { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 11px; color: #587076; font-weight: 700; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #dce7e7; }
.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #d8c35e); transition: width .22s ease; }
.question-card { min-height: 390px; padding: clamp(26px, 5vw, 48px) 0 22px; }
.question-kicker { color: #a78a21; margin-bottom: 12px; }
.survey-panel.is-question-one .question-card { min-height: 0; padding-top: clamp(22px, 4vw, 36px); }
.question-card h1 { max-width: 830px; margin: 0 0 12px; color: #163d49; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.025em; }
.survey-panel.is-question-one .question-card h1, .survey-panel.is-question-two .question-card h1, .survey-panel.is-question-three .question-card h1, .survey-panel.is-question-four .question-card h1, .survey-panel.is-question-five .question-card h1, .survey-panel.is-question-six .question-card h1, .survey-panel.is-question-seven .question-card h1, .survey-panel.is-question-eight .question-card h1, .survey-panel.is-question-nine .question-card h1, .survey-panel.is-question-ten .question-card h1 { font-size: clamp(1.32rem, 2.4vw, 1.8rem); font-weight: 700; }
.question-hint { margin: 0 0 25px; color: var(--muted); line-height: 1.55; }
.choice-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.q1-choice-list, .q2-choice-list, .q3-choice-list { grid-template-columns: 1fr; gap: 7px; }
.choice-option { min-height: 62px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border: 1.5px solid #d8e1e1; border-radius: 13px; background: #fff; color: #34535b; text-align: left; font-weight: 650; line-height: 1.35; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease; }
.choice-option:hover { border-color: #96b8bc; transform: translateY(-1px); }
.choice-option.is-selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(196, 165, 43, .18); background: #fffdf3; color: #173e49; }
.q1-choice, .q2-choice, .q3-choice { min-height: 48px; padding: 8px 12px; font-size: .78rem; font-weight: 550; }
.choice-check { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #c4d3d3; border-radius: 50%; color: #71858a; background: white; font-size: 1rem; font-weight: 900; }
.is-selected .choice-check { color: white; background: var(--gold); border-color: var(--gold); }
.choice-multi .choice-check { border-radius: 8px; }
.scale-range-wrap { display: grid; gap: 6px; }
.scale-value { min-height: 1.6em; color: var(--petrol); font-size: 1.2rem; font-weight: 800; }
.scale-slider { width: 100%; min-height: 44px; margin: 0; cursor: pointer; touch-action: pan-y; accent-color: #cad9da; }
.scale-range-wrap.has-value .scale-slider { accent-color: var(--petrol); }
.scale-range-wrap:not(.has-value) .scale-slider::-webkit-slider-thumb { opacity: 0; }
.scale-range-wrap:not(.has-value) .scale-slider::-moz-range-thumb { opacity: 0; }
.scale-range-wrap:not(.has-value) .scale-slider:focus-visible::-webkit-slider-thumb { opacity: 1; }
.scale-range-wrap:not(.has-value) .scale-slider:focus-visible::-moz-range-thumb { opacity: 1; }
.scale-labels { display: flex; justify-content: space-between; gap: 18px; margin-top: 12px; color: #667b81; font-size: .88rem; }
.scale-labels span:last-child { text-align: right; }
.other-wrap, .text-wrap { margin-top: 18px; }
.other-wrap label, .text-wrap label { display: block; margin-bottom: 8px; color: #415d64; font-size: .93rem; font-weight: 700; }
.other-wrap input, .text-wrap textarea { width: 100%; border: 1px solid #c9d7d8; border-radius: 12px; padding: 13px 14px; color: var(--ink); background: #fff; outline: none; }
.other-wrap input:focus, .text-wrap textarea:focus { border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(7, 86, 106, .12); }
.text-wrap textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.text-count { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; color: #718186; font-size: .81rem; }
.text-count.text-count-only { justify-content: flex-end; }
.text-privacy-note { margin: 0 0 8px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.text-count span:first-child { max-width: 600px; }
.question-error { margin: 18px 0 0; padding: 12px 14px; color: #8f2d25; background: #fff1ed; border: 1px solid #f1d1ca; border-radius: 10px; }
.survey-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid #e8eded; }
.survey-nav .button { min-width: 138px; }
.privacy-reminder { margin: 17px 0 0; color: #708086; text-align: center; font-size: .84rem; }

.complete-panel { --complete-padding: clamp(32px, 7vw, 68px); padding: var(--complete-padding); text-align: center; }
.complete-photo { display: block; width: calc(100% + 2 * var(--complete-padding)); height: clamp(150px, 24vw, 260px); margin: calc(-1 * var(--complete-padding)) calc(-1 * var(--complete-padding)) 24px; object-fit: cover; object-position: center 22%; }
.complete-icon { width: 62px; height: 62px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: var(--petrol); background: #e5f0ee; border: 2px solid var(--gold); font-size: 1.8rem; font-weight: 900; }
.complete-panel .eyebrow { color: #a78a21; }
.complete-panel h1 { max-width: 690px; margin: 0 auto 16px; color: #163d49; font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.17; }
.complete-panel > p { max-width: 720px; margin: 0 auto 12px; color: #5d7177; line-height: 1.65; font-size: 1.05rem; }
.complete-panel .complete-final { margin-top: 22px; color: #244c57; font-weight: 800; }
.complete-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.page-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin: auto 0 0; padding: 24px 8px 0; color: #6d7e82; font-size: .88rem; }
.page-footer a { color: #61787e; }

@media (min-width: 700px) {
  .q1-choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .q2-choice-list { gap: 9px; }
  .q3-choice-list { gap: 9px; }
}
@media (max-width: 500px) {
  .page-shell { width: calc(100% - 24px); padding-top: 12px; }
  .brand-header { min-height: 60px; padding-bottom: 10px; }
  .brand-logo { height: 42px; width: min(220px, 61vw); }
  .brand-mark { width: 38px; height: 38px; }
  .panel { border-radius: 17px; }
  .hero-photo { height: 130px; }
  .question-hero { height: 155px; margin-inline: -18px; background-position: center 54%; }
  .intro-copy { padding: 16px 18px 18px; }
  .intro-copy > p { font-size: 1rem; }
  .survey-panel { padding: 0 18px 19px; }
  .progress-header { margin: 0 -18px; padding: 18px 18px 15px; }
  .question-card { min-height: 340px; padding-top: 26px; }
  .scale-range-wrap { gap: 3px; }
  .scale-value { font-size: 1.1rem; }
  .scale-labels { font-size: .78rem; }
  .survey-nav .button { min-width: 0; flex: 1; padding-inline: 14px; }
  .complete-panel { --complete-padding: 22px; padding: 34px 22px 22px; }
  .complete-photo { height: 140px; margin-top: -34px; }
}
