/* 예산 진단 페이지. 기본 틀(헤더·버튼·하단)은 ../main.css를 쓰고, 여기에는 이 페이지에만 필요한 것만 둡니다.
   형태: 각진 버튼, 얇은 선, 넉넉한 여백 / 색: 로고 네이비·오렌지 */

nav a[aria-current="page"] { color: var(--accent); }

/* 첫 화면 */
.check-hero { padding: 84px max(6%, calc((100vw - 1180px) / 2)) 76px; background: var(--navy); color: #fff; }
.check-hero .eyebrow { margin-bottom: 20px; color: var(--orange-light); }
.check-hero h1 { margin-bottom: 22px; font-size: clamp(36px, 4.2vw, 58px); letter-spacing: -2.4px; }
.check-hero-sub { max-width: 620px; margin: 0; color: #c6cfe2; font-size: 17px; line-height: 1.85; }
.check-hero-sub b { color: #fff; font-weight: 600; }
.check-hero-promise { display: inline-block; margin: 0 0 18px; padding: 10px 18px; background: #ffffff14; border-left: 3px solid var(--orange); color: #fff; font-size: 17px; font-weight: 700; }

/* 질문 */
.check-form-wrap { padding-top: 64px; padding-bottom: 72px; }
.check-form { max-width: 820px; }
.q { margin: 0 0 44px; padding: 0; border: 0; }
.q legend { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; padding: 0; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.q legend span { color: var(--accent); font: 22px Georgia, serif; }
.options { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.options label { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* 라디오 버튼은 화면에서 감추고 칸 전체를 누를 수 있게 합니다 (키보드·화면낭독기는 그대로 사용 가능) */
.options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.options span { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 10px 8px; font-size: 15px; font-weight: 600; text-align: center; transition: background .15s, color .15s; }
.options label:hover span { background: #f3f5f9; }
.options input:checked + span { background: var(--navy); color: #fff; }
.options input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: -3px; }

.exact { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.exact input { width: 160px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: 600 17px 'Noto Sans KR', sans-serif; text-align: right; }
.exact input:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.submit { min-width: 240px; border: 0; cursor: pointer; font-family: inherit; }

/* 결과 */
.check-results { padding-top: 72px; background: #f6f7fa; border-top: 1px solid var(--line); }
.result-list { display: grid; gap: 22px; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 34px; padding: 30px 32px; background: #fff; border-top: 3px solid var(--navy); box-shadow: 0 1px 0 var(--line); }
.result.is-over { border-top-color: #b5bdc9; }
.result-tag { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.result h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.4; letter-spacing: -.6px; }
.fit { display: inline-block; padding: 6px 12px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.fit-ok { background: var(--navy); color: #fff; }
.fit-later, .fit-contract, .fit-first { border: 1px solid var(--accent); color: var(--accent); }
.fit-tight { background: var(--orange); color: var(--navy); }
.fit-unknown, .fit-over { background: #eceff4; color: var(--muted); }
.featured { display: inline-block; margin-left: 8px; padding: 6px 10px; background: var(--orange); color: var(--navy); font-size: 12px; font-weight: 700; }
.sample { display: inline-block; margin-left: 8px; padding: 6px 10px; border: 1px dashed #b5bdc9; color: var(--muted); font-size: 12px; font-weight: 600; }
.result-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.money { margin: 0; border-top: 1px solid var(--line); }
.money > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.money dt { color: var(--muted); }
.money dt small { display: block; font-size: 12px; }
.money dd { margin: 0; font-weight: 700; text-align: right; }
.money .key dt { color: var(--ink); font-weight: 600; }
.money .key dd { font-size: 19px; color: var(--navy); }
.money .muted dd { color: var(--muted); font-weight: 500; }

.result-links { display: flex; gap: 10px; margin-top: 18px; }
.result-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; font-size: 14px; font-weight: 700; }
.result-links .view { border: 1px solid var(--ink); }
.result-links .view:hover { background: #f3f5f9; }
.result-links .cta { flex: 1; background: var(--orange); color: var(--navy); }
.result-links .cta:hover { background: #ffa45c; }

.empty { padding: 34px; background: #fff; color: var(--muted); }
.empty a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.assumptions { margin-top: 30px; font-size: 14px; color: var(--muted); }
.assumptions summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.assumptions ul { margin: 14px 0 0; padding-left: 18px; line-height: 1.9; }
.assumptions b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .result { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .check-hero { padding: 40px 7% 46px; }
  .check-hero h1 { font-size: 34px; letter-spacing: -1.6px; }
  .check-hero-sub { font-size: 15px; }
  .check-hero-promise { font-size: 15px; }
  .check-form-wrap { padding-top: 40px; padding-bottom: 48px; }
  .q { margin-bottom: 34px; }
  .q legend { font-size: 18px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-5 { grid-template-columns: repeat(2, 1fr); }
  .cols-5 label:first-child { grid-column: 1 / -1; }
  .options span { min-height: 52px; font-size: 14px; }
  .exact { flex-wrap: wrap; gap: 8px; }
  .exact input { width: 100%; }
  .submit { width: 100%; }
  .check-results { padding-top: 50px; }
  .result { padding: 24px 20px; }
  .result h3 { font-size: 19px; }
  .money > div { font-size: 14px; }
  .money .key dd { font-size: 17px; }
  .result-links { flex-direction: column; }
  .result-links a { width: 100%; }
}
