:root {
  --ink: #111417;
  --ink-2: #4a5158;
  --ink-3: #7b838b;
  --line: #dfe3e6;
  --bg: #f4f6f5;
  --card: #fff;
  --navy: #18284f;
  --green: #2f8f3a;
  --green-2: #8cc63f;
  --green-dark: #2b4a44;
  --orange: #f0a019;
  --black: #0b0e10;
  --hero: #1f3972; /* 고객 최상단 이미지 배경색 */
  --danger: #d0342c;
  --radius: 12px;
  --focus: 0 0 0 3px rgba(47, 143, 58, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
main { flex: 1; }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
br.pc { display: none; }
.req { color: var(--danger); font-weight: 700; }

/* ---------- 첫 화면 (고객 제공 최상단 이미지 디자인) ---------- */
.hero { background: var(--hero); color: #fff; }
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 36px 20px 40px; display: flex; flex-direction: column; }
.hero-head { order: 0; }
.hero-actions { order: 1; }
.hero-orgs { order: 2; }
.hero-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
.hero-kicker { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.hero-kicker span { display: block; font-weight: 500; opacity: .92; }
.hero-title { margin: 0; font-size: clamp(25px, 7vw, 54px); line-height: 1.25; font-weight: 800; letter-spacing: -.04em; }
.hero-event { margin: 16px 0 0; display: inline-block; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; font-size: 13px; font-weight: 600; }
.hero-mark { flex: none; width: 64px; height: auto; }
.hero-orgs { margin: 30px 0 0; }
.hero-orgs .row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-orgs dt { font-size: 16px; font-weight: 800; line-height: 1.4; }
.hero-orgs dd { margin: 0; min-width: 0; }
.hero .chip { display: inline-flex; padding: 7px 12px; border-radius: 8px; background: #fff; }
.hero .chip img { height: 26px; width: auto; }
.hero-sponsors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.hero-sponsors li { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hero-sponsors img { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; padding: 1px; }
.hero-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.hero-contact img { height: 26px; width: auto; }
.hero-contact a { color: #fff; font-size: 22px; font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.hero-orgs .row.contact { display: none; }
.ov-title { margin: 16px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #287c32; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-ghost small { font-size: 12px; font-weight: 600; opacity: .7; }

/* ---------- 개요 ---------- */
.section { padding: 48px 0; }
.overview { background: #fff; }
.ov-logo { width: 220px; margin: 0 0 28px; }
.ov-list { margin: 0; border-top: 2px solid var(--ink); }
.ov-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ov-list dt { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 2px; }
.ov-list dd { margin: 0; font-size: 15px; font-weight: 500; }
.ov-list dd small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; }
.steps li { display: inline-flex; align-items: center; gap: 4px; }
.steps li small { display: inline; margin: 0; font-size: 12px; }
.steps li:not(:last-child)::after { content: "›"; margin-left: 4px; color: var(--ink-3); }

.sub-title { margin: 40px 0 14px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.benefits li { padding: 16px 18px; border-radius: var(--radius); background: var(--bg); border-left: 4px solid var(--green); }
.benefits b { display: block; font-size: 16px; }
.benefits span { font-size: 14px; color: var(--ink-2); }

/* ---------- 기관 ---------- */

/* ---------- 신청서 ---------- */
.apply { background: var(--bg); }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--orange); }
.apply-title { margin: 6px 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.apply-lead { margin: 0 0 20px; font-size: 14px; color: var(--ink-2); }
.test-banner { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #fff6e0; border: 1px solid #f4d28a; font-size: 14px; color: #6b4a00; }

.error-summary { margin: 0 0 16px; padding: 14px 16px; border-radius: 10px; background: #fdeceb; border: 1px solid #f2b8b4; color: #8f1e18; font-size: 14px; }
.error-summary:focus { outline: none; box-shadow: var(--focus); }
.error-summary p { margin: 0 0 6px; font-weight: 700; }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: inherit; }

.card { margin: 0 0 14px; padding: 20px 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0; }
.card legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.card legend + * { clear: both; }
.grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field + .field { margin-top: 0; }
.card > .field + .field { margin-top: 18px; }
label, .label { font-size: 14px; font-weight: 700; }
.label em { font-style: normal; font-weight: 600; color: var(--green); margin-left: 2px; }
.hint { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.hint.sm { margin: -2px 0 6px; font-size: 12px; color: var(--ink-3); }

input[type=text], input:not([type]), input[type=tel], input[type=date], textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #c9cfd4; border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
input[type=date] { min-height: 50px; }
textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: var(--focus); }
[aria-invalid=true] { border-color: var(--danger) !important; }
.err { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--danger); }
.counter { margin: 0; text-align: right; font-size: 12px; color: var(--ink-3); }

/* 버튼형 선택지 */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .chips label, .options label { position: relative; }
.seg input, .chips input, .options input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.seg span, .chips span, .options span {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 10px;
  border: 1px solid #c9cfd4; border-radius: 10px; background: #fff;
  font-size: 15px; font-weight: 600; text-align: center; line-height: 1.3;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chips span { font-size: 14px; }
.options { display: grid; gap: 8px; }
.options span { justify-content: flex-start; padding: 12px 14px 12px 44px; text-align: left; }
.options span::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border: 2px solid #b7bec4; border-radius: 50%; background: #fff;
}
.options.multi span::before { border-radius: 5px; }
.options input:checked + span::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #fff; }
.seg input:checked + span, .chips input:checked + span, .options input:checked + span {
  border-color: var(--green); background: #eef7ec; color: #1d5d24; box-shadow: inset 0 0 0 1px var(--green);
}
.chips input:checked + span::before { content: "✓"; margin-right: 4px; font-weight: 800; }
.seg input:focus-visible + span, .chips input:focus-visible + span, .options input:focus-visible + span { box-shadow: var(--focus); }
.chips input:disabled + span { background: #f1f3f4; color: #a6adb3; border-color: #e1e4e6; cursor: not-allowed; }
.chips input.is-main:disabled + span { text-decoration: line-through; }
.pill { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 99px; background: #e8ecef; font-size: 12px; font-weight: 700; color: var(--ink-2); vertical-align: 1px; }
.pill.full { background: var(--green); color: #fff; }
.group-invalid { border-radius: 10px; box-shadow: 0 0 0 2px var(--danger); }
.other { margin-top: 12px; }

/* 파일 */
.files { display: grid; gap: 14px; }
.file-field { padding: 14px; border: 1px dashed #b9c1c7; border-radius: 10px; background: #fafbfb; }
.file-field .label { display: block; margin-bottom: 4px; }
.file-btn { display: inline-flex; position: relative; }
.file-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-btn span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; }
.file-btn input:focus-visible + span { box-shadow: var(--focus); }
.file-name { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.file-name:empty { display: none; }
.file-name button { border: 0; background: none; color: var(--danger); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 2px; }
.file-field.invalid { border-color: var(--danger); background: #fff7f6; }

/* 동의 */
.consent + .consent { margin-top: 22px; }
.consent h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.consent-box { max-height: 210px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfb; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.consent-box:focus { outline: none; box-shadow: var(--focus); }
.consent-box p { margin: 0 0 8px; }
.consent-box .center { text-align: center; }
.consent-box ul { margin: 0 0 10px; padding-left: 16px; }
.consent-box li { margin-bottom: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid #c9cfd4; border-radius: 10px; background: #fff; cursor: pointer; font-size: 15px; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.check:has(input:checked) { border-color: var(--green); background: #eef7ec; }
.check.invalid { border-color: var(--danger); }

.sign .pledge { margin: 0; font-size: 15px; font-weight: 700; text-align: center; }
.sign .today { margin: 6px 0 16px; text-align: center; font-size: 14px; color: var(--ink-2); }

.btn-submit { width: 100%; min-height: 58px; margin-top: 6px; background: var(--green); color: #fff; font-size: 17px; position: relative; }
.btn-submit:hover { background: #287c32; }
.btn-submit[disabled] { background: #7aa880; cursor: progress; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-submit.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; margin: 12px auto 0; max-width: 360px; border-radius: 99px; background: #dfe7e0; overflow: hidden; }
.progress span { display: block; height: 100%; width: 35%; border-radius: inherit; background: var(--green); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.submit-note { min-height: 20px; margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.submit-note.error { color: var(--danger); font-weight: 600; }

.done { padding: 40px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.done:focus { outline: none; }
.done img { margin: 0 auto 14px; }
.done h3 { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.done b { font-size: 18px; color: var(--green); letter-spacing: .02em; }
.test-note { color: #8a5a00; font-size: 13px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 아래쪽 ---------- */
.footer { background: var(--green-dark); color: #e3ebe9; padding: 36px 0 44px; font-size: 14px; }
.footer-logo { width: 150px; padding: 8px 10px; background: #fff; border-radius: 8px; margin-bottom: 18px; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact li { display: flex; gap: 10px; flex-wrap: wrap; }
.contact span { min-width: 96px; color: #a9bcb7; }
.contact a { color: #fff; font-weight: 700; text-decoration: none; }
.copy { margin: 18px 0 0; font-size: 12px; color: #a9bcb7; }

/* ---------- 넓은 화면 ---------- */
@media (min-width: 720px) {
  .hero-inner { padding: 64px 32px 60px; }
  br.pc { display: inline; }
  .hero-head { flex-direction: row; justify-content: space-between; gap: 24px; }
  .hero-kicker { font-size: 20px; }
  .hero-kicker span { display: inline; margin-left: 12px; }
  .hero-event { border-radius: 99px; }
  .hero-mark { width: 150px; }
  .hero-orgs { margin-top: 44px; }
  .hero-orgs .row { grid-template-columns: 84px 1fr; align-items: start; gap: 20px; padding: 14px 0; border-top: 0; }
  .hero-orgs dt { font-size: 28px; line-height: 44px; }
  .hero .chip img { height: 32px; }
  .hero-sponsors { grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 18px 24px; }
  .hero-sponsors li { font-size: 16px; gap: 9px; }
  .hero-sponsors img { width: 34px; height: 34px; }
  .hero-contact img { height: 34px; }
  .hero-contact a { font-size: 30px; }
      .hero-orgs .row.contact { display: grid; }
  .ov-title { font-size: 30px; }
  .hero::before { background: linear-gradient(180deg, var(--black) 30%, rgba(11, 14, 16, .5) 80%, rgba(11, 14, 16, .15) 100%); }
  .section { padding: 72px 0; }
  .ov-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .apply-title { font-size: 30px; }
  .card { padding: 28px 30px 30px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .grid .full { grid-column: 1 / -1; }
  .chips { grid-template-columns: repeat(4, 1fr); }
  .options { grid-template-columns: 1fr 1fr; }
  .files { grid-template-columns: repeat(3, 1fr); }
  .btn-submit { max-width: 360px; display: flex; margin: 10px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 2s; }
  .progress span { animation-duration: 3s; }
}

/* ---------- 10/19 고객 요청: 신청서 제출 버튼 아래로 안내·개요·혜택을 내림 ---------- */
.intro { background: #fff; padding: 28px 0 8px; }
.intro .ov-logo { margin-bottom: 18px; }
.intro .ov-title { margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.apply { padding-top: 26px; }
.apply-lead { margin: 0 0 16px; font-size: 13px; color: var(--ink-2); }
.apply .test-banner { margin: 18px 0 0; }
.overview.after { padding-top: 36px; }
.after .btn-ghost-light { display: flex; width: 100%; margin-bottom: 30px; background: #fff; color: var(--navy); border: 1px solid #c9cfd4; }
.after .btn-ghost-light small { margin-left: 6px; font-size: 12px; color: var(--ink-3); }
.after .ov-list { border-top: 2px solid var(--ink); }
@media (min-width: 720px) {
  .intro { padding-top: 40px; }
  .after .btn-ghost-light { display: inline-flex; width: auto; }
  .overview.after { padding-top: 48px; }
}
