@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@700&family=Pretendard:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #172b28;
  --muted: #657773;
  --green: #176b5b;
  --green-dark: #0e5145;
  --mint: #dff3eb;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --line: #dfe7e2;
  --orange: #e77b45;
  --error: #b53b32;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 85% 6%, rgba(223,243,235,.9), transparent 24rem), var(--cream); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.page-shell { width: min(100% - 32px, 940px); margin: 0 auto; }

.hero { padding: 72px 24px 46px; text-align: center; }
.eyebrow { display: inline-flex; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .17em; }
.hero h1 { margin: 16px 0; font-family: "Gowun Batang", serif; font-size: clamp(38px, 7vw, 66px); line-height: 1.15; letter-spacing: -.05em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero > p { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-meta { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.hero-meta span { padding: 8px 13px; border: 1px solid rgba(23,107,91,.16); border-radius: 999px; background: rgba(255,255,255,.6); color: var(--green-dark); font-size: 13px; font-weight: 700; }

.survey-card { overflow: hidden; border: 1px solid rgba(23,43,40,.09); border-radius: 28px; background: var(--paper); box-shadow: 0 24px 70px rgba(31,65,57,.1); }
.progress-wrap { padding: 28px 44px 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.8); }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.progress-copy strong { color: var(--green); }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: #e9eee9; }
.progress-bar { width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #43a486); transition: width .35s ease; }

form { padding: 12px 44px 40px; }
.form-step { display: none; }
.form-step.is-active { display: block; animation: reveal .3s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-heading { display: flex; align-items: flex-start; gap: 18px; margin: 34px 0 38px; }
.step-heading > span { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 15px; background: var(--green); color: white; font-weight: 800; }
.step-heading h2 { margin: 0 0 8px; font-family: "Gowun Batang", serif; font-size: clamp(25px, 4vw, 34px); line-height: 1.3; letter-spacing: -.04em; }
.step-heading p { margin: 0; color: var(--muted); line-height: 1.65; }

fieldset, .text-field { min-width: 0; margin: 0; padding: 28px 0; border: 0; border-top: 1px solid var(--line); }
.text-field { display: block; }
legend, .text-field > span { display: block; width: 100%; margin-bottom: 16px; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.55; }
legend b, .text-field b { margin-left: 4px; color: var(--orange); }
legend small, .text-field small { display: inline-block; margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid.one-column { grid-template-columns: 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; min-height: 52px; padding: 13px 15px 13px 45px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: #3f514d; line-height: 1.45; transition: .18s ease; }
.choice span::before { position: absolute; left: 16px; width: 17px; height: 17px; border: 1.5px solid #9daca8; border-radius: 50%; content: ""; }
.choice.checkbox span::before { border-radius: 5px; }
.choice input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green-dark); font-weight: 700; box-shadow: 0 0 0 1px var(--green) inset; }
.choice input:checked + span::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px var(--mint) inset; }
.choice.checkbox input:checked + span::before { color: white; box-shadow: none; content: "✓"; font-size: 12px; font-weight: 800; text-align: center; line-height: 17px; }
.choice input:focus-visible + span { outline: 3px solid rgba(23,107,91,.22); outline-offset: 2px; }

.scale-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-option { position: relative; text-align: center; }
.scale-option input { position: absolute; opacity: 0; }
.scale-option span { display: grid; place-items: center; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--muted); font-weight: 800; }
.scale-option input:checked + span { border-color: var(--green); background: var(--green); color: white; }
.scale-labels { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 2px; color: var(--muted); font-size: 12px; }
input[type="text"], textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); outline: none; transition: .18s ease; }
input[type="email"], input[type="tel"] { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); outline: none; transition: .18s ease; }
input[type="text"] { height: 52px; padding: 0 16px; }
textarea { min-height: 104px; padding: 15px 16px; resize: vertical; line-height: 1.65; }
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,91,.12); }
::placeholder { color: #9ba8a5; }
.selection-count { margin: 12px 0 0; color: var(--green); font-size: 13px; font-weight: 700; text-align: right; }
.idea-guide { display: flex; flex-wrap: wrap; gap: 7px; margin: -2px 0 14px; }
.idea-guide strong { width: 100%; color: var(--green); font-size: 13px; }
.idea-guide span { padding: 7px 10px; border-radius: 8px; background: var(--mint); color: var(--green-dark); font-size: 12px; }
.privacy-note { margin-top: 26px; padding: 20px; border-radius: 15px; background: #f1f6f3; }
.privacy-note strong { color: var(--green-dark); }
.privacy-note p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.field-help { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-field { display: flex; gap: 13px; margin: 28px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbf9; cursor: pointer; }
.consent-field input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--green); }
.consent-field strong { display: block; font-size: 14px; }
.consent-field small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.is-invalid { border-radius: 14px; background: rgba(181,59,50,.04); box-shadow: 0 0 0 3px rgba(181,59,50,.06); }
.is-invalid legend, .text-field.is-invalid > span { color: var(--error); }
.form-alert { min-height: 24px; margin-top: 10px; color: var(--error); font-size: 14px; font-weight: 700; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.button { min-width: 122px; padding: 14px 22px; border: 0; border-radius: 13px; font-weight: 800; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { margin-left: auto; background: var(--green); color: white; box-shadow: 0 10px 20px rgba(23,107,91,.18); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { border: 1px solid var(--line); background: white; color: var(--muted); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.submit-button { display: none; }

.success-panel { padding: 70px 32px 78px; text-align: center; }
.success-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%; background: var(--green); color: white; font-size: 30px; box-shadow: 0 12px 28px rgba(23,107,91,.2); }
.success-panel h2 { margin: 13px 0; font-family: "Gowun Batang", serif; font-size: 44px; }
.success-panel > p { color: var(--muted); line-height: 1.8; }
.success-card { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin: 34px auto 0; padding: 24px; border-radius: 18px; background: var(--mint); color: var(--green-dark); line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 8px 48px; color: var(--muted); font-size: 12px; }

@media (max-width: 680px) {
  .page-shell { width: min(100% - 20px, 940px); }
  .hero { padding: 46px 12px 30px; }
  .hero h1 { font-size: 38px; }
  .hero > p { font-size: 15px; }
  .survey-card { border-radius: 20px; }
  .progress-wrap { padding: 22px 22px 20px; }
  form { padding: 8px 22px 28px; }
  .step-heading { gap: 13px; margin: 28px 0 30px; }
  .step-heading > span { flex-basis: 42px; height: 42px; border-radius: 12px; }
  .step-heading h2 { font-size: 25px; }
  .step-heading p { font-size: 14px; }
  fieldset, .text-field { padding: 24px 0; }
  legend, .text-field > span { font-size: 16px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice span { min-height: 50px; }
  .form-actions { position: sticky; bottom: 8px; z-index: 5; padding: 10px; border: 1px solid rgba(23,43,40,.08); border-radius: 16px; background: rgba(255,253,248,.94); box-shadow: 0 8px 30px rgba(23,43,40,.12); backdrop-filter: blur(12px); }
  .button { min-width: 96px; padding: 13px 16px; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.other-input { grid-column: 1 / -1; margin-top: -4px; padding: 0 16px !important; }
.model-followup .field-help { margin: -4px 0 18px; }
.model-service { padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbf9; }
.model-service h3 { margin: 0 0 12px; color: var(--green-dark); font-size: 15px; }
.model-choice-row { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.model-choice { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; line-height: 1.5; cursor: pointer; }
.model-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.model-name { margin-top: 13px; padding: 0 14px !important; }
