/* =============================================================================
   고트영어 · 신입생 온보딩 공통 스타일시트
   - index / student / parent 세 페이지가 이 파일 하나만 공유합니다.
   - 모바일 우선(max-width: 720px), 터치 영역 최소 44px, 기본 글자 16px
   ========================================================================== */

/* ---------- 1. 디자인 토큰 ---------- */
:root {
  --navy-900: #081735;
  --navy-800: #0c2150;
  --navy-700: #0f2a5c; /* 브랜드 메인 */
  --navy-600: #173b7c;
  --navy-500: #224c96;
  --navy-050: #edf1fa;

  --gold: #c8a96a;
  --gold-100: #f8f1e1;
  --gold-700: #8a6b22;

  --sky: #3d7bd6;
  --mint: #1e9e6a;
  --coral: #e0574b;
  --danger: #c0392b;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #14213a;
  --ink-soft: #31405c;
  --muted: #6a7791;
  --line: #e3e8f2;
  --line-strong: #ccd6e8;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 8px rgba(11, 28, 62, 0.05);
  --shadow: 0 12px 32px rgba(11, 28, 62, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 28, 62, 0.12);
  --focus-ring: 0 0 0 3px rgba(61, 123, 214, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 720px;
}

/* ---------- 2. 리셋 & 기본 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "맑은 고딕", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 340px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(15, 42, 92, 0.07), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--navy-600);
}

button {
  font-family: inherit;
  font-size: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(61, 123, 214, 0.22);
}

/* 접근성 유틸 */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--navy-800);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid rgba(61, 123, 214, 0.55);
  outline-offset: 2px;
}

/* ---------- 3. 레이아웃 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

main {
  display: block;
  padding-bottom: 32px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 30px 0 12px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--navy-600), var(--gold));
}

/* ---------- 4. 브랜드 / 헤더 ---------- */
.site-head {
  padding-top: env(safe-area-inset-top);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
}

.brand-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-900));
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(200, 169, 106, 0.5), 0 6px 16px rgba(11, 28, 62, 0.22);
}

.brand-logo {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 4px 12px rgba(11, 28, 62, 0.16);
}

.brand--haslogo .brand-logo {
  display: block;
}

.brand--haslogo .brand-mark {
  display: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-800);
}

.brand-text small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.head-chip {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 42, 92, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy-700);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------- 5. index : 히어로 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 34px;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(158deg, var(--navy-900) 0%, var(--navy-700) 48%, var(--navy-500) 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(9, 25, 56, 0.18);
}

.hero::after {
  content: "";
  position: absolute;
  top: -130px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.32), transparent 66%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 106, 0.5);
  background: rgba(200, 169, 106, 0.12);
  color: #f0e0bf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero__title {
  margin-top: 14px;
  font-size: clamp(1.62rem, 6.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.025em;
}

.hero__desc {
  margin-top: 12px;
  max-width: 34em;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(233, 240, 253, 0.86);
}

.badge-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #eef4ff;
}

.badge::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.22);
}

/* ---------- 6. index : 선택 카드 ---------- */
.choice-grid {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.choice-card {
  position: relative;
  display: block;
  padding: 22px 20px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.choice-card--student {
  border-color: #d6e2f8;
  background: linear-gradient(158deg, #ffffff 0%, #f2f7ff 100%);
}

.choice-card--parent {
  border-color: #e2e7f2;
  background: linear-gradient(158deg, #ffffff 0%, #fafbfe 100%);
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.choice-card:active {
  transform: translateY(0) scale(0.995);
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 25px;
  line-height: 1;
  background: var(--navy-050);
  border: 1px solid #dbe5f8;
}

.choice-card--parent .choice-icon {
  background: var(--gold-100);
  border-color: #ecd9b2;
}

.choice-title {
  display: block;
  margin-top: 14px;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

.choice-desc {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.choice-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy-600);
}

.choice-card--parent .choice-cta {
  color: var(--gold-700);
}

/* ---------- 7. index : 이용 순서 ---------- */
.steps {
  display: grid;
  gap: 10px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-num {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-050);
  border: 1px solid #dae4f7;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 800;
}

.step-card h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-800);
}

.step-card p {
  margin-top: 2px;
  font-size: 0.845rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 8. 푸터 ---------- */
.site-foot {
  padding: 26px 0 calc(30px + env(safe-area-inset-bottom));
  margin-top: 26px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.site-foot__brand {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy-800);
}

.site-foot__meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.site-foot__note {
  margin-top: 10px;
  font-size: 0.76rem;
  line-height: 1.65;
  color: #8b97ac;
}

/* ---------- 9. 폼 페이지 헤더 ---------- */
.page-head {
  padding: 4px 0 20px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.page-back:hover {
  color: var(--navy-700);
}

.page-head h1 {
  margin-top: 6px;
  font-size: clamp(1.4rem, 5.4vw, 1.78rem);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.025em;
  color: var(--navy-800);
}

.page-head p {
  margin-top: 9px;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--muted);
}

.page-head .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy-700);
  background: var(--navy-050);
  border: 1px solid #dbe5f8;
}

.page-parent .page-head .pill {
  color: var(--gold-700);
  background: var(--gold-100);
  border-color: #ecd9b2;
}

/* ---------- 10. 카드 ---------- */
.card {
  margin-bottom: 14px;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card--accent {
  border-color: #dbe5f8;
  background: linear-gradient(160deg, #ffffff, #f7faff);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
}

.card-num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-900));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(12, 33, 80, 0.24);
}

.page-parent .card-num {
  border-radius: 9px;
  background: linear-gradient(150deg, #21406f, var(--navy-900));
}

.card-head h2 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy-800);
}

.card-sub {
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 11. 필드 ---------- */
.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label,
.field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.req {
  margin-left: 2px;
  color: var(--coral);
  font-weight: 800;
}

.opt {
  margin-left: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background-color: #fbfcfe;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: #9aa6bc;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  background-color: #fff;
  box-shadow: var(--focus-ring);
}

.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236a7791' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.hint {
  margin-top: 7px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

/* 오류 상태 */
.field-error {
  display: none;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--danger);
}

.field-error::before {
  content: "⚠ ";
  font-weight: 700;
}

.field.is-invalid .field-error {
  display: block;
}

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: #d9534f;
  background-color: #fff8f7;
}

/* ---------- 12. MBTI 빠른 선택 칩 ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--navy-700);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.chip:hover {
  border-color: var(--navy-500);
  background: #f4f8ff;
}

.chip:active {
  transform: scale(0.97);
}

.chip[aria-pressed="true"] {
  background: linear-gradient(150deg, var(--navy-600), var(--navy-800));
  border-color: var(--navy-700);
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 33, 80, 0.22);
}

/* ---------- 13. 선택형 라디오 카드 ---------- */
.choice-group {
  display: grid;
  gap: 9px;
}

.choice-group--inline {
  grid-template-columns: 1fr 1fr;
}

.option {
  position: relative;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.option input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.option-box {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 52px;
  padding: 13px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fbfcfe;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-soft);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}

.option-mark {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #fff;
  transition: border-color 0.16s var(--ease);
}

.option-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--navy-700);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}

.option input:checked + .option-box {
  border-color: var(--navy-700);
  background: #f1f6ff;
  box-shadow: 0 3px 12px rgba(15, 42, 92, 0.09);
  color: var(--navy-800);
  font-weight: 700;
}

.option input:checked + .option-box .option-mark {
  border-color: var(--navy-700);
}

.option input:checked + .option-box .option-mark::after {
  opacity: 1;
  transform: scale(1);
}

.option input:focus-visible + .option-box {
  box-shadow: var(--focus-ring);
}

.choice-group--inline .option-box {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 52px;
  font-weight: 700;
}

.choice-group--inline .option-mark {
  margin-top: 0;
}

/* ---------- 14. 체크박스 ---------- */
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.check input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.check-box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.check-box::after {
  content: "";
  width: 10px;
  height: 5px;
  margin-top: -3px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) scale(0.5);
  opacity: 0;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}

.check input:checked ~ .check-box {
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.check input:checked ~ .check-box::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.check input:focus-visible ~ .check-box {
  box-shadow: var(--focus-ring);
}

.check input:checked ~ .check-text {
  color: var(--navy-800);
  font-weight: 700;
}

.check-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-soft);
}

.check--tight {
  min-height: 46px;
  padding: 10px 11px;
  gap: 9px;
  border-radius: 12px;
}

.check--tight .check-box {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.check--tight .check-text {
  font-size: 0.855rem;
  font-weight: 600;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field--tight {
  margin-bottom: 8px;
}

.field--tight .check {
  border-color: var(--line);
  background: #fdfdfe;
}

/* ---------- 15. 규칙 다짐 (강조 체크박스) ---------- */
.pledge {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 68px;
  padding: 17px 16px;
  border: 2px solid #dae4f7;
  border-radius: 18px;
  background: linear-gradient(155deg, #f3f8ff, #ffffff);
  box-shadow: 0 8px 22px rgba(15, 42, 92, 0.07);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.pledge input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pledge .check-box {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  margin-top: 0;
}

.pledge-text {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}

.pledge input:checked ~ .check-box {
  background: linear-gradient(150deg, var(--navy-600), var(--navy-800));
  border-color: var(--navy-700);
}

.pledge input:checked ~ .check-box::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.pledge input:focus-visible ~ .check-box {
  box-shadow: var(--focus-ring);
}

.pledge:has(input:checked) {
  border-color: var(--navy-600);
  background: linear-gradient(155deg, #e9f1ff, #ffffff);
}

.field.is-invalid .pledge {
  border-color: #d9534f;
  background: #fff8f7;
}

/* ---------- 16. 토글 스위치 (전체 동의) ---------- */
.switch-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid #d9e3f6;
  background: linear-gradient(150deg, #eef3fd, #ffffff);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.switch-row input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-text {
  flex: 1 1 auto;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}

.switch-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.switch-ui {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #c7d2e5;
  transition: background-color 0.2s var(--ease);
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(11, 28, 62, 0.28);
  transition: transform 0.2s var(--ease);
}

.switch-row input:checked ~ .switch-ui {
  background: linear-gradient(150deg, var(--navy-600), var(--navy-700));
}

.switch-row input:checked ~ .switch-ui::after {
  transform: translateX(22px);
}

.switch-row input:focus-visible ~ .switch-ui {
  box-shadow: var(--focus-ring);
}

/* ---------- 17. 수강료 표 ---------- */
.table-wrap {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.price-table caption {
  padding: 11px 13px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  background: #fafbfe;
  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: 0.78rem;
  font-weight: 800;
  color: var(--navy-700);
  background: var(--navy-050);
  letter-spacing: 0.01em;
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

.price-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.price-table td:last-child {
  text-align: right;
  font-weight: 800;
  color: var(--navy-700);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 18. 안내 박스 ---------- */
.notice {
  display: flex;
  gap: 11px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafe;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.notice:first-of-type {
  margin-top: 0;
}

.notice-icon {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1.5;
}

.notice strong {
  font-weight: 800;
  color: var(--navy-700);
}

.notice--gold {
  border-color: #ebd8b3;
  background: linear-gradient(150deg, #fdf7ea, #fffdf8);
}

.notice--gold strong {
  color: var(--gold-700);
}

.notice--navy {
  border-color: #d5e0f5;
  background: linear-gradient(150deg, #f4f8ff, #ffffff);
}

.benefit-box {
  margin-top: 14px;
  padding: 16px 15px;
  border-radius: 16px;
  border: 1.5px solid #e9d5a9;
  background: linear-gradient(155deg, #fdf6e6, #fffdf7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.benefit-box .benefit-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--gold-700);
  letter-spacing: 0.01em;
}

.benefit-box p {
  margin-top: 7px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.7;
  color: #6d5320;
}

.inline-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.inline-list li {
  position: relative;
  padding-left: 13px;
  font-size: 0.865rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.inline-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--navy-500);
}

.small-note {
  margin-top: 10px;
  font-size: 0.755rem;
  line-height: 1.7;
  color: #8a96ac;
}

.divider {
  height: 1px;
  margin: 14px 0;
  background: var(--line);
  border: 0;
}

/* ---------- 19. 접이식 details ---------- */
.fold {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
  overflow: hidden;
}

.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 12px 15px;
  font-size: 0.865rem;
  font-weight: 700;
  color: var(--navy-700);
  cursor: pointer;
  list-style: none;
}

.fold > summary::-webkit-details-marker {
  display: none;
}

.fold > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.fold[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.fold > summary:focus-visible {
  outline: 3px solid rgba(61, 123, 214, 0.5);
  outline-offset: -3px;
}

.fold-body {
  padding: 0 15px 15px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.fold-body ol {
  counter-reset: fold;
  display: grid;
  gap: 7px;
}

.fold-body ol > li {
  position: relative;
  padding-left: 20px;
}

.fold-body ol > li::before {
  counter-increment: fold;
  content: counter(fold);
  position: absolute;
  top: 2px;
  left: 0;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-050);
  color: var(--navy-700);
  font-size: 10px;
  font-weight: 800;
}

.example-list {
  display: grid;
  gap: 9px;
}

.example-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.815rem;
  line-height: 1.7;
}

.example-list strong {
  color: var(--navy-700);
}

/* ---------- 20. 진행률 바 (sticky) ---------- */
.progress-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 0 11px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(11, 28, 62, 0.05);
}

.progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 0.755rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.progress-value {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy-700);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e6ebf5;
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-600), var(--sky) 75%, var(--gold));
  transition: width 0.4s var(--ease);
}

/* ---------- 21. 버튼 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 1.01rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-900));
  box-shadow: 0 12px 26px rgba(12, 33, 80, 0.26);
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), opacity 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(12, 33, 80, 0.3);
}

.btn:active {
  transform: translateY(0) scale(0.995);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 12px 26px rgba(12, 33, 80, 0.26);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.9;
  transform: none;
}

.btn--ghost {
  background: #fff;
  color: var(--navy-700);
  border: 1.5px solid #d7e1f4;
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  box-shadow: var(--shadow);
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: btn-spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-actions {
  margin: 18px 0 0;
}

.form-note {
  margin-top: 10px;
  text-align: center;
  font-size: 0.775rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 22. 제출 완료 화면 ---------- */
.success {
  text-align: center;
  padding: 40px 22px 34px;
  border-radius: var(--radius-lg);
  border: 1px solid #dcebe3;
  background: linear-gradient(165deg, #ffffff, #f6fbf8);
  box-shadow: var(--shadow);
  animation: success-in 0.42s var(--ease) both;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid #cfebdd;
  background: linear-gradient(150deg, #e8f7ef, #f8fdfa);
  box-shadow: 0 10px 24px rgba(30, 158, 106, 0.18);
}

.success-icon svg {
  width: 38px;
  height: 38px;
  stroke: var(--mint);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: check-draw 0.55s 0.15s var(--ease) forwards;
}

.success h2 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

.success p {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}

.success .success-strong {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f9ff;
  border: 1px solid #e0e9f8;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.65;
  color: var(--navy-600);
}

.success .btn {
  margin-top: 22px;
}

@keyframes success-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- 23. 토스트 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 300;
  width: max-content;
  max-width: min(520px, calc(100% - 32px));
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(12, 25, 52, 0.96);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 16px 34px rgba(6, 15, 35, 0.34);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: rgba(150, 34, 28, 0.97);
}

/* ---------- 24. 반응형 ---------- */
@media (min-width: 480px) {
  .container {
    padding: 0 22px;
  }

  .badge-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .badge {
    font-size: 11.5px;
  }
}

@media (min-width: 600px) {
  .hero {
    padding: 40px 0 46px;
  }

  .hero__desc {
    font-size: 0.96rem;
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .choice-card {
    padding: 24px 22px 22px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .step-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .card {
    padding: 24px 24px;
  }

  .check-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-table {
    font-size: 0.9rem;
  }
}

@media (min-width: 720px) {
  .page-head {
    padding-top: 10px;
  }

  .card {
    padding: 26px 26px;
  }

  .success {
    padding: 48px 30px 40px;
  }
}

@media (max-width: 359px) {
  .head-chip {
    display: none;
  }

  .badge-list {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 25. 모션 최소화 대응 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .success-icon svg {
    stroke-dashoffset: 0;
  }
}
