:root {
  --green-900: #17361d;
  --green-800: #1f4a27;
  --green-700: #2c6338;
  --green-600: #3b7d49;
  --green-100: #e7efe3;
  --green-50: #f1f6ee;
  --cream: #fbf9f3;
  --paper: #ffffff;
  --ink: #1a241d;
  --body: #3d4a41;
  --muted: #5b675f;
  --line: #d9ddd2;
  --line-strong: #b9c2b2;
  --amber: #8a5a00;
  --amber-bg: #fdf3dc;
  --red: #a3251c;
  --red-bg: #fdecea;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 54, 29, 0.06), 0 8px 24px rgba(23, 54, 29, 0.06);
  --shadow-lg: 0 2px 6px rgba(23, 54, 29, 0.08), 0 18px 40px rgba(23, 54, 29, 0.1);
  --focus: 0 0 0 4px rgba(59, 125, 73, 0.28);
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, legend, label { color: var(--ink); }

a { color: var(--green-700); }

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  padding: 12px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  background: var(--green-800);
  color: #fff;
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand { flex: 0 1 auto; }
.brand-logo {
  display: block;
  width: auto; height: auto;
  max-height: 44px; max-width: 100%;
  background: #fff;
  border-radius: 10px;
}
.brand-sub--admin { flex: none; color: #fff; font-weight: 600; }
@media (max-width: 560px) { .brand-sub--admin { display: none; } }
.brand-mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--green-800);
  font-weight: 800;
  font-size: 19px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-name { font-weight: 700; font-size: 16px; color: #fff; letter-spacing: -0.01em; }
.brand-sub { font-size: 13px; color: #d8e6d6; }
.admin-link {
  flex: none;
  color: #eaf3e7;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.admin-link:hover { background: rgba(255,255,255,0.12); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--green-800) 0%, var(--green-700) 100%);
  color: #fff;
  padding: 34px 0 40px;
  border-radius: 0 0 28px 28px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: clamp(19px, 6.6vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #cfe3c9;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 6px 16px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 800;
}
.lede { margin: 0 0 22px; font-size: 17px; color: #e4efe1; max-width: 34em; }
.facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,0.16); border-radius: var(--radius); overflow: hidden; }
.facts li { background: rgba(255,255,255,0.08); padding: 12px 16px; display: flex; gap: 14px; align-items: baseline; }
.facts-label { flex: none; width: 78px; font-size: 15px; color: #bfd6b9; }
.facts-value { word-break: keep-all; font-size: 16px; color: #fff; font-weight: 600; }
.facts-sub { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: #d8e6d6; word-break: keep-all; }
.group-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; word-break: keep-all; }
.group-note strong { display: block; margin-bottom: 2px; color: var(--green-800); font-size: 16px; }
.group-note p { margin: 0; color: var(--ink); }
.hero-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; min-height: 56px; padding: 0 20px;
  border-radius: var(--radius);
  background: #fff; color: var(--green-800);
  font-size: 18px; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.hero-cta:hover { background: var(--green-50); }
.hero-cta:focus-visible { outline: 3px solid #cfe3c9; outline-offset: 3px; }
.other-field { margin-top: 10px; }
.hero-note { margin: 0; font-size: 14px; color: #c6d9c1; }
.schedule { margin: 0; padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #fff; }
.schedule-title { color: #fff; margin: 0 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.schedule-list li { display: flex; gap: 6px; font-size: 16px; line-height: 1.5; }
.schedule-num { flex: none; color: #bfd6b9; font-weight: 700; }
.schedule-label { font-weight: 700; }
.schedule-alert { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 214, 102, 0.16); border: 1px solid rgba(255, 214, 102, 0.45); color: #fff3cf; font-size: 15.5px; word-break: keep-all; }
.schedule-alert strong { color: #ffe08a; }
.schedule-tel { color: #fff; font-weight: 800; font-size: 18px; text-decoration: underline; text-underline-offset: 3px; }
.schedule-list li > div { word-break: keep-all; }
.site-footer a { color: inherit; font-weight: 700; }
.dup-notice a { color: inherit; font-weight: 700; }
.map-link { display: inline; color: #e9f3e5; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45); text-underline-offset: 3px; }
.map-link:hover { color: #fff; text-decoration-color: #fff; }
.map-link > span[aria-hidden] { margin-right: 4px; text-decoration: none; display: inline-block; }
.map-cta { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: #fff; color: var(--green-800); font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; vertical-align: 1px; }
.schedule-addr { display: block; margin-top: 2px; font-size: 15px; color: #c6d9c1; }

/* ---------- form ---------- */
.form-section { padding: 36px 0 12px; }
.section-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.section-help { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.req { color: var(--red); font-weight: 700; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 20px 6px;
  margin-bottom: 18px;
}

.field { margin: 0 0 24px; padding: 0; border: 0; }
.field > label, .field > legend {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 9px;
  padding: 0;
}
.optional { font-weight: 500; color: var(--muted); font-size: 16px; }

input[type="text"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 15px 16px;
  min-height: 56px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #96a096; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: var(--focus);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select { padding-right: 44px; }

.hint { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }
.error { margin: 8px 0 0; font-size: 16px; font-weight: 600; color: var(--red); min-height: 0; }
.error:empty { display: none; }

/* choices (직책) */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 359px) { .choices { grid-template-columns: repeat(2, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.choice input:checked + span {
  background: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-800);
  box-shadow: inset 0 0 0 1px var(--green-600);
}
.choice input:focus-visible + span { box-shadow: var(--focus); }

/* stepper */
.stepper { display: flex; align-items: stretch; gap: 10px; max-width: 320px; }
.stepper input {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  height: 60px;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn {
  flex: none;
  width: 60px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--green-800);
  background: var(--green-50);
  border: 1.5px solid var(--green-600);
  border-radius: var(--radius);
  cursor: pointer;
}
.step-btn:hover { background: var(--green-100); }
.step-btn:active { transform: scale(0.97); }

/* transport */
.transport-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.transport {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}
.transport input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.transport-icon { grid-row: 1 / span 2; font-size: 26px; text-align: center; }
.transport-label { font-size: 18px; font-weight: 700; color: var(--ink); }
.transport-desc { word-break: keep-all; font-size: 15px; color: var(--muted); }
.transport:has(input:checked) {
  background: var(--green-50);
  border-color: var(--green-600);
  box-shadow: inset 0 0 0 1px var(--green-600);
}
.transport:has(input:focus-visible) { box-shadow: var(--focus); }

/* consent */
.consent-card { padding: 20px; }
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16.5px; line-height: 1.5; }
.consent input {
  flex: none;
  width: 26px; height: 26px;
  margin: 0;
  accent-color: var(--green-700);
  cursor: pointer;
}
.consent strong { color: var(--ink); }
.consent-detail { margin-top: 12px; }
.consent-detail summary {
  cursor: pointer;
  font-size: 14.5px;
  color: var(--green-700);
  padding: 8px 0 8px 2px;
  font-weight: 600;
}
.consent-body {
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--body);
}
.consent-body p { margin: 0 0 8px; }
.consent-body p:last-child { margin-bottom: 0; }

.form-error {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}

/* submit bar */
.submit-bar {
  position: sticky;
  bottom: 0;
  margin-top: 4px;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(251,249,243,0) 0%, var(--cream) 34%);
}
.primary-btn {
  width: 100%;
  min-height: 60px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  background: var(--green-700);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.1s ease;
}
.primary-btn:hover { background: var(--green-800); }
.primary-btn:active { transform: translateY(1px); }
.primary-btn:disabled {
  background: #cdd4c9;
  color: #6f7a71;
  cursor: not-allowed;
  box-shadow: none;
}
.primary-btn[aria-busy="true"] { background: var(--green-600); color: #fff; }
.submit-note { margin: 10px 0 0; text-align: center; font-size: 15px; color: var(--muted); }

/* done */
.done-section { padding: 28px 0 40px; }
.done-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 24px 28px;
  text-align: center;
}
.done-mark {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 34px;
  font-weight: 800;
}
.done-card h2 { margin: 0 0 8px; font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.done-sub { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.receipt {
  margin: 0 0 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.receipt > div { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.receipt > div:last-child { border-bottom: 0; }
.receipt dt { flex: none; width: 92px; margin: 0; font-size: 15.5px; color: var(--muted); }
.receipt dd { margin: 0; font-size: 16px; color: var(--ink); font-weight: 600; }
.dup-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
}
.done-actions { display: grid; gap: 10px; }
.secondary-btn {
  min-height: 56px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--green-800);
  background: #fff;
  border: 1.5px solid var(--green-600);
  border-radius: var(--radius);
  cursor: pointer;
}
.secondary-btn:hover { background: var(--green-50); }
.text-link { font-size: 15.5px; color: var(--muted); text-decoration: underline; padding: 6px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  font-size: 15px;
  color: var(--muted);
  background: var(--cream);
}
.site-footer p { margin: 0 0 4px; }
.footer-dim { color: #5d675e; font-size: 15px; }

@media (min-width: 640px) {
  body { font-size: 18px; }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 42px; }
  .eyebrow { font-size: 34px; padding: 6px 20px; }
  .card { padding: 28px 26px 8px; }
  .transport-grid { grid-template-columns: repeat(3, 1fr); }
  .transport { grid-template-columns: 1fr; grid-template-rows: auto auto auto; text-align: center; gap: 4px; padding: 18px 12px; }
  .transport-icon { grid-row: auto; }
  .choices { grid-template-columns: repeat(5, 1fr); }
  .consent-card { padding: 24px 26px; }
  .submit-bar { position: static; background: none; padding: 8px 0 24px; }
  .primary-btn { max-width: 420px; margin: 0 auto; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 접근성: 화면에는 숨기고 화면낭독기에는 읽히는 텍스트 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
#formTitle { scroll-margin-top: 16px; }
@media (min-width: 720px) { .hero-cta { display: inline-flex; min-width: 280px; } }
