/* ==========================================================
   AIA Premier Partners · NGMP 교육생 모집
   ========================================================== */
:root {
  --red: #d31145;
  --red-600: #b80e3b;
  --red-50: #fdf1f4;
  --ink: #1d1f23;
  --ink-2: #4a4f57;
  --ink-3: #7c828b;
  --bg: #ffffff;
  --warm: #f7f5f2;
  --warm-2: #efebe6;
  --line: #e7e2dc;
  --line-2: #f0ece7;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(29, 31, 35, .04), 0 2px 8px rgba(29, 31, 35, .04);
  --shadow: 0 2px 4px rgba(29, 31, 35, .03), 0 12px 32px -8px rgba(29, 31, 35, .10);
  --shadow-lg: 0 24px 64px -16px rgba(29, 31, 35, .22);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* ---------- Lucide ---------- */
[data-lucide], .lucide { width: 20px; height: 20px; stroke-width: 1.75; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px -6px rgba(211, 17, 69, .55); }
.btn-primary:hover { background: var(--red-600); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn [data-lucide], .btn .lucide { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: rgba(231, 226, 220, .7);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  font-weight: 800; color: var(--red); font-size: 24px; letter-spacing: -0.04em; line-height: 1;
}
.brand-logo { height: 42px; width: auto; flex-shrink: 0; }
@media (min-width: 960px) { .brand-logo { height: 46px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.brand-course { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: var(--ink); background: rgba(29, 31, 35, .05); }
.header-cta { display: none; }
.nav-toggle {
  margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px;
  display: grid; place-items: center;
}
.mobile-nav {
  display: none; flex-direction: column; padding: 8px 20px 20px;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a { padding: 14px 4px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mobile-nav a:last-child { border-bottom: 0; color: var(--red); }
.site-header.open { background: rgba(255, 255, 255, .96); }
.site-header.open .mobile-nav { display: flex; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav, .site-header.open .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 64px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(211, 17, 69, .07), transparent 60%),
    linear-gradient(180deg, var(--warm) 0%, #fff 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line-2);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); text-transform: none;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.badge-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.badge.closed .dot { background: var(--ink-3); }
.hero-title {
  font-size: clamp(32px, 7.4vw, 56px); line-height: 1.22; font-weight: 800; letter-spacing: -0.035em;
  white-space: pre-line;
}
.hero-desc { margin-top: 18px; font-size: clamp(16px, 2.2vw, 18px); color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-cta .btn { flex: 1 1 auto; }

.hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line-2);
}
.hero-card-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.big-number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; margin-top: 6px; line-height: 1; }
.big-prefix { font-size: 18px; font-weight: 700; color: var(--ink); margin-right: 6px; align-self: center; }
.big-value { font-size: clamp(64px, 16vw, 92px); font-weight: 800; letter-spacing: -0.05em; color: var(--red); font-variant-numeric: tabular-nums; }
.big-unit { font-size: 26px; font-weight: 800; color: var(--red); letter-spacing: -0.02em; }
.hero-stats { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line-2); }
.hero-stat { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.hero-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-stat-label { font-weight: 700; font-size: 15px; }
.hero-stat-note { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.hero-stat-value { grid-row: 1 / span 2; grid-column: 2; text-align: right; white-space: nowrap; }
.hero-stat-value small { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-right: 4px; }
.hero-stat-value b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.hero-stat-value span { font-size: 16px; font-weight: 700; }

@media (min-width: 960px) {
  .hero { padding: calc(var(--header-h) + 88px) 0 104px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero-cta .btn { flex: 0 0 auto; }
  .hero-card { padding: 36px 36px 32px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--warm); }
.section-head { margin-bottom: 36px; }
.section-head .eyebrow { color: var(--red); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.section-head h2 { margin-top: 10px; font-size: clamp(26px, 5vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.section-head p.desc { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.sub-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 56px 0 20px; }
.footnote { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
@media (min-width: 960px) {
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 52px; }
}

/* ---------- Card base ---------- */
.card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; gap: 16px; }
.benefit {
  display: flex; flex-direction: column; padding: 28px 24px 24px;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.benefit-top { display: flex; align-items: center; justify-content: space-between; }
.icon-box {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--warm); color: var(--ink);
}
.benefit-no { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.benefit h3 { margin-top: 20px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.benefit h3 small { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.benefit-amount { margin-top: 10px; display: flex; align-items: baseline; gap: 4px; line-height: 1.1; }
.benefit-amount small { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.benefit-amount b { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: var(--red); font-variant-numeric: tabular-nums; }
.benefit-amount span { font-size: 20px; font-weight: 800; color: var(--red); }
.benefit-summary { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.benefit-more { margin-top: 20px; border-top: 1px solid var(--line-2); padding-top: 4px; }
.benefit-more summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.benefit-more summary::-webkit-details-marker { display: none; }
.benefit-more summary .lucide { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.benefit-more[open] summary .lucide { transform: rotate(180deg); }
.benefit-more ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.benefit-more li { position: relative; padding-left: 14px; font-size: 14px; color: var(--ink-2); }
.benefit-more li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }

.mini-table { margin-top: 16px; }
.mini-table p { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.mini-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mini-table th, .mini-table td { padding: 9px 6px; text-align: center; border-right: 1px solid var(--line-2); }
.mini-table th:last-child, .mini-table td:last-child { border-right: 0; }
.mini-table th { background: var(--warm); font-weight: 600; color: var(--ink-2); }
.mini-table td { font-weight: 700; font-variant-numeric: tabular-nums; border-top: 1px solid var(--line-2); }
.mini-table td:first-child { font-weight: 500; color: var(--ink-3); }

.notice {
  margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--warm); border: 1px solid var(--line-2);
}
.notice h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.notice h4 .lucide { color: var(--red); }
.notice ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }
@media (min-width: 960px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .benefit { padding: 32px 28px 28px; }
  .notice { padding: 28px 32px; }
}

/* ---------- Target ---------- */
.group-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.group { display: flex; gap: 14px; padding: 18px; }
.group .icon-box { background: var(--warm); width: 40px; height: 40px; border-radius: 10px; }
.group h4 { font-size: 15px; font-weight: 700; }
.group p { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
@media (min-width: 640px) { .group-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .group-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.tier-wrap { margin-top: 40px; }
.tabs {
  display: flex; gap: 4px; padding: 4px; background: var(--warm-2); border-radius: 12px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs-center { max-width: 320px; margin: 0 auto 28px; }
.tab {
  flex: 1 0 auto; height: 42px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent;
  font-weight: 600; font-size: 15px; color: var(--ink-3); transition: background .2s, color .2s, box-shadow .2s;
}
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.section:not(.section-alt) .tabs { background: var(--warm); }

.tier-panel { margin-top: 16px; }
/* 모바일: 카드 리스트 */
.tier-rows { display: grid; gap: 10px; }
.tier-row { padding: 18px; }
.tier-row h4 { font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier-row h4 .age { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--warm); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tier-row dl { margin: 12px 0 0; display: grid; grid-template-columns: 76px 1fr; gap: 6px 12px; font-size: 14px; }
.tier-row dt { color: var(--ink-3); }
.tier-row dd { margin: 0; color: var(--ink); font-weight: 500; }
.tier-row dd.income { font-weight: 700; }
/* PC: 표 */
.tier-table-wrap { display: none; }
.tier-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.tier-table th { background: var(--ink); color: #fff; font-weight: 600; padding: 14px 12px; text-align: left; font-size: 13px; }
.tier-table td { padding: 14px 12px; border-top: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
.tier-table td:first-child { font-weight: 700; color: var(--ink); }
.tier-table td.income { font-weight: 700; color: var(--ink); }
.tier-table tr:hover td { background: #fcfbfa; }
@media (min-width: 960px) {
  .tier-rows { display: none; }
  .tier-table-wrap { display: block; }
  .tier-wrap .tabs { max-width: 440px; }
}

.definitions { margin-top: 24px; padding: 0 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line-2); }
.definitions summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 0;
  font-weight: 700; cursor: pointer;
}
.definitions summary::-webkit-details-marker { display: none; }
.definitions summary .lucide { transition: transform .25s var(--ease); color: var(--ink-3); }
.definitions[open] summary .lucide { transform: rotate(180deg); }
.def-list { display: grid; gap: 0; padding-bottom: 8px; }
.def-item { padding: 16px 0; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.def-item .def-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.def-item .def-group { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--warm); padding: 2px 8px; border-radius: 6px; }
.def-item strong { font-size: 15px; }
.def-item p { font-size: 14px; color: var(--ink-2); }
.def-item .def-note { font-size: 13px; color: var(--ink-3); }
@media (min-width: 960px) {
  .definitions { padding: 0 28px; }
  .def-item { grid-template-columns: 240px 1fr 220px; gap: 24px; align-items: start; }
  .def-item .def-note { text-align: right; }
}

/* ---------- Schedule ---------- */
.info-grid { display: grid; gap: 12px; }
.info { display: flex; gap: 16px; padding: 22px; }
.info .icon-box { background: var(--red-50); color: var(--red); }
.info-label { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.info-value { margin-top: 2px; font-size: 17px; font-weight: 700; line-height: 1.45; }
.info-sub { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 960px) { .info-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } .info { padding: 26px; } }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.module { position: relative; padding: 0 0 28px 40px; }
.module::before { /* line */
  content: ""; position: absolute; left: 11px; top: 28px; bottom: 0; width: 2px; background: var(--line);
}
.module:last-child::before { display: none; }
.module-dot {
  position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); display: grid; place-items: center;
}
.module-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.module.current .module-dot { border-color: var(--red); }
.module.current .module-dot::after { background: var(--red); }
.module-card { padding: 22px; }
.module.current .module-card { border-color: rgba(211, 17, 69, .25); box-shadow: 0 0 0 4px rgba(211, 17, 69, .05), var(--shadow); }
.module-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.module-no { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.module.current .module-no { color: var(--red); }
.module-now { font-size: 11px; font-weight: 700; color: #fff; background: var(--red); padding: 2px 8px; border-radius: 999px; }
.module h4 { margin-top: 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.module h4 small { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.module-goal { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.module dl { margin: 14px 0 0; display: grid; grid-template-columns: 68px 1fr; gap: 8px 12px; font-size: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.module dt { color: var(--ink-3); font-weight: 600; }
.module dd { margin: 0; color: var(--ink-2); }
.roadmap-note { margin-top: 8px; display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 16px 18px; border-radius: 12px; background: var(--warm); }
.roadmap-note .lucide { color: var(--ink-3); margin-top: 2px; width: 18px; height: 18px; }
@media (min-width: 960px) {
  .roadmap { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .module { padding: 40px 0 0 0; }
  .module::before { left: 24px; right: -20px; top: 11px; bottom: auto; width: auto; height: 2px; }
  .module-dot { left: 0; top: 0; }
  .module-card { height: 100%; padding: 26px; }
  .roadmap-note { margin-top: 24px; }
}

/* ---------- Curriculum ---------- */
.days { display: grid; gap: 14px; }
.day { padding: 0; overflow: hidden; }
.day-head {
  display: flex; align-items: baseline; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}
.day-head b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.day-head span { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.day-head .day-idx { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.sessions { list-style: none; margin: 0; padding: 8px 20px 12px; }
.session { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.session:last-child { border-bottom: 0; }
.session time { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; }
.session span { color: var(--ink); font-weight: 500; }
.session.lunch span { color: var(--ink-3); font-weight: 500; }
.session.hl span { color: var(--red); font-weight: 700; }
@media (min-width: 720px) { .days { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .days { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .session { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: var(--line); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px; cursor: pointer; font-weight: 700; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .q { color: var(--red); font-weight: 800; }
.faq summary .lucide { margin-left: auto; color: var(--ink-3); transition: transform .25s var(--ease); }
.faq[open] summary .lucide { transform: rotate(45deg); }
.faq .a { padding: 0 20px 22px 46px; color: var(--ink-2); font-size: 15px; }

/* ---------- Apply form ---------- */
.section-apply { background: linear-gradient(180deg, var(--warm) 0%, #fff 100%); }
.apply-form { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 28px 20px; }
.form-grid { display: grid; gap: 18px; }
.field label, .field .label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field em { color: var(--red); font-style: normal; }
.field .opt { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.field input, .field select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #adb2b9; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(29, 31, 35, .06); }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.select { position: relative; }
.select .lucide { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3); width: 18px; height: 18px; }
.select select { padding-right: 40px; }
.select select:invalid { color: #adb2b9; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  font-weight: 600; font-size: 15px; color: var(--ink-2); transition: all .2s; cursor: pointer;
}
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(29, 31, 35, .12); }
.chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.error { margin-top: 6px; font-size: 13px; color: var(--red); font-weight: 500; min-height: 0; }
.error:empty { display: none; }
@media (min-width: 720px) {
  .apply-form { padding: 40px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .field-full { grid-column: 1 / -1; }
  .chips { grid-template-columns: repeat(5, 1fr); }
  .chip:last-child:nth-child(odd) { grid-column: auto; }
}

.consents { margin-top: 28px; border-top: 1px solid var(--line-2); padding-top: 20px; display: grid; gap: 14px; }
.consent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; flex: 1; min-width: 0; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #c9c4be; display: grid; place-items: center; flex-shrink: 0;
  transition: all .2s; color: transparent;
}
.check .box .lucide { width: 14px; height: 14px; stroke-width: 3; }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); color: #fff; }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(29, 31, 35, .12); }
.check .req { color: var(--red); }
.link-btn { border: 0; background: none; padding: 4px 0; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.consent-full { flex-basis: 100%; margin-top: 4px; padding: 16px; background: var(--warm); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.consent-full dl { margin: 0; display: grid; grid-template-columns: 76px 1fr; gap: 6px 12px; }
.consent-full dt { font-weight: 700; color: var(--ink); }
.consent-full dd { margin: 0; }
.consent-full p { margin-top: 10px; color: var(--ink-3); }
.consent .error { flex-basis: 100%; margin-top: 0; }

#submit-btn { margin-top: 28px; position: relative; }
#submit-btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
#submit-btn.loading .spinner { display: inline-block; }
#submit-btn.loading .btn-label { opacity: .8; }
#submit-btn:disabled { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-foot { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

.closed-box { text-align: center; padding: 56px 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.closed-box .lucide { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--ink-3); stroke-width: 1.5; }
.closed-box h3 { font-size: 22px; font-weight: 800; }
.closed-box p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 40px 0 calc(40px + 76px); font-size: 14px; }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.footer-brand .brand-mark { font-size: 20px; }
.footer-course { margin-top: 6px; }
.footer-meta p + p { margin-top: 4px; }
.site-footer .muted { color: rgba(255, 255, 255, .45); }
@media (min-width: 960px) {
  .site-footer { padding: 48px 0; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-meta { text-align: right; }
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-2);
  transform: translateY(0); transition: transform .3s var(--ease);
}
.mobile-cta.hide { transform: translateY(110%); }
.mobile-cta .btn { height: 52px; font-size: 16px; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(29, 31, 35, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.modal-card {
  position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 36px 28px 24px;
  text-align: center; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease);
}
.modal-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--red-50); color: var(--red); display: grid; place-items: center; }
.modal-icon .lucide { width: 28px; height: 28px; stroke-width: 2.5; }
.modal-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.modal-card > p { margin-top: 8px; color: var(--ink-2); }
.modal-summary { margin: 20px 0 22px; padding: 16px; background: var(--warm); border-radius: 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; font-size: 14px; }
.modal-summary dt { color: var(--ink-3); }
.modal-summary dd { margin: 0; font-weight: 600; text-align: right; }
/* 지도 */
.info-btn { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.info-btn:hover { border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-2px); }
.info-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(29, 31, 35, .12); }
.info-map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.info-map-link .lucide { width: 15px; height: 15px; }
.map-card { max-width: 640px; padding: 20px; text-align: left; }
.map-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.map-head h3 { font-size: 18px; }
.map-head p { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.modal-x { width: 40px; height: 40px; margin: -6px -6px 0 0; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.modal-x:hover { background: var(--warm); }
.map-frame { margin-top: 16px; border-radius: 12px; overflow: hidden; background: var(--warm); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
@media (min-width: 720px) { .map-frame { aspect-ratio: 16 / 10; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 110;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 32px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Load error ---------- */
.load-error { max-width: 560px; margin: 160px auto; padding: 32px; text-align: center; color: var(--ink-2); }
.load-error h2 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.load-error code { background: var(--warm); padding: 2px 6px; border-radius: 6px; }

/* ==========================================================
   관리자 페이지 (admin.html)
   ========================================================== */
body.admin { background: var(--warm); min-height: 100vh; }
.btn-danger { background: #fff; color: var(--red); border-color: rgba(211, 17, 69, .3); }
.btn-danger:hover:not(:disabled) { background: var(--red-50); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: inline; } }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 36px 28px; display: grid; gap: 16px; }
.login-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.login-brand .brand-mark { font-size: 22px; }
.login-card .field label { margin-bottom: 6px; }

.admin-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.admin-header-inner { max-width: 1480px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-header-actions { display: flex; align-items: center; gap: 8px; }
.admin-user { font-size: 13px; color: var(--ink-3); display: none; }
@media (min-width: 720px) { .admin-user { display: inline; } }
.admin-main { max-width: 1480px; margin: 0 auto; padding: 20px 16px 48px; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; text-align: left; transition: border-color .2s, box-shadow .2s; }
.stat span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.stat b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
@media (max-width: 520px) { .stat { padding: 10px; } .stat b { font-size: 18px; } .stat span { font-size: 11px; } }

.toolbar { margin-top: 16px; display: grid; gap: 10px; }
.search { position: relative; }
.search .lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; }
.search input:focus { outline: 0; border-color: var(--ink); }
.filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.select.sm select { width: 100%; height: 44px; padding: 0 36px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.select.sm select:focus { outline: 0; border-color: var(--ink); }
.select.sm .lucide { right: 10px; width: 16px; height: 16px; }
@media (min-width: 960px) {
  .toolbar { grid-template-columns: 1fr auto; }
  .filters { grid-template-columns: repeat(4, 140px); }
}

.bulkbar { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bulkbar .check { flex: 0 0 auto; font-size: 14px; font-weight: 600; }
.bulk-actions { display: flex; gap: 6px; }

.table-wrap { margin-top: 12px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 12px 10px; background: #fbfaf8; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr.selected td { background: #fdf6f8; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .muted { color: var(--ink-3); font-size: 13px; }
.admin-table .c-check { width: 44px; }
.admin-table .c-memo { min-width: 200px; }
.loading-cell { text-align: center; color: var(--ink-3); padding: 40px !important; }
.c-name b { font-weight: 700; }
.tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--warm); padding: 1px 6px; border-radius: 5px; vertical-align: 1px; }
.tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tel .lucide { width: 14px; height: 14px; color: var(--ink-3); }
.tel:hover { color: var(--red); }
.status-select select { height: 36px; min-width: 104px; font-weight: 600; }
.status-select[data-s="신규"] select { border-color: rgba(211, 17, 69, .35); color: var(--red); background: var(--red-50); }
.status-select[data-s="연락완료"] select { color: #1e5aa8; background: #eff5fd; border-color: #c9dbf3; }
.status-select[data-s="확정"] select { color: #1b7a4b; background: #edf8f1; border-color: #c4e6d2; }
.status-select[data-s="보류"] select { color: var(--ink-3); background: var(--warm); }
.memo { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; resize: none; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .3s; }
.memo:hover { border-color: var(--line); }
.memo:focus { outline: 0; border-color: var(--ink); background: #fff; }
.memo.saved { box-shadow: 0 0 0 3px rgba(27, 122, 75, .18); }
.empty { padding: 56px 16px; text-align: center; color: var(--ink-3); }
.empty .lucide { width: 32px; height: 32px; margin: 0 auto 10px; stroke-width: 1.5; }

/* 모바일: 행 → 카드 */
@media (max-width: 959px) {
  .table-wrap { background: transparent; border: 0; box-shadow: none; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody { display: block; }
  .admin-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 14px 12px 50px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
  .admin-table tr.selected { border-color: rgba(211, 17, 69, .35); background: #fdf6f8; }
  .admin-table tr.selected td { background: transparent; }
  .admin-table td { display: block; padding: 2px 0; border: 0; font-size: 14px; min-width: 0; }
  .admin-table td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; }
  .admin-table td.c-check { position: absolute; left: 14px; top: 14px; width: auto; }
  .admin-table td.c-check::before, .admin-table td.c-name::before { display: none; }
  .admin-table td.c-name { grid-column: 1 / -1; font-size: 17px; order: -1; }
  .admin-table td[data-label="연락처"] { grid-column: 1 / -1; }
  .admin-table .tel { font-size: 16px; padding: 6px 0; }
  .admin-table td[data-label="상태"], .admin-table td.c-memo { grid-column: 1 / -1; margin-top: 4px; }
  .admin-table .c-memo { min-width: 0; }
  .admin-table .memo { border-color: var(--line); background: #fff; }
  .status-select select { width: 100%; height: 42px; }
}
