:root {
  --ink: #172b28;
  --muted: #5f716d;
  --paper: #fffdf7;
  --sand: #f0eadb;
  --sea: #0d6b66;
  --sea-dark: #084b48;
  --sun: #e9a23b;
  --coral: #d76850;
  --line: #d8ded8;
}

* { box-sizing: border-box; }

html { background: #e7efe9; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(233, 162, 59, .16), transparent 25rem),
    radial-gradient(circle at 92% 12%, rgba(13, 107, 102, .15), transparent 29rem),
    linear-gradient(145deg, #eff5ef 0%, #e7efe9 48%, #f4f0e5 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }

.survey-shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }

.survey-header { margin-bottom: 18px; padding: 0 6px; }

.brand { font-size: 1.03rem; font-weight: 900; letter-spacing: .08em; }
.brand span { color: var(--sea); }
.brand i { margin-left: 6px; color: var(--muted); font-size: .72rem; font-style: normal; font-weight: 600; letter-spacing: .02em; text-transform: lowercase; }

.progress-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 26px 0 10px; font-size: .83rem; color: var(--muted); }
.progress-copy strong { color: var(--ink); }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(23,43,40,.08); }
.progress-track div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sea), #2c9a83); transition: width .35s ease; }

.survey-card { position: relative; padding: clamp(26px, 6vw, 62px); border: 1px solid rgba(23,43,40,.1); border-radius: 28px; background: rgba(255,253,247,.96); box-shadow: 0 24px 65px rgba(31,63,57,.13); overflow: hidden; }
.survey-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--sea), var(--sun), var(--coral)); }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
h1 { max-width: 690px; margin: 8px 0 16px; font-size: clamp(2.25rem, 6vw, 4.6rem); line-height: .98; }
h2 { margin: 7px 0 30px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.03; }
h3 { margin: 5px 0 8px; font-size: 1.65rem; }
.eyebrow { margin: 0; color: var(--coral); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.lead, .section-intro { max-width: 690px; color: #455b56; font-size: 1.08rem; line-height: 1.65; }
.section-intro { margin: -16px 0 28px; }

.passport-stamp { position: absolute; top: 48px; right: 54px; width: 98px; height: 98px; display: grid; place-content: center; border: 3px double rgba(13,107,102,.45); border-radius: 50%; color: var(--sea); font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; line-height: 1.05; text-align: center; transform: rotate(7deg); }
.passport-stamp small { font-family: Inter, sans-serif; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0; }
.intro-grid div { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #f7f5ed; }
.intro-grid strong, .intro-grid span { display: block; }
.intro-grid strong { margin-bottom: 5px; font-size: .86rem; }
.intro-grid span { color: var(--muted); font-size: .76rem; line-height: 1.4; }

.field { min-width: 0; margin: 0 0 32px; padding: 0; border: 0; }
.field legend, .text-label { display: block; margin-bottom: 9px; font-size: 1rem; font-weight: 800; line-height: 1.45; }
.required { color: var(--coral); }
.hint { margin: -3px 0 12px; color: var(--muted); font-size: .87rem; line-height: 1.45; }

.text-input, textarea { width: 100%; border: 1px solid #bdc9c4; border-radius: 13px; color: var(--ink); background: white; outline: none; transition: border-color .15s, box-shadow .15s; }
.text-input { min-height: 50px; padding: 12px 14px; }
textarea { min-height: 128px; padding: 14px; resize: vertical; line-height: 1.55; }
.text-input:focus, textarea:focus { border-color: var(--sea); box-shadow: 0 0 0 4px rgba(13,107,102,.11); }

.choices { display: grid; gap: 10px; }
.choices.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.choice:hover { border-color: #91aaa2; transform: translateY(-1px); }
.choice:has(input:checked) { border-color: var(--sea); background: #edf8f5; box-shadow: 0 0 0 1px var(--sea); }
.choice.disabled { opacity: .45; cursor: not-allowed; }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sea); flex: 0 0 auto; }
.choice strong, .choice small { display: block; }
.choice small { margin-top: 4px; color: var(--muted); font-size: .82rem; font-weight: 400; line-height: 1.4; }

.consent-box { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px; border-radius: 14px; background: #edf5f0; color: #38514b; font-size: .88rem; line-height: 1.52; }
.consent-box input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--sea); }

.adventure-card { position: relative; margin: 0 0 30px; padding: 27px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #0a5f5a, #173d4b 65%, #633f43); overflow: hidden; }
.adventure-card::after { content: "✦"; position: absolute; right: 24px; bottom: 4px; color: rgba(255,255,255,.14); font-size: 7rem; }
.adventure-card p { position: relative; z-index: 1; max-width: 650px; margin: 0; color: rgba(255,255,255,.83); line-height: 1.6; }
.adventure-tag { display: inline-block; padding: 5px 9px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.error-message { margin: 0 0 20px; padding: 13px 15px; border-left: 4px solid var(--coral); border-radius: 8px; color: #743326; background: #fff0ec; font-size: .9rem; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.button { min-height: 48px; padding: 11px 20px; border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--sea); box-shadow: 0 7px 18px rgba(13,107,102,.2); }
.button.primary:hover { background: var(--sea-dark); }
.button.secondary { color: var(--ink); background: var(--sand); }
.button:disabled { opacity: .55; cursor: wait; }
.footer-note { margin: 17px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }

.completion { min-height: 90vh; display: grid; align-content: center; justify-items: center; text-align: center; }
.completion h1 { margin-top: 12px; }
.completion .lead { margin-inline: auto; }
.completion-mark { display: grid; place-content: center; width: 84px; height: 84px; margin: 42px 0 23px; border-radius: 50%; color: white; background: var(--sea); font-size: 2.1rem; box-shadow: 0 17px 34px rgba(13,107,102,.22); }
.privacy-note { margin-top: 18px; padding: 11px 16px; border-radius: 999px; color: var(--sea-dark); background: #dfeee7; font-size: .84rem; font-weight: 700; }
.admin-link { display: inline-flex; align-items: center; text-decoration: none; }
.response-list { margin-top: 28px; }
.response-list details { display: block; cursor: default; }
.response-list summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; }
.response-list pre { margin: 18px 0 0; padding: 16px; border-radius: 10px; background: #f4f3ed; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .76rem; line-height: 1.5; }

@media (max-width: 700px) {
  .survey-shell { width: min(100% - 20px, 920px); padding-top: 18px; }
  .survey-card { padding: 30px 20px; border-radius: 20px; }
  .passport-stamp { position: static; margin: 22px 0 0; }
  .intro-grid, .choices.compact { grid-template-columns: 1fr; }
  .progress-copy { margin-top: 18px; }
  .progress-copy strong { max-width: 55%; text-align: right; }
  .choice { padding: 13px; }
}

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