/* ============================================================
   rfq-funnel.css — Syncle 비교견적 퍼널 (Wanted DS 클론)
   원본: claude.ai/design "Syncle RFQ.dc.html" (798af3f0)
   Wanted DS 런타임 없이 순수 CSS로 재현. 토큰: css/wanted-ds.css
   공용 셸(사이드바/헤더/푸터) 내부에 480px 카드로 임베드.
   ============================================================ */

/* ── 스테이지: 카드 중앙 정렬 + 회색 배경 ── */
.rfq-stage {
  background: var(--ws-bg, #fff);
  min-height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px 48px;
}

/* ── 카드 ── */
.rfq-card {
  width: 100%;
  max-width: 480px;
  background: var(--ws-bg, #fff);
  border-radius: var(--ws-radius-16, 16px);
  box-shadow: var(--ws-shadow-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 620px;
  color: var(--ws-text-normal);
  font-family: var(--font-sans);
}

/* ── 카드 헤더 ── */
.rfq-head {
  flex: 0 0 auto;
  padding: 18px 24px 15px;
  border-bottom: 1px solid var(--ws-line-alt);
}
.rfq-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rfq-head-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rfq-head-title .rfq-kicker {
  color: var(--ws-text-strong);
}
.rfq-head-title .rfq-kicker-sub {
  color: var(--ws-text-assistive);
  white-space: nowrap;
}
.rfq-head-eta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ws-text-alternative);
  white-space: nowrap;
}
.rfq-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.rfq-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--ws-line);
  overflow: hidden;
}
.rfq-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--ws-primary);
  transform-origin: left center;
  transform: scaleX(0.25);
  transition: transform .3s var(--ws-ease-standard, cubic-bezier(.4,0,.2,1));
}
.rfq-step-text {
  color: var(--ws-primary);
  font-weight: 700;
  flex: 0 0 auto;
}

/* ── 카드 본문 ── */
.rfq-body {
  flex: 1 1 auto;
  padding: 26px 24px 30px;
  min-height: 0;
}
.rfq-step { display: none; }
.rfq-step.active { display: block; animation: rfqStepIn .28s var(--ws-ease-standard, cubic-bezier(.16,1,.3,1)); }
@keyframes rfqStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rfq-step.active { animation: none; }
  .rfq-progress-fill { transition: none; }
}

.rfq-title-block { margin-bottom: 22px; }
.rfq-title-block h1 { margin: 0; color: var(--ws-text-strong); }
.rfq-title-block p { margin: 7px 0 0; color: var(--ws-text-alternative); }

.rfq-field-label {
  display: block;
  color: var(--ws-text-neutral);
  font-weight: 600;
}
.rfq-div {
  height: 1px;
  background: var(--ws-line-alt);
  margin: 24px 0 18px;
}

/* ── STEP1: 공간 유형 선택 카드 ── */
.rfq-space-list { display: flex; flex-direction: column; gap: 12px; }
.rfq-space-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  background: var(--ws-bg);
  box-shadow: inset 0 0 0 1px var(--ws-line);
  transition: background .15s, box-shadow .15s;
}
.rfq-space-btn.active {
  background: var(--blue-95);
  box-shadow: inset 0 0 0 2px var(--ws-primary);
}
.rfq-space-ic {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-95);
  color: var(--ws-primary);
}
.rfq-space-btn:nth-child(2) .rfq-space-ic {
  background: var(--ws-fill-alt);
  color: var(--ws-text-neutral);
}
.rfq-space-txt { flex: 1; min-width: 0; }
.rfq-space-txt .t1 { display: block; color: var(--ws-text-strong); }
.rfq-space-txt .t2 { color: var(--ws-text-alternative); }
.rfq-space-check { flex: 0 0 auto; color: var(--ws-primary); display: none; }
.rfq-space-btn.active .rfq-space-check { display: inline-flex; }

/* ── 칩 그리드 (ws-chip 재사용) ── */
.rfq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── STEP2: 검색바 ── */
.rfq-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  border-radius: 12px;
  background: var(--ws-fill);
  padding: 0 14px;
  gap: 10px;
}
.rfq-search svg { color: var(--ws-text-assistive); flex: 0 0 auto; }
.rfq-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font: 500 16px/24px var(--font-sans);
  color: var(--ws-text-strong);
}
.rfq-search input::placeholder { color: var(--ws-text-assistive); }
.rfq-search-clear {
  flex: 0 0 auto;
  border: none; background: var(--ws-fill-strong); cursor: pointer;
  width: 20px; height: 20px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  color: var(--ws-text-alternative);
}
.rfq-search.filled .rfq-search-clear { display: inline-flex; }

.rfq-subhint { color: var(--ws-text-assistive); margin: 14px 0 9px; }

/* ── 스테퍼 ── */
.rfq-stepper {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--ws-line);
  overflow: hidden;
}
.rfq-stepper button {
  width: 46px; height: 100%;
  border: none; background: var(--ws-bg); cursor: pointer;
  color: var(--ws-text-neutral);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: background .12s;
}
.rfq-stepper button:hover { background: var(--ws-fill); }
.rfq-stepper button:disabled { color: var(--ws-text-disable); cursor: not-allowed; }
.rfq-stepper .rfq-stepper-val {
  min-width: 52px;
  text-align: center;
  font: 600 17px/1 var(--font-sans);
  color: var(--ws-text-strong);
  box-shadow: inset 1px 0 0 var(--ws-line), inset -1px 0 0 var(--ws-line);
  height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.rfq-people-row { display: flex; align-items: center; gap: 10px; }
.rfq-people-unit { color: var(--ws-text-normal); }

/* ── 레인지 슬라이더 (디자인 인라인 CSS 이식) ── */
.syncle-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: transparent; cursor: pointer;
}
.syncle-range:focus { outline: none; }
.syncle-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: var(--track-bg, var(--ws-line));
}
.syncle-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--ws-primary);
  box-shadow: 0 1px 4px rgba(23,23,23,.22); margin-top: -8px;
  transition: transform .1s;
}
.syncle-range:active::-webkit-slider-thumb { transform: scale(1.08); }
.syncle-range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--ws-line); }
.syncle-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--ws-primary); }
.syncle-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--ws-primary);
  box-shadow: 0 1px 4px rgba(23,23,23,.22);
}
.rfq-range-value { color: var(--ws-primary); font-weight: 700; }
.rfq-range-scale { display: flex; justify-content: space-between; margin-top: 10px; }
.rfq-range-scale span { color: var(--ws-text-assistive); }

/* 예산 "이상" 직접 입력 (슬라이더 최대치 도달 시 노출) */
.rfq-budget-over { margin-top: 14px; }
.rfq-budget-over-field { position: relative; display: flex; align-items: center; }
.rfq-budget-over-field input {
  width: 100%; height: 48px; padding: 0 48px 0 16px;
  border: none; border-radius: 12px;
  background: var(--ws-bg); box-shadow: inset 0 0 0 1px var(--ws-line);
  font: 600 16px/24px var(--font-sans); color: var(--ws-text-strong);
  outline: none; transition: box-shadow .15s; -moz-appearance: textfield;
}
.rfq-budget-over-field input:focus { box-shadow: inset 0 0 0 1.5px var(--ws-primary); }
.rfq-budget-over-field input::placeholder { color: var(--ws-text-assistive); font-weight: 500; }
.rfq-budget-over-field input::-webkit-outer-spin-button,
.rfq-budget-over-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rfq-budget-over-field .suffix {
  position: absolute; right: 16px; color: var(--ws-text-alternative);
  font: 500 15px/1 var(--font-sans); pointer-events: none;
}
.rfq-budget-over-hint { color: var(--ws-text-assistive); margin: 8px 0 0; }

/* ── 셀렉트 버튼 (입주 희망일 토글) ── */
.rfq-selectbtn {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 48px; padding: 0 16px;
  border: none; border-radius: 12px;
  background: var(--ws-bg);
  box-shadow: inset 0 0 0 1px var(--ws-line);
  cursor: pointer;
}
.rfq-selectbtn .lead { display: flex; align-items: center; gap: 10px; }
.rfq-selectbtn .lead svg { color: var(--ws-text-assistive); }
.rfq-selectbtn .val { color: var(--ws-text-assistive); }
.rfq-selectbtn.has-value .val { color: var(--ws-text-strong); }
.rfq-selectbtn .chev { color: var(--ws-text-assistive); transition: transform .2s; }
.rfq-selectbtn.open .chev { transform: rotate(180deg); }

/* ── 캘린더 ── */
.rfq-cal-wrap {
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--ws-line);
}
.rfq-cal { width: 100%; max-width: 320px; margin: 0 auto; }
.rfq-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.rfq-cal-title { font: 600 15px/1 var(--font-sans); color: var(--ws-text-strong); }
.rfq-cal-nav {
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: transparent; cursor: pointer;
  color: var(--ws-text-neutral);
  display: flex; align-items: center; justify-content: center;
}
.rfq-cal-nav:hover { background: var(--ws-fill); }
.rfq-cal-nav:disabled { color: var(--ws-text-disable); cursor: not-allowed; }
.rfq-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.rfq-cal-wd {
  text-align: center; font: 500 12px/1 var(--font-sans);
  color: var(--ws-text-assistive); padding: 6px 0;
}
.rfq-cal-wd.sun { color: var(--ws-negative); }
.rfq-cal-day {
  aspect-ratio: 1; border: none; background: transparent; cursor: pointer;
  border-radius: 9px; font: 500 14px/1 var(--font-sans);
  color: var(--ws-text-normal);
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.rfq-cal-day:hover:not(:disabled) { background: var(--ws-fill); }
.rfq-cal-day.sun { color: var(--ws-negative); }
.rfq-cal-day.empty { visibility: hidden; cursor: default; }
.rfq-cal-day.today { box-shadow: inset 0 0 0 1.5px var(--ws-line-strong); }
.rfq-cal-day.selected {
  background: var(--ws-primary) !important; color: #fff !important; font-weight: 700;
}
.rfq-cal-day:disabled { color: var(--ws-text-disable); cursor: not-allowed; }

/* ── SegmentedControl (견적 마감일) ── */
.rfq-seg {
  display: flex; width: 100%;
  background: var(--ws-fill);
  border-radius: 12px; padding: 3px; margin-top: 4px;
  gap: 2px;
}
.rfq-seg button {
  flex: 1; height: 38px; border: none; cursor: pointer;
  background: transparent; border-radius: 9px;
  font: 500 13px/1 var(--font-sans); color: var(--ws-text-alternative);
  white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.rfq-seg button.active {
  background: var(--ws-bg); color: var(--ws-text-strong); font-weight: 600;
  box-shadow: var(--ws-shadow-emphasize);
}
.rfq-seg-hint { color: var(--ws-primary); margin: 10px 0 0; }
.rfq-deadline-ok {
  margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: 12px; background: var(--blue-95);
}
.rfq-deadline-ok .ic { color: var(--ws-primary); display: inline-flex; flex: 0 0 auto; }
.rfq-deadline-ok .txt { color: var(--ws-primary); font-weight: 600; }

/* ── 텍스트에어리어 (디자인 이식) ── */
.syncle-textarea {
  width: 100%; border: none; outline: none; resize: vertical;
  background: var(--ws-bg); box-shadow: inset 0 0 0 1px var(--ws-line);
  border-radius: var(--ws-radius-12, 12px); padding: 14px 16px; min-height: 96px;
  color: var(--ws-text-strong); font: 500 16px/24px var(--font-sans);
}
.syncle-textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ws-primary); }
.syncle-textarea::placeholder { color: var(--ws-text-assistive); }

/* ── STEP4: 인풋 ── */
.rfq-inputs { display: flex; flex-direction: column; gap: 20px; }
.rfq-input-label {
  display: block; color: var(--ws-text-neutral); font-weight: 600;
  margin-bottom: 8px;
}
.rfq-input {
  width: 100%; height: 52px; padding: 0 16px;
  border: none; border-radius: 12px;
  background: var(--ws-bg); box-shadow: inset 0 0 0 1px var(--ws-line);
  font: 500 16px/24px var(--font-sans); color: var(--ws-text-strong);
  outline: none; transition: box-shadow .15s;
}
.rfq-input:focus { box-shadow: inset 0 0 0 1.5px var(--ws-primary); }
.rfq-input::placeholder { color: var(--ws-text-assistive); }
.rfq-input.error { box-shadow: inset 0 0 0 1.5px var(--ws-negative); }
.rfq-input-helper { margin-top: 7px; color: var(--ws-negative); }

.rfq-blind {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 11px 13px;
  background: var(--ws-bg-alt); border-radius: 12px;
}
.rfq-blind .ic { color: var(--ws-text-assistive); display: inline-flex; }
.rfq-blind .lbl { color: var(--ws-text-neutral); }
.rfq-blind.locked .lbl::after {
  content: '로그인 시 사용'; margin-left: 6px;
  color: var(--ws-text-assistive); font-size: 11px;
}
.rfq-blind .sw { margin-left: auto; }

/* ── 스위치 ── */
.rfq-switch {
  position: relative; width: 46px; height: 28px; flex: 0 0 auto;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--ws-line); padding: 0;
  transition: background .2s;
}
.rfq-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s var(--ws-ease-standard, cubic-bezier(.4,0,.2,1));
}
.rfq-switch.on { background: var(--ws-primary); }
.rfq-switch.on::after { transform: translateX(18px); }

.rfq-privacy {
  margin-top: 18px;
  display: flex; align-items: center; gap: 9px;
  padding: 13px 14px; background: var(--ws-bg-alt); border-radius: 12px;
}
.rfq-privacy .ic { color: var(--ws-text-assistive); display: inline-flex; flex: 0 0 auto; }
.rfq-privacy .txt { color: var(--ws-text-alternative); }

/* ── 완료 화면 ── */
.rfq-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 14px; }
.rfq-done-badge {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--blue-95); color: var(--ws-primary);
  display: flex; align-items: center; justify-content: center;
}
.rfq-done h1 { margin: 20px 0 0; color: var(--ws-text-strong); }
.rfq-done .sub { margin: 8px 0 0; color: var(--ws-text-alternative); }
.rfq-done .sub b { color: var(--ws-primary); }

.rfq-timeline {
  display: flex; align-items: flex-start; justify-content: space-between;
  width: 100%; max-width: 300px; margin-top: 28px;
}
.rfq-tl-node { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 0 0 auto; width: 64px; }
.rfq-tl-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ws-bg); box-shadow: inset 0 0 0 2px var(--ws-line);
  display: flex; align-items: center; justify-content: center;
}
.rfq-tl-node.done .rfq-tl-dot { background: var(--ws-primary); color: #fff; box-shadow: none; }
.rfq-tl-node .lbl { color: var(--ws-text-assistive); }
.rfq-tl-node.done .lbl { color: var(--ws-text-strong); font-weight: 600; }
.rfq-tl-line { flex: 1; height: 2px; background: var(--ws-line); margin-top: 14px; }

.rfq-done-list {
  width: 100%; margin-top: 26px;
  border-radius: 16px; box-shadow: inset 0 0 0 1px var(--ws-line);
  padding: 4px 18px; text-align: left;
}
.rfq-done-row {
  display: flex; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--ws-line-alt);
}
.rfq-done-row:last-child { border-bottom: none; }
.rfq-done-row .k { color: var(--ws-text-alternative); flex: 0 0 92px; }
.rfq-done-row .v { color: var(--ws-text-strong); flex: 1; min-width: 0; font-weight: 600; }
.rfq-done-actions { display: flex; gap: 10px; width: 100%; margin-top: 22px; }

/* ── 카드 푸터 ── */
.rfq-foot {
  flex: 0 0 auto;
  background: var(--ws-bg);
  border-top: 1px solid var(--ws-line-alt);
  padding: 10px 24px 18px;
}
.rfq-summary-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; background: transparent; border: none; cursor: pointer;
  padding: 6px 0 12px; color: var(--ws-text-alternative);
}
.rfq-summary-btn .cnt { color: var(--ws-primary); font-weight: 700; }
.rfq-next-hint { text-align: center; margin-bottom: 9px; }
.rfq-next-hint span { color: var(--ws-text-assistive); }
.rfq-foot-actions { display: flex; gap: 10px; }
.rfq-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 12px;
  font: 600 15px/1 var(--font-sans); letter-spacing: -0.012em;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background .12s, box-shadow .12s, opacity .12s;
}
.rfq-btn--primary { background: var(--ws-primary); color: #fff; flex: 1; }
.rfq-btn--primary:hover { background: var(--ws-primary-strong); }
.rfq-btn--primary:disabled { background: var(--ws-line); color: var(--ws-text-disable); cursor: not-allowed; }
.rfq-btn--icon {
  width: 48px; flex: 0 0 auto; padding: 0;
  background: var(--ws-bg); color: var(--ws-text-neutral);
  box-shadow: inset 0 0 0 1px var(--ws-line);
}
.rfq-btn--icon:hover { box-shadow: inset 0 0 0 1px var(--ws-line-strong); }
.rfq-btn--outlined {
  background: var(--ws-bg); color: var(--ws-text-neutral);
  box-shadow: inset 0 0 0 1px var(--ws-line); flex: 0 0 auto;
}
.rfq-btn--outlined:hover { box-shadow: inset 0 0 0 1px var(--ws-line-strong); }

/* ── 라이브 요약 바텀시트 ── */
.rfq-sheet-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--material-dimmer, rgba(23,23,25,.52));
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.rfq-sheet-overlay.open { opacity: 1; pointer-events: auto; }
.rfq-sheet {
  width: 100%; max-width: 480px;
  background: var(--ws-bg); border-radius: 20px 20px 0 0;
  padding: 8px 24px 28px;
  transform: translateY(100%); transition: transform .3s var(--ws-ease-standard, cubic-bezier(.16,1,.3,1));
  max-height: 80vh; overflow-y: auto;
}
.rfq-sheet-overlay.open .rfq-sheet { transform: translateY(0); }
.rfq-sheet-grip { width: 40px; height: 4px; border-radius: 999px; background: var(--ws-line); margin: 6px auto 12px; }
.rfq-sheet-title { color: var(--ws-text-strong); margin: 0 0 8px; }
.rfq-sheet-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; background: transparent; border: none; cursor: pointer;
  padding: 13px 2px; border-bottom: 1px solid var(--ws-line-alt);
}
.rfq-sheet-row .k { color: var(--ws-text-alternative); flex: 0 0 88px; }
.rfq-sheet-row .v { flex: 1; min-width: 0; font-weight: 500; }
.rfq-sheet-row .v.empty { color: var(--ws-text-assistive); }
.rfq-sheet-row .v.filled { color: var(--ws-text-strong); }
.rfq-sheet-row .chev { color: var(--ws-text-assistive); display: inline-flex; flex: 0 0 auto; }
.rfq-sheet-foot { color: var(--ws-text-assistive); text-align: center; margin: 16px 0 4px; }

/* ── 토스트 ── */
.rfq-toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(10px);
  background: var(--ws-inverse-bg); color: var(--ws-inverse-label);
  padding: 12px 18px; border-radius: 999px;
  box-shadow: var(--ws-shadow-heavy); z-index: 1300; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.rfq-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 모바일: 카드 풀블리드 ── */
@media (max-width: 640px) {
  .rfq-stage { padding: 0; min-height: auto; background: var(--ws-bg); }
  .rfq-card {
    max-width: 100%; border-radius: 0; box-shadow: none; min-height: auto;
  }
  .rfq-foot {
    position: sticky; bottom: 0;
    box-shadow: 0 -2px 12px rgba(23,23,23,.05);
  }
}
