/* =========================================================
   Spotify x BTS 응모 페이지 — 디자인 토큰
   색상/폰트를 바꿀 땐 이 블록만 수정하면 됩니다.
   ========================================================= */
:root {
  --bg: #000000;            /* 페이지 배경 */
  --surface: #121212;       /* 카드/입력 배경 */
  --surface-2: #1e1e20;     /* 팝업, 강조 배경 */
  --line: #2c2c2e;          /* 구분선, 입력 테두리 */
  --text: #ffffff;          /* 기본 텍스트 */
  --text-2: #b3b3b6;        /* 보조 텍스트 */
  --text-3: #7a7a7e;        /* 힌트/캡션 */
  --accent: #1ED65F;        /* 캠페인 포인트 (2026 SPEAKEASY: 그린) */
  --green: #1ED65F;         /* Spotify 그린 (CTA) */
  --green-press: #17b34f;
  --danger: #ff5247;        /* 에러 */
  --radius: 12px;
  --maxw: 560px;
}

/* ---------- 폰트: 전체 프리텐다드 통일 (수정요청 v1) ---------- */
@font-face { font-family: 'Pretendard'; font-weight: 45 920; src: url('../fonts/PretendardVariable.woff2') format('woff2-variations'); font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
/* 네이티브 위젯(셀렉트 드롭다운, 스크롤바, 리사이즈 핸들 등)을 다크로 렌더 */
:root { color-scheme: dark; }
/* overflow-x: clip → 가로 오버플로우로 인한 iOS 확대/가로스크롤/치우침 방지
   (clip 은 hidden 과 달리 position:sticky 를 깨지 않음) */
html { -webkit-text-size-adjust: 100%; background: #000; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  word-break: keep-all;
  overflow-wrap: break-word;   /* 긴 이메일/URL 등은 줄바꿈 (keep-all 과 병행) */
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

.page { max-width: var(--maxw); margin: 0 auto; min-height: 100dvh; position: relative; background: var(--bg); }

/* ---------- 공사중 게이트 — 흰 화면 + 텍스트만 ---------- */
#maintenance { display: none; position: fixed; inset: 0; z-index: 200;
  background: #fff; color: #000; flex-direction: column; gap: 18px;
  align-items: center; justify-content: center; }
#maintenance p { font-size: 16px; cursor: default; user-select: none; -webkit-user-select: none; }
body.maintenance-on #maintenance { display: flex; }
body.maintenance-on .page, body.maintenance-on .topbar { display: none; }
/* 숨은 비밀번호 입력 (텍스트 10회 클릭 시 노출) */
#maint-form.maint-hidden { display: none; }
#maint-form { display: block; }
#maint-pw { width: 180px; padding: 9px 12px; font-size: 14px; text-align: center;
  border: 1px solid #ccc; border-radius: 8px; background: #fff; color: #000; outline: none; }
#maint-pw:focus { border-color: #888; }
#maint-pw.maint-err { border-color: #e03131; animation: maintShake .3s; }
@keyframes maintShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* ---------- 스텝 표시 ---------- */
.step { display: none; }
.step.active { display: block; }

/* ---------- 고정 상단바: FAQ | KOR/ENG (모든 화면 유지) ---------- */
.topbar { position: fixed; z-index: 40; top: 12px;
  right: max(14px, calc((100vw - var(--maxw)) / 2 + 14px));
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.top-faq, .top-lang, .top-bg { font-weight: 700; font-size: 12.5px; letter-spacing: .05em; color: var(--text); }
.top-bg { color: var(--green); }
.top-div { width: 1px; height: 12px; background: var(--line); }
.lang-wrap { position: relative; }
.lang-menu { display: none; position: absolute; top: calc(100% + 10px); right: -6px; min-width: 84px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lang-menu.show { display: block; }
.lang-menu button { display: block; width: 100%; padding: 10px 16px; text-align: center;
  font-weight: 700; font-size: 13px; color: var(--text-2); }
.lang-menu button:hover { background: rgba(30,214,95,.12); color: var(--text); }

/* ---------- 01. 메인 ----------
   키비주얼은 비율 그대로 노출(크롭 없음) — 어떤 비율의 KV가 와도 안전 */
.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; background: #000; }
/* KV 하단을 블랙으로 자연스럽게 연장 (경계선 제거) */
.hero-kv-wrap { position: relative; }
.hero-kv-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55) 55%, #000); pointer-events: none; }
.hero-kv { width: 100%; display: block; }
.hero-content { position: relative; padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
  margin-top: auto; text-align: center;
  display: flex; flex-direction: column; align-items: stretch; gap: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0), #000 60px); }
.hero-overview { display: flex; flex-direction: column; gap: 6px; }
.hero-date { font-weight: 700; font-size: 21px; color: var(--text); line-height: 1.35; text-wrap: balance; }
.hero-addr { color: var(--text); font-size: 14.5px; }
.hero-period { font-weight: 700; font-size: 16px; color: var(--green); letter-spacing: .02em; }

/* 미확정 날짜/시간 강조 — 하이라이트 대신 그린 텍스트 + 볼드 */
mark.hl { background: none; color: var(--green); font-weight: 700; }

/* ---------- 02. 행사 소개 ----------
   락업/카피는 일반 흐름, KV는 콘텐츠 래퍼에 absolute + sticky 로 뒤에 플로팅
   (스크롤 시 KV가 화면 상단에 붙어 있고 콘텐츠가 그 위를 떠서 지나감) */
.page-fg { position: relative; z-index: 1; }
.fg-lockup { position: relative; display: block; width: min(64%, 300px); margin: 0 auto 44px; }
.intro-copy { position: relative; }
.intro-copy { color: var(--text); font-weight: 700; font-size: 22px; line-height: 1.45; white-space: pre-line;
  text-align: center; padding: 0 20px; margin-bottom: 28px; }
/* 날짜+장소는 카피와 동일 폰트, 주소만 작은 폰트 + 회색 */
.intro-place-main { color: var(--text); font-weight: 700; font-size: 22px; line-height: 1.45;
  white-space: pre-line; text-align: center; padding: 0 20px; margin-bottom: 0; }
.intro-place-addr { color: var(--text-2); font-size: 14px; white-space: pre-line;
  text-align: center; margin: 0 20px 72px; }

.content-wrap { position: relative; padding-top: 96px; }   /* 락업 상단 여백 (margin-collapse 방지) */
/* mix-blend-lighten: 배경의 어두운 영역은 블랙에 녹고, 겹친 흰 텍스트는 뚫고 보임 */
.bg-float { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: lighten; }
.bg-float-sticky { position: sticky; top: 0; }
/* 이미지가 구간보다 길면 sticky 고정 거리가 0이 되므로, 화면 높이만큼만 표시 */
.bg-float img { width: 100%; height: 100dvh; object-fit: cover; object-position: top; display: block; }
/* KV 하단을 어둡게 눌러 위로 지나가는 콘텐츠의 가독성 확보 */
.bg-float-sticky::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.6) 55%, rgba(0,0,0,.92) 85%, #000); }
/* 앞 레이어 콘텐츠는 KV 위로. KV 스크롤 범위는 content-wrap(상세 영역 끝)까지 —
   그 아래(Step 1~)는 블랙 배경 */
.content-wrap .intro-place-main, .content-wrap .intro-place-addr, .content-wrap .detail { position: relative; }
.detail { padding: 18px 20px 6px; display: flex; flex-direction: column; gap: 14px; }
/* 상세 카드 확정안(BOX 1): 화이트 15% 반투명 박스 + 화이트 텍스트 */
.detail-block { background: rgba(255,255,255,.15); border-radius: var(--radius); padding: 16px 18px; }
.detail-block p, .detail-block .cautions li { color: var(--text); }
/* 제목(운영 시간/응모 기간/응모 조건/당첨자 발표)만 외곽선 필 */
.detail-block h3 { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green);
  border: 1px solid var(--green); border-radius: 999px; padding: 4px 14px;
  margin-bottom: 10px; letter-spacing: .02em; }
.detail-block p { color: var(--text-2); font-size: 13.5px; }
.cautions { list-style: none; margin-top: 14px; }
.cautions li { position: relative; padding-left: 16px; color: var(--text-3); font-size: 12.5px; margin-bottom: 7px; }
.cautions li:last-child { margin-bottom: 0; }
.cautions li::before { content: '※'; position: absolute; left: 0; top: 0; }
.step-heading { font-size: 18px; font-weight: 700; margin: 34px 0 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.step-heading:first-child, .section-title + .step-heading { margin-top: 0; padding-top: 0; border-top: 0; }
/* STEP 챕터 타이틀 아래 첫 소제목 간격 */
#step-form .section-title { margin-bottom: 30px; }

/* ---------- 공통 헤더 — 타이틀 바 없이 뒤로가기 버튼만 플로팅 ---------- */
.navbar { position: sticky; top: 0; z-index: 10; height: 0; padding: 0; background: none; }
.nav-back { position: absolute; top: 10px; left: 12px; width: 40px; height: 40px;
  display: grid; place-items: center; font-size: 22px; color: var(--text);
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px); border-radius: 50%; }
.nav-title { display: none; }
.nav-faq { font-weight: 700; font-size: 13px; color: var(--text-2); letter-spacing: .06em; padding: 8px 10px; }

.section { padding: 24px 20px 48px; }
/* 타이틀 바 제거 후, 헤더 바로 아래에서 시작하는 본문은 플로팅 버튼과 겹치지 않게 */
.navbar + .section { padding-top: 66px; }
.section-title { font-weight: 700; font-size: 22px; line-height: 1.35; margin-bottom: 6px; text-wrap: balance; }
.section-sub { color: var(--text-2); font-size: 14px; margin-bottom: 26px; white-space: pre-line; }

/* ---------- 폼 ---------- */
.field { margin-bottom: 26px; }
.field-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.field-label .req, .step-heading .req { color: var(--accent); margin-left: 3px; }
.field-label .opt { color: var(--text-3); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; outline: none; appearance: none; }
/* 브라우저 자동완성(autofill) 시 흰색/연노랑 배경 방지 */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 99999s ease-out; }
/* 셀렉트 옵션 목록 (Windows/Android 계열) */
.field select option { background: var(--surface-2); color: var(--text); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b3b3b6' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field select:invalid { color: var(--text-3); }
.field input:focus, .field select:focus { border-color: var(--green); }
.field.error input, .field.error select, .field.error .upload-box { border-color: var(--danger); }
.field-hint { color: var(--text-3); font-size: 12.5px; margin-top: 8px; white-space: pre-line; }
.field-error { display: none; color: var(--danger); font-size: 12.5px; margin-top: 8px; }
.field.error .field-error { display: block; }

/* 성별 — 선택형(라디오) */
.radio-row { display: flex; gap: 28px; padding: 6px 2px; }
.radio { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14.5px; color: var(--text-2); }
.radio input { position: absolute; opacity: 0; }
.radio i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  display: inline-block; position: relative; transition: .15s; flex: none; }
.radio input:checked + i { border-color: var(--green); }
.radio input:checked + i::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--green); }
.radio input:checked ~ span { color: var(--text); font-weight: 700; }
.radio input:focus-visible + i { outline: 2px solid var(--green); outline-offset: 2px; }

/* 참여 희망 이유 */
.reason-desc { color: var(--text); font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.reason-desc .req-green { color: var(--green); }
.reason-wrap { position: relative; }
.reason-wrap textarea { width: 100%; padding: 14px 16px 34px; resize: vertical; min-height: 150px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; outline: none; }
/* 글자 수 조건: 미충족 회색(기본) → 충족(200~300자) 시 녹색 */
.reason-wrap.ok textarea, .reason-wrap.ok textarea:focus { border-color: var(--green); }
.reason-count { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: var(--text-3);
  font-variant-numeric: tabular-nums; pointer-events: none; }
.reason-wrap.ok .reason-count { color: var(--green); }

.nav-spacer { display: none; }

/* 업로드 */
.upload-box { border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 18px 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: .15s; }
.upload-box:hover { border-color: var(--text-3); }
.upload-box.has-file { border-style: solid; border-color: var(--green); }
.upload-thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-2);
  display: grid; place-items: center; color: var(--text-3); font-size: 20px; overflow: hidden; flex: none; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-text { flex: 1; min-width: 0; }
.upload-text b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-text small { color: var(--text-3); font-size: 12px; }
.link-example { font-size: 13px; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.upload-guide { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface);
  color: var(--text-2); font-size: 12.5px; white-space: pre-line; }

/* ---------- 유의사항 — 타이틀 간격 + 세부 내용 박스 처리 ---------- */
#step-notice .section-title { margin-bottom: 50px; }
.notice-group { margin-bottom: 40px; }
.notice-group h3 { font-size: 16px; font-weight: 700; margin: 30px 0 14px; }
.notice-group:first-child h3 { margin-top: 0; }
.notice-group ul { list-style: none; background: var(--surface); border-radius: var(--radius); padding: 18px 16px; }
.notice-group li { position: relative; padding-left: 14px; color: var(--text-2); font-size: 13.5px; margin-bottom: 9px; }
.notice-group li::before { content: ''; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.notice-group ul.notice-sub { background: none; border-radius: 0; margin: 8px 0 4px; padding: 0 0 0 2px; border-left: 2px solid var(--line); }
.notice-sub li { color: var(--text-3); font-size: 12.5px; line-height: 1.55; margin-bottom: 6px; padding-left: 14px; }
.notice-sub li::before { content: '-'; background: none; width: auto; height: auto; top: 0; left: 4px; border-radius: 0; color: var(--text-3); }
/* 위계 강조: ※ 질문 줄은 소제목, '대한민국 국적자:' 등 라벨은 볼드 */
.notice-sub li.sub-head { color: var(--text); font-weight: 700; font-size: 13px; padding-left: 0; margin: 10px 0 7px; }
.notice-sub li.sub-head::before { content: none; }
.notice-sub li b { color: var(--text-2); font-weight: 700; }

/* ---------- 약관 체크 ---------- */
.agree-list { display: flex; flex-direction: column; }
.agree-item { display: flex; align-items: center; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.agree-check { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; transition: .15s; }
.agree-check svg { width: 13px; height: 10px; stroke: var(--bg); stroke-width: 2.5; fill: none; opacity: 0; }
.agree-item[aria-checked="true"] .agree-check { background: var(--green); border-color: var(--green); }
.agree-item[aria-checked="true"] .agree-check svg { opacity: 1; }
.agree-label { flex: 1; font-size: 14.5px; text-align: left; }
.agree-badge { font-size: 12px; font-weight: 700; color: var(--danger); margin-left: 6px; }
.agree-detail { font-size: 13px; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; flex: none; }
.agree-warn { display: none; color: var(--danger); font-size: 13px; margin-top: 14px; }
.agree-warn.show { display: block; }

/* ---------- 버튼 ---------- */
.btn { display: block; width: 100%; height: 54px; border-radius: 999px;
  font-weight: 700; font-size: 16px; transition: .15s; }
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: var(--green-press); }
.btn-primary:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
/* 응모 기간 외 CTA 비활성 (준비중/마감) */
.btn-primary.cta-disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
.btn-primary.cta-disabled:hover { background: var(--surface-2); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-row { display: flex; gap: 10px; }
.sticky-cta { position: sticky; bottom: 0; padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, #000 38%); }
/* 유의사항: 확인 버튼은 화면 고정 없이 문서 흐름 맨 끝에 — 끝까지 스크롤해야 보임 */
#step-notice .sticky-cta { position: static; background: none; }

/* 거주지 선택 버튼 — 연락처 국가 선택과 동일 계열 디자인 */
.region-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; text-align: left; }
.region-btn.placeholder { color: var(--text-3); }
.region-arrow { color: var(--text-3); flex: none; }
.field.error .region-btn { border-color: var(--danger); }

/* ---------- 연락처 국가 번호 선택 ---------- */
.phone-row { display: flex; gap: 8px; }
.phone-row input { flex: 1; min-width: 0; }
.dial-btn { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px; height: 52px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14.5px; color: var(--text); white-space: nowrap; }
.dial-search { width: 100%; height: 44px; margin-bottom: 12px; padding: 0 14px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14px; outline: none; }
.dial-search:focus { border-color: var(--green); }
.dial-list { display: flex; flex-direction: column; }
.dial-item { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.dial-item:hover { background: rgba(30,214,95,.08); }
.dial-num { color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- 팝업 ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.7);
  display: none; align-items: flex-end; justify-content: center; }
.overlay.show { display: flex; }
.popup { width: 100%; max-width: var(--maxw); background: var(--surface-2);
  border-radius: 20px 20px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 82dvh; display: flex; flex-direction: column; animation: rise .22s ease; }
@keyframes rise { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .popup { animation: none; } }
.popup h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.popup-body { overflow-y: auto; color: var(--text-2); font-size: 13.5px; white-space: pre-line; margin-bottom: 20px;
  padding-right: 6px; scrollbar-width: thin; scrollbar-color: #3a3a3e transparent; }
/* 모달 스크롤 바: 트랙(배경)은 팝업 배경색 그대로, 진한 회색 바만 은은하게 */
.popup-body::-webkit-scrollbar { width: 4px; }
.popup-body::-webkit-scrollbar-track { background: transparent; }
.popup-body::-webkit-scrollbar-thumb { background: #3a3a3e; border-radius: 999px; }

/* 약관 전문 모달: 끝까지 스크롤해야 [동의하기] 버튼 노출 */
#btn-agree-detail.gate-hidden { visibility: hidden; }
/* 약관 전문 (Scroll Text View) */
.terms-body { white-space: normal; max-height: 58dvh; }
.terms-body .tt-p { display: block; font-size: 13px; line-height: 1.75; margin-bottom: 4px; }
.terms-body .tt-h { display: block; color: var(--text); font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.terms-body .tt-h:first-child { margin-top: 0; }
.terms-body .tt-gap { display: block; height: 10px; }

/* 예시 이미지 팝업 */
.example-body { text-align: center; }
.example-body img { margin: 0 auto 14px; border-radius: 12px; max-height: 62dvh; width: auto; max-width: 100%; }
.example-body img:last-child { margin-bottom: 0; }

/* OCR 경고 모달 */
.ocr-reasons { list-style: none; text-align: left; margin: 0 0 14px; }
.ocr-reasons li { position: relative; padding-left: 14px; color: var(--text); font-size: 14px; margin-bottom: 8px; }
.ocr-reasons li::before { content: '·'; position: absolute; left: 2px; font-weight: 700; color: var(--danger); }
.ocr-detected { display: inline-block; margin-top: 4px; color: var(--green); font-size: 13px; }
.ocr-disclaimer { color: var(--text-3); font-size: 12.5px; text-align: left; margin-bottom: 20px; line-height: 1.6; }

.popup-center { align-items: center; }
.popup-center .popup { border-radius: 20px; max-width: min(var(--maxw), calc(100% - 40px)); text-align: center; }
.popup-center .popup p { color: var(--text-2); font-size: 14px; margin-bottom: 22px; white-space: pre-line; }

/* ---------- 로딩 — CSS 링 스피너 (정원형 보장) ---------- */
.loading { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.85);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.loading.show { display: flex; }
.spinner-ring { width: 52px; height: 52px; flex: none; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.16); border-top-color: #fff;
  animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--text-2); font-size: 14px; }

/* ---------- 완료 ---------- */
.done { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px; gap: 14px; }
.done-logo { width: min(64%, 280px); margin-bottom: 10px; }
.done h2 { font-size: 24px; font-weight: 700; }
.done p { color: var(--text-2); font-size: 14.5px; white-space: pre-line; }
.done-btn { width: min(100%, 240px); margin-top: 16px; }

/* ---------- FAQ 페이지 ---------- */
.faq-list { padding: 8px 20px 60px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 2px; text-align: left; font-size: 14.5px; font-weight: 500; }
.faq-q::after { content: '+'; font-size: 20px; color: var(--text-3); flex: none; transition: .15s; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 2px 18px; color: var(--text-2); font-size: 13.5px; white-space: pre-line; }
.faq-item.open .faq-a { display: block; }
.faq-contact { padding: 26px 20px 60px; color: var(--text-3); font-size: 13px; text-align: center; }
.faq-contact a { color: var(--text-2); font-weight: 700; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
