:root {
  --blue: #1557ff;
  --blue-2: #3b82f6;
  --sky: #5aaaf5;
  --navy: #1340c9;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f4f8ff;
  --radius: 16px;
  --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;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

[hidden] {
  display: none !important;
}

/* ============================================================
   인트로(로딩) 화면
   ============================================================ */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, #163a94 0%, #0a1d55 42%, #040b24 78%, #02050f 100%);
  color: #fff;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}

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

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

.intro-warp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, rgba(21, 87, 255, 0.15) 45%, transparent 70%);
  filter: blur(10px);
  animation: glowPulse 2.4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
  }
}

.intro-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  text-align: center;
  transition: transform 0.7s var(--ease-out), opacity 0.6s ease, filter 0.6s ease;
}

.intro-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 20px 60px rgba(21, 87, 255, 0.55), 0 0 90px rgba(90, 170, 245, 0.35);
  opacity: 0;
  transform: translateY(18px) scale(0.6) rotateX(50deg);
  animation: logoIn 1s var(--ease-spring) 0.15s forwards;
  overflow: hidden;
}

.intro-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: conic-gradient(from var(--spin, 0deg), transparent 0deg, #5aaaf5 60deg, #fff 90deg, transparent 140deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinBorder 2s linear infinite;
}

@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinBorder {
  to {
    --spin: 360deg;
  }
}

.intro-logo {
  width: 170px;
  height: auto;
  position: relative;
}

.intro-logo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.95) 50%, transparent 65%);
  background-size: 260% 100%;
  background-position: 130% 0;
  mix-blend-mode: overlay;
  animation: shineSweep 1.6s ease-in-out 0.9s infinite;
}

@keyframes logoIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shineSweep {
  0% {
    background-position: 130% 0;
  }
  60%,
  100% {
    background-position: -30% 0;
  }
}

.intro-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.intro-title-text {
  display: inline-block;
}

.intro-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) scale(0.8);
  color: #fff;
  text-shadow: 0 0 18px rgba(90, 170, 245, 0.75), 0 2px 10px rgba(0, 0, 0, 0.35);
  animation: chIn 0.6s var(--ease-spring) forwards, charWave 2.2s ease-in-out infinite;
}

@keyframes chIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes charWave {
  0%,
  70%,
  100% {
    color: #fff;
  }
  35% {
    color: #8fc9ff;
    text-shadow: 0 0 24px rgba(90, 170, 245, 1), 0 2px 10px rgba(0, 0, 0, 0.35);
  }
}

.intro-subtitle {
  font-size: 0.98rem;
  color: rgba(219, 234, 254, 0.8);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.9s forwards;
}

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

.intro-stage {
  position: relative;
  height: 150px;
  margin: 22px auto 10px;
  max-width: 380px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.5s forwards;
}

.intro-beam {
  position: absolute;
  left: -20px;
  bottom: 30px;
  width: 200px;
  height: 70px;
  background: radial-gradient(ellipse at 100% 60%, rgba(255, 244, 200, 0.55) 0%, rgba(255, 244, 200, 0.12) 45%, transparent 70%);
  filter: blur(4px);
  transform-origin: right center;
  animation: beamFlicker 0.9s ease-in-out infinite alternate;
}

@keyframes beamFlicker {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

.intro-cars {
  position: absolute;
  inset: 0 0 18px;
}

.intro-car {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 230px;
  margin-left: -115px;
  opacity: 0;
  will-change: transform, filter, opacity;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6));
}

.intro-car.enter {
  animation: carEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards, carBob 0.35s ease-in-out 0.55s infinite alternate;
}

.intro-car.exit {
  animation: carExit 0.45s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes carEnter {
  0% {
    opacity: 0;
    transform: translateX(260px) scaleX(1.25);
    filter: blur(8px) drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6));
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0) drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6));
  }
}

@keyframes carBob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-2px);
  }
}

@keyframes carExit {
  0% {
    opacity: 1;
    transform: none;
    filter: blur(0) drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6));
  }
  100% {
    opacity: 0;
    transform: translateX(-320px) scaleX(1.35);
    filter: blur(10px) drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6));
  }
}

.intro-road {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 6px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(90, 170, 245, 0.35) 0%, transparent 70%);
  overflow: hidden;
}

.intro-road span {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 26px, transparent 26px 54px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  animation: roadMove 0.35s linear infinite;
}

@keyframes roadMove {
  to {
    background-position: 54px 0;
  }
}

.intro-speedlines i {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(191, 224, 255, 0.9), transparent);
  animation: speedLine 0.7s linear infinite;
  opacity: 0;
}

.intro-speedlines i:nth-child(1) { top: 18%; width: 90px; animation-delay: 0s; }
.intro-speedlines i:nth-child(2) { top: 34%; width: 140px; animation-delay: 0.25s; }
.intro-speedlines i:nth-child(3) { top: 52%; width: 70px; animation-delay: 0.4s; }
.intro-speedlines i:nth-child(4) { top: 66%; width: 120px; animation-delay: 0.1s; }
.intro-speedlines i:nth-child(5) { top: 26%; width: 60px; animation-delay: 0.55s; }
.intro-speedlines i:nth-child(6) { top: 76%; width: 100px; animation-delay: 0.33s; }

@keyframes speedLine {
  0% {
    left: -30%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

.intro-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 8px 0 14px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 1.05s forwards;
}

.intro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}

.intro-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 0 18px rgba(90, 170, 245, 0.8);
}

.intro-stat > span {
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.75);
}

.intro-stat-divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.35), transparent);
}

.intro-progress {
  position: relative;
  height: 6px;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 1.1s forwards;
}

.intro-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #1557ff, #5aaaf5, #e0f2ff);
  box-shadow: 0 0 14px rgba(90, 170, 245, 0.9);
}

.intro-status {
  margin-top: 12px;
  font-size: 0.86rem;
  color: rgba(219, 234, 254, 0.85);
  min-height: 1.3em;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 1.2s forwards;
}

.intro-status.swap {
  opacity: 0 !important;
  transform: translateY(-6px);
}

/* ============================================================
   메인 레이아웃
   ============================================================ */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.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: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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: 20px;
  padding: 20px;
}

.logo-link {
  position: relative;
  display: inline-block;
  animation: logoFloat 5s ease-in-out infinite;
}

.main-logo {
  width: 220px;
  max-width: 62vw;
  height: auto;
}

.main-logo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%);
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-mask: url("../img/logo/logo-1.png") center / contain no-repeat;
  mask: url("../img/logo/logo-1.png") center / contain no-repeat;
  animation: logoShine 4.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}

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

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

/* 진행률 */
.progress-container {
  margin-bottom: 30px;
  text-align: center;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(203, 213, 225, 0.5);
  border-radius: 8px;
  margin: 14px 0 15px;
}

.progress-fill {
  position: relative;
  height: 100%;
  width: 16.66%;
  border-radius: 8px;
  background: linear-gradient(90deg, #1557ff, #3b82f6 50%, #93c5fd);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
  transition: width 0.8s var(--ease-spring);
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.28) 0 8px, transparent 8px 16px);
  background-size: 22.6px 100%;
  animation: stripes 0.8s linear infinite;
}

@keyframes stripes {
  to {
    background-position: 22.6px 0;
  }
}

.progress-car {
  position: absolute;
  right: -16px;
  top: 50%;
  width: 34px;
  height: 17px;
  margin-top: -14px;
  color: var(--blue);
  filter: drop-shadow(0 3px 4px rgba(21, 87, 255, 0.4));
  animation: carRide 0.5s ease-in-out infinite alternate;
  z-index: 2;
}

.progress-car svg {
  width: 100%;
  height: 100%;
  transform: scaleX(1);
}

@keyframes carRide {
  to {
    transform: translateY(-1.5px);
  }
}

.progress-text {
  font-weight: 700;
  color: #334155;
  font-size: 1rem;
}

#currentStep {
  display: inline-block;
  color: var(--blue);
}

#currentStep.bump {
  animation: bump 0.5s var(--ease-spring);
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.6);
  }
  100% {
    transform: scale(1);
  }
}

/* 단계 */
.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-size: 2rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #1340c9, #1557ff 40%, #3b82f6 60%, #1340c9);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: headingShift 6s linear infinite;
}

@keyframes headingShift {
  to {
    background-position: -200% 0;
  }
}

.step-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

/* 탭 */
.car-type-tabs {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.tab {
  position: relative;
  z-index: 1;
  min-width: 114px;
  padding: 16px 28px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  color: #475569;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
}

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

.tab.active {
  color: #fff;
  border-color: transparent;
  background: transparent;
}

.tab-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(50% - 8px);
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1557ff);
  box-shadow: 0 8px 22px rgba(21, 87, 255, 0.35);
  transition: transform 0.5s var(--ease-spring);
}

.car-type-tabs[data-active="imported"] .tab-indicator {
  transform: translateX(calc(100% + 16px));
}

/* 제조사 카드 */
.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.manufacturer-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 12px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.3s ease;
  animation: popIn 0.55s var(--ease-spring) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

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

.manufacturer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3b82f6, #1557ff);
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

@media (hover: hover) {
  .manufacturer-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 30px rgba(21, 87, 255, 0.14);
  }
}

.manufacturer-card.selected {
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(21, 87, 255, 0.4);
  transform: translateY(-3px) scale(1.03);
}

.manufacturer-card.selected::before {
  opacity: 1;
}

.brand-logo {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.brand-logo img {
  max-height: 40px;
  max-width: 66px;
  object-fit: contain;
  transition: filter 0.35s ease, transform 0.45s var(--ease-spring);
}

.manufacturer-card.selected .brand-logo img {
  filter: brightness(0) invert(1);
  transform: scale(1.1);
}

.brand-name {
  font-weight: 700;
  color: #334155;
  transition: color 0.3s ease;
}

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

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

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

/* 차량 선택 */
.car-selection-area {
  margin-bottom: 30px;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.selection-label {
  position: relative;
  overflow: hidden;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: 14px;
  border: 1px solid #3b82f6;
  background: #eff6ff;
  color: var(--blue-2);
  font-size: 1.15rem;
  font-weight: 800;
}

.selection-label::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: labelShine 2.8s ease-in-out infinite;
}

@keyframes labelShine {
  0% {
    left: -50%;
  }
  60%,
  100% {
    left: 120%;
  }
}

.car-models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.car-model-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.3s ease, background 0.3s ease;
  animation: cardRise 0.6s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}

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

@media (hover: hover) {
  .car-model-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 32px rgba(21, 87, 255, 0.14);
  }
  .car-model-card:hover .car-model-image img {
    transform: translateX(-6px) scale(1.06);
  }
}

.car-model-card.selected {
  border-color: var(--blue);
  background: linear-gradient(180deg, #fff 0%, #eef4ff 100%);
  box-shadow: 0 0 0 2px var(--blue), 0 16px 34px rgba(21, 87, 255, 0.25);
}

.car-model-card .check-badge {
  background: var(--blue);
  color: #fff;
}

.brand-logo-small {
  position: absolute !important;
  top: 12px;
  left: 12px;
  height: 18px;
}

.brand-logo-small img {
  height: 18px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
}

.car-model-image {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 12px;
}

.car-model-image img {
  max-height: 100px;
  width: auto;
  transition: transform 0.5s var(--ease-out);
  animation: carSlide 0.8s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 55ms + 120ms);
}

@keyframes carSlide {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.car-model-card.selected .car-model-image img {
  animation: carRev 0.6s var(--ease-spring);
}

@keyframes carRev {
  0% {
    transform: none;
  }
  30% {
    transform: translateX(8px) scale(0.97);
  }
  70% {
    transform: translateX(-10px) scale(1.06);
  }
  100% {
    transform: none;
  }
}

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

.car-model-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  word-break: keep-all;
  margin-bottom: 4px;
}

.car-model-price {
  font-size: 0.9rem;
  color: var(--blue-2);
  font-weight: 600;
}

.car-model-type {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 2px 8px;
}

/* 버튼 */
.btn-next,
.btn-prev,
.btn-submit,
.btn-restart {
  position: relative;
  overflow: hidden;
  height: 58px;
  border-radius: 14px;
  font-size: 1.08rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.btn-next,
.btn-submit,
.btn-restart {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #1557ff 60%, #1340c9 100%);
  background-size: 200% 200%;
  box-shadow: 0 12px 26px rgba(21, 87, 255, 0.35);
}

.btn-next:not(:disabled),
.btn-submit {
  animation: btnGradient 4s ease infinite;
}

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

.btn-next.ready {
  animation: btnGradient 4s ease infinite, readyPulse 1.6s ease-out 2;
}

@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: scale(0.97);
}

.btn-next:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  color: #fff;
}

.btn-wide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-arrow {
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1;
  margin-top: -3px;
}

.btn-next:not(:disabled) .btn-arrow {
  animation: arrowNudge 1s ease-in-out infinite;
}

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

.btn-next:not(:disabled)::after,
.btn-submit::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  left: -50%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: btnShine 2.6s ease-in-out infinite;
}

@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;
}

.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;
  }
}

/* 2단계: 차량 상세 */
.car-detail-header h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
  word-break: keep-all;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 4px solid var(--blue-2);
  background: #f8fafc;
}

.spec-chip {
  font-size: 0.85rem;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 20px;
  animation: popIn 0.45s var(--ease-spring) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 200ms);
}

.car-image-section {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 8px;
  overflow: hidden;
}

.car-spotlight {
  --car-color: #3b82f6;
  position: absolute;
  width: 300px;
  height: 200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--car-color) 45%, transparent) 0%, transparent 68%);
  filter: blur(16px);
  transition: background 0.6s ease;
  animation: spotPulse 3s ease-in-out infinite;
}

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

.car-image-placeholder {
  position: relative;
  z-index: 1;
}

.car-image-placeholder img {
  width: 300px;
  max-width: 82vw;
  height: auto;
  -webkit-box-reflect: below -14px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.22));
}

.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: 34px;
  width: 260px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(15, 23, 42, 0.22), transparent 70%);
}

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

.selected-color-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.selected-color-info.has-color {
  border-color: #bfdbfe;
  background: #eff6ff;
}

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

.selected-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
  display: none;
}

.selected-color-info.has-color .selected-color-dot {
  display: inline-block;
  animation: popIn 0.4s var(--ease-spring);
}

.color-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.color-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease, box-shadow 0.3s ease;
  animation: popIn 0.5s var(--ease-spring) backwards;
  animation-delay: calc(var(--i, 0) * 45ms + 300ms);
}

@media (hover: hover) {
  .color-option:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
  }
}

.color-option.selected {
  border-color: var(--blue-2);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 10px 20px rgba(21, 87, 255, 0.18);
  transform: scale(1.06);
}

.color-option--any {
  grid-column: 1 / -1;
  padding: 16px;
  font-weight: 700;
  color: var(--blue);
}

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

.color-preview {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12), inset 0 -8px 12px rgba(0, 0, 0, 0.12), inset 0 6px 10px rgba(255, 255, 255, 0.35);
}

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

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

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

/* 3단계: 세부모델 아코디언 */
.model-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.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: 14px;
  padding: 16px 18px;
  border-top: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.25s ease;
}

.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: 26px;
}

.condition-group label {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 12px;
}

.fade-up-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 var(--ease-out);
}

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

.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;
}

.fade-up-group.show .condition-option,
.condition-group.show .condition-option {
  animation: popIn 0.45s var(--ease-spring) backwards;
  animation-delay: calc(var(--i, 0) * 50ms + 120ms);
}

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

.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);
}

/* 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);
}

.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: 4px;
  padding: 14px 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;
}

.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: 1.12rem;
}

/* 완료 */
.completion-message {
  text-align: center;
  padding: 50px 10px 30px;
  animation: fadeUp 0.6s var(--ease-out);
}

.completion-visual {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.sk-cube-grid {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sk-cube-grid i {
  background: var(--blue-2);
  animation: cubeGrid 1.3s ease-in-out infinite;
}

.sk-cube-grid i:nth-child(1) { animation-delay: 0.2s; }
.sk-cube-grid i:nth-child(2) { animation-delay: 0.3s; }
.sk-cube-grid i:nth-child(3) { animation-delay: 0.4s; }
.sk-cube-grid i:nth-child(4) { animation-delay: 0.1s; }
.sk-cube-grid i:nth-child(5) { animation-delay: 0.2s; }
.sk-cube-grid i:nth-child(6) { animation-delay: 0.3s; }
.sk-cube-grid i:nth-child(7) { animation-delay: 0s; }
.sk-cube-grid i:nth-child(8) { animation-delay: 0.1s; }
.sk-cube-grid i:nth-child(9) { animation-delay: 0.2s; }

@keyframes cubeGrid {
  0%,
  70%,
  100% {
    transform: scale3d(1, 1, 1);
  }
  35% {
    transform: scale3d(0, 0, 1);
  }
}

.completion-check,
.completion-fail {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 14px 26px rgba(21, 87, 255, 0.35));
}

.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;
}

.completion-check {
  animation: checkPop 0.6s var(--ease-spring) 0.9s;
}

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

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

.completion-message h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  word-break: keep-all;
}

.completion-message p {
  color: #64748b;
  margin-bottom: 30px;
  word-break: keep-all;
}

.btn-restart {
  width: 100%;
  max-width: 320px;
}

/* 개인정보 팝업 */
.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: 60px;
  padding: 24px 0 10px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
}

.footer-logo {
  width: 84px;
  margin: 0 auto 8px;
  opacity: 0.7;
}

/* 반응형 */
@media (max-width: 480px) {
  .container {
    padding: 16px;
  }
  .manufacturer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .car-models-grid {
    gap: 12px;
  }
  .step h2 {
    font-size: 1.7rem;
  }
  .car-detail-header h2 {
    font-size: 1.6rem;
  }
  .tab {
    min-width: 104px;
    padding: 14px 22px;
  }
  .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;
  }
}
