/* ===== 예상견적 위저드 ===== */
body[data-page="estimate"] { background: var(--bg); }
.est { min-height: calc(100vh - var(--header-h)); padding-bottom: 56px; }
.est-top { position: sticky; top: var(--header-h); z-index: 20; background: rgba(247,248,244,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.est-top-inner { display: flex; align-items: center; gap: 12px; height: 56px; max-width: 640px; }
.est-back, .est-tel { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; flex: none; }
.est-back .ic, .est-tel .ic { width: 22px; height: 22px; }
.est-tel { background: var(--brand-100); color: var(--brand-700); }
.est-progress { flex: 1; }
.est-progress span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 5px; }
.est-progress .bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.est-progress .bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .35s ease; }

.est-body { max-width: 640px; padding-top: 28px; }
.est-title { font-size: clamp(26px, 7vw, 34px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; margin-top: 6px; }
.est-desc { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.est-sub { font-size: 17px; font-weight: 800; margin: 28px 0 12px; }
.est-apt-name { font-size: 14px; font-weight: 700; color: var(--brand-700); }
.est-next { margin-top: 28px; }
.est-step .est-next { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
.est-search { margin-top: 22px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); vertical-align: middle; margin-left: 4px; }

/* search results */
.apt-results { margin-top: 18px; }
.apt-results .loading, .apt-results .count { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.apt-results .count b { color: var(--ink); }
.apt-results .dropped { font-size: 13.5px; color: var(--ink-2); background: #fff; border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.apt-results .empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.apt-results .empty p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.apt-list { display: grid; gap: 8px; }
.apt-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 18px; transition: border-color .15s, box-shadow .15s; }
.apt-item:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.apt-item.loading { opacity: .5; }
.apt-item .t { flex: 1; min-width: 0; }
.apt-item b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.apt-item small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.apt-item .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.badge.g { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.apt-item .go { flex: none; font-size: 14px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }

/* manual entry */
.manual-box { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.manual-toggle { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 18px; text-align: left; }
.manual-toggle span { flex: 1; }
.manual-toggle b { display: block; font-size: 16px; }
.manual-toggle small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.manual-toggle[aria-expanded="true"] .ic { transform: rotate(90deg); }
.manual-form { padding: 0 18px 18px; display: grid; gap: 14px; }

/* fields */
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field .req { font-style: normal; font-size: 11px; font-weight: 800; color: var(--brand-700); background: var(--brand-50); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.field input, .field select {
  width: 100%; height: 54px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; padding: 0 16px;
  font-size: 17px; font-weight: 600; outline: none; -webkit-appearance: none; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23333' stroke-width='2.5' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline-field { position: relative; margin-top: 16px; }
.inline-field em { position: absolute; right: 16px; bottom: 15px; font-style: normal; font-weight: 700; color: var(--muted); }
.inline-field.big input { height: 68px; font-size: 26px; font-weight: 800; }
.inline-field.big em { bottom: 21px; font-size: 18px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* options */
.opt-grid { display: grid; gap: 8px; margin-top: 22px; }
.opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt-grid.cols-4 { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
@media (min-width: 560px) { .opt-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .opt-grid.cols-3 { grid-template-columns: repeat(4, 1fr); } }
.opt-list { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  position: relative; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  padding: 18px 50px 18px 18px; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.opt b { display: block; font-size: 17.5px; letter-spacing: -0.02em; }
.opt small { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.opt::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.opt:hover { border-color: var(--ink-2); }
.opt.on { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(114,190,69,.18); }
.opt.on::after { border-color: var(--brand-600); background: var(--brand-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.opt.sm { padding: 16px 8px; text-align: center; font-weight: 800; font-size: 16.5px; }
.opt.sm::after { display: none; }
.pkg-opt .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pkg-opt .stars { color: #f5a623; font-size: 13px; letter-spacing: 1px; }
.pkg-opt .stars i { font-style: normal; color: #dfe3dc; }
.pkg-opt .pop { font-style: normal; font-size: 11px; font-weight: 800; background: var(--brand); color: #0d1a0f; padding: 2px 7px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select button { height: 42px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.chips-select button.on { border-color: var(--ink); background: var(--ink); color: #fff; }

/* apt detail */
.apt-head .est-title { margin-top: 12px; }
.real-quotes { margin-top: 22px; background: #fff; border: 1.5px solid var(--brand-200); border-radius: var(--radius); padding: 18px; }
.real-quotes h3 { font-size: 16px; display: flex; align-items: center; gap: 6px; color: var(--brand-800); }
.real-quotes h3 .ic { color: var(--brand-600); }
.real-quotes ul { margin: 12px 0 10px; display: grid; gap: 0; }
.real-quotes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.real-quotes li b { font-size: 15.5px; display: block; }
.real-quotes li small { color: var(--muted); font-size: 13px; }
.real-quotes li strong { font-size: 18px; font-weight: 800; white-space: nowrap; }
.apt-cases { margin-top: 24px; }
.apt-cases h3 { font-size: 16px; margin-bottom: 12px; }
.apt-cases .h-scroll { grid-auto-columns: 78%; }
@media (min-width: 1000px) { .apt-cases .h-scroll { grid-template-columns: repeat(2, 1fr); } }

/* summary + contact */
.summary-card { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.summary-card ul { padding: 14px 18px; display: grid; gap: 6px; }
.summary-card li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.summary-card li span { color: var(--muted); }
.summary-card li b { text-align: right; }
.blur-price { background: var(--deep); color: #fff; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; }
.blur-price span { font-size: 13px; color: #a9b8ae; }
.blur-price b { grid-row: 2; font-size: 22px; filter: blur(5px); letter-spacing: .02em; user-select: none; }
.blur-price em { grid-row: 1 / 3; grid-column: 2; justify-self: end; white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 700; color: #0d1a0f; background: var(--brand); padding: 6px 10px; border-radius: 99px; }
#leadForm { margin-top: 22px; display: grid; gap: 14px; }
.agree { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.agree label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.agree input { width: 22px; height: 22px; accent-color: var(--brand-600); flex: none; }
.agree p { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.agree a { text-decoration: underline; }
.form-error { color: var(--warn); font-weight: 700; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.note.center { text-align: center; }

/* result */
.result-hero { background: var(--deep); color: #fff; border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; position: relative; overflow: hidden; }
.result-hero .est-apt-name { color: #b7e39a; }
.result-hero h1 { font-size: 16px; font-weight: 700; color: #a9b8ae; margin-top: 14px; }
.result-hero .price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; margin-top: 6px; }
.result-hero .price span { font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: -0.04em; }
.result-hero .price i { font-style: normal; font-size: 24px; color: #a9b8ae; }
.result-hero .basis { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); color: #dbe5de; }
.result-hero .basis.apt { background: var(--brand); color: #0d1a0f; }
.result-hero .vat { margin-top: 10px; font-size: 13.5px; color: #a9b8ae; }
.result-card { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.result-card h3 { font-size: 16px; margin: 4px 0 12px; }
.breakdown { display: grid; gap: 10px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.breakdown li small { color: var(--muted); }
.match-box { background: var(--brand-50); border-radius: 12px; padding: 14px; margin-bottom: 18px; font-size: 15px; }
.match-box strong { font-size: 17px; }
.match-box p, .match-box small { color: var(--muted); font-size: 13px; }
.incl { display: grid; gap: 8px; }
.incl li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.incl .ic { color: var(--brand-600); }
.pkg-compare { display: grid; gap: 6px; }
.pkg-compare li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 15px; }
.pkg-compare li.on { background: var(--brand-50); outline: 1.5px solid var(--brand-200); }
.pkg-compare li span { font-weight: 700; }
.result-next { margin-top: 18px; display: grid; gap: 10px; }
.done { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--brand-200); border-radius: var(--radius); padding: 16px; margin-bottom: 4px; }
.done .ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--brand); color: #0d1a0f; flex: none; }
.done p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.done.warn { border-color: #f3c7b3; background: #fff8f4; }
.disclaimer { margin-top: 18px; }

/* brand step */
.common-spec { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--brand-800); }
.common-spec .ic { color: var(--brand-600); margin-top: 2px; }
.brand-opt img { height: 22px; width: auto; margin-bottom: 8px; }
.brand-options { margin-top: 6px; }
.brand-options .est-sub small { font-weight: 600; color: var(--muted); font-size: 13px; }
.opt-check { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; cursor: pointer; }
.opt-check input { width: 22px; height: 22px; accent-color: var(--brand-600); flex: none; }
.opt-check span { flex: 1; font-weight: 700; }
.opt-check em { font-style: normal; font-size: 13px; color: var(--muted); }
.opt-check:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }

/* pyeong: apt types + naver link */
.opt.sm.apt-type { border-color: var(--brand-200); background: var(--brand-50); }
.opt.sm.apt-type.on { border-color: var(--brand-600); }
.opt.sm small { display: block; font-size: 12px; font-weight: 700; color: var(--brand-700); margin-top: 2px; }
.land-link { display: flex; align-items: center; gap: 12px; margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 14px; color: var(--ink-2); }
.land-link .n { width: 30px; height: 30px; border-radius: 8px; background: #03c75a; color: #fff; font-weight: 900; display: grid; place-items: center; flex: none; }
.land-link span:nth-child(2) { flex: 1; }
.land-link b { color: var(--ink); }
.pkg-compare .real { font-style: normal; font-size: 11px; font-weight: 800; background: var(--brand); color: #0d1a0f; padding: 2px 6px; border-radius: 6px; margin-left: 4px; }
.apt-results .count .more { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.badge.py { background: #fff; color: var(--ink-2); }
.brand-opt .brand-add { display: inline-block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); }
.brand-opt .brand-add.base { background: var(--brand-100); color: var(--brand-800); }
.result-hero .price.single span { font-size: clamp(36px, 11vw, 52px); }
.breakdown li.sum { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 800; }
.breakdown li.sum b { font-size: 17px; }
.pkg-compare li span small { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 4px; }

/* ===== 견적 방식 탭 ===== */
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 5px; margin-bottom: 22px; }
.mode-tabs[hidden] { display: none; }
.mode-tabs button { border: 0; border-radius: 12px; background: transparent; padding: 11px 8px; text-align: center; color: var(--muted); }
.mode-tabs b { display: block; font-size: 15px; letter-spacing: -0.02em; }
.mode-tabs small { display: block; font-size: 12px; margin-top: 2px; }
.mode-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.mode-tabs button.on small { color: var(--brand-700); }

/* ===== 창 사이즈 입력 ===== */
.measure-tip { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; margin-top: 16px; background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 14px; padding: 14px; }
.measure-tip svg { width: 100%; height: auto; }
.measure-tip p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.measure-tip p > b:first-child { display: block; font-size: 14.5px; color: var(--brand-800); margin-bottom: 2px; }
.measure-tip small { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.sz-h { font-size: 17px; font-weight: 800; margin: 26px 0 10px; letter-spacing: -0.02em; }
.win { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; display: grid; gap: 10px; }
.win-head { display: flex; justify-content: space-between; align-items: center; }
.win-head b { font-size: 15px; }
.win-del { border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 700; padding: 4px 6px; }
.win-del:hover { color: var(--warn); }
.seg.two { grid-template-columns: 1fr 1fr; }
.win .inline-field { margin-top: 0; }
.win .inline-field input { padding-right: 46px; }
.win .w-warn { margin: 0; color: var(--warn); }
.win .w-warn:empty { display: none; }
.win.bad { border-color: var(--warn); }
.win-add { margin-top: 2px; }
.door-box { display: flex; align-items: center; gap: 12px; margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.door-box > div:first-child { flex: 1; }
.door-box b { display: block; font-size: 15.5px; }
.door-box small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; flex: none; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--bg); font-size: 20px; font-weight: 700; color: var(--ink); }
.stepper output { width: 40px; text-align: center; font-weight: 800; font-size: 17px; }
[data-step=size] #sizeNext { margin-top: 18px; }
.win-list-result li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.win-list-result li:first-child { border-top: 0; }
.win-list-result span { color: var(--ink-2); }
.win-list-result b { white-space: nowrap; }
.size-cta { display: flex; align-items: center; gap: 10px; margin-top: 12px; width: 100%; border: 1.5px dashed var(--brand-600); background: var(--brand-50); color: var(--brand-800); border-radius: 14px; padding: 14px 16px; font-weight: 700; font-size: 15px; text-align: left; }
.size-cta span { flex: 1; }
.size-cta small { display: block; font-weight: 500; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.result-hero .custom-msg { margin: 14px auto 12px; max-width: 460px; font-size: 15px; line-height: 1.65; opacity: .92; }
.result-hero.custom h1 { font-size: clamp(24px, 6.6vw, 30px); font-weight: 800; color: #fff; letter-spacing: -0.03em; }
/* 사이즈 탭: 브랜드 선택 · 창 종류 안내 */
.brand-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brand-pick button { display: grid; justify-items: center; gap: 3px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 6px; }
.brand-pick img { height: 18px; width: auto; max-width: 100%; object-fit: contain; }
.brand-pick b { font-size: 14.5px; margin-top: 4px; }
.brand-pick small { font-size: 12px; color: var(--muted); }
.brand-pick button.on { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand-600) inset; }
.type-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.type-guide figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px 10px; text-align: center; }
.type-guide svg { width: 100%; max-width: 130px; height: auto; }
.type-guide figcaption { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-top: 6px; }
.type-guide figcaption > b:first-child { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.type-guide .hint { grid-column: 1 / -1; margin: 0; text-align: center; }
