/* ============================================================
   범놀이터 AIOS — 신청서 (diagnosis.html) 다크 테마 v10
   course.css 위에 얹는 신청서 전용 스타일
   톤앤매너: 블랙 배경 · #48ff90 포인트 · 8px 라운드 · Pretendard
   ============================================================ */

/* ---------- 헤더 진행 표시 ---------- */
.apply-progress { display: flex; align-items: center; gap: 10px; }
.apply-progress .progress-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.apply-progress .progress-track {
  width: 140px;
  height: 6px;
  background: var(--secondary);
  border-radius: 999px;
  overflow: hidden;
}
.apply-progress .progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ---------- 레이아웃 ---------- */
.apply-wrap { padding-bottom: 0; }
.apply-main { padding: 48px 24px 96px; min-height: calc(100vh - var(--header-h)); }

.step-wrap { display: none; }
.step-wrap.active { display: block; animation: stepIn 0.3s ease; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 질문 카드 (course.css 의 .step-card 를 신청서용으로 덮어씀) */
.apply-main .step-card {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.step-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}
.step-question {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 10px;
}
.step-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
}
.step-sub strong { color: #fff; }

/* ---------- 인트로 ---------- */
.apply-intro { text-align: left; }
.intro-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-foreground);
  background: var(--primary);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.apply-intro h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.intro-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 28px;
}
.intro-desc strong { color: #fff; }

.intro-points { display: grid; gap: 12px; margin-bottom: 28px; }
.intro-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.intro-points .check-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

.apply-intro .btn-apply { margin-top: 8px; }
.intro-note { margin-top: 12px; font-size: 14px; color: var(--muted-foreground); text-align: center; }
.link-kakao {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 운영자 메시지 */
.founder-note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}
.founder-note .fn-title { font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.founder-note p + p { margin-top: 8px; }
.founder-note strong { color: #fff; }

/* ---------- 선택 옵션 ---------- */
.option-list { display: grid; gap: 10px; }
.opt-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.15s, background 0.15s;
}
.opt-btn strong { font-size: 16px; font-weight: 700; color: #fff; }
.opt-btn span { font-size: 14px; color: var(--muted-foreground); }
.opt-btn:hover { border-color: rgba(72, 255, 144, 0.6); }
.opt-btn.selected { border-color: var(--primary); background: rgba(72, 255, 144, 0.08); }
.opt-btn.selected strong { color: var(--primary); }

/* ---------- 폼 ---------- */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.5;
}
.form-group label .req { color: var(--primary); }
.form-group label .opt-tag { font-weight: 400; font-size: 13px; color: var(--muted-foreground); }

.form-group input,
.form-group textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #6e6e75; }
.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(72, 255, 144, 0.18); }
.form-group input.error,
.form-group textarea.error { border-color: #ff5d5d; }

.form-error { display: block; min-height: 16px; margin-top: 6px; font-size: 13px; color: #ff6b6b; }
.form-hint { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--muted-foreground); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.example-box {
  background: var(--secondary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.example-box .ex-title { font-weight: 700; color: #fff; margin-bottom: 4px; }
.example-box strong { color: #fff; }

/* 칩 */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.selected { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

/* 보증금 안내 */
.deposit-note {
  background: rgba(72, 255, 144, 0.06);
  border: 1px solid rgba(72, 255, 144, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 18px 0 6px;
}
.deposit-note .dn-title { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.deposit-note p { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.8); }
.deposit-note p + p { margin-top: 6px; }
.deposit-note strong { color: #fff; }
.deposit-note .dn-sub { font-size: 13px; color: var(--muted-foreground); }

/* 신청 종류: 무료 진단(기본) / 오프라인 5만 원 */
body:not(.is-offline) .only-offline { display: none !important; }
body.is-offline .only-free { display: none !important; }

.type-choice { display: grid; gap: 10px; margin: 4px 0 24px; }
.type-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  width: 100%; text-align: left;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}
.type-card:hover { border-color: rgba(72, 255, 144, 0.6); }
.type-card.is-on { border: 2px solid var(--primary); background: rgba(72, 255, 144, 0.07); padding: 17px 19px; }
.type-tag { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--secondary); color: rgba(255,255,255,0.85); }
.type-tag--free { background: var(--primary); color: var(--primary-foreground); }
.type-head { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 10px; }
.type-head strong { font-size: 19px; font-weight: 800; color: #fff; }
.type-head b { font-size: 18px; font-weight: 800; color: #fff; white-space: nowrap; }
.type-card.is-on .type-head b { color: var(--primary); }
.type-desc { font-size: 14px; color: var(--muted-foreground); }
.type-list { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }

.done-upsell {
  text-align: left;
  margin: 0 0 24px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}
.done-upsell p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); margin-bottom: 14px; }
.done-upsell b { color: #fff; }
.done-upsell .btn-outline { max-width: none; }

/* 우측 패널: 무료 진단 박스 */
.aside-free { padding: 14px 16px; border-radius: 12px; background: rgba(72, 255, 144, 0.08); border: 1px solid rgba(72, 255, 144, 0.45); }
.aside-free span { display: block; font-size: 12px; font-weight: 700; color: var(--primary); }
.aside-free p { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.aside-free strong { font-size: 20px; font-weight: 800; color: #fff; }
.aside-mini-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* 헤더 진행바 — 메뉴와 함께 배치 */
.header-actions .apply-progress .progress-track { width: 100px; }
@media (max-width: 480px) {
  .header-actions .apply-progress .progress-text { display: none; }
  .header-actions .apply-progress .progress-track { width: 64px; }
}

/* 신청서 내 입금 계좌 */
.apply-intro h1 .hl { font-style: normal; color: var(--primary); }
.pay-inline, .done-pay {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #0f0f11;
  border: 1px dashed var(--border);
}
.done-pay { text-align: left; margin: 0 0 24px; }
.pay-inline .pay-account, .done-pay .pay-account { font-size: 17px; margin: 2px 0; color: #fff; }
.pay-account strong { margin-right: 8px; }
.pay-holder { font-size: 13px; color: var(--muted-foreground); }
.done-pay .pay-label { font-size: 12px; color: var(--muted-foreground); }
.pay-copy { margin-top: 10px; height: 38px; padding: 0 14px; border-radius: var(--radius-md); background: var(--secondary); font-size: 14px; font-weight: 600; color: #fff; }
.pay-copy.is-copied { background: var(--primary); color: var(--primary-foreground); }

/* 동의 */
.agree-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.85); margin-bottom: 6px; }
.agree-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.agree-detail-btn { font-size: 13px; color: var(--primary); text-decoration: underline; padding: 0; margin-left: 4px; }
.privacy-detail { background: var(--secondary); border-radius: var(--radius-md); padding: 14px 18px; margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted-foreground); }

/* ---------- 네비게이션 버튼 ---------- */
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }

.btn-prev {
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: border-color 0.15s, color 0.15s;
}
.btn-prev:hover { border-color: #fff; color: #fff; }

.btn-next,
.btn-submit {
  flex: 1;
  max-width: 280px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) { background: var(--primary-hover); }
.btn-next:disabled,
.btn-submit:disabled { background: var(--secondary); color: #6e6e75; cursor: not-allowed; }
.btn-submit { width: 100%; max-width: none; }

/* ---------- 완료 화면 ---------- */
.done-wrap { text-align: center; padding-top: 24px; }
.done-icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 32px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.done-title { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.done-desc { font-size: 16px; line-height: 1.8; color: rgba(255, 255, 255, 0.78); margin-bottom: 32px; }
.done-desc strong { color: #fff; }
.done-summary { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 28px; }
.done-summary .ds-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.done-summary .ds-item { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.done-summary .ds-item:last-child { border-bottom: 0; }
.done-summary .ds-item span { width: 110px; flex-shrink: 0; color: var(--muted-foreground); }
.done-summary .ds-item strong { font-weight: 600; color: #fff; }
.done-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 360px; height: 48px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 16px; font-weight: 600;
  transition: background 0.15s;
}
.btn-outline:hover { background: rgba(72, 255, 144, 0.08); }

/* ---------- 우측 패널 추가 요소 ---------- */
.aside-checks { display: grid; gap: 10px; }
.aside-checks li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.aside-checks li::before {
  content: '';
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.aside-checks strong { color: #fff; }
.btn-aside-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px; font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}
.btn-aside-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 반응형 ---------- */
@media (max-width: 767px) {
  .apply-main { padding: 36px 20px 72px; }
  .apply-intro h1 { font-size: 27px; }
  .step-question { font-size: 23px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .apply-progress .progress-track { width: 80px; }
}
@media (max-width: 480px) {
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn-prev,
  .step-nav .btn-next { width: 100%; max-width: none; }
  .done-summary .ds-item { flex-direction: column; gap: 2px; }
}
