/* 견적 직접 내 보기(징검다리) — 사이트와 같은 어두운 바탕 · 가는 줄 · 강조색 하나. 상자 · 둥근 카드 없이 줄로만 나눈다 */
.qt-body { min-height: 100vh; padding-bottom: 96px; }
.qt-top { position: sticky; top: 0; z-index: 30; height: 64px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; background: rgba(4,6,10,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line2); }
.qt-back { font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.qt { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad) 40px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.qt-side { position: sticky; top: 104px; }
.qt-side .eyebrow { margin-bottom: 18px; }
.qt-pct { display: flex; align-items: baseline; gap: 4px; }
.qt-pct b { font-size: 76px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.qt-pct i { font-style: normal; font-size: 26px; font-weight: 700; }
.qt-pct span { margin-left: 8px; font-size: 14px; color: var(--dim); }
.qt-bar { height: 2px; background: var(--line); margin: 18px 0 14px; } .qt-bar i { display: block; height: 100%; width: 0; background: var(--ac2); transition: width .5s var(--ease); }
.qt-now { font-size: 14px; color: var(--ac2); min-height: 22px; }
.qt-list { margin-top: 26px; border-top: 1px solid var(--line2); }
.qt-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 13px; color: #566072; }
.qt-list li.done { color: var(--dim); cursor: pointer; } .qt-list li.done:hover { color: var(--ink); } .qt-list li.on { color: var(--ink); }
.qt-list li span:last-child { text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-reset { margin-top: 22px; background: none; border: 0; padding: 0; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line); cursor: pointer; }
.qt-reset:hover { color: var(--ink); }

.qt-step { min-height: 420px; }
.qt-step.in { animation: qtIn .45s var(--ease); }
@keyframes qtIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qt-no { font-size: 13px; color: var(--ac2); letter-spacing: .06em; }
.qt-q { margin-top: 12px; font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.25; }
.qt-hint { margin-top: 14px; max-width: 40em; font-size: 15px; color: var(--dim); }
.qt-kind { margin-top: 10px; font-size: 13px; color: #566072; }
.qt-opts { margin-top: 30px; border-top: 1px solid var(--line); }
.qt-kind { display: none; }
.qt-opt { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .25s, padding .35s var(--ease); }
.qt-opt:hover { background: rgba(255,255,255,.03); }
.qt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qt-mark { width: 22px; height: 22px; border: 1px solid #5b6577; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.qt-opt[data-type=one] .qt-mark { border-radius: 50%; }
.qt-mark::after { content: ''; width: 10px; height: 10px; background: var(--bg); transform: scale(0); transition: transform .2s var(--ease); }
.qt-opt[data-type=one] .qt-mark::after { border-radius: 50%; }
.qt-opt.on .qt-mark { border-color: var(--ac2); background: var(--ac2); } .qt-opt.on .qt-mark::after { transform: scale(1); }
.qt-opt.on { padding-left: 12px; }
.qt-t { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.qt-d { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; color: var(--dim); }
.qt-p { font-size: 15px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qt-opt.on .qt-p { color: var(--ac2); }
.qt-p { text-align: right; } .qt-p s { display: block; font-size: .82em; color: #566072; text-decoration-thickness: 1px; }
.qs s { color: #8a909b; } .qs .qm { display: none; }
@media (max-width: 860px) { .qs .qreg { display: none; } .qs .qm { display: block; font-size: 11.5px; } }
@media print { .qs .qreg { display: table-cell !important; } .qs .qm { display: none !important; } }
.qt-p.zero { color: #566072; }
.qt-opt:focus-within { outline: 2px solid var(--ac2); outline-offset: 2px; }
/* 기능 묶음 제목 · 고르면 아래로 펼쳐지는 하위 선택 · 글 적는 칸 */
.qt-g { margin-top: 34px; font-size: 13px; font-weight: 600; color: var(--ac2); letter-spacing: .04em; }
.qt-g + .qt-opts { margin-top: 10px; } .qt-opts.first { margin-top: 30px; }
.qt-sub { margin-left: 42px; border-left: 1px solid var(--ac2); }
.qt-sub .qt-sub { margin-left: 38px; }
.qt-sub-h { padding: 12px 0 2px 16px; font-size: 12px; color: var(--dim); }
.qt-opt.sub { padding: 13px 4px 13px 16px; border-bottom: 1px solid var(--line2); } .qt-opt.sub.on { padding-left: 16px; }
.qt-opt.sub .qt-t { font-size: 15.5px; } .qt-opt.sub .qt-mark { width: 19px; height: 19px; } .qt-opt.sub .qt-mark::after { width: 8px; height: 8px; }
.qt-memo { margin-top: 28px; } .qt-memo textarea { min-height: 190px; border: 1px solid var(--line); padding: 16px; }
.qt-cnt { text-align: right; font-size: 12px; color: #566072; } .qt-cnt em { font-style: normal; }
.qt-memo-v { white-space: pre-wrap; color: var(--dim); }

/* 마지막 — 견적 요약과 연락처 */
.qt-total { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.qt-total div { padding: 22px 0 24px; border-bottom: 1px solid var(--line); } .qt-total div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.qt-total span { display: block; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.qt-total b { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.04em; } .qt-total b small { font-size: .5em; font-weight: 600; margin-left: 3px; }
.qt-total .hl b { color: var(--ac2); }
.qt-rows { margin-top: 26px; border-top: 1px solid var(--line); }
.qt-rows li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 14.5px; }
.qt-rows li em { font-style: normal; color: var(--dim); } .qt-rows li i { font-style: normal; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qt-form { margin-top: 34px; display: grid; gap: 22px; max-width: 560px; }
.qt-form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.qt-msg { font-size: 14px; color: #ff9d9d; min-height: 20px; }
.qt-done { padding-top: 20px; } .qt-done .qt-q { margin-top: 0; }

/* 견적서 — 흰 종이 한 장 · 가는 줄 표 · 인쇄하면 이것만 나온다 */
.qt-act { margin-top: 22px; }
.qs { margin-top: 26px; background: #fff; color: #14171c; padding: clamp(22px, 4vw, 48px); font-size: 14px; line-height: 1.6; max-width: 820px; }
.qs-title { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .18em; padding-left: .18em; }
.qs-meta { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #555b66; border-bottom: 2px solid #14171c; padding-bottom: 10px; }
.qs-top { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qs table { width: 100%; border-collapse: collapse; }
.qs-t th, .qs-t td { border: 1px solid #c9ced6; padding: 7px 10px; text-align: left; vertical-align: top; font-size: 13px; }
.qs-t th { width: 34%; background: #f3f4f6; font-weight: 600; color: #3a404a; white-space: nowrap; }
.qs-t.wide th { width: 22%; }
.qs-sum { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border: 2px solid #14171c; }
.qs-sum span { font-size: 13px; color: #3a404a; } .qs-sum b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.qs, .qs * { text-shadow: none !important; }
.qs-line { font-size: 13px; } .qs-it small { font-size: 12px; color: #555b66; }
.qs .qs-t th, .qs .qs-t td, .qs .qs-it th, .qs .qs-it td { padding: 4px 9px; } .qs .qs-h { margin: 16px 0 6px; } .qs .qs-sum { margin-top: 12px; padding: 9px 14px; } .qs .qs-note { margin-top: 14px; padding-top: 8px; } .qs .qs-top { margin-top: 12px; gap: 12px; } .qs .qs-memo { padding: 6px 10px; }
.qs-warn { margin-top: 10px; font-size: 13px; font-weight: 600; color: #14171c; }
.qs-h { margin: 24px 0 8px; font-size: 14px; font-weight: 700; }
.qs-it th, .qs-it td { border: 1px solid #c9ced6; padding: 7px 10px; font-size: 13px; text-align: left; }
.qs-it thead th { background: #f3f4f6; font-weight: 600; } .qs-it .qc { text-align: center; width: 44px; } .qs-it .qr { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qs-it tfoot th { text-align: right; background: #f9fafb; font-weight: 600; } .qs-it tfoot .tot th, .qs-it tfoot .tot td { font-weight: 800; font-size: 14.5px; border-top: 2px solid #14171c; }
.qs-it tfoot { display: table-row-group; } .qs-it tr, .qs-t tr { break-inside: avoid; } .qs-h { break-after: avoid; }
.qs-ul { padding-left: 18px; list-style: disc; } .qs-ul li { margin: 2px 0; }
.qs-memo { white-space: pre-wrap; border: 1px solid #c9ced6; padding: 10px 12px; font-size: 13px; }
.qs-note { margin-top: 20px; padding-top: 12px; border-top: 1px solid #c9ced6; font-size: 12px; color: #555b66; list-style: none; } .qs-note li { margin: 3px 0; padding-left: 10px; text-indent: -10px; } .qs-note li::before { content: '· '; }
.qt-form .qt-g { margin-top: 0; }
@media (max-width: 860px) { .qs { padding: 18px 14px; font-size: 13px; } .qs-top { grid-template-columns: 1fr; gap: 10px; } .qs-title { font-size: 22px; } .qs-sum { flex-direction: column; gap: 4px; } .qs-sum b { font-size: 19px; } .qs-it th, .qs-it td { padding: 6px 7px; font-size: 12.5px; } .qs-it .qc { width: 30px; } }
@media print {
  body.qt-body { background: #fff; padding: 0; } .grid-bg, .qt-top, .qt-side, .qt-foot, .qt-no, .qt-q, .qt-hint, .qt-act, .qt-form { display: none !important; }
  .qt { display: block; padding: 0; max-width: none; } .qs { margin: 0; padding: 0; max-width: none; } .qt-step { animation: none; }
  @page { size: A4; margin: 16mm 14mm; }
}

/* 아래 고정 줄 — 지금까지 예상 금액(담기 단추 자리) */
.qt-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(4,6,10,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.qt-foot-in { max-width: 1180px; margin: 0 auto; padding: 14px var(--pad); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.qt-prev { height: 52px; padding: 0 22px; background: none; border: 1px solid var(--line); font-size: 15px; cursor: pointer; } .qt-prev:disabled { opacity: .3; cursor: default; }
.qt-sum { display: flex; align-items: baseline; justify-content: flex-end; gap: 14px; flex-wrap: wrap; text-align: right; }
.qt-sum > span { font-size: 13px; color: var(--dim); }
.qt-sum b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--ac2); } .qt-sum b small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.qt-sum s { font-size: 13px; color: #566072; text-decoration: none; } .qt-sum s em { font-style: normal; }
.qt-sum b em { font-style: normal; }
.qt-next { height: 52px; } .qt-next:disabled { background: transparent; border-color: var(--line); color: #566072; cursor: default; } .qt-next:disabled::before { display: none; }
.qt-foot.end .qt-sum, .qt-foot.end .qt-next { visibility: hidden; }

@media (max-width: 860px) {
  .qt { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; }
  .qt-side { position: static; }
  .qt-side .eyebrow, .qt-list, .qt-reset { display: none; }
  .qt-pct b { font-size: 40px; } .qt-pct i { font-size: 18px; } .qt-bar { margin: 10px 0 8px; }
  .qt-step { min-height: 0; }
  .qt-opt { padding: 16px 2px; gap: 12px; grid-template-columns: 24px minmax(0, 1fr) auto; } .qt-t { font-size: 16px; } .qt-p { font-size: 14px; }
  .qt-foot-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 16px; }
  .qt-prev { height: 48px; padding: 0 14px; } .qt-next { height: 48px; padding: 0 18px; gap: 8px; }
  .qt-sum { gap: 0 8px; } .qt-sum > span { display: none; } .qt-sum b { font-size: 19px; } .qt-sum b small { display: block; margin: 0; font-size: 11px; } .qt-sum s { display: none; }
  .qt-total div + div { padding-left: 16px; } .qt-rows li { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; font-size: 14px; }
  .qt-form .f2 { grid-template-columns: 1fr; }
  .qt-sub { margin-left: 30px; } .qt-sub .qt-sub { margin-left: 24px; } .qt-opt.sub { padding-left: 12px; } .qt-opt.sub.on { padding-left: 12px; } .qt-opt.sub .qt-t { font-size: 15px; }
}
