/* 즉시 진단 위젯 · 결과 (style.css 다음에 읽는다) */
.dg { min-width: 0; }
.dg-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: st; }
.dg-steps li { counter-increment: st; font-size: 14.5px; font-weight: 700; color: #A3B3CC; padding: 10px 0 0; border-top: 3px solid rgba(255, 255, 255, .15); }
.dg-steps li::before { content: counter(st) ". "; }
.dg-steps li.on { color: var(--gold-hi); border-top-color: var(--gold); }
.dg-steps.two-s { grid-template-columns: repeat(2, 1fr); }
.dg .field label { font-size: 15px; }
.dg .field small, .rs-panel .field small { font-size: 14px; }
.dg .form-note { font-size: 16px; line-height: 1.6; text-wrap: balance; }
/* 오류 안내·필수 별표 — 공용 --bad(#E5484D)는 흰 바탕에서 3.9:1이라 글자는 진한 빨강(6.5:1) */
.dg .form-msg, .rs-panel .form-msg { color: #B4232A; font-size: 16px; line-height: 1.5; }
.dg .field em { color: #B4232A; }
.dg-search { display: flex; gap: 8px; }
.dg-search input { flex: 1; min-width: 0; }
.dg-search .btn { padding: 0 22px; font-size: 16px; }
.dg-cands { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.dg-cands button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px; cursor: pointer; font: inherit; color: var(--ink); line-height: 1.5; }
.dg-cands button:hover, .dg-cands button:focus-visible { border-color: var(--gold); background: #FFF8E8; }
.dg-cands small { color: var(--ink-2); font-size: 14px; }
.dg-cands em { font-style: normal; font-weight: 800; color: #9A6510; font-size: 15px; white-space: nowrap; }
.dg-note { color: var(--ink-2); font-size: 15px; padding: 6px 2px; }
.dg-store { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 12px; padding: 13px 16px; margin-bottom: 18px; }
.dg-store b { display: block; font-size: 17px; }
.dg-store small { color: var(--ink-2); font-size: 14px; }
.dg-pin { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px rgba(18, 161, 80, .16); }
.dg-nojs p { color: var(--ink-2); }
.dg-nojs .btn { margin-top: 8px; }
/* 동의 — '모두 동의' 줄은 크게, 켜지면 금색으로 바로 보이게 */
.consent { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 14px 10px; margin: 6px 0 10px; }
.consent label { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; font-size: 15px; line-height: 1.45; }
.consent input { width: 20px; height: 20px; accent-color: var(--gold-lo); flex: none; cursor: pointer; }
.consent .c-all { margin: 0 -6px 4px; padding: 12px 12px; border-radius: 10px; background: var(--soft); border: 1.5px solid transparent; font-size: 16px; transition: background .2s, border-color .2s; }
.consent .c-all input { width: 22px; height: 22px; }
.consent .c-all:has(input:checked) { background: #FFF6E0; border-color: var(--gold); }
.c-all small { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.c-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 0; }
.c-row small { display: inline-block; color: var(--ink-2); font-size: 14px; } /* 괄호 안은 한 덩어리로 */
.c-row em { font-style: normal; font-weight: 800; color: #9A6510; }
.c-row .link { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 4px; font-size: 15px; }
.c-text { background: var(--soft); border-radius: 10px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); white-space: pre-line; margin-bottom: 6px; line-height: 1.7; }
.c-note { margin: 6px 0 2px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.dg-back { display: block; min-height: 44px; margin: 6px auto 0; padding: 0 10px; font-size: 15px; }
.dg-run { text-align: center; }
.radar { position: relative; width: 158px; margin: 0 auto 8px; }
.radar img { position: relative; width: 150px; margin: 4px; border-radius: 50%; background: var(--sky); }
.radar::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(230, 174, 63, .15) 80%, var(--gold) 100%); -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 90%); mask: radial-gradient(closest-side, transparent 88%, #000 90%); animation: radar 1.6s linear infinite; }
@keyframes radar { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .radar::before { animation: none; } }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 16px 0 10px; }
.bar i { display: block; height: 100%; width: 4%; background: var(--gold-grad); border-radius: inherit; transition: width .6s ease; }
.dg-label { font-weight: 700; color: var(--ink-2); min-height: 1.5em; margin: 0; }

/* 버튼 · 무료 마케팅 고르기 — 결과 대시보드(report/)의 신청 창이 쓴다 */
.dg .btn, .sheet .btn { font-family: inherit; letter-spacing: inherit; } /* button 은 글꼴을 물려받지 않는다 */
.btn-line { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-navy { background: var(--navy-2); color: #fff; box-shadow: 0 8px 22px rgba(6, 27, 62, .22); }
.btn-navy:hover { background: var(--navy-3); }
.btn-outline { background: #fff; color: var(--navy-2); border: 1.5px solid var(--navy-2); }
.btn-outline:hover { background: var(--sky-2); }
.btn-navy.on, .btn-outline.on { outline: 3px solid #2A62CC; outline-offset: 3px; } /* 흰 바탕 — 금색 테두리는 1.5:1 이라 안 보임 */
.rs-media { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.rs-media legend, .when legend { padding: 0; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; margin-bottom: 20px; }
.rs-media legend small { font-size: 15px; color: var(--ink-3); font-weight: 600; margin-left: 8px; }
.rs-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rs-opt { position: relative; display: grid; gap: 16px; align-content: start; cursor: pointer; }
.rs-opt-art { display: block; background: var(--sky); border-radius: 200px 200px 22px 22px; overflow: hidden; aspect-ratio: 1 / .86; outline: 3px solid transparent; outline-offset: 4px; transition: outline-color .2s; }
.rs-opt-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.rs-opt:hover .rs-opt-art img { transform: scale(1.04); }
.rs-opt:has(input:checked) .rs-opt-art { outline-color: var(--navy-2); }
.rs-opt:has(input:focus-visible) .rs-opt-art { outline-color: #2A62CC; }
.rs-opt input { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; margin: 0; accent-color: var(--navy-2); }
.rs-opt-txt { display: grid; gap: 5px; }
.rs-rec { justify-self: start; padding: 3px 11px; border-radius: 999px; background: var(--navy-2); color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.rs-opt-name { font-size: 15px; font-weight: 800; color: #2F6BD8; }
.rs-opt b { font-size: 21px; letter-spacing: -0.03em; }
.rs-ev { font-size: 15px; font-weight: 700; color: #0E7A3D; }
.rs-ev.weak { color: #C7343A; } .rs-ev.info { color: #1F56B8; }
.rs-opt small { font-size: 17px; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.rs-sponsor { max-width: 720px; margin: 0 0 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.rs-sponsor b { color: var(--ink); }
.cs-who { margin: 0 0 22px; font-size: 18px; color: var(--ink-2); }
.cs-who b { color: var(--ink); }
.when { border: 0; padding: 0; margin: 0 0 18px; }
.when legend { font-size: 18px; margin-bottom: 12px; }
.chips-r { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-r label { cursor: pointer; }
.chips-r input { position: absolute; opacity: 0; }
.chips-r span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 16px; transition: background .2s, border-color .2s; }
.chips-r input:checked + span { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.chips-r input:focus-visible + span { outline: 3px solid #2A62CC; outline-offset: 2px; }
.next-done { display: grid; justify-items: start; gap: 8px; padding: 6px 0; }
.next-done > b { font-size: 26px; letter-spacing: -0.03em; }
.next-done p b { color: var(--ink); }
.next-done p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 620px; }
.ck { width: 64px; height: 64px; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke: var(--good); }
/* 진단 칸 위에선 떠 있는 버튼을 숨긴다 — 좁은 화면에서 '진단하기' 버튼과 겹친다 */
@media (max-width: 1280px) { .in-dg .fab a, .in-dg .fab.scrolled .fab-top { opacity: 0; pointer-events: none; } }

/* 결과 화면으로 넘어가는 막 — 랜딩에서 아래→위로 덮고(diagnose.js), 결과 화면에서 위로 걷힌다(report.js) */
.dg-cover, .db-cover { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; color: #fff; text-align: center;
  background: radial-gradient(700px 500px at 50% 35%, #154287 0%, transparent 65%), linear-gradient(180deg, #061B3E, #04122B); }
.db-cover { display: none; }
.from-dg .db-cover { display: grid; }
.dg-cover-in { display: grid; justify-items: center; gap: 10px; padding: 24px; }
.dg-cover-in b { font-size: clamp(24px, 4vw, 34px); font-weight: 900; letter-spacing: -0.04em; }
.dg-cover-in small { font-size: 16px; color: #B9C7DD; }
.dg-cover-ring { width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .12); border-top-color: var(--gold); animation: radar 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .dg-cover-ring { animation: none; } }
.dg-fail { display: grid; gap: 4px; margin-top: 18px; }

/* 매장 / 쇼핑 진단 고르기 (11-09) — 남색 신청 칸 위, 진단 순서 줄 위 */
.dg-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.dg-seg[hidden] { display: none; }
.dg-seg button { display: grid; gap: 1px; justify-items: center; min-height: 56px; padding: 8px 10px; border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .04); color: #E6ECF5; font: inherit; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; cursor: pointer; transition: background .2s, border-color .2s; }
.dg-seg button small { font-size: 13px; font-weight: 600; color: #A3B3CC; }
.dg-seg button:hover { border-color: rgba(255, 255, 255, .4); }
.dg-seg [aria-selected="true"] { border-color: var(--gold); background: rgba(230, 174, 63, .14); color: var(--gold-hi); }
.dg-seg [aria-selected="true"] small { color: #E8D3A0; }
.dg-seg button:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
#dgShop .form-msg:empty { display: none; }
#dgShop .form-msg { margin: 0 0 12px; }
