/* 지원서, 번호표, 시험 화면 공용. 겉모습 기준은 카드뉴스 PSD(하늘, 파랑, 노랑). 글자는 기기 글꼴(무게를 아낌). */
:root { --yellow: #f7ff26; --blue: #2a7fd2; --blue-t: #1969b2; --navy: #104776; --ink: #0a2540; --muted: #4a6075; --line: #d5e2ef; --edge: #7f95ab; --soft: #f3f8fd; --red: #c62828; --ok: #1b7f3b; }
/* 글자 굵기는 세 단계만: 제목 800, 질문과 버튼 700, 나머지 400. 흰 바탕 위 글자는 4.5:1, 입력칸 테두리는 3:1(--edge)을 지킨다.
   파란 글자는 --blue-t(흰 바탕 5.6:1). --blue(4.1:1)는 면과 테두리에만 쓴다. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--blue) url("img/sky.webp") top center / 100% auto no-repeat; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all; -webkit-tap-highlight-color: transparent; }
.wrap { max-width: 600px; margin: 0 auto; padding: 18px 16px 60px; }
.head { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.title { position: relative; flex: none; width: 50%; max-width: 240px; aspect-ratio: 700 / 660; margin: 4px 0 14px; }
.head .cap { display: none; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; text-shadow: 0 1px 8px rgba(0, 30, 70, 0.45); }
/* 작성 단계와 접수증에서는 로고를 줄인다(첫 안내 화면만 크게). apply.js가 body.compact를 붙인다 */
.compact .title { width: 84px; margin: 2px 0 12px; }
.compact .head .cap { display: block; }
.title img { position: absolute; height: auto; left: calc(var(--x) / 700 * 100%); top: calc(var(--y) / 660 * 100%); width: calc(var(--w) / 700 * 100%); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 작성 단계(지원자 정보 → 장기와 영상 → 본선 참가 → 최종 확인). 구름 위에서도 읽히게 흰 바탕 위에 둔다 */
.status { display: flex; gap: 4px; margin: 0 0 10px; padding: 8px; border-radius: 14px; background: #fff; list-style: none; box-shadow: 0 6px 20px rgba(0, 40, 90, 0.12); }
.status li { flex: 1 1 0; min-width: 0; padding: 7px 2px; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; white-space: nowrap; }
.status li i { margin-right: 3px; font-style: normal; font-variant-numeric: tabular-nums; }
.status li.on { background: var(--yellow); color: var(--ink); font-weight: 700; }
.status li.past { color: var(--navy); }
/* 영상이 올라가는 동안 다른 단계를 쓰고 있을 때만 보이는 한 줄 */
.upchip { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.5; box-shadow: 0 6px 20px rgba(0, 40, 90, 0.12); }
.upchip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.upchip.bad { background: #fdecec; color: var(--red); }
.upchip .link { margin-left: auto; flex: none; }
@media (min-width: 700px) { .status { padding: 10px 14px; } .status li { font-size: 14px; } }

.card { margin: 0 0 14px; padding: 26px 20px 22px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(0, 40, 90, 0.18); }
.card h2 { margin: 0 0 20px; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.card p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.card h2 + p { margin-top: -10px; margin-bottom: 24px; }
.card .lead { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; }
.facts { margin: 4px 0 14px; padding: 0; list-style: none; }
.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.facts li b { display: inline-block; min-width: 5.2em; color: var(--navy); }
#s-intro .facts, #ph-facts { margin: -8px 0 20px; }
#ph-facts { margin-top: 4px; }
#ph-facts li:last-child { border-bottom: 0; }
#s-intro .facts li, #ph-facts li { display: grid; grid-template-columns: 4.8em 1fr; gap: 10px; padding: 12px 0; line-height: 1.6; }
#s-intro .facts li b, #ph-facts li b { min-width: 0; }

/* 간격 세 단계: 질문 묶음 사이 24, 질문과 답 8, 답과 도움말 8 */
.f { margin: 0 0 24px; }
.f > label, .f > .lab { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.f .opt { margin-left: 4px; color: #526477; font-size: 13px; font-weight: 400; }
.f .help, .help { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=url], select, textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid var(--edge); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #647587; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(42, 127, 210, 0.35); border-color: var(--blue); }
.bad input, .bad select, .bad textarea, .bad .choices label, .check.bad { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
/* 선택지는 같은 크기로. 둘은 나란히, 셋이거나 글이 길면 세로로 쌓는다(.stack) */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; margin: 0; padding: 0; }
.choices.stack { grid-template-columns: 1fr; }
.choices label { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.choices input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.choices label:has(input:checked) { border-color: var(--blue); background: var(--soft); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 50px; padding: 14px 13px; border: 1px solid var(--edge); border-radius: 10px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.check:has(input:checked) { border-color: var(--blue); background: var(--soft); box-shadow: inset 0 0 0 1px var(--blue); }
.terms { margin: 0 0 10px; padding: 18px 16px; border-radius: 12px; background: var(--soft); font-size: 14px; line-height: 1.7; }
.terms h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.terms ul { margin: 0; padding-left: 18px; }
.terms li { margin: 0 0 6px; }
.terms li:last-child, .terms p:last-child { margin-bottom: 0; }
.terms p { margin: 0 0 8px; font-size: 14px; line-height: 1.7; }
/* 개인정보 안내: 항목 이름을 한 줄로 떼고 항목 사이를 띄운다(문구는 consent.js 그대로) */
#t-privacy ul { padding: 0; list-style: none; }
#t-privacy li { margin: 0 0 14px; }
#t-privacy li b { display: block; margin: 0 0 2px; font-weight: 700; }
#t-privacy li:not(:has(b)) { color: var(--muted); }
#s-final .terms { margin-top: 24px; }
#s-final .choices { margin-top: 10px; }
#t-later { margin: 20px 0 24px; }

.btns { display: flex; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; flex: 1; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 rgba(10, 37, 64, 0.18); }
.btn.sub { flex: 0 0 auto; background: #e6eef6; box-shadow: none; font-weight: 700; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.link { padding: 0; border: 0; background: none; color: var(--blue-t); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: var(--red); font-size: 14px; font-weight: 700; line-height: 1.5; }
.msg:empty { display: none; }
.note { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff8c4; font-size: 14px; line-height: 1.55; }

/* 영상. .drop은 label이라 .f > label의 굵기와 아래 여백을 물려받는다. 여기서 되돌린다 */
.f > label.drop, .drop { position: relative; display: block; margin: 0; padding: 22px 16px; border: 1.5px dashed var(--edge); border-radius: 14px; background: var(--soft); font-weight: 400; text-align: center; cursor: pointer; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop b { display: block; font-size: 17px; font-weight: 700; }
.drop span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.prog { margin-top: 12px; }
.bar { height: 14px; overflow: hidden; border-radius: 999px; background: #dce7f2; }
.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width 0.3s; }
.prog .line { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 700; }
.vok { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #e7f6ec; color: var(--ok); font-size: 15px; font-weight: 700; }
/* .card p 가 여백을 덮지 않게 같은 무게로 적는다 */
.card p.or, .or { display: flex; align-items: center; gap: 10px; margin: 26px 0 18px; color: #526477; font-size: 13px; line-height: 1.5; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 요약 */
.sum { margin: 0 0 12px; padding: 6px 16px; border-radius: 12px; background: var(--soft); font-size: 14px; line-height: 1.5; }
.sum div { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum div:last-child { border-bottom: 0; }
.sum dt { flex: 0 0 6.5em; color: var(--muted); }
.sum dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* 번호표 */
.ticket-wrap { padding-top: 6px; text-align: center; color: #fff; }
.ticket-wrap h1 { margin: 6px 0 16px; font-size: 24px; font-weight: 800; line-height: 1.35; text-shadow: 0 1px 2px rgba(0, 30, 70, 0.55), 0 2px 14px rgba(0, 30, 70, 0.55); }
.ticket { position: relative; width: 82%; max-width: 360px; margin: 0 auto 24px; padding: 22px 22px 20px; border-radius: 18px; background: #fff; color: var(--ink); text-align: left;
  box-shadow: 0 18px 40px rgba(0, 40, 90, 0.35); transform: rotate(-2deg); }
.ticket.in { animation: tin 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes tin { from { transform: translateY(40px) rotate(-9deg) scale(0.9); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.ticket .ev { font-size: 13px; font-weight: 800; }
.ticket .no-l { margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ticket .no { font-size: 92px; font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ticket .no.long { font-size: 72px; }
.ticket hr { margin: 16px -22px; border: 0; border-top: 2px dashed rgba(10, 37, 64, 0.25); }
.ticket .nm { font-size: 22px; font-weight: 900; overflow-wrap: anywhere; }
.ticket .sk { margin-top: 4px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.ticket .dt { margin-top: 16px; font-size: 13px; font-weight: 800; }
.ticket .dt b { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: var(--yellow); }
.ticket .tst { position: absolute; right: 14px; top: 14px; padding: 2px 8px; border-radius: 6px; background: #ffe1e1; color: var(--red); font-size: 12px; font-weight: 800; }
/* 접수증 아래 안내는 구름 위 흰 글자 대신 흰 카드 안 짙은 글자로 */
.ticket-wrap .card { padding: 20px; color: var(--ink); text-align: left; }
.ticket-wrap .card p { margin: 0; }
.ticket-wrap .card .after b { display: block; margin: 0 0 2px; font-size: 16px; font-weight: 700; }
#tk-edit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
#tk-edit .btns { margin-top: 14px; }
.foot { display: table; margin: 20px auto 0; padding: 7px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; line-height: 1.6; text-align: center; }
.foot a { color: #fff; }
@media (min-width: 700px) { .wrap { padding-top: 28px; } .card { padding: 34px 36px 30px; } .ticket-wrap .card { padding: 24px 28px; } }

@media (prefers-reduced-motion: reduce) { .ticket.in { animation: none; } .bar i { transition: none; } }

/* 번호표의 유튜브 확인 안내(11/17 묶음 0) */
#tk-yt { margin-bottom: 24px; }
