/* --- Global Variables & Reset --- */
:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #172554;
  --accent: #4f46e5;
  --accent2: #a855f7;
  --accentSoft: #eef2ff;
  --container: 1280px;
  --font-main: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* --- Layout --- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); border-bottom: 1px solid #eef2f7; backdrop-filter: blur(10px); }
.topbar .inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { font-weight: 800; font-size: 1.25rem; color: var(--brand); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.logo-img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

.nav { display: flex; gap: 24px; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--brand); padding: 8px 12px; border-radius: 8px; transition: 0.2s; }
.nav a:hover { background: #f3f7ff; }
.nav a.active { background: var(--brand); color: #fff; }

/* --- Hero & Breadcrumb --- */
.hero { padding: 50px 0 30px; text-align: left; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; color: var(--brand); letter-spacing: -0.03em; }
.hero p { color: var(--muted); font-size: 1.05rem; }

/* --- Main Layout --- */
.section { padding: 40px 0 80px; }
.layout { display: flex; gap: 40px; align-items: flex-start; }
.main-col { flex: 1; min-width: 0; }
.support { width: 280px; flex-shrink: 0; position: sticky; top: 90px; }

/* --- Card & Stepper --- */
.card { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid rgba(79,70,229,.1); }
.head { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); text-align: center; }
.stepper { display: inline-flex; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 99px; }
.step { display: flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 99px; font-weight: 700; font-size: 14px; color: #94a3b8; transition: 0.2s; }
.step b { width: 20px; height: 20px; border-radius: 50%; background: #cbd5e1; color: #fff; display: grid; place-items: center; font-size: 11px; }
.step.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.step.active b { background: var(--accent); }

/* --- Form Styles --- */
.notice { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 30px; font-size: 14px; line-height: 1.6; }
.notice-title { display: block; color: var(--brand); margin-bottom: 10px; font-size: 15px; font-weight: 700; margin-top:0; }
.notice ul { padding-left: 20px; margin: 0; list-style: disc; color: #4b5563; }
.notice li { margin-bottom: 6px; }

.form dl { margin-bottom: 24px; }
.form dt { font-weight: 700; margin-bottom: 8px; color: var(--text); font-size: 15px; display: flex; align-items: center; gap: 4px; }
.form dt::after { content: "*"; color: var(--accent); }
.form dd input, .form dd textarea, .form dd select { width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 15px; outline: none; transition: 0.2s; background: #fff; appearance: none; }
.form dd input:focus, .form dd textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.small { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.small::before { content: "ℹ"; display: inline-block; margin-right: 2px; }

.error-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; color: #991b1b; font-size: 14px; line-height: 1.6; }
.error-box ul { padding-left: 20px; margin: 4px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 14px; font-weight: 700; font-size: 16px; border: 1px solid transparent; transition: 0.2s; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; box-shadow: 0 4px 12px rgba(23, 37, 84, 0.2); }
.btn.primary:hover { opacity: 0.95; transform: translateY(-1px); }
.btn.ghost { background: var(--accentSoft); color: var(--accent); border-color: transparent; height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.ghost:hover { background: #e0e7ff; }

.actions { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); text-align: center; }

/* Checkbox */
.checkline { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; color: #334155; }
.checkline input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* Sidebar */
.support-card { background: #f8fafc; border-radius: 20px; padding: 24px; border: 1px solid #e2e8f0; }
.subnav { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.subnav a { display: flex; justify-content: center; align-items: center; padding: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; font-weight: 600; text-align: center; color: var(--brand); transition: 0.2s; font-size: 0.95rem; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1); }
.subnav a.current { border-color:var(--brand); color:var(--brand); background:#f3f7ff; }
.info-txt { font-size: 14px; color: var(--muted); line-height: 1.6; padding-top: 20px; border-top: 1px solid #e2e8f0; }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.overlay.open { display: flex; animation: fadeIn 0.2s; }
.modal { padding: 0; background: #fff; width: 100%; max-width: 500px; max-height: 80vh; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.mhead { padding: 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 17px; background: #fcfcfc; }
.mbody { padding: 24px; overflow-y: auto; line-height: 1.7; font-size: 14px; color: #334155; }
.close-btn { font-size: 24px; color: #94a3b8; padding: 4px; line-height: 1; }
.close-btn:hover { color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 개인정보 동의 모달 - 동의 버튼 / 스크롤 힌트 */
#privacy-scroll-hint { text-align:center; font-size:12px; color:#94a3b8; margin:0 0 10px 0; }
#privacy-scroll-hint.done { color:#059669; }
#privacy-agree-btn { width:100%; height:44px; font-size:14px; }
#privacy-agree-btn:disabled { background:#cbd5e1; cursor:not-allowed; box-shadow:none; opacity:1; }
#privacy-agree-btn:disabled:hover { transform:none; opacity:1; }

@media (max-width: 640px) {
  .layout { display: block; margin: 0 5vw; }
  .support { width: 100%; position: static; margin-top: 50px; }
  .subnav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding: 50px 0 10px; text-align: center; }
  .hero h1 { font-size: 26px; }
  .card { padding: 24px 20px; }
  .head { text-align: left; }
  .stepper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: 100%;
  }
  .step {
    width: 100%;
    justify-content: flex-start;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 12px 14px;
    line-height: 1.2;
    white-space: normal;
    word-break: keep-all;
  }
  .step b { flex: 0 0 20px; }
  .step.active { background: #fff; border: 1px solid rgba(79,70,229,.18); }
}
