@charset "utf-8";
/* ===========================================================
   2026년 2학기 찬양교실 신청 - 공통 스타일
   컨셉: 시원한 블루 · 아쿠아 파스텔 / 명조 제목
   모든 페이지가 이 파일 하나만 사용합니다.

   ※ 글씨가 작거나 흐리면 아래 --fs-base 와 --ink/--sub/--mute 를 조정하세요.
   ※ 전체 색조는 --brand / --accent 계열만 바꾸면 한 번에 바뀝니다.
   =========================================================== */

:root {
  /* 본문 기준 글자 크기 */
  --fs-base: 17px;

  /* 글자색 (쿨 그레이 계열 — 충분히 진하게) */
  --ink: #14232c;
  --sub: #3f5561;
  --mute: #5f7986;

  /* 메인: 딥 블루 */
  --brand: #2b6f9c;
  --brand-dark: #1c4d6e;
  --brand-soft: #e8f3f9;

  /* 보조: 아쿠아 / 민트 */
  --accent: #217e7a;
  --accent-on-dark: #a5dfdd;
  --accent-line: #4aa6a1;

  /* 배경 (파스텔 블루) */
  --bg: #f4f9fc;
  --bg-2: #e4eef5;
  --paper: #fdfeff;
  --line: #cfe0ea;
  --line-2: #e0ecf3;

  --danger: #a52a21;
  --shadow-sm: 0 2px 6px rgba(20, 60, 85, .06);
  --shadow: 0 10px 30px rgba(20, 60, 85, .1);
  --radius: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(43, 111, 156, .07) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdfe 0%, var(--bg) 240px, var(--bg-2) 100%);
  background-size: 22px 22px, 100% 100%;
  background-attachment: scroll, fixed;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;

  /* 한글이 단어 중간에서 끊기지 않도록 (긴 영문/이메일은 예외적으로 줄바꿈 허용) */
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, .serif {
  font-family: "Nanum Myeongjo", "Noto Serif KR", serif;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}

p, .desc, .section-desc, .modal-text { text-wrap: pretty; }

a { color: inherit; }

/* ── 상단 브랜드 바 ────────────────────────────────── */
.topbar {
  background: linear-gradient(100deg, #163f5c 0%, var(--brand-dark) 60%, #23607f 100%);
  border-bottom: 3px solid var(--accent-line);
  color: #eef8fb;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  color: var(--accent-on-dark);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.brand-text b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.brand-text small {
  display: block;
  font-size: 13.5px;
  color: #a9cede;
  line-height: 1.4;
}

.topbar-link {
  font-size: 14px;
  font-weight: 500;
  color: #cfe8f2;
  text-decoration: none;
  border: 1px solid rgba(207, 232, 242, .45);
  border-radius: 999px;
  padding: 7px 15px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.topbar-link:hover { background: rgba(207, 232, 242, .16); color: #fff; }

/* ── 페이지 컨테이너 ──────────────────────────────── */
.page {
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
  padding: 26px 18px 56px;
}

.page.is-wide { max-width: 1300px; }
.page.is-mid { max-width: 1080px; }
.page.is-narrow { max-width: 860px; }

/* ── 테스트 모드 띠 ───────────────────────────────── */
.testbar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e0bcb7;
  border-left: 4px solid var(--danger);
  background: #fdf1ef;
  color: #8a231b;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  padding: 13px 15px;
  margin-bottom: 22px;
}

.testbar-tag {
  flex: 0 0 auto;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 3px;
}

/* ── 진행 단계 ────────────────────────────────────── */
.steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 0;
  min-width: 0;
  color: var(--mute);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-right: 6px;
}

.step + .step::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 12px;
  height: 1px;
  background: var(--line);
}

.step-no {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--mute);
}

.step-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step.is-now { color: var(--brand); font-weight: 700; }
.step.is-now .step-no { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.is-done { color: var(--accent); }
.step.is-done .step-no { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── 공통 카드 ────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── 페이지 헤더(제목 영역) ───────────────────────── */
.pagehead {
  position: relative;
  padding: clamp(28px, 4.2vw, 44px) clamp(20px, 4vw, 42px);
  background: linear-gradient(120deg, #163f5c 0%, var(--brand) 58%, #3f93a8 100%);
  color: #f2fbfd;
  overflow: hidden;
}

.pagehead::before {
  content: "♪";
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 150px;
  line-height: 1;
  color: rgba(255, 255, 255, .15);
  font-family: "Nanum Myeongjo", serif;
  pointer-events: none;
}

.pagehead .eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  overflow-wrap: break-word;
}

/* 두 덩어리('… Academy' / '– 2026 Fall Admission')가 각각 통째로 움직이도록.
   한 줄에 다 들어가면 한 줄, 아니면 대시 앞에서만 줄바꿈됩니다. */
.pagehead .eyebrow span { display: inline-block; }

.pagehead h1 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.4;
  color: #fff;
  position: relative;
}

.pagehead .rule {
  width: 48px;
  height: 2px;
  background: var(--accent-on-dark);
  margin: 18px 0 15px;
}

.pagehead p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.85;
  color: #dcf0f6;
  max-width: 62ch;
  position: relative;
}

.pagehead p b { color: #fff; font-weight: 700; }

/* ── 본문 블록 ────────────────────────────────────── */
.body-pad { padding: clamp(22px, 3.2vw, 34px); }

.section-title {
  margin: 0 0 4px;
  font-size: 23px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 11px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.section-title .en {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-desc {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--sub);
  line-height: 1.75;
  max-width: 76ch;
}

.section-title + .section-desc { margin-top: 8px; }

hr.divider {
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: 32px 0 28px;
}

/* ── 선택 화면(기존/신규) 큰 버튼 ─────────────────── */
.choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 6px 0 22px;
}

.choice-btn {
  appearance: none;
  text-align: left;
  border: 0;
  border-radius: 16px;
  padding: 22px 22px 20px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* 아이콘 + 차수 배지 줄 */
.ctop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.round {
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

/* 신청기간 띠 */
.period {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.period-text {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255, 255, 255, .17);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px;
  padding: 10px 14px;
  display: block;
}

.period-text em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 2px;
}

.period-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  letter-spacing: -.01em;
}

/* 배경 큰 장식 글리프 */
.choice-btn::after {
  position: absolute;
  right: 20px;
  top: 40%;
  transform: translateY(-50%);
  font-family: "Nanum Myeongjo", serif;
  font-size: 104px;
  line-height: 1;
  color: rgba(255, 255, 255, .2);
  pointer-events: none;
  z-index: -1;
}

.choice-btn.is-existing {
  background: linear-gradient(135deg, #17486a 0%, #2b6f9c 52%, #4796bb 100%);
  box-shadow: 0 12px 26px rgba(28, 77, 110, .3);
}

.choice-btn.is-existing::after { content: "♩"; }

.choice-btn.is-new {
  background: linear-gradient(135deg, #14615e 0%, #217e7a 52%, #3ba49c 100%);
  box-shadow: 0 12px 26px rgba(20, 97, 94, .3);
}

.choice-btn.is-new::after { content: "✦"; }

.choice-btn .ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  font-size: 21px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
}

.choice-btn b {
  display: block;
  font-family: "Nanum Myeongjo", serif;
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}

.choice-btn span.desc {
  display: block;
  font-size: 15.5px;
  color: rgba(255, 255, 255, .94);
  line-height: 1.7;
  max-width: 30ch;
}

.choice-btn .go {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .38);
  transition: background .2s ease, transform .2s ease;
}

.choice-btn:hover:not(:disabled) { transform: translateY(-3px); }

.choice-btn.is-existing:hover:not(:disabled) { box-shadow: 0 18px 34px rgba(28, 77, 110, .4); }
.choice-btn.is-new:hover:not(:disabled) { box-shadow: 0 18px 34px rgba(20, 97, 94, .4); }

.choice-btn:hover:not(:disabled) .go {
  background: rgba(255, 255, 255, .32);
  transform: translateX(4px);
}

.choice-btn:focus-visible {
  outline: 3px solid var(--accent-line);
  outline-offset: 3px;
}

.choice-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(.75);
  opacity: .5;
  box-shadow: none;
  transform: none;
}

/* ── 안내 상자 ────────────────────────────────────── */
.notice {
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-line);
  background: #eef7fa;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: #1f4c53;
  margin-bottom: 22px;
}

.notice.is-warning {
  border-color: #e0bcb7;
  border-left-color: var(--danger);
  background: #fdf1ef;
  color: #8a231b;
}

.infogrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.infobox {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbfd;
  padding: 18px 19px;
}

.infobox h4 {
  margin: 0 0 12px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--accent);
  text-transform: uppercase;
}

.infobox dl { margin: 0; }
.infobox dt { color: var(--mute); font-size: 14px; margin-top: 12px; line-height: 1.5; }
.infobox dt:first-child { margin-top: 0; }
.infobox dd { margin: 2px 0 0; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.55; }

.tel {
  display: inline-block;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
  letter-spacing: .01em;
}

.section-title.is-spaced { margin-top: 32px; }

/* 계좌 박스 아래 입금자명 안내 */
.box-note {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--brand);
  font-weight: 700;
}

/* 신청 방법 흐름 (홈페이지 → 배너 → 작성 → 입금 → 완료) */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 0;
}

.flow li {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--sub);
}

.flow li:last-child {
  background: var(--brand-soft);
  border-color: #bcdcec;
  color: var(--brand-dark);
  font-weight: 700;
}

.flow li + li::before {
  content: "›";
  margin: 0 9px 0 -4px;
  color: var(--mute);
  font-weight: 700;
}

.flow li + li {
  border-left: 0;
  margin-left: 0;
}

/* 유의사항 목록 (붉은 계열로 강조) */
.section-title.is-notice { color: var(--danger); }
.section-title.is-notice .en { color: #b4574e; }

.notelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.notelist li {
  position: relative;
  padding: 14px 17px 14px 46px;
  border: 1px solid #e6c1bb;
  border-left: 4px solid var(--danger);
  border-radius: 10px;
  background: #fdf2f0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #6b201a;
  font-weight: 500;
}

.notelist li::before {
  content: "▶";
  position: absolute;
  left: 18px;
  top: 15px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--danger);
}

/* 문구 안의 [학생이름 + 과목] 같은 부분 */
.notelist b {
  color: var(--danger);
  font-weight: 700;
  background: rgba(165, 42, 33, .09);
  border-radius: 4px;
  padding: 1px 5px;
}

/* 완료화면처럼 가운데 정렬 안에 들어갈 때 */
.notelist.is-left { margin-top: 22px; text-align: left; }

/* 포스터로 돌아가기 링크 */
.poster-link {
  margin: 18px 0 0;
  text-align: center;
  font-size: 15px;
}

.poster-link a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 111, 156, .35);
  padding-bottom: 1px;
}

.poster-link a:hover { border-bottom-color: var(--brand); }

/* ── 모달 ─────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 34, 47, .62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 90;
}

.modal.is-open { display: flex; }

.modal-card {
  width: min(620px, 100%);
  background: var(--paper);
  border-radius: 14px;
  border-top: 4px solid var(--brand);
  padding: 28px 26px 24px;
  box-shadow: 0 24px 60px rgba(12, 34, 47, .35);
  max-height: 88vh;
  overflow-y: auto;
}

.modal-title { margin: 0 0 16px; font-size: 24px; line-height: 1.4; }

.modal-text { margin: 0; color: var(--sub); line-height: 1.9; font-size: 16.5px; }

.modal-text mark {
  background: linear-gradient(transparent 56%, #bde5e3 56%);
  color: var(--ink);
  padding: 0 2px;
}

.modal-actions { margin-top: 24px; display: flex; gap: 10px; justify-content: flex-end; }

/* ── 버튼 ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #235f88, var(--brand) 60%, #3389ac);
  color: #fff;
  box-shadow: 0 8px 18px rgba(43, 111, 156, .28);
}

.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

.btn-ghost {
  background: #fff;
  color: var(--sub);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: #eef6fa; }

.btn-lg { padding: 16px 32px; font-size: 18px; }

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── 폼 ───────────────────────────────────────────── */
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.field.wide { grid-column: 1 / -1; }

.field label.title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 8px;
  line-height: 1.5;
}

.req { color: var(--brand); margin-left: 2px; font-weight: 700; }
.req-tag { color: var(--brand); }

input[type="text"],
select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  font-size: 17px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f7986' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 111, 156, .16);
}

input[type="text"]::placeholder { color: #9db3bf; }

.help { margin-top: 7px; font-size: 14px; color: var(--mute); line-height: 1.65; }
.help a { color: var(--brand); font-weight: 700; }

.typeline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.typebadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-soft);
  border: 1px solid #bcdcec;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 16px;
  font-weight: 700;
}

/* ── 체크박스(공통 커스텀) ────────────────────────── */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
}

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

.mark {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 5px;
  border: 1.5px solid #a9c2d0;
  background: #fff;
  display: grid;
  place-items: center;
  transition: background .15s ease, border-color .15s ease;
  margin-top: 1px;
}

.mark::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) scale(.5);
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  margin-top: -3px;
}

.checkbox input:checked ~ .mark,
.slot.is-checked .mark {
  background: var(--brand);
  border-color: var(--brand);
}

.checkbox input:checked ~ .mark::after,
.slot.is-checked .mark::after { opacity: 1; transform: rotate(-45deg) scale(1); }

.checkbox input:focus-visible ~ .mark { box-shadow: 0 0 0 3px rgba(43, 111, 156, .22); }

/* ── 과목 카드 / 시간 선택 타일 ───────────────────── */
.courses {
  display: grid;
  /* 화면이 넓어지면 자동으로 3~4열로 늘어납니다 */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  align-items: start;
}

.course {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 과목별 고유 배경색 헤더 */
.course-head {
  padding: 15px 17px;
  background: var(--c, var(--brand));
  display: flex;
  align-items: center;
  gap: 11px;
}

.course-head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  flex: 1 1 auto;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .14);
}

.course-head .en {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
}

.course-body {
  padding: 14px 15px 16px;
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  align-content: start;
}

.slot {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  position: relative;
}

.slot .mark { margin-top: 2px; }

.slot-body { flex: 1 1 auto; min-width: 0; }

.slot-time { display: block; }

/* 수업 장소 */
.slot-place {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--mute);
}

.slot-place::before {
  content: "📍";
  margin-right: 4px;
  font-size: 12px;
  opacity: .75;
}

.slot.is-checked .slot-place { color: #3d7396; }

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

.slot:hover { border-color: #a9c9db; background: #f7fbfd; }

.slot.is-checked {
  border-color: var(--brand);
  border-width: 1.5px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.slot.is-closed {
  cursor: not-allowed;
  background: #eef2f5;
  border-style: dashed;
  color: var(--mute);
}

.slot.is-closed:hover { border-color: var(--line-2); background: #eef2f5; }

.slot.is-closed .mark {
  background: #dde5ea;
  border-color: #c2ceD6;
}

.soldout-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #7d919c;
  margin-right: 7px;
  vertical-align: 1px;
}

.course-note {
  margin-top: 5px;
  padding-top: 11px;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px;
  color: var(--mute);
  line-height: 1.65;
}

.course-note .cap { display: block; }

/* 과목별 수업문의 */
.course-note .tutors {
  display: block;
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--sub);
}

.course-note .tutor {
  display: inline-block;
  margin: 3px 5px 0 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid #cfe4f0;
  color: var(--brand-dark);
  font-weight: 500;
  white-space: nowrap;
}

/* 선택 개수 배지 */
.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #bcdcec;
  border-radius: 999px;
  padding: 4px 13px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
}

/* ── 경고 / 동의 ──────────────────────────────────── */
.warning {
  margin-top: 18px;
  border: 1px solid #ccd5ee;
  border-left: 4px solid #4b64a5;
  background: #eff2fb;
  border-radius: 10px;
  padding: 15px 17px;
  font-size: 16px;
  color: #2c3a63;
  line-height: 1.8;
}

.warning b { color: #2f4287; }

.agree {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 18px;
  background: #f7fbfd;
  font-size: 17px;
  color: var(--ink);
}

.error {
  display: none;
  margin-top: 16px;
  border-radius: 10px;
  border: 1px solid #e0bcb7;
  border-left: 4px solid var(--danger);
  background: #fdf1ef;
  color: #8a231b;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── 모바일 하단 고정 제출바 ──────────────────────── */
.stickybar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(253, 254, 255, .98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(20, 60, 85, .12);
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stickybar .cnt { font-size: 15px; color: var(--sub); font-weight: 500; }
.stickybar .cnt b { color: var(--brand); font-size: 19px; font-family: "Nanum Myeongjo", serif; }

/* ── 결과(완료/실패) 화면 ─────────────────────────── */
.result { text-align: center; padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 44px); }

.result .seal {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: #ddf1ef;
  color: var(--accent);
  border: 1px solid #b3ded9;
}

.result .seal.is-bad { background: #fdf1ef; color: var(--danger); border-color: #e0bcb7; }

.result h1 { margin: 0 0 14px; font-size: clamp(25px, 4vw, 33px); line-height: 1.45; }

.result p { margin: 0; color: var(--sub); font-size: 17px; line-height: 1.9; }

.result p mark {
  background: linear-gradient(transparent 56%, #bde5e3 56%);
  color: var(--ink);
  font-weight: 700;
  padding: 0 2px;
}

.result .infogrid { margin-top: 28px; text-align: left; }

.result .errlist {
  margin: 24px 0 0;
  padding: 18px 20px;
  text-align: left;
  border: 1px solid #e0bcb7;
  border-radius: 10px;
  background: #fdf1ef;
  list-style: none;
}

.result .errlist li {
  font-size: 16px;
  color: #8a231b;
  line-height: 1.75;
  padding-left: 17px;
  position: relative;
  margin: 7px 0;
}

.result .errlist li::before {
  content: "•";
  position: absolute;
  left: 3px;
}

.result-actions { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── 포스터 화면 ──────────────────────────────────── */
.poster { text-align: center; }

.poster img {
  width: 100%;
  max-width: 620px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
  background: #fff;
  margin: 0 auto 24px;
}

.poster-cta {
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px 26px;
}



/* ── 반응형 ───────────────────────────────────────── */

/* 넓은 PC 화면: 입력칸을 3열로 배치해 세로 스크롤을 줄입니다 */
@media (min-width: 1100px) {
  .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .body-pad { padding: 34px 38px 38px; }
  .pagehead { padding: 46px 40px; }
}

@media (max-width: 900px) {
  .courses, .fields, .infogrid, .choice { grid-template-columns: 1fr; }
  .page { padding: 20px 14px 44px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .step-label { display: none; }
  .step.is-now .step-label { display: inline; }
  .step { flex: 0 0 auto; }
  .step.is-now { flex: 1 1 auto; }
  .steps { gap: 14px; }
  .section-title { font-size: 21px; }
  .course-head h3 { font-size: 19.5px; }
}

@media (max-width: 900px) {
  body.has-stickybar { padding-bottom: 80px; }
  body.has-stickybar .stickybar { display: flex; }
  body.has-stickybar .actions .btn-primary { display: none; }
}

@media (max-width: 520px) {
  :root { --fs-base: 16.5px; }
  .topbar-link { display: none; }
  .pagehead::before { font-size: 108px; right: 16px; opacity: .8; }
  .choice-btn::after { font-size: 96px; right: 16px; }
  .slot { font-size: 16px; }

  /* 좁은 화면에서 제목이 단어 중간에 끊기지 않도록 크기·자간 축소 */
  .pagehead { padding: 26px 20px 28px; }

  .pagehead .eyebrow {
    font-size: 11.5px;
    letter-spacing: .05em;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .pagehead h1 { font-size: 24px; line-height: 1.45; }
  .pagehead .rule { margin: 14px 0 12px; }
  .pagehead p { font-size: 15.5px; line-height: 1.8; }

  .result h1 { font-size: 23px; }
  .modal-title { font-size: 21px; }
  .choice-btn b { font-size: 22px; }
  .choice-btn span.desc { font-size: 15px; }
}

@media (max-width: 380px) {
  .pagehead h1 { font-size: 22px; }
  .pagehead .eyebrow { font-size: 11px; letter-spacing: .03em; }
  .course-head h3 { font-size: 18.5px; }
  .slot { font-size: 15.5px; padding: 12px; }
  .tel { font-size: 17px; }
  .period-text strong { font-size: 16px; }
  .period-text { padding: 9px 11px; }
  .period { gap: 9px; }
  .choice-btn .go { width: 40px; height: 40px; }
}

@media print {
  .topbar, .stickybar, .actions { display: none !important; }
  body { background: #fff; }
}
