/* 견적 신청 화면 공통: 한 화면에 질문 하나씩 (디자인 A) — 간편견적·방문견적·추가금 ZERO 견적 */
/* ===== 한 화면에 질문 하나씩 (간편견적) ===== */
.wz-top { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; }
.wz-back { width: 44px; height: 44px; flex: none; border: 0; background: var(--input-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-main); padding: 0; }
.wz-back[hidden] { display: none; }
.wz-prog { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wz-bar { height: 8px; background: #E2EEED; border-radius: 99px; overflow: hidden; }
.wz-bar i { display: block; height: 100%; width: 0; background: var(--primary-color); border-radius: 99px; transition: width .25s; }
.wz-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: #4b5563; font-weight: 600; }
.wz-step[hidden] { display: none; }
.wz-step { animation: wzIn .22s ease; }
@keyframes wzIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.wz-q { margin: 0 0 16px; font-size: 22px; line-height: 1.4; font-weight: 800; color: #111827; letter-spacing: -0.4px; }
.wz-help { margin: -8px 0 14px; font-size: 14px; color: #4b5563; }
.wz-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wz-tile { min-height: 76px; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; text-align: left; cursor: pointer; font-family: inherit; color: #111827; border: 1px solid #d5e2ec; background: #fff; transition: border-color .15s, background .15s; }
.wz-tile b { font-size: 16.5px; font-weight: 800; }
.wz-tile span { font-size: 12.5px; color: #4b5563; }
.wz-tile:hover { border-color: var(--primary-color); }
.wz-tile.on, .wz-chip.on { border: 2px solid var(--primary-color); background: var(--primary-soft); }
.wz-lbl { font-size: 14px; font-weight: 700; color: #374151; margin: 16px 0 8px; }
.wz-lbl span, .wz-exact label span { font-weight: 500; color: #6b7280; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-chips.wz-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.wz-chips.wz-even .wz-chip { padding: 0 6px; }
.wz-chip { min-height: 46px; padding: 0 15px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; border: 1px solid #d5e2ec; background: #fff; color: #111827; white-space: nowrap; }
.wz-chip:hover { border-color: var(--primary-color); }
.wz-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.wz-day { height: 62px; border: 1px solid #d5e2ec; background: #fff; border-radius: 12px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #111827; padding: 0; }
.wz-day b { font-size: 15px; font-weight: 800; }
.wz-day span { font-size: 12px; color: #4b5563; }
.wz-day.sat span { color: #1d4ed8; } .wz-day.sun span { color: #b91c1c; }
.wz-day.on { border: 2px solid var(--primary-color); background: var(--primary-soft); }
.wz-exact { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.wz-exact label { font-size: 14px; font-weight: 700; color: #374151; }
.wz-exact input, .wz-exact textarea { width: 100%; min-height: 50px; border: 1px solid #d5e2ec; border-radius: 12px; padding: 0 14px; font-size: 16px; font-family: inherit; background: #fff; color: #111827; }
.wz-exact textarea { padding: 12px 14px; resize: vertical; }
.wz-unit { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #374151; }
.wz-unit input { max-width: 140px; }
.wz-phone { font-size: 20px !important; font-weight: 700; letter-spacing: .5px; }
.wz-addr-btn { width: 100%; min-height: 58px; border: 1px solid #d5e2ec; border-radius: 14px; background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 16px; font-family: inherit; color: #4b5563; cursor: pointer; text-align: left; }
.wz-addr-btn.on { border: 2px solid var(--primary-color); background: var(--primary-soft); color: #0b3a5a; font-weight: 700; }
.wz-next { width: 100%; height: 56px; margin-top: 22px; border: 0; border-radius: 16px; background: var(--primary-color); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; font-family: inherit; }
.wz-next:disabled { background: #c9d5de; color: #4b5563; cursor: default; }
.wz-consent { margin-top: 18px; border: 1px solid #E2EEED; border-radius: 14px; padding: 6px 14px 10px; background: #fafcfe; }
.wz-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; color: #1f2937; cursor: pointer; }
.wz-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary-color); flex: none; }
.wz-check.sub { min-height: 38px; font-size: 13.5px; color: #374151; padding-left: 4px; }
.wz-consent-more summary { font-size: 13px; color: #0369a1; cursor: pointer; padding: 6px 0; }
.wz-consent-more .consent-box { margin-top: 6px; }
.wz-err { color: #b91c1c; font-size: 14px; font-weight: 600; margin: 12px 0 0; }
@media (max-width: 640px) {
    .wz-q { font-size: 20px; }
    .wz-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wz-tile b { font-size: 15.5px; }
}

.wz-tip { margin: -6px 0 16px; padding: 10px 12px; border-radius: 12px; background: #F0FDFA; color: #115E59; font-size: 13.5px; line-height: 1.55; display: block; }
.wz-tip:empty { display: none; }
.wz-tip b { font-weight: 800; }
.wz-quick-link { width: 100%; margin-top: 14px; min-height: 60px; border: 1.5px dashed #9cc3dd; border-radius: 14px; background: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-family: inherit; color: #115E59; cursor: pointer; text-align: left; }
.wz-quick-link span { display: flex; flex-direction: column; gap: 2px; }
.wz-quick-link b { font-size: 15px; font-weight: 800; }
.wz-quick-link small { font-size: 12.5px; color: #4b5563; }
.wz-trust { margin-top: 18px; border: 1px solid #E2EEED; border-radius: 16px; padding: 14px 16px; background: #fafcfe; }
.wz-trust-h { font-size: 14.5px; font-weight: 800; color: #111827; margin-bottom: 8px; }
.wz-trust ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.wz-trust li { font-size: 13px; line-height: 1.55; color: #374151; padding-left: 18px; position: relative; }
.wz-trust li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px; border-left: 2px solid var(--primary-color); border-bottom: 2px solid var(--primary-color); transform: rotate(-45deg); }
.wz-trust li b { color: #111827; }

/* ===== 디자인 A · 깔끔한 기본형 ===== */
body { background: #F5F8FB; background-image: none; padding: 24px 16px 48px; }
.page-wrap { max-width: 520px; }
.card { border-radius: 22px; padding: 22px 24px 0; box-shadow: 0 10px 30px -12px rgba(15, 50, 80, .18); }
.a-hero { background: #fff; border-radius: 22px 22px 0 0; padding: 24px 24px 4px; margin-bottom: -2px; position: relative; z-index: 1; }
.a-hero[hidden] { display: none; }
.a-hero + .card { border-top-left-radius: 0; border-top-right-radius: 0; }
.a-hero[hidden] + .card { border-radius: 22px; }
.a-brand { display: flex; align-items: center; justify-content: space-between; }
.a-brand b { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: #0F172A; }
.a-brand span { font-size: 12px; font-weight: 700; color: #0F766E; background: #E6F7F6; padding: 5px 10px; border-radius: 99px; }
.a-hero h1 { margin: 22px 0 0; font-size: 28px; line-height: 1.32; font-weight: 800; letter-spacing: -.6px; color: #0F172A; }
.a-hero p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: #475569; }
.a-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.a-badges span { font-size: 12.5px; font-weight: 700; color: #334155; background: #F1F5F9; padding: 6px 10px; border-radius: 8px; }
.wz-top { margin: 0 0 4px; min-height: 44px; }
.wz-back { background: transparent; margin-left: -12px; }
.wz-segs { flex: 1; display: grid; gap: 4px; }
.wz-segs i { height: 5px; border-radius: 99px; background: #E2E8F0; }
.wz-segs i.on { background: #00A3A0; }
.wz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wz-crumb { font-size: 13px; font-weight: 700; color: #0F766E; margin: 4px 0 6px; }
.wz-crumb:empty { display: none; }
.wz-q { font-size: 25px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -.5px; }
.wz-help { margin: 0 0 18px; font-size: 14.5px; color: #475569; }
.wz-step > .wz-q + .wz-tiles, .wz-step > .wz-q + .wz-chips, .wz-step > .wz-q + .wz-days, .wz-step > .wz-q + .wz-addr-btn, .wz-step > .wz-q + .wz-sum { margin-top: 14px; }
.wz-tile { min-height: 66px; border-radius: 14px; border-color: #E2E8F0; padding: 10px 14px; gap: 2px; }
.wz-tile b { font-size: 15.5px; }
.wz-tile span { font-size: 12px; }
.wz-tile.on, .wz-chip.on, .wz-day.on { border: 1.5px solid #00A3A0; background: #F0FDFA; color: #0B1F3A; }
.wz-lbl { font-size: 14px; color: #334155; margin: 20px 0 8px; }
.wz-chip { min-height: 48px; border-radius: 12px; border-color: #E2E8F0; }
#wzPyeong { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#wzRooms { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wz-chips.wz-even { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wz-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wz-exact-inline { margin-top: 10px; display: flex; align-items: center; gap: 8px; min-height: 48px; border: 1px dashed #CBD5E1; border-radius: 12px; padding: 0 14px; font-size: 14px; color: #475569; }
.wz-exact-inline input { width: 64px; border: 0; border-bottom: 1.5px solid #00A3A0; font-size: 17px; font-weight: 800; text-align: center; font-family: inherit; color: #0F172A; background: transparent; padding: 2px 0; border-radius: 0; }
.wz-exact-inline input:focus { outline: none; border-bottom-width: 2.5px; }
.wz-exact-inline small { margin-left: auto; font-size: 12px; color: #64748B; }
.wz-day { height: 62px; border-color: #E2E8F0; border-radius: 14px; }
.wz-exact input, .wz-exact textarea { border-color: #E2E8F0; }
.wz-addr-btn { border-color: #E2E8F0; min-height: 56px; }
.wz-addr-btn.on { border: 1.5px solid #00A3A0; background: #F0FDFA; color: #0B1F3A; }
.wz-phone { border: 1.5px solid #00A3A0 !important; }
.wz-quick-link { justify-content: center; border: 0; background: transparent; min-height: 48px; margin-top: 10px; color: #0F766E; font-size: 14.5px; }
.wz-quick-link span { display: inline; font-size: 14.5px; }
.wz-trust { margin: 14px -24px 0; border: 0; border-top: 1px solid #EEF2F6; border-radius: 0; background: #F8FAFC; padding: 14px 24px 18px; }
.wz-trust-h { font-size: 13.5px; margin-bottom: 10px; }
.wz-trust-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wz-trust-icons div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.wz-trust-icons span { font-size: 12px; font-weight: 700; color: #334155; line-height: 1.35; }
.wz-trust-more summary { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #0F766E; cursor: pointer; text-align: center; list-style: none; min-height: 32px; display: flex; align-items: center; justify-content: center; }
.wz-trust-more summary::-webkit-details-marker { display: none; }
.wz-trust-more ul { margin-top: 6px; }
.wz-sum { margin: 14px 0 6px; border-radius: 16px; background: #F0FDFA; border: 1px solid #B8EDE6; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.wz-sum-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #0B1F3A; }
.wz-sum-b { font-size: 13px; line-height: 1.6; color: #334155; white-space: pre-line; }
.wz-consent { border: 0; border-top: 1px solid #F1F5F9; border-radius: 0; background: transparent; padding: 6px 0 0; }
.wz-check { font-size: 15px; }
.wz-check input, .wz-check.sub input { accent-color: #00968F; }
/* 각 질문 안의 버튼은 숨기고, 아래 고정 영역의 버튼 하나로 */
.wz-step .wz-next { display: none; }
.wz-foot { position: sticky; bottom: 0; margin: 18px -24px 0; padding: 12px 24px calc(18px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #F1F5F9; display: flex; flex-direction: column; gap: 10px; z-index: 5; border-radius: 0 0 22px 22px; }
.wz-foot .wz-tip { margin: 0; padding: 0; background: transparent; color: #475569; font-size: 12.5px; line-height: 1.5; }
.wz-main { height: 56px; border: 0; border-radius: 14px; background: #00968F; color: #fff; font-size: 17px; font-weight: 800; font-family: inherit; cursor: pointer; }
.wz-main:disabled { background: #CBD5E1; color: #475569; cursor: default; }
.wz-main[hidden], .wz-foot[hidden] { display: none; }
#wzAgain { background: #00968F; }
@media (max-width: 640px) {
    body { background: #fff; padding: 0 0 24px; }
    .a-hero { border-radius: 0; padding: 20px 20px 4px; }
    .card, .a-hero[hidden] + .card { border-radius: 0; box-shadow: none; padding: 12px 20px 0; }
    .wz-trust { margin: 14px -20px 0; padding: 14px 20px 18px; }
    .wz-foot { margin: 18px -20px 0; padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 0; }
    .wz-q { font-size: 24px; }
    #result { margin: 20px 0 0; }
}

/* ===== 첫 화면은 한 화면에 다 보이게 · 업체 기준 안내는 크게 ===== */
body.wz-first .wz-top, body.wz-first .wz-crumb { display: none; }
.a-hero { padding-top: 18px; }
.a-hero h1 { margin-top: 14px; font-size: 25px; line-height: 1.3; }
.a-hero p { margin-top: 6px; font-size: 14.5px; }
.a-badges { margin-top: 10px; }
.a-badges span { padding: 5px 9px; }
body.wz-first .card { padding-top: 14px; }
.wz-step[data-step="cat"] .wz-q { font-size: 19px; margin-bottom: 0; }
.wz-step[data-step="cat"] .wz-tiles { margin-top: 10px; gap: 8px; }
.wz-step[data-step="cat"] .wz-tile { min-height: 56px; padding: 6px 12px; }
.wz-step[data-step="cat"] .wz-tile b { font-size: 15px; }
.wz-step[data-step="cat"] .wz-tile span { font-size: 11.5px; }
.wz-step[data-step="cat"] .wz-quick-link { margin-top: 4px; min-height: 44px; }
.wz-trust { margin-top: 6px; padding-top: 12px; padding-bottom: 14px; }
.wz-trust-h { font-size: 14.5px; margin-bottom: 8px; }
.wz-trust-icons span { font-size: 13px; }
.wz-trust-more summary { margin-top: 6px; font-size: 13.5px; min-height: 30px; }
.wz-trust-more li { font-size: 14.5px; line-height: 1.6; }
/* 질문 화면 아래 안내 (업체 기준·AI) — 크고 잘 보이게 */
.wz-foot .wz-tip { background: #F0FDFA; border: 1px solid #B8EDE6; border-radius: 12px; padding: 10px 12px; color: #134E4A; font-size: 14.5px; line-height: 1.55; }
.wz-foot .wz-tip b { color: #0B1F3A; }
@media (max-width: 640px) {
    body.wz-first { padding-bottom: 0; }
    .a-hero { padding: 16px 20px 0; }
}
@media (max-height: 700px) and (max-width: 640px) {
    .a-hero h1 { font-size: 22px; margin-top: 10px; }
    .a-hero p { font-size: 13.5px; }
    .wz-step[data-step="cat"] .wz-tile { min-height: 50px; }
    .wz-step[data-step="cat"] .wz-tile span { display: none; }
    .a-badges { display: none; }
}

/* ===== 질문 화면: 아래 고정 버튼에 내용이 가리지 않게 더 촘촘히 ===== */
.wz-top { min-height: 40px; }
.wz-crumb { margin: 2px 0 4px; }
.wz-q { margin-bottom: 4px; }
.wz-help { margin-bottom: 12px; font-size: 14px; }
.wz-lbl { margin: 14px 0 6px; }
.wz-chip { min-height: 44px; }
.wz-day { height: 56px; }
.wz-exact-inline { min-height: 44px; margin-top: 8px; }
.wz-foot { margin-top: 14px; padding-top: 10px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); gap: 8px; box-shadow: 0 -6px 14px -10px rgba(15, 23, 42, .25); }
.wz-foot .wz-tip { padding: 8px 12px; font-size: 14px; line-height: 1.45; }
.wz-main { height: 52px; }
/* 화면 높이가 낮은 폰: 아래 안내는 숨기고 버튼만 */
/* 안내 한 줄은 내용 바로 아래 (스크롤 따라감), 아래 고정은 버튼만 → 내용을 가리지 않음 */
.wz-tip-flow { margin: 16px 0 0; background: #F0FDFA; border: 1px solid #B8EDE6; border-radius: 12px; padding: 10px 12px; color: #134E4A; font-size: 14.5px; line-height: 1.55; }
.wz-tip-flow b { color: #0B1F3A; }
body.wz-first .wz-tip-flow { display: none; }
.wz-foot { margin-top: 12px; }

/* 방문견적·추가금 ZERO: 첫 질문도 한 화면에 */
body.wz-first .wz-step .wz-q { font-size: 20px; margin-bottom: 2px; }
body.wz-first .wz-step .wz-help { font-size: 13.5px; margin-bottom: 8px; }
body.wz-first .wz-step .wz-lbl { margin: 10px 0 6px; }
body.wz-first .wz-days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
body.wz-first .wz-day { height: 52px; }
body.wz-first .wz-tile { min-height: 54px; }
@media (max-height: 700px) and (max-width: 640px) {
    body.wz-first .wz-tile span { display: none; }
    body.wz-first .wz-tile { min-height: 48px; }
    body.wz-first .wz-step .wz-help { display: none; }
}
