:root {
  --green-950: #10392e;
  --green-900: #174b3b;
  --green-800: #1e5e49;
  --green-700: #26765b;
  --green-500: #57a183;
  --green-200: #cfe6dd;
  --green-100: #eaf4ef;
  --green-50: #f3f8f5;
  --cream: #f8f5ed;
  --paper: #fffefa;
  --orange: #ef7d56;
  --orange-dark: #dc6841;
  --yellow: #fbca63;
  --ink: #1d2d28;
  --muted: #697872;
  --line: #dce5e1;
  --danger: #c74747;
  --shadow: 0 24px 70px rgba(22, 62, 49, 0.1);
  --shadow-soft: 0 10px 30px rgba(24, 61, 49, 0.07);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 7% 4%, rgba(251, 202, 99, 0.2), transparent 22rem),
    radial-gradient(circle at 95% 20%, rgba(87, 161, 131, 0.13), transparent 25rem),
    var(--cream);
}

button,
input,
select {
  font: inherit;
}

button,
label,
input[type="radio"],
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-900);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--green-900);
  background: var(--yellow);
  transform: rotate(-2deg);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.header-badge {
  padding: 9px 14px;
  border: 1px solid rgba(23, 75, 59, 0.15);
  border-radius: 999px;
  color: var(--green-800);
  background: rgba(255, 254, 250, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.survey-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 80px;
}

.hero-panel {
  min-height: 430px;
  padding: 48px 64px 34px;
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  overflow: hidden;
  border-radius: 32px;
  color: white;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 35%),
    var(--green-900);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  width: 350px;
  height: 350px;
  position: absolute;
  top: -200px;
  left: 34%;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero-copy h1 {
  margin: 17px 0 20px;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.17;
  letter-spacing: -0.055em;
}

.hero-copy h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-copy h1 > span {
  white-space: nowrap;
}

.hero-copy > p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 29px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.hero-points svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-illustration {
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
}

.hero-illustration > svg {
  width: min(100%, 420px);
  filter: drop-shadow(0 20px 15px rgba(0,0,0,.08));
}

.sun-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
}

.dot-one {
  width: 12px;
  height: 12px;
  top: 45px;
  left: 35px;
}

.dot-two {
  width: 7px;
  height: 7px;
  right: 33px;
  bottom: 62px;
  background: var(--yellow);
}

.survey-card {
  width: min(980px, calc(100% - 50px));
  min-height: 600px;
  margin: -42px auto 0;
  padding: 38px 54px 44px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(23, 75, 59, 0.08);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.progress-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.step-kicker {
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.progress-header h2 {
  margin: 8px 0 0;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.progress-header > strong {
  color: var(--green-700);
  font-size: 20px;
}

.progress-track {
  height: 7px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--green-100);
}

.progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  transition: width 0.35s ease;
}

.step-nav {
  margin: 22px 0 42px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.step-nav button {
  padding: 10px 6px;
  border: 0;
  border-radius: 10px;
  color: #8a9691;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.step-nav button span {
  width: 23px;
  height: 23px;
  margin-right: 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #b5c1bc;
  font-size: 11px;
}

.step-nav button.active {
  color: var(--green-900);
  background: var(--green-100);
}

.step-nav button.active span,
.step-nav button.completed span {
  background: var(--green-700);
}

.form-step {
  display: none;
  animation: step-in 0.32s ease both;
}

.form-step.active {
  display: block;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-heading {
  margin-bottom: 32px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.section-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px 15px 15px 4px;
  color: var(--green-900);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.section-heading h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-field {
  margin-bottom: 27px;
  display: block;
}

.text-field > span,
.question-block legend {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.text-field b,
.question-block legend b {
  color: var(--orange-dark);
}

.text-field input,
.other-input {
  width: 100%;
  height: 50px;
  margin-top: 9px;
  padding: 0 15px;
  outline: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: white;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.text-field input::placeholder,
.other-input::placeholder {
  color: #a1aaa6;
}

.text-field input:focus,
.other-input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(87, 161, 131, 0.12);
}

.question-block {
  min-width: 0;
  margin: 0 0 35px;
  padding: 0;
  border: 0;
}

.question-block.highlighted {
  margin-left: -18px;
  margin-right: -18px;
  padding: 24px 18px;
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  background: var(--green-50);
}

.question-help {
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.question-help strong {
  margin-left: 5px;
  color: var(--orange-dark);
}

.choice-grid {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.choice-grid.one-column { grid-template-columns: 1fr; }
.choice-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-grid.five-columns { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.choice-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice {
  min-height: 48px;
  position: relative;
  display: flex;
  align-items: stretch;
  cursor: pointer;
}

.choice input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.choice > span {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #52615b;
  background: white;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  line-height: 1.35;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.choice:hover > span {
  border-color: var(--green-500);
  color: var(--green-800);
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(87, 161, 131, .25);
  outline-offset: 2px;
}

.choice input:checked + span {
  border-color: var(--green-700);
  color: var(--green-900);
  background: var(--green-100);
  box-shadow: inset 0 0 0 1px var(--green-700);
}

.choice.check > span {
  justify-content: flex-start;
  text-align: left;
}

.choice.check > span::before {
  content: "";
  width: 17px;
  height: 17px;
  margin-right: 9px;
  flex: 0 0 auto;
  border: 1.5px solid #aab6b1;
  border-radius: 5px;
  background: white;
}

.choice.check input:checked + span::before {
  border-color: var(--green-700);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat var(--green-700);
}

.choice input:disabled + span {
  opacity: .44;
  cursor: not-allowed;
}

.other-input {
  margin-top: 10px;
}

.conditional-group {
  margin: 8px 0 35px;
  padding: 26px 24px 2px;
  border-left: 3px solid var(--orange);
  border-radius: 0 16px 16px 0;
  background: #fff8f4;
}

.conditional-label {
  margin-bottom: 18px;
  display: block;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}

.consultation-block {
  padding-top: 4px;
}

.consultation-choice {
  min-height: 78px;
}

.consultation-choice > span {
  padding: 14px 18px;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
}

.consultation-choice b {
  font-size: 14px;
}

.consultation-choice small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.privacy-agreement {
  padding: 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbf9;
  cursor: pointer;
}

.privacy-agreement input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green-700);
}

.privacy-agreement span {
  flex: 1;
}

.privacy-agreement b,
.privacy-agreement small {
  display: block;
}

.privacy-agreement b {
  font-size: 13px;
}

.privacy-agreement em {
  color: var(--orange-dark);
  font-style: normal;
}

.privacy-agreement small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.form-message {
  margin: 18px 0 -5px;
  padding: 12px 14px;
  border: 1px solid #efc6c6;
  border-radius: 10px;
  color: #9b3434;
  background: #fff4f4;
  font-size: 13px;
}

.invalid-group {
  margin: -8px;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(199, 71, 71, .3);
}

.form-actions {
  margin-top: 36px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.button {
  height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: .6;
  transform: none;
  cursor: wait;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: white;
  background: var(--green-900);
  box-shadow: 0 8px 20px rgba(23, 75, 59, .2);
}

.button-primary:hover {
  background: var(--green-800);
}

.button-secondary {
  color: var(--green-900);
  background: var(--green-100);
}

.button-accent {
  color: white;
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(239, 125, 86, .23);
}

.button-accent:hover {
  background: var(--orange-dark);
}

.success-panel {
  min-height: 530px;
  padding: 70px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  animation: step-in .4s ease both;
}

.success-icon {
  width: 78px;
  height: 78px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  box-shadow: 0 0 0 12px var(--green-50);
}

.success-icon svg {
  width: 45px;
  fill: none;
  stroke: var(--green-700);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-panel h2 {
  margin: 13px 0 12px;
  font-size: 28px;
  letter-spacing: -.045em;
}

.success-panel p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: -40px auto 0;
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  color: #8a9691;
  font-size: 11px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero-panel {
    min-height: auto;
    padding: 46px 42px 70px;
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    display: none;
  }

  .survey-card {
    padding: 34px 32px 40px;
  }

  .choice-grid.four-columns,
  .choice-grid.five-columns,
  .choice-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 28px);
    height: 76px;
  }

  .brand small,
  .header-badge {
    display: none;
  }

  .survey-shell {
    width: 100%;
    margin-bottom: 35px;
  }

  .hero-panel {
    padding: 38px 23px 78px;
    border-radius: 0 0 28px 28px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy h1 > span {
    white-space: normal;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-points {
    gap: 13px;
    flex-direction: column;
  }

  .survey-card {
    width: calc(100% - 24px);
    margin-top: -44px;
    padding: 28px 18px 30px;
    border-radius: 20px;
  }

  .progress-header h2 {
    font-size: 20px;
  }

  .step-nav {
    margin-bottom: 34px;
    gap: 3px;
  }

  .step-nav button {
    padding: 7px 2px;
    font-size: 0;
  }

  .step-nav button span {
    margin: 0;
    font-size: 11px;
  }

  .section-heading p {
    line-height: 1.5;
  }

  .field-grid.two-columns,
  .choice-grid.two-columns,
  .choice-grid.three-columns,
  .choice-grid.four-columns,
  .choice-grid.five-columns,
  .choice-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-block.highlighted {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .conditional-group {
    padding-left: 14px;
    padding-right: 12px;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .form-actions .button {
    flex: 1;
  }

  .site-footer {
    width: calc(100% - 30px);
    margin-top: 0;
  }
}

@media (max-width: 390px) {
  .choice-grid.two-columns,
  .choice-grid.three-columns,
  .choice-grid.four-columns,
  .choice-grid.five-columns,
  .choice-grid.compact {
    grid-template-columns: 1fr;
  }
}

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