:root {
  --navy: #123273;
  --navy-deep: #0a2458;
  --cyan: #00a6c8;
  --cyan-soft: #e8f8fb;
  --red: #e64b52;
  --ink: #15223b;
  --muted: #68758a;
  --line: #dfe5ed;
  --paper: #ffffff;
  --canvas: #f3f7fa;
  --error: #c7373f;
  --shadow: 0 18px 60px rgba(24, 54, 92, 0.12);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 50, 115, 0.025) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--canvas);
}

button, input { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #edf0f4;
}

.hct-logo { width: 142px; height: auto; display: block; }

.expo-label {
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.intro {
  position: relative;
  padding: 30px 24px 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7fcfd 0%, #ffffff 64%);
}

.intro::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 100%;
  background: linear-gradient(var(--cyan) 0 70%, var(--red) 70%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.intro h1, .success-screen h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 340px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.survey-meta { display: flex; gap: 18px; margin-top: 20px; }
.survey-meta span { display: inline-flex; align-items: center; gap: 7px; color: #3f4d62; font-size: 13px; font-weight: 700; }
.survey-meta i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cyan-soft); color: #087d97; font-size: 11px; font-style: normal; }

.progress-region { padding: 22px 24px 8px; }
.progress-copy { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.progress-copy span { color: var(--navy); font-weight: 800; }
.progress-copy strong { color: var(--muted); font-size: 12px; }
.progress-track { width: 100%; height: 5px; overflow: hidden; background: #e9edf2; }
.progress-track span { display: block; width: 50%; height: 100%; background: linear-gradient(90deg, var(--navy), var(--cyan)); transition: width 260ms ease; }

.is-condensed .intro { display: none; }
.is-condensed .progress-region { padding-top: 18px; }

#leadForm { padding-bottom: 96px; }
.form-step { display: none; padding: 26px 24px 8px; animation: enter 260ms ease both; }
.form-step.is-active { display: block; }

@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.section-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 28px; }
.step-number { flex: 0 0 auto; padding-top: 4px; color: var(--cyan); font-size: 12px; font-weight: 900; }
.section-heading h2 { margin: 0; color: var(--navy-deep); font-size: 25px; line-height: 1.3; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.field-grid { display: grid; gap: 18px; margin-bottom: 28px; }
.field { display: block; }
.field > span, legend { display: block; margin-bottom: 9px; color: #26364f; font-size: 13px; font-weight: 800; }
b { color: var(--red); font-size: 10px; }
em { color: #7a8798; font-size: 10px; font-style: normal; }

input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cfd7e2;
  border-radius: 5px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder { color: #a3adbb; }
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 166, 200, 0.12); }
.field.has-error input { border-color: var(--error); background: #fffafa; }

fieldset { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice-grid label, .choice-list label { position: relative; display: block; }
.choice-grid input, .choice-list input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-grid label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #46546a;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: 150ms ease;
}
.choice-grid input:checked + span { border-color: var(--navy); background: #f0f5ff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choice-field.has-error legend { color: var(--error); }

.choice-list { display: grid; gap: 10px; }
.choice-list label {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: 150ms ease;
}
.choice-list label::after { content: ""; flex: 0 0 auto; width: 17px; height: 17px; margin-left: auto; border: 1.5px solid #aab4c2; border-radius: 50%; }
.choice-list label:has(input:checked) { border-color: var(--navy); background: #f4f7fd; box-shadow: inset 3px 0 0 var(--cyan); }
.choice-list label:has(input:checked)::after { border: 5px solid var(--navy); }
.choice-list label > span:not(.choice-icon) { display: grid; gap: 4px; }
.choice-list strong { color: #26364f; font-size: 14px; }
.choice-list small { color: #7a8798; font-size: 12px; line-height: 1.4; }
.choice-icon { flex: 0 0 33px; color: var(--cyan); font-size: 10px; font-weight: 900; }

.service-grid label > span { flex-direction: column; gap: 7px; min-height: 86px; }
.service-grid i { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #b8dce5; border-radius: 50%; background: var(--cyan-soft); color: #087f99; font-size: 10px; font-style: normal; font-weight: 900; }
.service-grid input:checked + span i { border-color: var(--navy); background: var(--navy); color: #fff; }

.consent-group { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.conditional-field { margin: 4px 0 28px; }
.conditional-field[hidden] { display: none; }
.consent-row { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; }
.consent-row input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.consent-row span { display: grid; gap: 5px; }
.consent-row strong { color: #26364f; font-size: 13px; }
.consent-row small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.consent-row.has-error { background: #fff5f5; outline: 6px solid #fff5f5; }
details { margin: -4px 0 4px 32px; color: var(--muted); font-size: 11px; line-height: 1.6; }
summary { color: var(--navy); font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; }

.review-box { margin-top: 22px; padding: 18px; border-left: 4px solid var(--cyan); background: #f4fafb; }
.review-box span { display: block; margin-bottom: 6px; color: #718091; font-size: 10px; font-weight: 800; }
.review-box strong { color: var(--navy-deep); font-size: 18px; }
.review-box p { margin: 6px 0 0; color: #536276; font-size: 12px; line-height: 1.55; }

.form-error { min-height: 22px; margin: 14px 24px 0; color: var(--error); font-size: 12px; font-weight: 700; text-align: center; }
.form-actions {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(96px, 0.34fr) minmax(190px, 0.66fr);
  gap: 10px;
  width: auto;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #e3e8ef;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.button { min-height: 52px; border: 0; border-radius: 5px; font-size: 15px; font-weight: 800; }
.button.primary { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(18, 50, 115, 0.22); }
.button.primary:hover { background: #0e2a65; }
.button.secondary { border: 1px solid #d4dbe5; background: #fff; color: #4b5a6e; }
.button:disabled { opacity: 0.38; cursor: default; }

.success-screen { min-height: calc(100vh - 74px); padding: 58px 28px 40px; text-align: center; background: linear-gradient(180deg, #f3fbfd, #fff 44%); }
.success-screen[hidden] { display: none; }
.success-mark { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 26px; border: 1px solid #a6dbe5; border-radius: 50%; background: #fff; box-shadow: 0 10px 35px rgba(0, 166, 200, 0.15); }
.success-mark span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--cyan); color: #fff; font-size: 30px; }
.success-screen .eyebrow { margin-bottom: 14px; }
.success-screen > p:not(.eyebrow) { margin: 18px auto 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.participation-code { margin: 30px 0 18px; padding: 22px; border: 1px solid #b9dfe7; background: #f5fcfd; }
.participation-code span { display: block; color: #68818a; font-size: 11px; font-weight: 700; }
.participation-code strong { display: block; margin-top: 7px; color: var(--navy-deep); font-size: 33px; letter-spacing: 0.08em; }
.success-info { display: grid; gap: 7px; padding: 17px 4px 28px; }
.success-info strong { color: #26364f; font-size: 15px; }
.success-info span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.button.ghost { width: 100%; border: 1px solid #d6dee8; background: #fff; color: var(--navy); }
.success-logo { width: 136px; margin-top: 42px; opacity: 0.75; }

footer { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; border-top: 1px solid #edf0f4; color: #8994a3; font-size: 10px; }
footer a { color: var(--navy); font-weight: 700; text-decoration: none; }

@media (min-width: 520px) {
  body { padding: 28px 0; }
  .page-shell { min-height: calc(100vh - 56px); border: 1px solid #e2e7ed; }
  .two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions { bottom: 28px; }
}

@media (max-width: 360px) {
  .brand-header, .intro, .progress-region, .form-step { padding-right: 18px; padding-left: 18px; }
  .hct-logo { width: 126px; }
  .intro h1 { font-size: 32px; }
  .choice-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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