:root {
  /*
   * AI 파일(랜딩페이지) 실측값만 사용 — 임의 디자인 금지
   * 기준: update/pages/page_02~09.png (폭 538)
   */
  /* req/랜딩_수정 요청사항.pdf: 모든 활성화 버튼 #004fff */
  --blue: #004fff;
  --blue-cta: #004fff;
  --blue-2: #004fff;
  --blue-deep: #004fff;
  --bg-top: #c4e2f8; /* 완료 시안 실측 */
  --sky: #9ab6d8;
  --navy: #004fff;
  --ink: #1a1a1a;
  --muted: #8a9bb5; /* 브랜드 설명문 톤 */
  --line: #d5deee;
  --soft: #e8f0ff;
  --soft-2: #f7faff;
  --disabled: #eeeeee;
  --disabled-text: #a0a0a0;
  --ai-logo-w: 178px; /* 시안 한글 로고 폭 */
  --ai-progress-w: 220px; /* 더 길게 */
  --ai-progress-h: 5px; /* 더 얇게 */
  --ai-progress-gap: 6px;
  --ai-cta-h: 50px; /* 전 스텝 CTA 공통 높이 */
  --ai-cta-w: 300px; /* 전 스텝 CTA 공통 폭 */
  --ai-cta-fs: 0.9rem; /* 전 스텝 CTA 공통 글자 */
  --ai-pill-h: 34px;
  --ai-pad-x: 52px; /* req: 좌우 여백 늘리기 */
  --radius: 16px;
  --font-ui: "Paperlogy", "S-CoreDream", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-btn: "S-CoreDream", "Paperlogy", "Apple SD Gothic Neo", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  /* 첨부 시안: 상단 #c4e2f8 → 하단 #fff */
  background: linear-gradient(180deg, #c4e2f8 0%, #d6e9fa 28%, #e8f2fc 58%, #ffffff 100%);
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 페이지별 배경 (완료 시안과 동일 톤) */
#panel5, #panel6, #panel1, #panel2, #panel3, #panel4 {
  --step-wash: #c4e2f8;
}
#panel7, .completion-message {
  --step-wash: #c4e2f8;
}

.step.active {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--step-wash, #c4e2f8) 70%, transparent) 0%, transparent 52%);
  border-radius: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.intro-active body {
  overflow: hidden;
}

button {
  font-family: var(--font-btn);
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

/* ============================================================
   인트로(로딩) 화면 — ref page_01
   ============================================================ */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* req 시안 첫화면: 딥네이비 + 중앙 하이라이트 */
  background: radial-gradient(ellipse at 50% 36%, #0b2a57 0%, #082246 38%, #061b3f 72%, #04152f 100%);
  color: #fff;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.85s cubic-bezier(0.7, 0, 0.2, 1);
}

.intro-screen.leaving {
  clip-path: circle(0% at 50% 50%);
}

.intro-screen.leaving .intro-content {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(4px);
}

.intro-dots {
  position: absolute;
  inset: -30%;
  /* req 시안: 사선 도트(하프톤) 패턴 */
  background-image: radial-gradient(circle, rgba(140, 200, 255, 0.34) 1px, transparent 1.25px);
  background-size: 8px 8px;
  transform: rotate(-32deg) scale(1.5);
  opacity: 0.62;
  mask-image:
    linear-gradient(125deg, #000 0%, transparent 26%, transparent 40%, #000 56%, transparent 76%, transparent 100%),
    radial-gradient(ellipse at 50% 42%, #000 16%, transparent 74%);
  -webkit-mask-image:
    linear-gradient(125deg, #000 0%, transparent 26%, transparent 40%, #000 56%, transparent 76%, transparent 100%),
    radial-gradient(ellipse at 50% 42%, #000 16%, transparent 74%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  max-height: 100%;
  padding: 18px 24px 26px;
  text-align: center;
  transition: transform 0.55s var(--ease-out), opacity 0.45s ease, filter 0.45s ease;
}

.intro-brand {
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.1s forwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.intro-brand-logo {
  width: min(240px, 64vw);
  height: auto;
  display: block;
  object-fit: contain;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(47, 140, 255, 0.35));
}

.intro-hero {
  position: relative;
  margin: 2px auto 6px;
  width: min(68%, 260px); /* req: 차량 너무 큼 → 축소 */
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.25s forwards;
  /* 박스/플레이트 없이 도트 배경 위로 */
  background: transparent;
}

.intro-wire-track {
  position: relative;
  width: 100%;
  aspect-ratio: 2.1 / 1;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.intro-wire-car {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  /* 원본 색 유지 — screen 쓰면 흐려짐 */
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 12px rgba(60, 180, 255, 0.35));
  opacity: 0;
  transform: translateX(28%);
  pointer-events: none;
  image-rendering: auto;
}

.intro-wire-car.is-active {
  opacity: 1;
  transform: translateX(0);
  animation: introCarIn 0.7s var(--ease-out) both, introCarFloat 3.2s ease-in-out 0.7s infinite;
}

.intro-wire-car.is-leaving {
  opacity: 0;
  transform: translateX(-32%);
  animation: introCarOut 0.55s var(--ease-out) both;
}

@keyframes introCarIn {
  from {
    opacity: 0;
    transform: translateX(34%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes introCarOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-36%);
  }
}

@keyframes introCarFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.intro-title {
  margin: 0 0 6px;
  font-family: "Paperlogy", sans-serif;
  font-size: clamp(1.15rem, 4.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #5ee7ff;
  text-shadow: 0 0 16px rgba(90, 230, 255, 0.3);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.4s forwards;
}

.intro-subtitle {
  margin: 0 0 18px;
  font-family: "Paperlogy", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(220, 230, 242, 0.92);
  letter-spacing: -0.02em;
  word-break: keep-all;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.5s forwards;
}

.intro-rings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 268px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease-out) 0.62s forwards;
}

.intro-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.intro-ring svg {
  width: 100%;
  height: 100%;
  /* spin은 circle transform-origin으로 — svg rotate 고정 금지 */
}

.intro-ring-track {
  fill: none;
  stroke: rgba(120, 190, 255, 0.16);
  stroke-width: 5.5;
}

/* req: 무한 로딩 모션 (게이지 채움 X) */
.intro-ring-spin {
  fill: none;
  stroke: #5adfff;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 58 268;
  transform-origin: center;
  transform-box: fill-box;
  filter: drop-shadow(0 0 5px rgba(90, 223, 255, 0.55));
  animation: introSpin 1.1s linear infinite;
}

.intro-ring-spin--pct {
  stroke-dasharray: 58 268;
  animation-duration: 1.1s;
  animation-direction: reverse;
}

@keyframes introSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.intro-ring-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}

.intro-ring-body strong {
  font-family: "Paperlogy", sans-serif;
  /* req: 좌측 숫자 / 우측 % 크기 맞춤 */
  font-size: clamp(1.02rem, 4.1vw, 1.2rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.intro-ring-body .intro-pct {
  font-size: clamp(1.02rem, 4.1vw, 1.2rem);
  letter-spacing: -0.02em;
}

.intro-ring-body .intro-pct small {
  font-size: 0.62em;
  font-weight: 600;
  margin-left: 1px;
}

.intro-ring-body span {
  font-family: "Paperlogy", sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  color: rgba(210, 225, 240, 0.9);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   메인 레이아웃
   ============================================================ */
.bg-orbs {
  display: none;
}

.bg-orbs i {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.bg-orbs i:nth-child(1) {
  width: 340px;
  height: 340px;
  top: -120px;
  left: -100px;
  background: #bfdbfe;
}

.bg-orbs i:nth-child(2) {
  width: 280px;
  height: 280px;
  top: 30%;
  right: -120px;
  background: #c7d2fe;
  animation-duration: 18s;
}

.bg-orbs i:nth-child(3) {
  width: 300px;
  height: 300px;
  bottom: -140px;
  left: 20%;
  background: #dbeafe;
  animation-duration: 22s;
}

@keyframes orbFloat {
  to {
    transform: translate(60px, 40px) scale(1.15);
  }
}

.container {
  max-width: 538px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 20px var(--ai-pad-x) 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  overflow-x: clip;
}

@media (max-width: 480px) {
  .container {
    /* 좌우 동일 패딩 — 화면이 한쪽으로 기운 느낌 방지 */
    padding: 16px 18px 24px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 16px 16px 24px;
  }
}

html.intro-active .container > * {
  opacity: 0;
}

.container.reveal .logo-container {
  animation: dropIn 0.8s var(--ease-spring) both;
}

.container.reveal .progress-container {
  animation: fadeUp 0.7s var(--ease-out) 0.15s both;
}

.container.reveal .form-container {
  animation: fadeUp 0.8s var(--ease-out) 0.25s both;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.logo-container {
  text-align: center;
  margin-bottom: 6px;
  padding: 10px 0 0;
}

.logo-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.main-logo {
  width: var(--ai-logo-w);
  max-width: 46vw;
  height: auto;
  display: block;
  object-fit: contain;
}

@keyframes logoShine {
  0% {
    background-position: 150% 0;
  }
  35%,
  100% {
    background-position: -50% 0;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* 진행률 — 시안: 둥근 캡슐 6칸, 찬 칸=#004fff */
.progress-container {
  margin: 10px auto 20px;
  text-align: center;
  width: 100%;
}

.progress-container[hidden] {
  display: none !important;
}

.progress-segments {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--ai-progress-gap);
  width: min(100%, var(--ai-progress-w));
  margin: 0 auto;
  align-items: center;
}

.progress-seg {
  height: var(--ai-progress-h);
  border-radius: 999px;
  background: #e9eef6;
  border: 0;
  box-shadow: none;
  transition: background 0.25s ease;
}

.progress-seg.on {
  background: var(--blue);
  border: 0;
  box-shadow: none;
}

.progress-text {
  font-weight: 600;
  color: #334155;
  font-size: 0.95rem;
}

/* 단계 */
.form-container {
  flex: 1;
}

.step {
  display: none;
  text-align: center;
}

.step.active {
  display: block;
  animation: stepIn 0.6s var(--ease-out) both;
}

.form-container.back .step.active {
  animation-name: stepInBack;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(40px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes stepInBack {
  from {
    opacity: 0;
    transform: translateX(-40px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.step h2 {
  font-family: "Paperlogy", sans-serif;
  font-size: 1.15rem; /* req: 글씨 크기·굵기 축소 */
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--blue);
}

/* AI 타이틀 — .step h2 덮어쓰기 방지 */
.step h2.step-title-conditions,
.step h2.step-title-contact {
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.45;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.step-description {
  font-family: "Paperlogy", sans-serif;
  font-size: 0.95rem;
  color: #8e949e;
  margin: 6px auto 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
}

/* 선택 칩 (국산차/수입차 + 모델명) */
.selection-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.selection-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--blue-cta);
  color: #fff;
  font-family: var(--font-btn);
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: none;
  border: 1.5px solid transparent;
}

.selection-chip--soft {
  background: var(--blue-cta);
}

.selection-chip--ghost {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid #93c5fd;
  box-shadow: none;
}

/* 탭 — 시안: 국산차/수입차 큰 라운드 버튼 */
.car-type-tabs {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 4px auto 20px;
  width: 100%;
  max-width: 300px;
}

.car-type-tabs--pills .tab {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 11px 12px; /* 타원 좌우 여백 살짝 축소 */
  border-radius: 999px;
  border: 1.5px solid #d5dbe8;
  background: #fff;
  font-family: var(--font-btn);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1e293b;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, max-width 0.25s ease;
}

.tab:active {
  transform: scale(0.97);
}

.car-type-tabs--pills .tab.active {
  color: #fff;
  border-color: #004fff;
  background: #004fff;
  box-shadow: none;
}

/* req: 처음엔 국산/수입만 → 선택 후 가운데 정렬 + 브랜드 노출 */
.car-type-tabs--pills .tab:not(.active) {
  background: #fff;
  border-color: #d0d7e4;
  color: #1e293b;
}

.car-type-tabs.is-picked {
  justify-content: center;
  max-width: 130px;
}

.car-type-tabs.is-picked .tab.active {
  flex: 0 1 auto;
  min-width: 110px;
  padding: 11px 22px;
}

.car-type-tabs.is-picked .tab:not(.active),
.tab.is-hidden-tab {
  display: none !important;
}

.tab-indicator {
  display: none;
}

/* 제조사 카드 — 시안: 로고 큰 세로 풀폭 리스트 */
.manufacturer-selection {
  width: 100%;
  max-width: 180px; /* 시안: 브랜드 카드 좌우 좁게 */
  margin: 0 auto 20px;
}

.manufacturer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.manufacturer-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  height: 100px;
  background: #fff;
  border: 1.5px solid #d8dee8;
  border-radius: 14px;
  padding: 8px 12px 6px;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  animation: none;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.manufacturer-card > * {
  position: relative;
}

@media (hover: hover) {
  .manufacturer-card:hover {
    border-color: #a8b8d4;
    background: #fff;
  }
}

/* 시안: 선택 시 흰 배경 + #004fff 테두리 */
.manufacturer-card.selected {
  background: #fff;
  border-color: #004fff;
  border-width: 2px;
  box-shadow: none;
}

.brand-logo {
  flex: 1 1 auto;
  height: auto;
  min-height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  max-height: 68px;
  max-width: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s var(--ease-spring);
}

/* req: 첫번째 브랜드(BMW) 마크 키우기 */
.manufacturer-card[data-brand="BMW"] {
  height: 108px;
}

.manufacturer-card[data-brand="BMW"] .brand-logo {
  min-height: 72px;
}

.manufacturer-card[data-brand="BMW"] .brand-logo img {
  max-height: 78px;
  max-width: 90%;
}

.manufacturer-card.selected .brand-logo img {
  transform: none;
}

.brand-name {
  display: block;
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #5b6b82;
  line-height: 1.1;
  margin-top: 0;
}

.manufacturer-card[data-brand="BMW"] .brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #3a4a63;
}

.manufacturer-card.selected .brand-name {
  color: #334155;
}

.check-badge {
  display: none !important;
  position: absolute !important;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  transform: scale(0) rotate(-90deg);
  transition: transform 0.45s var(--ease-spring);
  box-shadow: 0 4px 10px rgba(21, 87, 255, 0.28);
}

.selected > .check-badge {
  transform: scale(1) rotate(0);
}

/* 차량 선택 — ref page_05 / page_05_cars */
.car-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 10px;
  color: #9ab6d8;
  font-family: "Paperlogy", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
}

.car-slider-head span {
  white-space: nowrap;
}

.car-slider-head b {
  color: var(--blue);
  font-weight: 600;
}

.car-slide-track {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: #e7eef8;
  overflow: hidden;
}

.car-slide-track i {
  display: block;
  height: 100%;
  width: 32%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.2s ease;
}

.car-slider-stage {
  position: relative;
  margin: 0 0 22px;
  border-radius: 18px;
}

/* req: 슬라이드 더보기 영역 연한 블루 그라데이션 */
.car-slider-stage:has(#carSlideOverlay:not([hidden])) {
  background: linear-gradient(180deg, rgba(232, 244, 255, 0.2) 0%, rgba(186, 216, 255, 0.55) 100%);
}

.car-models-scroller {
  margin: 0;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  cursor: grab;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 96, 255, 0.45) rgba(219, 230, 247, 0.7);
}

.car-models-scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.car-models-scroller.is-locked {
  overflow-x: hidden;
  cursor: default;
  touch-action: none;
}

.car-models-scroller::-webkit-scrollbar {
  height: 6px;
}

.car-models-scroller::-webkit-scrollbar-track {
  background: rgba(219, 230, 247, 0.7);
  border-radius: 999px;
}

.car-models-scroller::-webkit-scrollbar-thumb {
  background: rgba(16, 96, 255, 0.45);
  border-radius: 999px;
}

/* b15feb82 버전: 흰 원 + ‹ › 텍스트 화살표 */
.car-slide-nav {
  display: none;
  position: absolute;
  top: 42%;
  z-index: 7;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #004fff;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(16, 96, 255, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.car-slide-nav:hover {
  transform: scale(1.06);
  background: #f3f8ff;
}

.car-slide-nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.car-slide-nav--prev {
  left: -6px;
}

.car-slide-nav--next {
  right: -6px;
}

@media (hover: hover) and (min-width: 721px) {
  .car-slide-nav:not([hidden]) {
    display: grid;
    place-items: center;
  }

  .car-models-scroller {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.car-models-grid {
  display: grid;
  grid-template-rows: repeat(2, minmax(190px, auto));
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 12px;
  margin-bottom: 0;
  width: max-content;
}

/* 모델 1~2대: 세로 2줄 좌측 몰림 대신 가로 나란히 */
.car-models-grid.car-models-grid--few {
  grid-template-rows: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: unset;
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

.car-models-grid.car-models-grid--few[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  max-width: calc(50% - 6px);
  margin-left: auto;
  margin-right: auto;
}

.car-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(232, 244, 255, 0.15) 0%, rgba(186, 216, 255, 0.42) 100%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.car-slide-overlay[hidden] {
  display: none !important;
}

.car-slide-overlay-visual {
  display: block;
  width: 168px;
  animation: slideHintNudge 1.65s cubic-bezier(0.4, 0.05, 0.2, 1) infinite;
}

.car-slide-overlay-img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 6px 10px rgba(47, 109, 255, 0.28))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
  pointer-events: none;
  user-select: none;
}

@keyframes slideHintNudge {
  0%,
  100% {
    transform: translateX(-8px);
    opacity: 0.88;
  }
  50% {
    transform: translateX(10px);
    opacity: 1;
  }
}

.car-slide-overlay.is-hiding {
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.car-slide-overlay.is-hiding .car-slide-overlay-visual {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .car-slide-overlay-visual {
    animation: none !important;
  }

  .intro-ring-spin {
    animation: none !important;
  }

  .blue-wipe.is-filling {
    animation: none !important;
    opacity: 0;
  }
}

.car-model-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 190px;
  background: #fff;
  border: 1.5px solid #d9e3f2;
  border-radius: 20px;
  padding: 14px 10px 16px;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.car-model-card.selected {
  border-color: var(--blue);
  border-width: 2px;
  background: linear-gradient(180deg, #e8f1ff 0%, #f3f8ff 100%);
  box-shadow: none;
  padding: 13.5px 9.5px 15.5px;
}

.car-model-card .check-badge,
.car-model-card .brand-logo-small {
  display: none !important;
}

.car-model-image {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid #e8eef7;
  /* 투명 PNG가 카드 흰 배경 위에 바로 보이도록 */
  background: transparent;
  border-radius: 0;
}

.car-model-image img {
  max-height: 84px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  filter: none;
  background: transparent;
}

.car-image-fallback {
  font-weight: 600;
  color: var(--muted);
}

.car-model-name {
  font-family: "S-CoreDream", "Paperlogy", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  word-break: keep-all;
  margin-bottom: 6px;
  line-height: 1.3;
}

.car-model-price {
  font-family: "S-CoreDream", "Paperlogy", sans-serif;
  font-size: 0.92rem;
  color: var(--blue);
  font-weight: 600;
}

.car-model-type {
  display: none;
}

#panel6 .button-group {
  display: block;
}

#panel6 .btn-next.btn-wide {
  width: 100%;
}

/* 버튼 — 전 스텝 CTA(차량선택/옵션선택/확인하기/다음으로/제출하기/수정하기) 동일 규격 */
.btn-next,
.btn-prev,
.btn-submit,
.btn-restart,
.btn-edit-muted {
  position: relative;
  overflow: hidden;
  height: var(--ai-cta-h);
  max-width: var(--ai-cta-w);
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  font-family: var(--font-btn);
  font-size: var(--ai-cta-fs);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn-next,
.btn-submit,
.btn-restart {
  color: #fff;
  background: var(--blue-cta);
  box-shadow: none;
}

.btn-next:not(:disabled),
.btn-submit {
  animation: none;
}

@keyframes btnGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-next.ready {
  animation: none;
}

@keyframes readyPulse {
  0% {
    box-shadow: 0 12px 26px rgba(21, 87, 255, 0.35), 0 0 0 0 rgba(59, 130, 246, 0.55);
  }
  100% {
    box-shadow: 0 12px 26px rgba(21, 87, 255, 0.35), 0 0 0 18px rgba(59, 130, 246, 0);
  }
}

.btn-next:not(:disabled):active,
.btn-submit:active,
.btn-prev:active,
.btn-restart:active {
  transform: none;
  opacity: 0.92;
}

.btn-next:disabled {
  background: var(--disabled);
  box-shadow: none;
  cursor: not-allowed;
  color: var(--disabled-text);
}

.btn-next:disabled .btn-arrow {
  color: var(--blue);
  opacity: 0.55;
}

.btn-wide {
  width: 100%;
  max-width: var(--ai-cta-w);
  height: var(--ai-cta-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--ai-cta-fs);
  font-weight: 500;
}

.btn-arrow {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1;
  margin-top: 0;
}

.btn-next:not(:disabled) .btn-arrow {
  animation: none;
}

@keyframes arrowNudge {
  50% {
    transform: translateX(5px);
  }
}

.btn-next:not(:disabled)::after,
.btn-submit::after {
  content: none;
  display: none;
}

@keyframes btnShine {
  0% {
    left: -50%;
  }
  55%,
  100% {
    left: 130%;
  }
}

.btn-prev {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

@media (hover: hover) {
  .btn-prev:hover {
    background: #f8fafc;
  }
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
  margin-top: 34px;
}

.button-group--stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
}

#panel1 .button-group--stack,
#panel2 .button-group--stack,
#panel3 .button-group--stack,
#panel4 .button-group--stack,
#panel5 .button-group--stack,
#panel6 .button-group--stack,
#panel7 .button-group--stack {
  margin-top: 28px;
}

.btn-prev-text {
  border: 0;
  background: none;
  color: #94a3b8;
  font-family: var(--font-btn);
  font-size: 0.92rem;
  font-weight: 600;
  height: auto;
  padding: 4px 0 2px;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.prev-chevron {
  display: none;
}

.prev-arrow-img {
  display: block;
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.btn-edit-muted {
  color: #1a1a1a;
  background: #e4e5eb;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none;
}

.btn-edit-muted .btn-arrow {
  color: #1a1a1a;
  animation: none;
  font-style: normal;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.55);
  animation: ripple 0.7s ease-out forwards;
  pointer-events: none;
}

.btn-prev .ripple,
.condition-option:not(.selected) .ripple,
.manufacturer-card:not(.selected) .ripple {
  background: rgba(59, 130, 246, 0.25);
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 3단계: 차량 상세 / 색상 — 첨부 시안 1:1 */
#panel3 {
  padding-bottom: 28px;
}

#panel3 .step-description {
  margin: 4px auto 16px;
  color: #8e949e;
  font-size: 0.95rem;
}

#panel3 .selection-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px; /* 시안: 국산차 / 차명 칩 사이 좁게 */
  margin-bottom: 20px;
}

#panel3 .selection-chip {
  min-height: 32px;
  padding: 5px 14px;
  font-size: 0.8rem;
  white-space: nowrap;
}

#panel3 .button-group--stack {
  margin-top: 22px;
}

.car-detail-header {
  margin-bottom: 2px;
  text-align: center;
}

#panel3 .car-detail-header {
  margin-top: 4px;
}

.car-name-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 6px 16px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

.car-brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: none;
}

.car-brand-logo[hidden] {
  display: none !important;
}

.car-detail-header h2 {
  font-size: 1rem;
  margin: 0;
  color: var(--blue);
  font-weight: 600;
  word-break: keep-all;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
  padding: 0 6px 4px;
}

#panel3 .car-specs {
  margin-top: -2px;
}

.spec-hashtag {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: -0.01em;
  animation: popIn 0.45s var(--ease-spring) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 200ms);
}

.car-image-section {
  --car-color: #3b82f6;
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 -12px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.car-image-section.has-color {
  background: transparent;
}

.car-image-section.color-pulse {
  animation: colorStagePulse 0.55s var(--ease-spring);
}

@keyframes colorStagePulse {
  0% {
    transform: scale(0.985);
  }
  55% {
    transform: scale(1.012);
  }
  100% {
    transform: none;
  }
}

.car-color-aura,
.car-spotlight {
  display: none;
}

@keyframes spotPulse {
  50% {
    transform: translate(-50%, -46%) scale(1.12);
  }
}

.car-image-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.car-image-placeholder img {
  width: 100%;
  max-width: 100%;
  height: auto;
  background: transparent;
  object-fit: contain;
  /* 색상 재채색(canvas)과 충돌하지 않도록 multiply 제거 */
  mix-blend-mode: normal;
  transition: opacity 0.25s ease;
  /* 시안: 하단 회색 그림자만 (반사/색 그림자 없음) */
  filter: drop-shadow(0 14px 12px rgba(15, 23, 42, 0.18));
  -webkit-box-reflect: none;
}

.car-image-placeholder.is-loading img {
  opacity: 0.35;
}

.car-image-loader {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  pointer-events: none;
  width: min(56%, 220px);
}

.car-image-placeholder.is-loading .car-image-loader {
  display: flex;
}

.car-image-loader__bar {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.2) 0%,
    rgba(37, 99, 235, 0.95) 45%,
    rgba(148, 163, 184, 0.2) 100%
  );
  background-size: 220% 100%;
  animation: carImgLoadSlide 0.9s linear infinite;
}

.car-image-loader__label {
  font-family: "S-CoreDream", "Paperlogy", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #64748b;
  white-space: nowrap;
}

@keyframes carImgLoadSlide {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.car-image-section.has-color .car-image-placeholder img {
  filter: drop-shadow(0 14px 12px rgba(15, 23, 42, 0.18));
}

.car-image-placeholder img.drive-in {
  animation: driveIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes driveIn {
  0% {
    opacity: 0;
    transform: translateX(110%) scaleX(1.15);
    filter: blur(8px);
  }
  70% {
    opacity: 1;
    transform: translateX(-4%) scaleX(0.98);
    filter: blur(0);
  }
  100% {
    transform: none;
  }
}

.car-image-placeholder img.shake {
  animation: colorBounce 0.55s var(--ease-spring);
}

@keyframes colorBounce {
  0% {
    transform: none;
  }
  35% {
    transform: translateY(-6px) scale(1.03);
  }
  100% {
    transform: none;
  }
}

.car-floor {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 280px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 0;
  /* 고정 그림자 — 선택 색상에 따라 변하지 않음 */
  background: radial-gradient(ellipse, rgba(15, 23, 42, 0.2), transparent 72%);
}

.color-selection-section {
  margin-top: -8px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* 색상 스와치 — 많을 때 줄바꿈(2줄+)으로 표시, 가로 스크롤 없음 */
.color-options-scroll {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  margin: 0;
  padding: 0;
}

#panel3 .color-options-scroll {
  width: 100%;
  margin: 0;
}

.color-selection-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 16px;
}

/* 시안(수정 PDF): 색상명 위·아래 가로선 */
.selected-color-info {
  --car-color: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 340px);
  margin: 0 auto 4px;
  padding: 0 0 6px;
  background: none;
  border: 0;
  font-weight: 800;
}

.color-name-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: #7eb0ff;
  flex: none;
  max-width: none;
}

.selected-color-name {
  flex: none;
  max-width: 100%;
  color: #334155;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  word-break: keep-all;
  letter-spacing: -0.02em;
  padding: 0 8px;
}

.selected-color-info.has-color .selected-color-name {
  color: var(--blue);
  animation: fadeUp 0.4s var(--ease-out);
}

.color-options-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 10px 12px;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  margin: 0 auto 8px;
  padding: 8px 4px 10px;
  overflow: visible;
}

#panel3 .color-options-grid {
  max-width: 100%;
  padding: 8px 2px 10px;
}

@media (max-width: 420px) {
  .color-options-grid {
    gap: 8px 10px;
    max-width: 100%;
  }

  .color-option {
    width: 36px;
    height: 36px;
  }

  .color-preview {
    width: 30px;
    height: 30px;
  }
}

.color-guide-note {
  margin: 0 0 8px;
  padding: 0 4px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  word-break: keep-all;
}

.color-option {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  animation: popIn 0.5s var(--ease-spring) backwards;
  animation-delay: calc(var(--i, 0) * 45ms + 300ms);
}

@media (hover: hover) {
  .color-option:hover {
    transform: scale(1.04);
  }
}

.color-option.selected {
  box-shadow: 0 0 0 2.5px var(--blue);
  transform: none;
}

.color-option--any {
  width: auto;
  min-width: 200px;
  height: auto;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid var(--blue-2);
  font-weight: 700;
  color: var(--blue);
  background: #fff;
}

.color-option--any.selected {
  transform: none;
}

.color-preview {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1), inset 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.color-option .color-check {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.35s var(--ease-spring);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.color-option.light .color-check {
  color: #0f172a;
  text-shadow: none;
}

.color-option.selected .color-check {
  transform: scale(1);
}

/* 4단계: 세부모델 flat list */
.model-options {
  text-align: left;
}

.trim-list-card {
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.trim-list-card .model-option {
  border-top: 1px solid #f1f5f9;
  animation: fadeUp 0.4s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 35ms + 60ms);
}

.trim-list-card .model-option:first-child {
  border-top: 0;
}

.model-group {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: cardRise 0.5s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.model-group.open {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(21, 87, 255, 0.12);
}

.model-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.model-group.open .model-group-header {
  background: #eff6ff;
}

.group-title {
  flex: 1;
  font-weight: 700;
  font-size: 0.98rem;
  color: #334155;
  word-break: keep-all;
}

.group-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-2);
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.group-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  transition: transform 0.45s var(--ease-spring), background 0.3s ease, border-color 0.3s;
}

.group-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-2px) rotate(45deg);
}

.model-group.open .group-toggle {
  transform: rotate(180deg);
  background: var(--blue);
  border-color: var(--blue);
}

.model-group.open .group-toggle::before {
  border-color: #fff;
}

.model-group-options {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.model-group.open .model-group-options {
  grid-template-rows: 1fr;
}

.model-group-options > div {
  overflow: hidden;
}

.model-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.25s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.model-group.open .model-option {
  animation: fadeUp 0.4s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 40ms + 80ms);
}

@media (hover: hover) {
  .model-option:hover {
    background: #f8fafc;
  }
}

.model-option.selected {
  background: #eff6ff;
}

.model-radio {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: grid;
  place-items: center;
  transition: border-color 0.25s ease;
}

.model-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform 0.4s var(--ease-spring);
}

.model-option.selected .model-radio {
  border-color: var(--blue);
}

.model-option.selected .model-radio::after {
  transform: scale(1);
}

.model-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.model-sub-trim {
  font-weight: 600;
  color: #334155;
  word-break: keep-all;
}

.model-price {
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}

/* 4단계: 이용조건 */
.usage-conditions {
  text-align: left;
}

.condition-group {
  margin-bottom: 22px;
  opacity: 1;
  max-height: none;
  overflow: visible;
  transform: none;
  pointer-events: auto;
}

.condition-group label {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
  color: #1e293b;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.condition-group--nolabel > label {
  display: none;
}

.condition-group--nolabel {
  margin-bottom: 18px;
}

/* 구 순차공개 스타일 무력화 — 첫 화면부터 전부 표시 */
.fade-up-group,
.fade-up-group.show {
  opacity: 1 !important;
  max-height: none !important;
  margin-bottom: 22px !important;
  overflow: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

.condition-options--pills .condition-option {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 999px;
  text-align: center;
  padding: 14px 16px;
  border: 1.5px solid #d0d7e4;
  background: #fff;
  color: #1e293b;
  box-shadow: none;
}

.condition-options--pills .condition-option.selected {
  border-color: transparent;
  background: var(--blue-cta);
  color: #fff;
  box-shadow: none;
  transform: none;
}

.percent-slider {
  padding-top: 4px;
}

.percent-slider-rail {
  position: relative;
  height: 8px;
  margin: 10px 4px 22px;
  border-radius: 999px;
  background: #e5ebf5;
}

.percent-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.35s var(--ease-out);
}

.percent-slider-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(1, 80, 254, 0.35);
  transform: translate(-50%, -50%);
  transition: left 0.35s var(--ease-out);
  pointer-events: none;
}

/* 보증금: 두꺼운 filled 바 / 선납금: 얇은 트랙+핸들 */
.condition-group[data-key="deposit"] .percent-slider-rail {
  height: 14px;
  margin-bottom: 18px;
}

.condition-group[data-key="deposit"] .percent-slider-thumb {
  width: 0;
  height: 0;
  border: 0;
  box-shadow: none;
  opacity: 0;
}

.condition-group[data-key="prepayment"] .percent-slider-rail {
  height: 6px;
  background: #e8eef8;
}

.condition-group[data-key="prepayment"] .percent-slider-thumb {
  width: 20px;
  height: 20px;
  opacity: 1;
}

.percent-slider-ticks {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.percent-tick {
  position: relative;
  flex: 1;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.percent-tick.active,
.percent-tick.selected {
  color: var(--blue);
  font-size: 1.18rem;
  transform: translateY(-2px);
}

.step-title-conditions,
.step-title-contact,
.summary-heading {
  font-family: "Paperlogy", sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--blue);
  margin: 4px auto 28px;
  font-weight: 700;
  max-width: none;
  text-align: center;
  word-break: keep-all;
}

/* 이용조건 화면 — PC/모바일 동일 (모바일 시안 폭 고정) */
#panel5.step.active {
  background-image: none;
  border-radius: 0;
}

#panel5 {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  padding: 4px 12px 28px;
  box-sizing: border-box;
}

#panel5 .step-title-conditions {
  margin: 8px auto 24px;
  font-size: clamp(0.78rem, 3.6vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.05em;
  white-space: nowrap;
  word-break: keep-all;
  color: var(--blue);
  max-width: none;
  width: 100%;
  overflow: visible;
  text-align: center;
}

#panel5 .usage-conditions {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

#panel5 .condition-group {
  margin-bottom: 24px;
}

#panel5 .condition-group--nolabel {
  margin-bottom: 24px;
}

#panel5 .condition-group label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-align: left;
}

#panel5 .condition-options {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* 장기렌트/리스 · 개인/사업자 — 고정 간격 (vw 금지: PC에서 벌어짐) */
#panel5 .condition-group[data-key="method"] .condition-options,
#panel5 .condition-group[data-key="customer"] .condition-options {
  gap: 40px;
  justify-content: center;
}

#panel5 .condition-group[data-key="method"] .condition-option,
#panel5 .condition-group[data-key="customer"] .condition-option {
  flex: 1 1 0;
  max-width: 120px;
}

#panel5 .condition-group[data-key="period"] .condition-options {
  gap: 10px;
}

#panel5 .condition-group[data-key="mileage"] .condition-options {
  gap: 8px;
}

#panel5 .condition-options--pills .condition-option {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #d8dee8;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#panel5 .condition-options--pills .condition-option.selected {
  border-color: transparent;
  background: var(--blue-cta);
  color: #fff;
  box-shadow: none;
  transform: none;
}

#panel5 .condition-group[data-key="period"] .condition-option {
  font-size: 0.88rem;
  max-width: none;
}

#panel5 .condition-group[data-key="mileage"] .condition-option {
  font-size: 0.72rem;
  letter-spacing: -0.03em;
  padding: 0 2px;
  max-width: none;
}

#panel5 .condition-group--slider .percent-slider {
  padding-top: 2px;
  width: 100%;
}

#panel5 .condition-group[data-key="deposit"] .percent-slider-rail {
  height: 12px;
  margin: 10px 2px 12px;
  background: #e6ebf3;
}

#panel5 .condition-group[data-key="prepayment"] .percent-slider-rail {
  height: 4px;
  margin: 14px 2px 12px;
  background: #e6ebf3;
}

#panel5 .condition-group[data-key="prepayment"] .percent-slider-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 79, 255, 0.28);
}

/* 시안: 선택(찬) 퍼센트만 크게·파란색 */
#panel5 .percent-tick {
  font-size: 0.82rem;
  font-weight: 600;
  color: #9aa3b2;
  padding: 2px 0;
  transition: color 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease;
}

#panel5 .percent-tick.active,
#panel5 .percent-tick.selected {
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 800;
  transform: none;
}

#panel5 .button-group--stack {
  margin-top: 28px;
  gap: 0;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* 연락처(상세정보) — PC/모바일 동일 레이아웃 (시안 page_03) */
#panel6 {
  padding-top: 8px;
  padding-bottom: 40px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

#panel6 .step-title-contact {
  margin: 28px auto 32px;
  padding: 0 4px;
  white-space: normal;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 18em;
  word-break: keep-all;
}

.contact-form-pills {
  max-width: 320px;
  width: 100%;
  margin: 0 auto 28px;
}

.contact-pill-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-pill-row label {
  display: block;
  margin: 0;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}

.pill-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  border: 1.5px solid #7eb0ff;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  outline: none;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  touch-action: manipulation;
}

.pill-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.12);
}

#panel6 .contact-pill-row.input-group {
  margin-bottom: 14px;
  position: relative;
  overflow: visible;
  z-index: 1;
}

#panel6 .contact-pill-row.input-group:has(.field-msg) {
  margin-bottom: 6px;
  align-items: start;
  z-index: 2;
}

#panel6 .contact-pill-row.input-group:has(.field-msg) label {
  padding-top: 11px; /* 입력창과 라벨 세로 맞춤 */
}

#panel6 .contact-pill-row.input-group label {
  margin-bottom: 0; /* .input-group label 기본 margin 제거 */
}

/* 이름 오류문구가 연락처 필드에 가리지 않도록 문서 흐름에 배치 */
#panel6 .field-msg {
  position: static;
  grid-column: 2 / -1;
  left: auto;
  top: auto;
  margin: 6px 0 10px;
  padding: 0 4px;
  line-height: 1.35;
  z-index: 3;
}

#panel6 .pill-input {
  text-align: left;
}

#panel6 #phone {
  pointer-events: auto !important;
  user-select: text;
  -webkit-user-select: text;
}

#panel6 .button-group--stack {
  margin-top: 36px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

#panel6 .btn-next.btn-wide {
  box-shadow: none;
}

#panel6 .btn-next::after {
  display: none;
}

.summary-heading .summary-name {
  font-weight: 800;
}

/* 요약 확인 — 수정 PDF page_08 / 첨부 시안 1:1 */
#panel7 {
  padding-top: 4px;
  padding-bottom: 36px;
}

#panel7 .summary-heading {
  white-space: normal;
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 8px auto 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue);
  word-break: keep-all;
  max-width: 20em;
}

#panel7 .button-group--stack {
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}

#panel7 .btn-submit,
#panel7 .btn-edit-muted {
  width: 100%;
  max-width: var(--ai-cta-w);
  height: var(--ai-cta-h);
  font-size: var(--ai-cta-fs);
  font-weight: 500;
}

.condition-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.condition-option {
  position: relative;
  overflow: hidden;
  padding: 13px 20px;
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.35s var(--ease-spring), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.condition-group .condition-option {
  animation: none;
}

@media (hover: hover) {
  .condition-option:hover {
    border-color: var(--blue-2);
    transform: translateY(-2px);
  }

  #panel5 .condition-option:hover {
    border-color: #d8dee8;
    transform: none;
  }

  #panel5 .condition-option.selected:hover {
    border-color: transparent;
  }
}

.condition-option.selected {
  border-color: transparent;
  background: linear-gradient(135deg, #3b82f6, #1557ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 87, 255, 0.32);
  transform: translateY(-2px) scale(1.04);
}

#panel5 .condition-option.selected {
  background: var(--blue-cta);
  box-shadow: none;
  transform: none;
}

/* 5단계: 입력 */
.input-group {
  position: relative;
  text-align: left;
  margin-bottom: 26px;
}

.input-group label {
  display: block;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.text-field-container input,
.phone-input-container input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

.text-field-container input::placeholder {
  color: #cbd5e1;
  font-weight: 500;
}

.text-field-container input:focus,
.phone-input-container input:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15);
}

.phone-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-input-container input {
  text-align: center;
  padding: 0 8px;
  letter-spacing: 0.06em;
}

#phone1 {
  background: #f1f5f9;
  color: #64748b;
  flex: 0 0 26%;
}

.phone-separator {
  color: #94a3b8;
  font-weight: 700;
}

.phone-group {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  transform: translateY(26px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), max-height 0.6s var(--ease-out), margin 0.6s;
}

.phone-group.show {
  opacity: 1;
  max-height: 200px;
  margin-bottom: 26px;
  transform: none;
  pointer-events: auto;
  overflow: visible;
}

.field-msg {
  position: absolute;
  left: 4px;
  top: 100%;
  margin-top: 6px;
  color: #dc2626;
  font-size: 0.86rem;
  font-weight: 600;
  animation: fadeUp 0.3s var(--ease-out);
  z-index: 5;
  pointer-events: none;
}

.shake {
  animation: shake 0.45s ease;
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* 6단계: 요약 */
.summary-table {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #f1f5f9;
  animation: fadeUp 0.45s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 150ms);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row--full {
  grid-template-columns: 1fr;
}

.summary-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
}

.summary-row:not(.summary-row--full) .summary-cell:first-child {
  border-right: 1px solid #f1f5f9;
}

.summary-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.summary-value {
  font-weight: 700;
  color: #1e293b;
  word-break: keep-all;
}

/* 첨부 시안: 요약 카드 — 가로선만, 세로 구분선 없음 */
#panel7 .summary-table.summary-table--ref {
  border: 1px solid #91b8fc;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
  width: 100%;
}

#panel7 .summary-table--ref .summary-row {
  border-bottom: 1px solid #e8e8e8;
  min-height: 0;
}

#panel7 .summary-table--ref .summary-row:not(.summary-row--full) .summary-cell:first-child {
  border-right: 0; /* 시안: 세로선 없음 */
}

#panel7 .summary-table--ref .summary-cell {
  gap: 6px;
  padding: 14px 16px 13px;
  text-align: left;
}

#panel7 .summary-table--ref .summary-label {
  display: block;
  color: #a8b8e8;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

#panel7 .summary-table--ref .summary-value {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
  word-break: keep-all;
}

#panel7 .btn-edit-muted {
  color: #1a1a1a;
  background: #e8e9ee;
  border: 0;
}

#panel7 .btn-edit-muted .btn-arrow {
  color: #1a1a1a;
}

.privacy-consent-wrap {
  margin-top: 22px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
}

.privacy-consent-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
}

.privacy-consent-check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease-spring);
}

.check-box::after {
  content: "";
  width: 6px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transition: transform 0.35s var(--ease-spring);
}

.privacy-consent-check-row input:checked + .check-box {
  background: var(--blue);
  border-color: var(--blue);
}

.privacy-consent-check-row input:checked + .check-box::after {
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.privacy-consent-check-row:active .check-box {
  transform: scale(0.85);
}

.privacy-consent-guide {
  margin-top: 6px;
}

.privacy-consent-link {
  font-size: 0.86rem;
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-submit {
  font-size: var(--ai-cta-fs);
  font-weight: 500;
}

/* 완료 */
.container.is-completing .logo-container,
.container.is-completing .site-footer,
.container.is-completing .progress-container {
  display: none !important;
}

.completion-message {
  text-align: center;
  flex: 1;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 18px 40px;
  overflow: visible;
  animation: fadeUp 0.6s var(--ease-out);
  background: linear-gradient(180deg, #c4e2f8 0%, #d6e9fa 28%, #e8f2fc 58%, #ffffff 100%);
  border-radius: 20px;
}

.completion-message.is-sending .completion-title {
  font-size: clamp(0.86rem, 3.8vw, 0.95rem); /* req: 글씨 너무 크고 굵음 */
  font-weight: 500;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.completion-visual {
  height: auto;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: visible; /* req: 종이비행기 잘림 방지 */
  position: relative;
  width: 100%;
}

.completion-plane {
  width: min(128px, 34vw);
  height: auto;
  transform-origin: center center;
  overflow: visible;
  display: block;
  margin: 0 auto;
}

.completion-plane.is-flying {
  animation: planeFlyAway 1.45s ease-in forwards;
}

.completion-plane[hidden] {
  display: none !important;
}

@keyframes planeFlyAway {
  0% {
    transform: translate(0, 0) scale(1) rotate(-6deg);
    opacity: 1;
  }
  100% {
    transform: translate(130px, -200px) scale(0.12) rotate(18deg);
    opacity: 0;
  }
}

.completion-check,
.completion-fail {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(33, 211, 237, 0.28));
}

.completion-check--success {
  width: min(112px, 30vw);
  height: auto;
  /* 시안 체크 #21d3ed */
  filter: drop-shadow(0 8px 16px rgba(33, 211, 237, 0.32));
  transform-origin: center;
}

.completion-check--success.is-drawing {
  animation: checkReveal 0.7s var(--ease-out) forwards, checkPop 0.55s var(--ease-spring) 0.45s;
}

@keyframes checkReveal {
  0% {
    opacity: 0.15;
    clip-path: inset(0 100% 0 0);
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

.completion-check--success[hidden],
.completion-brand-wrap[hidden],
.completion-fail[hidden] {
  display: none !important;
}

.completion-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  overflow: visible;
}

.completion-brand {
  width: min(168px, 50vw);
  height: auto;
  margin: 0;
  object-fit: contain;
}

.completion-visual:has(.completion-check--success:not([hidden])) {
  flex-direction: column;
  height: auto;
  min-height: 140px;
  margin-bottom: 12px;
}

.check-mark-solid {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}

.check-circle {
  fill: none;
  stroke: var(--blue);
  stroke-width: 6;
  stroke-dasharray: 330;
  stroke-dashoffset: 330;
  animation: drawStroke 0.7s ease-out forwards;
}

.check-mark {
  fill: none;
  stroke: var(--blue);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawStroke 0.5s ease-out 0.55s forwards;
}

.completion-fail .check-circle,
.completion-fail .check-mark {
  stroke: #ef4444;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkPop {
  50% {
    transform: scale(1.08);
  }
}

.completion-message h2,
.completion-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 4px;
  word-break: keep-all;
}

.completion-title--done {
  font-size: clamp(0.92rem, 4vw, 1rem); /* req: 글씨 너무 크고 굵음 */
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.completion-message p,
.completion-text {
  color: #7b8aa3;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 400;
  word-break: keep-all;
}

.completion-title--done + .completion-text {
  margin-top: 0;
  margin-bottom: 28px; /* req I5: 완료문구 간격 좁히기 */
}

.completion-message .btn-restart {
  width: min(100%, 240px);
  max-width: 240px;
  height: 46px;
  margin-top: 8px; /* req I6: 창닫기 위치를 문구 바로 아래로 */
  font-size: 0.86rem;
  font-weight: 500;
}

/* req: 파란색이 아래로 채워지는 트랜지션 */
.blue-wipe {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  background: #004fff;
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0;
}

.blue-wipe.is-active {
  opacity: 1;
}

.blue-wipe.is-filling {
  animation: blueWipeFill 0.78s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes blueWipeFill {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  55% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* 개인정보 팝업 */
.privacy-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.privacy-popup-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s;
}

.privacy-popup {
  width: 100%;
  max-width: 600px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px 22px 0 0;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}

.privacy-popup-overlay.active .privacy-popup {
  transform: none;
}

.privacy-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid #f1f5f9;
}

.privacy-popup-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.privacy-popup-close {
  font-size: 1.8rem;
  line-height: 1;
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.2s, transform 0.3s var(--ease-spring);
}

.privacy-popup-close:hover {
  background: #f1f5f9;
  transform: rotate(90deg);
}

.privacy-popup-body {
  padding: 18px 22px 30px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #475569;
}

.privacy-popup-section + .privacy-popup-section {
  margin-top: 20px;
}

.privacy-popup-section h4 {
  font-size: 0.98rem;
  color: #1e293b;
  margin-bottom: 8px;
}

.privacy-popup-section ol {
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

/* 토스트 */
.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 2000;
  max-width: calc(100% - 40px);
  padding: 13px 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3);
  transform: translate(-50%, -160%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease-spring), opacity 0.3s ease, visibility 0s linear 0.5s;
  pointer-events: none;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s var(--ease-spring), opacity 0.2s ease, visibility 0s;
}

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1500;
}

/* 푸터 */
.site-footer {
  margin-top: 48px;
  padding: 20px 0 10px;
  border-top: 0;
  text-align: center;
  color: #bcbcbc;
  font-family: "Paperlogy", sans-serif;
  font-size: 0.72rem;
  font-weight: 200;
}

.footer-logo {
  width: 96px;
  height: auto;
  margin: 0 auto 6px;
  opacity: 0.85;
}

.footer-seo {
  margin: 4px 0 0;
  font-size: 0.68rem;
}

.footer-seo a {
  color: inherit;
  text-decoration: none;
}

/* 반응형 */
@media (max-width: 480px) {
  .container {
    padding: 16px 16px 24px;
  }
  #panel7 {
    margin-left: 0;
    margin-right: 0;
  }
  #panel7 .summary-heading {
    font-size: 0.98rem;
  }
  /* panel5: 베이스에서 PC/모바일 동일 처리 — 여기선 추가 오버라이드 없음 */
  .manufacturer-selection {
    max-width: 180px;
  }
  .manufacturer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .manufacturer-card {
    height: 100px;
    padding: 8px 12px 6px;
  }
  .brand-logo img {
    max-height: 68px;
    max-width: 88%;
  }
  .manufacturer-card[data-brand="BMW"] {
    height: 108px;
  }
  .manufacturer-card[data-brand="BMW"] .brand-logo img {
    max-height: 78px;
  }
  .car-models-grid {
    gap: 10px;
  }
  .step h2 {
    font-size: 1.7rem;
  }
  .car-detail-header h2 {
    font-size: 1.6rem;
  }
  .tab {
    min-width: 0;
    padding: 13px 16px;
  }
  .intro-title {
    font-size: 1.45rem;
  }
  .condition-options {
    gap: 8px;
  }
  .condition-option {
    padding: 12px 14px;
  }
  .model-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* panel3 색상화면 — 차량/색상명 (vw로 실제 확대) */
#panel3 .car-image-section {
  height: 340px !important;
  margin: 0 0 -18px !important;
}
#panel3 .car-image-placeholder {
  width: 100% !important;
}
#panel3 .car-image-placeholder img {
  width: 100% !important;
  max-width: 100% !important;
}
#panel3 .color-selection-section {
  margin-top: -14px !important;
}
#panel3 .selected-color-info {
  margin-top: 0 !important;
  padding-top: 0 !important;
  gap: 6px !important;
}
#panel3 .selected-color-name {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
}
