/* ==========================================================================
   매드비학원 · 신입생 온보딩 공통 스타일 (모바일 우선 / max-width 720px)
   - 학생용(.theme-student): 밝고 친근한 톤 · 둥근 모서리 · 컬러 포인트(레드)
   - 학부모용(.theme-parent): 차분하고 전문적인 톤 · 네이비 · 넉넉한 여백
   ========================================================================== */

/* ===== 1. 기본 설정 ===== */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --navy-900: #0a1730;
  --navy-800: #112344;
  --navy-700: #1b3560;
  --navy-600: #25477a;
  --red-500: #e1392f;
  --red-600: #c02b23;
  --red-700: #a5231c;

  --ink: #16202f;
  --muted: #5c6a7e;
  --line: #e5eaf2;
  --line-strong: #cbd5e4;
  --bg: #f4f6fa;
  --white: #ffffff;

  --radius-s: 12px;
  --radius: 16px;
  --radius-l: 22px;
  --tap: 44px;

  --shadow-s: 0 1px 2px rgba(16, 32, 56, .06), 0 1px 3px rgba(16, 32, 56, .04);
  --shadow: 0 12px 28px -18px rgba(16, 32, 56, .35);
  --shadow-l: 0 24px 50px -26px rgba(16, 32, 56, .42);

  /* 페이지별 포인트 컬러 (기본: 레드) */
  --accent: var(--red-500);
  --accent-dark: var(--red-600);
  --accent-soft: #fff2f0;
  --accent-ring: rgba(225, 57, 47, .14);

  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "맑은 고딕", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(120% 55% at 50% -8%, #ffffff 0%, rgba(255, 255, 255, 0) 62%);
  -webkit-font-smoothing: antialiased;
}

/* 학부모용: 네이비 · 정돈된 톤 */
body.theme-parent {
  --accent: var(--navy-700);
  --accent-dark: var(--navy-800);
  --accent-soft: #eff3f9;
  --accent-ring: rgba(27, 53, 96, .13);
  --radius: 14px;
  --radius-l: 18px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.35; letter-spacing: -.01em; }

::selection { background: var(--accent); color: #fff; }

/* 키보드 접근성 */
:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 120;
  background: #fff;
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ===== 2. 레이아웃 ===== */
.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px 56px;
}

.topbar {
  border-bottom: 1px solid rgba(20, 36, 66, .07);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ===== 3. 브랜드 로고 (이미지가 없을 때의 텍스트 로고) ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-height: var(--tap);
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 6px 14px -8px rgba(10, 23, 48, .8);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red-500);
  opacity: .9;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 16.5px; font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
.brand-sub {
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #8695ab;
  font-weight: 700;
  margin-top: 2px;
}
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--red-700);
  background: var(--accent-soft);
  border: 1px solid #f6d3cd;
  white-space: nowrap;
}
body.theme-parent .pill { color: var(--navy-700); border-color: #d9e2f0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--navy-700); }

/* ===== 4. 히어로 ===== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-l);
  padding: 26px 22px 28px;
  margin-top: 16px;
  color: #fff;
  background: linear-gradient(155deg, #1a2f57 0%, #0b1a33 58%, #14284a 100%);
  box-shadow: var(--shadow-l);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -70px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 57, 47, .55) 0%, rgba(225, 57, 47, 0) 68%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 140, 215, .45) 0%, rgba(90, 140, 215, 0) 70%);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #dbe6f7;
}
.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(25px, 7vw, 34px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.32;
}
.hero h1 .hl { color: #ffd9d4; }
.hero-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #c6d3e7;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  font-size: 12.5px;
  color: #a9bad3;
  font-weight: 600;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* 학생용 밝은 히어로 */
.hero--light {
  color: var(--ink);
  background: linear-gradient(160deg, #ffffff 0%, #fff6f4 55%, #fff1ee 100%);
  border: 1px solid #f8ddd8;
  box-shadow: var(--shadow);
}
.hero--light::before {
  background: radial-gradient(circle, rgba(225, 57, 47, .16) 0%, rgba(225, 57, 47, 0) 70%);
}
.hero--light::after {
  background: radial-gradient(circle, rgba(120, 165, 230, .18) 0%, rgba(120, 165, 230, 0) 70%);
}
.hero--light .hero-kicker {
  border-color: #f3c8c1;
  background: #fff;
  color: var(--red-700);
}
.hero--light h1 { color: var(--navy-900); font-size: clamp(23px, 6.4vw, 30px); }
.hero--light .hero-lead { color: #4a5a72; }

/* ===== 5. 강점 배지 ===== */
.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.badge {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-800);
  letter-spacing: -.01em;
}
.badge-ico { font-size: 16px; line-height: 1.25; flex: 0 0 auto; }

/* ===== 6. 선택 카드 (index) ===== */
.choice-grid { display: grid; gap: 14px; margin-top: 18px; }
.choice {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 22px 20px 20px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.choice::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-500), #ff9c8d);
}
.choice--parent::before { background: linear-gradient(90deg, var(--navy-800), #4f80c4); }
.choice:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); border-color: #dbe4f2; }
.choice-emoji { font-size: 26px; line-height: 1; }
.choice h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 800; color: var(--navy-900); }
.choice p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.choice-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  min-height: 36px;
  font-size: 14px;
  font-weight: 800;
  color: var(--red-600);
}
.choice--parent .choice-go { color: var(--navy-700); }

/* ===== 7. 섹션 제목 / 이용 순서 ===== */
.section { margin-top: 32px; }
.section-eyebrow {
  margin: 0 0 4px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #94a2b8;
}
.section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
}
.section-desc { margin: -8px 0 14px; font-size: 13.5px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative;
  padding: 0 0 20px 44px;
  font-size: 14.5px;
  color: #34435b;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 34px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--line-strong), rgba(203, 213, 228, 0));
}
.steps { counter-reset: step; }
.steps strong { display: block; color: var(--navy-900); font-size: 15px; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 13.5px; }

/* ===== 8. 카드 ===== */
.card {
  margin-top: 14px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 4px;
}
.card-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid #f5d5d0;
  color: var(--accent-dark);
  font-size: 13.5px;
  font-weight: 800;
}
body.theme-parent .card-num { border-color: #dae3f1; }
.card-title { margin: 0; font-size: 17px; font-weight: 800; color: var(--navy-900); }
.card-desc { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== 9. 폼 필드 ===== */
.field { margin-top: 18px; }
.field + .field { margin-top: 18px; }
.label {
  display: block;
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.5;
}
.req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff1ef;
  border: 1px solid #ffd9d3;
  color: var(--red-600);
  font-size: 10.5px;
  font-weight: 800;
  vertical-align: 1px;
  letter-spacing: .02em;
}
.opt-tag {
  display: inline-block;
  margin-left: 6px;
  color: #93a1b6;
  font-size: 11.5px;
  font-weight: 700;
}
.hint { margin: 6px 0 0; font-size: 12.5px; color: #7d8ba0; line-height: 1.55; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: #9dabbd; }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 2px solid #7b8aa1;
  border-bottom: 2px solid #7b8aa1;
  transform: rotate(45deg);
  pointer-events: none;
}
.select { padding-right: 40px; cursor: pointer; }
.select:invalid { color: #9dabbd; }

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: var(--red-500);
  background: #fff8f7;
}
.field.is-invalid .label { color: var(--red-700); }

.error-msg {
  display: block;
  margin: 8px 0 0;
  padding-left: 19px;
  position: relative;
  font-size: 12.8px;
  font-weight: 700;
  color: var(--red-600);
  line-height: 1.5;
}
.error-msg::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red-500);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* 조건부 입력 */
.conditional {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius-s);
  background: #f8fafd;
  border: 1px dashed var(--line-strong);
}

/* ===== 10. 라디오 카드 ===== */
.opt-group { margin: 0; border: 0; padding: 0; }
.opt-list { display: grid; gap: 9px; }
.opt {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 14.5px;
  line-height: 1.5;
  color: #2b3a51;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.opt:hover { border-color: #d5dfee; background: #fcfdff; }
.opt-input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt-input:checked {
  border-color: var(--accent);
  background-image: radial-gradient(circle at 50% 50%, var(--accent) 0 5.5px, rgba(0, 0, 0, 0) 6px);
}
.opt:has(.opt-input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.opt-text { flex: 1 1 auto; }

/* ===== 11. 빠른 선택 칩 ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  min-height: var(--tap);
  padding: 9px 15px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--navy-700);
  background: #f4f7fc;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { background: #e9eff9; }
.chip.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 16px -10px var(--accent);
}

/* ===== 12. 체크박스 / 서약 / 동의 ===== */
.check-input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: var(--tap);
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.check-row + .check-row { margin-top: 9px; }
.check-row:has(.check-input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-row span { flex: 1 1 auto; }

.promise {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--tap);
  padding: 16px;
  border-radius: var(--radius);
  border: 1.5px dashed #f0b0a8;
  background: linear-gradient(180deg, #fff7f5, #ffffff);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.promise:has(.check-input:checked) {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.promise-text { font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--navy-800); }
.promise-text strong { color: var(--red-600); }

.consent-list { display: grid; gap: 10px; }
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: var(--tap);
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  color: #2b3a51;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.consent-item .check-input { margin-top: 1px; }
.consent-item:has(.check-input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.consent-item.is-invalid { border-color: var(--red-500); background: #fff8f7; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1.5px solid rgba(27, 53, 96, .10);
}
.switch-row .switch-text { font-size: 15.5px; font-weight: 800; color: var(--navy-900); }
.switch-row .switch-note { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: #74839a; }

.switch { position: relative; flex: 0 0 auto; width: 56px; height: 32px; }
.switch-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c8d3e2;
  transition: background .2s ease;
  pointer-events: none;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(10, 23, 48, .35);
  transition: transform .2s ease;
}
.switch-input:checked + .switch-track { background: var(--accent); }
.switch-input:checked + .switch-track::after { transform: translateX(24px); }
.switch-input:indeterminate + .switch-track { background: #9dafc7; }
.switch-input:focus-visible + .switch-track { outline: 3px solid var(--accent-ring); outline-offset: 3px; }

/* ===== 13. 안내문 / 표 / 강조 박스 ===== */
.info-block {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fbfcfe;
}
.info-block + .info-block { margin-top: 10px; }
.info-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-800);
}
.info-block p { margin: 0; font-size: 13.5px; line-height: 1.75; color: #43516a; }
.info-block p + p { margin-top: 6px; }

.bullet-list { margin: 6px 0 0; padding-left: 17px; font-size: 13.5px; line-height: 1.8; color: #43516a; }
.bullet-list li::marker { color: var(--accent); }

.table-scroll {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.price-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 14px;
}
.price-table caption {
  caption-side: top;
  text-align: left;
  padding: 10px 13px 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: #7d8ba0;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
}
.price-table th,
.price-table td { padding: 12px 13px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--navy-800);
  background: #f7f9fc;
}
.price-table tbody td:first-child { font-weight: 600; color: #2b3a51; }
.price-table tbody td:last-child {
  text-align: right;
  font-weight: 800;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:last-child td:last-child { color: var(--red-600); }

.callout {
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: var(--radius-s);
  background: linear-gradient(180deg, #fff5f2, #ffffff);
  border: 1px solid #f6cdc5;
  border-left: 4px solid var(--red-500);
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--red-700);
}
.callout p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.7; color: #3c2b28; }

.fine { margin: 10px 0 0; font-size: 12px; line-height: 1.65; color: #8391a6; }

/* 접이식 */
.acc {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  overflow: hidden;
}
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--tap);
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid #8697ad;
  border-bottom: 2px solid #8697ad;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.acc[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.acc-body {
  padding: 13px 15px 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.8;
  color: #43516a;
  background: #fcfdff;
}
.acc-body p { margin: 0; }
.acc-body p + p { margin-top: 8px; }
.acc-body ol { margin: 6px 0 0; padding-left: 18px; }
.acc-body li + li { margin-top: 4px; }

/* 보강 시간 선택 */
.time-wrap { margin-top: 14px; }
.day-block + .day-block { margin-top: 12px; }
.day-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-700);
  letter-spacing: .01em;
}
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: #2b3a51;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.time-opt:has(.check-input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* ===== 14. 버튼 ===== */
.submit-area { margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 15px 20px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(12, 26, 48, .7);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { box-shadow: 0 18px 30px -16px rgba(12, 26, 48, .75); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; opacity: .82; box-shadow: none; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .38);
  border-top-color: #fff;
  animation: mb-spin .7s linear infinite;
}
.btn.is-loading .spinner { display: block; }
@keyframes mb-spin { to { transform: rotate(360deg); } }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-800);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover { background: #f7f9fc; }
.btn-row { display: grid; gap: 10px; margin-top: 18px; }

.form-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #8391a6;
  text-align: center;
}

/* ===== 15. 진행률 바 (학생용, sticky) ===== */
.progress-dock {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -18px;
  padding: 9px 18px 11px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.progress-label { font-size: 12px; font-weight: 700; color: #7d8ba0; letter-spacing: .02em; }
.progress-value { font-size: 14px; font-weight: 800; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.progress-track {
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9c7a, var(--accent));
  transition: width .3s ease;
}

/* ===== 16. 토스트 ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: max-content;
  max-width: min(92vw, 520px);
  padding: 13px 16px;
  border-radius: 14px;
  background: #111d31;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .7);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast--error { border-left: 4px solid var(--red-500); }
.toast--info { border-left: 4px solid #6f9ee0; }

/* ===== 17. 제출 완료 화면 ===== */
.success-panel {
  margin-top: 18px;
  padding: 34px 22px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  text-align: center;
}
.success-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(27, 53, 96, .12);
  animation: mb-pop .45s ease;
}
.success-icon svg { width: 38px; height: 38px; }
@keyframes mb-pop {
  0% { transform: scale(.8); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.success-panel h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: var(--navy-900); }
.success-panel p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.success-name {
  display: inline-block;
  margin: 2px 0 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #f4f7fc;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 800;
}
.success-list {
  margin: 18px 0 0;
  padding: 16px 18px;
  list-style: none;
  text-align: left;
  border-radius: var(--radius);
  background: #f8fafd;
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.75;
  color: #43516a;
}
.success-list li { position: relative; padding-left: 18px; }
.success-list li + li { margin-top: 6px; }
.success-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

/* ===== 18. 푸터 ===== */
.site-foot {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: #8b98ab;
}
.site-foot strong { color: #6b7a90; font-weight: 700; }

/* ===== 19. 반응형 ===== */
@media (min-width: 560px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 24px 22px; }
  .hero { padding: 30px 26px 32px; }
  .submit-area { margin-top: 24px; }
  .btn-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .wrap { padding: 0 24px 72px; }
  .progress-dock { margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  body { font-size: 16.5px; }
}

@media (max-width: 359px) {
  .badge-grid { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: 1fr; }
}

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