:root {
  --navy: #102b4e;
  --blue: #225b91;
  --blue-2: #2d73ae;
  --gold: #bd8b2f;
  --ink: #182332;
  --muted: #667384;
  --line: #dce3eb;
  --soft: #f2f6fa;
  --white: #fff;
  --error: #a42323;
  --error-bg: #fff0f0;
  --success: #247047;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #f7f9fb;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100%; margin: 0; background: radial-gradient(circle at top left, #edf4fb 0, transparent 34rem), #f7f9fb; }
button, input, textarea, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.site-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px max(20px, calc((100vw - 780px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 22px Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 15px Georgia, serif; color: var(--navy); }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.language { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.page-shell { width: min(100% - 32px, 720px); margin: 0 auto; padding: 30px 0 38px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, legend { color: var(--navy); font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; font-size: clamp(30px, 6vw, 44px); line-height: 1.06; letter-spacing: -.02em; }
h2 { margin: 0; font-size: 26px; }
.intro { margin: 25px 0 20px; }
.intro p:last-child, .hub > p { max-width: 650px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.form-context { margin: 0 0 16px; padding: 16px; border: 1px solid #b9cfe0; border-radius: 14px; background: #f1f7fc; color: var(--navy); }
.form-context-title { display: block; margin-bottom: 12px; font-size: 15px; line-height: 1.4; }
.form-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.form-context-grid div { min-width: 0; padding: 10px 11px; border-radius: 10px; background: var(--white); }
.form-context-grid span, .form-context-grid strong { display: block; overflow-wrap: anywhere; }
.form-context-grid span { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.form-context-grid strong { color: var(--navy); font-size: 14px; line-height: 1.35; }
.form-context-note { margin: 12px 0 0; color: #4d6278; font-size: 12px; line-height: 1.5; }
.form-context-note.alert { padding-top: 11px; border-top: 1px solid #c9d8e8; color: #7a4f12; font-weight: 750; }
.hub { padding: 34px 0; }
.hub h1 { max-width: 600px; }
.privacy-panel, .privacy-strip { border: 1px solid #c9d8e8; background: #edf5fc; color: var(--navy); }
.privacy-panel { display: grid; gap: 6px; margin-top: 28px; padding: 20px; border-radius: 16px; }
.privacy-panel span, .privacy-strip span { color: #4d6278; font-size: 13px; line-height: 1.5; }
.privacy-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; font-size: 13px; }

.progress-copy { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; font-weight: 700; }
.progress-track { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #dfe7f0; }
#progress-fill { display: block; width: 8%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transition: width .25s ease; }

.survey-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 18px 55px rgba(16, 43, 78, .08); }
.section-head { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.question { padding: 0 0 23px; margin: 0 0 23px; border: 0; border-bottom: 1px solid #e8edf2; }
.question:last-child { margin-bottom: 0; border-bottom: 0; }
.question legend, .question-title { width: 100%; margin: 0 0 8px; padding: 0; color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 750; line-height: 1.42; }
.question-note { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.required-mark { color: var(--error); }
input[type="text"], textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bfcbd8;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  padding: 11px 13px;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(45, 115, 174, .18); border-color: var(--blue-2); }
.participant-input { text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.answer-list { display: grid; gap: 9px; }
.answer-option { display: flex; align-items: flex-start; gap: 11px; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; cursor: pointer; line-height: 1.45; }
.answer-option:has(input:checked) { border-color: var(--blue); background: #eef5fb; box-shadow: 0 0 0 1px var(--blue); }
.answer-option input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
.matrix { display: grid; gap: 14px; }
.matrix-row { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.matrix-row > strong { display: block; margin-bottom: 11px; font-size: 14px; line-height: 1.45; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.scale label { display: grid; place-items: center; gap: 5px; min-height: 46px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); cursor: pointer; font-size: 12px; }
.scale label:has(input:checked) { border-color: var(--blue); background: #eaf3fb; color: var(--navy); font-weight: 800; }
.scale input { margin: 0; accent-color: var(--blue); }
.scale-ends { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 11px; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.button { min-height: 46px; border-radius: 11px; padding: 10px 18px; border: 1px solid transparent; cursor: pointer; font-weight: 800; }
.button.primary { margin-left: auto; background: var(--navy); color: var(--white); }
.button.primary:hover { background: #173c69; }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--navy); }
.button:disabled { cursor: wait; opacity: .55; }
.time-note { color: var(--muted); font-size: 12px; }
.notice { margin-bottom: 18px; padding: 13px 15px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.notice.error { border: 1px solid #efb9b9; background: var(--error-bg); color: var(--error); }
.preview-notice { display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dcc58d;background:#fff8e8;color:#6f5317; }
.preview-notice strong,.preview-notice span{display:block}.preview-notice span{font-size:12px;line-height:1.45}
.completion { padding: 34px 24px; border: 1px solid #bedacb; border-radius: 18px; background: #f3fbf6; text-align: center; }
.completion-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: var(--success); color: white; font-size: 32px; font-weight: 900; }
.completion p:last-child { color: var(--muted); }
.empty-state { padding: 18px; border: 1px dashed #aebdcb; border-radius: 12px; background: var(--soft); color: var(--muted); line-height: 1.55; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
footer { padding: 0 20px 28px; text-align: center; color: var(--muted); font-size: 11px; }

@media (max-width: 620px) {
  .site-header { padding-inline: 16px; }
  .brand small { display: none; }
  .page-shell { width: min(100% - 22px, 720px); padding-top: 22px; }
  .privacy-strip { align-items: flex-start; flex-direction: column; gap: 3px; }
  .form-context-grid { grid-template-columns: 1fr; }
  .survey-card { padding: 18px 15px; border-radius: 15px; }
  .form-actions { flex-wrap: wrap; }
  .time-note { order: -1; width: 100%; text-align: center; }
  .button { flex: 1; }
}
