/* Wellness, The Hannam — Guest Questionnaire */
:root {
  --bg: #070a09;
  --bg-2: #0d1612;
  --green: #17271f;
  --gold: #c8b28a;
  --gold-soft: rgba(200, 178, 138, .55);
  --gold-line: rgba(200, 178, 138, .22);
  --gold-wash: rgba(200, 178, 138, .07);
  --ink: #ece6da;
  --ink-2: #b9b4a8;
  --muted: #7f877f;
  --danger: #d98b7a;
  --serif: 'Cormorant Garamond', 'Noto Serif KR', 'Songti SC', 'Hiragino Mincho ProN', serif;
  --serif-ko: 'Noto Serif KR', 'Cormorant Garamond', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans', 'Noto Sans CJK', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html, body { overflow-x: hidden; }
body {
  min-height: 100dvh;
  background: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -10%, #1a2c23 0%, rgba(13,22,18,.9) 40%, rgba(7,10,9,0) 75%),
    radial-gradient(80% 50% at 100% 110%, rgba(200,178,138,.06), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}
.grain {
  position: fixed; inset: 0; pointer-events: none; opacity: .05; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.shell {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 24px 0;
  display: flex; flex-direction: column;
}

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; }
.brand svg { width: 34px; height: auto; }
.brand span { font-family: var(--serif); font-size: 11px; letter-spacing: .3em; color: var(--ink-2); white-space: nowrap; }
.langs { display: flex; gap: 2px; }
.langs button {
  background: none; border: 0; padding: 8px 7px; font-size: 12px; color: var(--muted); white-space: nowrap;
  letter-spacing: .06em; border-bottom: 1px solid transparent; transition: color .2s;
}
.langs button[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold-soft); }
@media (max-width: 480px) { .brand span { display: none; } }

/* ---------- Progress ---------- */
.progress { display: flex; align-items: center; gap: 14px; margin: 4px 0 30px; }
.progress .bar { flex: 1; height: 1px; background: var(--gold-line); position: relative; overflow: hidden; }
.progress .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); transition: width .6s var(--ease); }
.progress .count { font-family: var(--serif); font-size: 15px; color: var(--ink-2); letter-spacing: .08em; font-variant-numeric: lining-nums; }
.progress .count b { color: var(--gold); font-weight: 400; }

/* ---------- Step ---------- */
.stage { flex: 1; display: flex; flex-direction: column; }
.enter { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.kicker { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 16px; letter-spacing: .04em; margin: 0 0 6px; }
.title {
  font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.2;
  margin: 0 0 10px; letter-spacing: -.01em;
}
html[lang="ko"] .title { font-family: var(--serif-ko); font-size: 27px; line-height: 1.4; letter-spacing: -.03em; }
html[lang="zh"] .title, html[lang="ja"] .title { font-size: 27px; line-height: 1.45; font-weight: 400; }
.sub { color: var(--ink-2); font-size: 14px; margin: 0 0 8px; line-height: 1.7; }

.fields { margin-top: 26px; display: flex; flex-direction: column; gap: 34px; padding-bottom: 32px; }
.field > .label { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--ink); margin-bottom: 4px; line-height: 1.5; }
.field > .label .opt { font-size: 11px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.field > .label .star { color: var(--gold); font-size: 13px; }
.field.key > .label { font-family: var(--serif-ko); font-size: 17px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.field.invalid > .label { color: var(--danger); }

/* text inputs */
.input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--gold-line);
  padding: 12px 0 10px; font-size: 17px; color: var(--ink); border-radius: 0; outline: none;
  transition: border-color .25s;
}
.input::placeholder { color: rgba(185,180,168,.35); }
.input:focus { border-bottom-color: var(--gold); }
textarea.input { min-height: 92px; resize: vertical; line-height: 1.6; }
.field.invalid .input, .field.invalid .select { border-bottom-color: var(--danger); }

.select {
  appearance: none; -webkit-appearance: none; width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--gold-line); border-radius: 0; padding: 12px 22px 10px 0; font-size: 17px; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.select:focus { border-bottom-color: var(--gold); }
.select option { background: #101813; color: var(--ink); }
.row { display: flex; gap: 14px; }
.row > * { min-width: 0; }
.dob .select:nth-child(1) { flex: 1.3; }
.dob .select { flex: 1; }
.tel .select { flex: 0 0 104px; }
.tel .input { flex: 1; }

/* options */
.opts { display: grid; gap: 8px; margin-top: 8px; }
.opts.inline { grid-template-columns: repeat(var(--n, 3), 1fr); }
.opts.inline .opt-btn { padding-left: 6px; padding-right: 6px; font-size: 14.5px; }
.opts.chips { grid-template-columns: 1fr 1fr; }
.opt-btn {
  position: relative; text-align: left; background: rgba(255,255,255,.012);
  border: 1px solid var(--gold-line); border-radius: 2px; padding: 14px 40px 14px 16px;
  font-size: 15px; line-height: 1.45; color: var(--ink); min-height: 52px;
  transition: border-color .25s, background .25s, color .25s;
}
.opts.inline .opt-btn { text-align: center; padding-top: 14px; padding-bottom: 14px; }
.opt-btn::after {
  content: ''; position: absolute; right: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border: 1px solid var(--gold-soft); border-radius: 50%; transition: all .25s;
}
.opts.multi .opt-btn::after { border-radius: 1px; }
.opts.inline .opt-btn::after { display: none; }
.opt-btn[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-wash); }
.opt-btn[aria-pressed="true"]::after { background: var(--gold); box-shadow: inset 0 0 0 2px #0d1612; }
.opts.inline .opt-btn[aria-pressed="true"] { color: var(--gold); }
.opt-btn:active { transform: scale(.995); }
.opt-btn .d { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* care cards */
.cares { display: grid; gap: 12px; margin-top: 26px; }
.care {
  position: relative; text-align: left; background: linear-gradient(160deg, rgba(23,39,31,.55), rgba(10,16,13,.4));
  border: 1px solid var(--gold-line); border-radius: 2px; padding: 22px 56px 22px 22px; color: var(--ink);
  transition: border-color .3s, background .3s;
}
.care .n { font-family: var(--serif); font-size: 12px; letter-spacing: .28em; color: var(--muted); }
.care .t { display: block; font-family: var(--serif-ko); font-size: 21px; font-weight: 300; margin: 6px 0 2px; }
html[lang="en"] .care .t { font-family: var(--serif); font-size: 25px; }
.care .d { font-size: 13px; color: var(--ink-2); }
.care::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 1px solid var(--gold-soft); border-radius: 50%; transition: all .3s;
}
.care[aria-pressed="true"] { border-color: var(--gold); background: linear-gradient(160deg, rgba(200,178,138,.12), rgba(23,39,31,.5)); }
.care[aria-pressed="true"]::after { background: var(--gold); box-shadow: inset 0 0 0 3px #111a15; }

/* photos */
.hero.has-photo { justify-content: flex-start; padding-top: 0; }
.photo {
  margin: 0 -24px 34px; height: 36vh; min-height: 220px; max-height: 420px;
  background-size: cover; background-position: center; position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  filter: saturate(.85) brightness(.82);
  animation: photoIn 1.6s var(--ease) both;
}
.photo.small { height: 28vh; min-height: 180px; }
@keyframes photoIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.hero-copy { position: relative; margin-top: -60px; }
.hero-copy .mark { width: 64px; margin-bottom: 26px; }
.banner {
  margin: -6px -24px 26px; height: 150px; background-size: cover; background-position: center 40%;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  filter: saturate(.8) brightness(.75);
}
.care { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto auto; column-gap: 18px; padding: 0 52px 0 0; overflow: hidden; min-height: 112px; align-content: center; }
.care .care-img { grid-row: 1 / 4; background-size: cover; background-position: center; filter: saturate(.8) brightness(.8); transition: filter .3s; align-self: stretch; }
.care[aria-pressed="true"] .care-img { filter: saturate(1) brightness(.95); }
.care .n { padding-top: 16px; }
.care .d { padding-bottom: 16px; }
.other-input { margin-top: 10px; font-size: 16px; }
.other-input.bad { border-bottom-color: var(--danger); }
.scale.wide { gap: 4px; }
.scale.wide button { font-size: 15px; max-width: 40px; }

/* scale */
.scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.scale button {
  flex: 1; aspect-ratio: 1; max-width: 56px; border-radius: 50%; border: 1px solid var(--gold-line);
  background: transparent; font-family: var(--serif); font-size: 19px; color: var(--ink-2); transition: all .25s;
}
.scale button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #101813; }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* consent */
.fields + .consents { margin-top: -6px; }
.consents { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; padding-bottom: 32px; }
.agree-all {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  border: 1px solid var(--gold-soft); background: var(--gold-wash); padding: 18px; border-radius: 2px; font-size: 16px;
}
.check {
  flex: 0 0 22px; height: 22px; border: 1px solid var(--gold-soft); border-radius: 50%; position: relative; transition: all .25s;
}
[aria-checked="true"] .check { background: var(--gold); border-color: var(--gold); }
[aria-checked="true"] .check::after {
  content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #101813; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
.consent { border-bottom: 1px solid var(--gold-line); padding: 6px 0 12px; }
.consent .head { display: flex; align-items: center; gap: 14px; }
.consent .tog { display: flex; align-items: center; gap: 14px; flex: 1; text-align: left; background: none; border: 0; padding: 10px 0; font-size: 14.5px; }
.consent .more { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0 8px 8px; white-space: nowrap; }
.consent pre { white-space: pre-wrap; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); margin: 4px 0 6px 36px; line-height: 1.75; }
.consent.invalid .tog { color: var(--danger); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; bottom: 0; z-index: 5;
  margin: 0 -24px; padding: 16px 24px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(7,10,9,.98) 60%, rgba(7,10,9,0));
  display: flex; gap: 12px; align-items: center;
}
.nav-wrap {
  margin: 0 -24px; padding: 18px 24px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(7,10,9,.98) 65%, rgba(7,10,9,0));
}
.nav-wrap .nav { position: static; margin: 0; padding: 0; background: none; }
.btn {
  flex: 1; height: 56px; border: 1px solid var(--gold); background: var(--gold); color: #0f1712;
  font-size: 15px; letter-spacing: .14em; text-transform: uppercase; border-radius: 1px;
  transition: opacity .2s, background .3s;
}
html[lang="ko"] .btn, html[lang="zh"] .btn, html[lang="ja"] .btn { letter-spacing: .1em; }
.btn:disabled { opacity: .55; }
.btn.ghost { flex: 0 0 auto; padding: 0 18px; background: transparent; color: var(--ink-2); border-color: var(--gold-line); }
.err { color: var(--danger); font-size: 13px; text-align: center; min-height: 0; margin: 0; }
.err:not(:empty) { padding: 0 0 6px; }

/* ---------- Intro / Done ---------- */
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0 24px; }
.hero .mark { width: 92px; color: var(--gold); margin-bottom: 40px; opacity: .95; }
.hero .mark path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .title { font-size: 42px; }
html[lang="ko"] .hero .title { font-size: 32px; }
html[lang="zh"] .hero .title, html[lang="ja"] .hero .title { font-size: 32px; }
.hero .sub { font-size: 15px; max-width: 30em; margin-top: 10px; }
.hero .meta { margin-top: 28px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.hero .meta::before { content: ''; width: 28px; height: 1px; background: var(--gold-soft); }
.ornament { width: 40px; height: 1px; background: var(--gold); margin: 26px 0; }
.demo-badge {
  position: absolute; left: 50%; transform: translateX(-50%); top: 6px; z-index: 20;
  font-size: 11px; letter-spacing: .1em; color: #101813; background: var(--gold); padding: 2px 10px; border-radius: 10px; opacity: .85;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (min-width: 700px) {
  .shell { padding-top: 40px; }
  .title { font-size: 40px; }
  html[lang="ko"] .title { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .enter, .hero .mark path { animation: none; stroke-dashoffset: 0; } }

html[lang="ko"] body { word-break: keep-all; }
