:root {
  --cyan: #20d6de;
  --cyan-pale: #e7fbfc;
  --pink: #ff315f;
  --pink-pale: #fff0f4;
  --black: #10131a;
  --navy: #1d2635;
  --blue-pale: #e8f8fb;
  --green: #2e7d5b;
  --green-pale: #e6f4ed;
  --red: #b42318;
  --red-pale: #fdecec;
  --amber: #9a6700;
  --amber-pale: #fff4d6;
  --ink: #202938;
  --muted: #637083;
  --line: #dce1e8;
  --surface: #ffffff;
  --page: #f5f7fa;
  --shadow: 0 18px 50px rgba(16, 19, 26, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 5%, rgba(32, 214, 222, .16), transparent 24rem),
    radial-gradient(circle at 96% 18%, rgba(255, 49, 95, .10), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, var(--page) 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.skip-link { position: fixed; top: -100px; right: 1rem; z-index: 100; padding: .7rem 1rem; color: #fff; background: var(--navy); border-radius: .6rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 20; color: var(--black); background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-bottom: 1px solid #e6e9ee; box-shadow: 0 4px 18px rgba(16, 19, 26, .08); }
.site-header::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: linear-gradient(90deg, var(--cyan) 0 50%, var(--pink) 50% 100%); }
.header-inner { width: min(1120px, calc(100% - 2rem)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 172px; height: auto; }
.secure-note { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .86rem; }
.secure-note span { width: 24px; height: 24px; display: grid; place-items: center; color: var(--black); background: var(--cyan-pale); border: 1px solid var(--cyan); border-radius: 50%; font-weight: 800; }

#questionnaire-app { width: min(1120px, calc(100% - 2rem)); min-height: calc(100vh - 150px); margin: 0 auto; padding: 3rem 0 4rem; }
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 1.5rem; align-items: start; }
.main-card, .side-card { background: rgba(255,255,255,.97); border: 1px solid rgba(16,19,26,.09); border-radius: 24px; box-shadow: var(--shadow); }
.main-card { padding: clamp(1.25rem, 3vw, 2.5rem); }
.side-card { position: sticky; top: 100px; padding: 1.25rem; }
.eyebrow { margin: 0 0 .55rem; color: var(--pink); font-weight: 900; font-size: .82rem; letter-spacing: .03em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1rem; color: var(--black); font-size: clamp(2rem, 4.5vw, 3.7rem); line-height: 1.08; letter-spacing: -.035em; text-shadow: 2px 1px 0 rgba(32,214,222,.26), -2px -1px 0 rgba(255,49,95,.16); }
h2 { margin-bottom: .65rem; color: var(--black); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.2; }
h3 { color: var(--navy); font-size: 1.05rem; }
.lead { max-width: 760px; margin-bottom: 1.5rem; color: #4f5d70; font-size: 1.08rem; }
.intro-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.25rem 0 2rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; color: var(--black); background: var(--cyan-pale); border: 1px solid #a5edf1; border-radius: 999px; font-size: .88rem; font-weight: 800; }
.chip:nth-child(even) { background: var(--pink-pale); border-color: #ffc2d0; }
.section-block { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.section-label { margin-bottom: .75rem; font-weight: 800; color: var(--navy); }
.helper { color: var(--muted); font-size: .9rem; }
.required-mark { color: var(--red); }

.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.route-option { position: relative; display: block; }
.route-option input { position: absolute; opacity: 0; pointer-events: none; }
.route-card { min-height: 150px; display: flex; flex-direction: column; padding: 1rem; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: .18s ease; }
.route-card strong { color: var(--navy); font-size: 1rem; }
.route-card span { margin-top: .35rem; color: var(--muted); font-size: .86rem; }
.route-card b { margin-top: auto; padding-top: .8rem; color: var(--pink); font-size: .82rem; }
.route-option:hover .route-card { transform: translateY(-2px); border-color: var(--cyan); }
.route-option input:focus-visible + .route-card { outline: 3px solid rgba(32,214,222,.30); outline-offset: 2px; }
.route-option input:checked + .route-card { border-color: var(--black); background: linear-gradient(135deg, var(--cyan-pale), var(--pink-pale)); box-shadow: 4px 4px 0 var(--cyan), -3px -3px 0 rgba(255,49,95,.75); }
.hybrid-choice { margin-top: 1rem; padding: 1rem; background: var(--amber-pale); border: 1px solid #efd48c; border-radius: 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field label, .question-label { display: block; margin-bottom: .38rem; font-weight: 700; color: var(--navy); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%; padding: .8rem .9rem; color: var(--ink); background: #fff; border: 1.5px solid #cfd5df; border-radius: 11px; outline: 0; transition: .15s ease;
}
textarea { min-height: 105px; resize: vertical; }
textarea.deep { min-height: 155px; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(32,214,222,.14); }
.field-error input, .field-error textarea, .field-error .choice { border-color: var(--red); }
.error-text { display: none; margin-top: .4rem; color: var(--red); font-size: .84rem; font-weight: 700; }
.field-error .error-text { display: block; }

.question-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.question-card { padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.question-card.is-error { border-color: var(--red); background: #fffafa; }
.question-head { display: flex; align-items: flex-start; gap: .75rem; }
.question-number { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--black); border-radius: 9px; font-size: .8rem; font-weight: 800; box-shadow: 2px 2px 0 var(--cyan), -2px -2px 0 var(--pink); }
.question-copy { flex: 1; }
.question-copy .question-label { margin: 0; font-size: 1rem; }
.question-copy .helper { margin: .25rem 0 .8rem; }
.choice-list { display: grid; gap: .55rem; }
.choice-list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .75rem; background: #fafbfc; border: 1px solid #e1e5eb; border-radius: 10px; cursor: pointer; transition: .15s ease; }
.choice:hover { border-color: var(--cyan); background: #f7feff; }
.choice input { width: 18px; height: 18px; margin: .12rem 0 0; accent-color: var(--pink); }
.choice:has(input:checked) { border-color: var(--black); background: linear-gradient(90deg, var(--cyan-pale), var(--pink-pale)); color: var(--black); }
.subgroup { margin-top: .85rem; padding-top: .85rem; border-top: 1px dashed var(--line); }
.subgroup-title { margin-bottom: .55rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
.details-field { margin-top: .75rem; }
.question-error { display: none; margin: .55rem 0 0; color: var(--red); font-size: .84rem; font-weight: 700; }
.question-card.is-error .question-error { display: block; }

.progress-wrap { margin-bottom: 1.4rem; }
.progress-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; color: var(--muted); font-size: .84rem; }
.progress-track { height: 9px; overflow: hidden; background: #ebe6ea; border-radius: 999px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); border-radius: inherit; transition: width .25s ease; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .72rem 1.15rem; border: 0; border-radius: 12px; font-weight: 800; text-decoration: none; transition: .15s ease; }
.button-primary { color: #fff; background: var(--black); box-shadow: 4px 4px 0 var(--cyan), -3px -3px 0 rgba(255,49,95,.85); }
.button-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 5px 5px 0 var(--cyan), -4px -4px 0 var(--pink); }
.button-secondary { color: var(--navy); background: #eef1f5; }
.button-secondary:hover { background: #e3e7ed; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-link { padding: 0; color: var(--pink); background: transparent; border: 0; text-decoration: underline; font-weight: 700; }
.save-status { color: var(--green); font-size: .82rem; }

.side-card h3 { margin-bottom: .8rem; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { position: relative; padding: .58rem 1.55rem .58rem 0; color: var(--muted); font-size: .88rem; border-bottom: 1px solid #eef0f3; }
.side-list li:last-child { border-bottom: 0; }
.side-list li::before { content: ""; position: absolute; top: .85rem; right: .25rem; width: 8px; height: 8px; border-radius: 50%; background: #c7cbd2; }
.side-list li.done { color: var(--green); }
.side-list li.done::before { background: var(--green); }
.side-list li.current { color: var(--black); font-weight: 800; }
.side-list li.current::before { width: 11px; height: 11px; top: .78rem; right: .1rem; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-pale); }
.side-note { margin-top: 1rem; padding: .9rem; color: var(--muted); background: #f7f8fa; border-radius: 12px; font-size: .82rem; }

.consent { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1rem; padding: 1rem; background: var(--blue-pale); border-radius: 12px; }
.consent input { width: 19px; height: 19px; margin-top: .15rem; accent-color: var(--pink); }
.submit-error { margin-top: 1rem; padding: .9rem; color: var(--red); background: var(--red-pale); border: 1px solid #f2b8b5; border-radius: 12px; }
.success { max-width: 760px; margin: 2.5rem auto; padding: clamp(1.5rem, 5vw, 3.5rem); text-align: center; background: #fff; border: 1px solid #cfe6da; border-radius: 26px; box-shadow: var(--shadow); }
.success-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 1.25rem; color: #fff; background: var(--green); border-radius: 50%; font-size: 2rem; }
.success h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.success-box { margin: 1.4rem 0; padding: 1rem; color: var(--green); background: var(--green-pale); border-radius: 14px; }
.submission-id { color: var(--muted); font-size: .78rem; direction: ltr; }
.noscript { width: min(760px, calc(100% - 2rem)); margin: 2rem auto; padding: 1rem; color: var(--red); background: var(--red-pale); border-radius: 12px; }
.site-footer { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 1.2rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; }
.hidden { display: none !important; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side-card { position: static; order: -1; padding: .9rem 1rem; }
  .side-card h3, .side-note { display: none; }
  .side-list { display: flex; overflow-x: auto; gap: .4rem; padding: .15rem 0; scrollbar-width: none; }
  .side-list li { flex: 0 0 auto; padding: .42rem .7rem; border: 0; background: #f3f4f6; border-radius: 999px; }
  .side-list li::before { display: none; }
  .side-list li.current { background: linear-gradient(90deg, var(--cyan-pale), var(--pink-pale)); }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 0; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 64px; }
  .secure-note { display: none; }
  #questionnaire-app { width: min(100% - 1rem, 1120px); padding: 1rem 0 2.5rem; }
  .main-card { padding: 1.1rem; border-radius: 18px; }
  .side-card { border-radius: 16px; }
  .contact-grid, .choice-list.two-col { grid-template-columns: 1fr; }
  .actions { align-items: stretch; flex-wrap: wrap; }
  .actions .button { flex: 1 1 42%; }
  .save-status { flex-basis: 100%; text-align: center; order: 3; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
