/* 디자인 토큰 */
:root {
  --brand: #1f6fe8;
  --brand-strong: #1957c2;
  --brand-ink: #1449a8;
  --brand-tint: #e8f3ff;
  --brand-tint-line: #c9e2ff;
  --brand-ring: rgba(31, 111, 232, 0.2);
  --brand-disabled: #a5c5f6;
  --check-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='m5.5 10.5 3 3 6-7' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  --navy: #191f28;
  --navy-soft: #333d4b;
  --accent: #1b64da;
  --accent-tint: #e8f3ff;
  --accent-line: #c9e2ff;
  --ink: #191f28;
  --text: #333d4b;
  --sub: #4e5968;
  --muted: #636d79;
  --faint: #b0b8c1;
  --line: #e5e8eb;
  --line-strong: #d1d6db;
  --fill: #f2f4f6;
  --fill-hover: #e9ecef;
  --surface-alt: #f9fafb;
  --danger: #f04452;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease-out);
  --t-base: 0.28s var(--ease-out);
}

/* 기본 스타일 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  background: white;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  word-break: keep-all;
  overflow-wrap: break-word;
}

::selection {
  background: var(--brand-tint-line);
  color: var(--ink);
}

input,
button {
  font-family: inherit;
  caret-color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.progress-text,
.car-model-price,
.model-price,
.summary-value,
.phone-input-container input {
  font-variant-numeric: tabular-nums;
}

/* 인트로(로딩) 구간: 푸터는 메인 전환 후에만 표시 (html 플래그·body 클래스 이중) */
html.app-intro-active #babioFooterApp,
body.page-intro-active #babioFooterApp {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.app-intro-active .intro-screen,
body.page-intro-active .intro-screen {
  z-index: 2147483646 !important;
}

/* 인트로 화면 */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro-content {
  text-align: center;
  color: var(--text);
}

.logo {
  margin-bottom: 60px;
}

.intro-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

.intro-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 400;
  text-wrap: balance;
}

@keyframes titleGlow {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

/* 로딩 컨테이너 */
.loading-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Lottie 애니메이션 컨테이너 */
.lottie-animation {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* 기존 지구/자동차 애니메이션 CSS 숨김 */
.earth-container,
.earth,
.car-orbit,
.loading-car,
.car-body,
.car-wheels,
.wheel {
  display: none;
}

/* 지구 */
.earth {
  font-size: 4rem;
  position: relative;
  z-index: 1;
  animation: earthRotate 4s linear infinite;
}

@keyframes earthRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 자동차 궤도 */
.car-orbit {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 2px dashed rgba(30, 64, 175, 0.3);
  border-radius: 50%;
  animation: orbitRotate 3s linear infinite;
}

/* 자동차 */
.loading-car {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  animation: carOrbit 3s linear infinite;
}

.car-body {
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.car-wheels {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}

.wheel {
  font-size: 0.8rem;
  animation: wheelSpin 0.3s linear infinite;
}

.wheel-1 {
  animation-delay: 0s;
}

.wheel-2 {
  animation-delay: 0.15s;
}

@keyframes orbitRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes carOrbit {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes wheelSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 로딩 텍스트 */
.loading-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brand-strong);
  animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* 인트로 화면 숨김 */
.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 헤더 스타일 */
.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1e40af;
}

.subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 400;
}

/* 로고 */
.logo-container {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
}

.main-logo {
  max-width: calc(240px + 2px);
  height: auto;
  object-fit: contain;
}

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

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e8edf5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-fill {
  height: 100%;
  background: var(--brand);
  width: 14.28%;
  transition: width 0.7s var(--ease-out);
  border-radius: 999px;
}

.progress-text {
  color: var(--muted);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

#currentStep {
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  vertical-align: -0.08em;
}

/* 폼 컨테이너 */
.form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 단계별 스타일 */
.step {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  padding: 50px;
  border-radius: 24px;
  text-align: center;
  animation: fadeInUp 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.step.active {
  display: block;
}

.step h2 {
  font-size: clamp(1.75rem, 6.4vw, 2.4rem);
  margin-bottom: 28px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.step-description {
  font-size: clamp(1.4rem, 5.4vw, 1.9rem);
  color: var(--navy);
  margin-bottom: 28px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

/* 입력 그룹 */
.input-group {
  position: relative;
  margin-bottom: 42px;
  text-align: left;
  padding: 3px;
}

/* 차량 타입 탭 */
.car-type-tabs {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 36px;
  padding: 6px;
  gap: 4px;
  background: #eef2f8;
  border-radius: 999px;
}

.tab {
  padding: 13px 30px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-base);
  color: #475569;
  font-size: 1.05rem;
  border: none;
  background: transparent;
  user-select: none;
  white-space: nowrap;
}

.tab.active {
  background: var(--navy);
  color: white;
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.7);
}

@media (hover: hover) {
  .tab:hover:not(.active) {
    color: var(--navy);
  }
}

/* 제조사 선택 */
.manufacturer-selection {
  margin-bottom: 40px;
}

.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.manufacturer-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-base), transform var(--t-base);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

@media (hover: hover) {
  .manufacturer-card:hover {
    border-color: var(--brand-tint-line);
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.18);
    transform: translateY(-2px);
  }
}

.manufacturer-card:active {
  transform: scale(0.98);
}

.manufacturer-card.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
  box-shadow: 0 14px 26px -12px rgba(15, 23, 42, 0.75);
}

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

.manufacturer-card.selected .brand-logo-text {
  color: white;
}

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

.brand-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: filter var(--t-fast);
}

.brand-logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--brand);
  text-align: center;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-fast);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 5px;
  transition: color var(--t-fast);
}

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

/* 차량 선택 영역 */
.car-selection-area {
  margin-bottom: 30px;
}

.selection-label {
  font-size: clamp(1.4rem, 5.4vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin-bottom: 25px;
  text-align: center;
  padding: 28px 15px 0;
  border-top: 1px solid var(--line);
}

.selection-label::after {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--brand);
}

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

.car-model-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-base), transform var(--t-base);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  user-select: none;
}

@media (hover: hover) {
  .car-model-card:hover {
    border-color: var(--brand-tint-line);
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.18);
    transform: translateY(-2px);
  }
}

.car-model-card:active {
  transform: scale(0.98);
}

.car-model-card.selected {
  border-color: var(--navy);
  background: var(--brand-tint);
  outline: 1px solid var(--navy);
  outline-offset: -2px;
  box-shadow: 0 14px 26px -14px rgba(15, 23, 42, 0.6);
}

.car-model-card.selected::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='m5.5 10.5 3 3 6-7' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center / 14px no-repeat;
}

.car-model-card.selected .brand-logo-small {
  color: var(--navy);
}

.brand-logo-small {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  z-index: 2;
}

.brand-logo-small img {
  width: 40px;
  height: 30px;
  object-fit: contain;
}

.car-model-image {
  width: 100%;
  height: 70px;
  border-radius: 12px;
  margin-top: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.car-model-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.car-model-image-fallback {
  width: 100%;
  height: 100%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--muted);
}

.car-model-name {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.03em;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.car-model-price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: auto;
}

.car-selection {
  margin-bottom: 30px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  background: white;
  cursor: pointer;
}

/* 이름 입력칸 패딩 조정 (연락처와 크기 맞춤) */
.input-group:not(.phone-input-container) input {
  padding: 15px 17px;
}

/* 연락처 입력란 특별 스타일 */
#phone {
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
  text-align: center;
  font-weight: 600;
  color: #1e40af;
}

.input-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}

/* placeholder는 템플릿 변수 등으로 유지 가능, 화면에는 표시하지 않음 */
.hide-input-placeholder::placeholder {
  opacity: 0;
  color: transparent;
}
.hide-input-placeholder::-webkit-input-placeholder {
  opacity: 0;
  color: transparent;
}
.hide-input-placeholder::-moz-placeholder {
  opacity: 0;
  color: transparent;
}

.input-group label {
  position: absolute;
  left: 20px;
  top: 15px;
  color: var(--muted);
  transition: top var(--t-fast), left var(--t-fast), font-size var(--t-fast), color var(--t-fast);
  pointer-events: none;
  font-size: 1rem;
}

.input-group input:focus + label,
.input-group input:not([type="hidden"]):not(:placeholder-shown) + label,
.input-group input:not([type="hidden"]):not([value=""]) + label,
.input-group select:focus + label,
.input-group select:not([value=""]) + label {
  top: -10px;
  left: 15px;
  font-size: 0.85rem;
  color: var(--brand);
  background: white;
  padding: 0 5px;
}

/* 개월수 선택 옵션 */
.month-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.month-option {
  width: 120px;
  height: 120px;
  border: 3px solid #e1e5e9;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.month-option:hover {
  border-color: #2196f3;
  transform: translateY(-3px);
}

.month-option.selected {
  border-color: #1565c0;
  background: linear-gradient(135deg, #1565c0, #1e3c72, #0c2461);
  color: white;
  transform: translateY(-3px);
}

.month-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.month-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* 버튼 그룹 */
.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.btn-next,
.btn-prev,
.btn-submit,
.btn-restart,
.btn-kakao {
  padding: 19px 35px;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-base), transform var(--t-fast), opacity var(--t-fast);
  min-width: 140px;
}

.btn-next:focus-visible,
.btn-prev:focus-visible,
.btn-submit:focus-visible,
.btn-restart:focus-visible,
.btn-kakao:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px white, 0 0 0 5px var(--brand);
}

.btn-next:active:not(:disabled),
.btn-prev:active,
.btn-submit:active,
.btn-restart:active,
.btn-kakao:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-kakao {
  background: #fee500;
  color: #191919;
  flex: 1;
  max-width: 280px;
}

.btn-kakao:hover {
  background: #f5dc00;
}

.btn-kakao:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* 카카오 모드: 1~3단계 다음 버튼도 카카오 톤 (실제 OAuth는 4단계) */
body.is-kakao-flow #step1 .btn-next.is-kakao-continue,
body.is-kakao-flow #step2 .btn-next.is-kakao-continue,
body.is-kakao-flow #step3 .btn-next.is-kakao-continue {
  background: #fee500;
  color: #191919;
  box-shadow: none;
}

body.is-kakao-flow #step1 .btn-next.is-kakao-continue:hover:not(:disabled),
body.is-kakao-flow #step2 .btn-next.is-kakao-continue:hover:not(:disabled),
body.is-kakao-flow #step3 .btn-next.is-kakao-continue:hover:not(:disabled) {
  background: #f5dc00;
  transform: translateY(-2px);
}

body.is-kakao-flow #step1 .btn-next.is-kakao-continue:disabled,
body.is-kakao-flow #step2 .btn-next.is-kakao-continue:disabled,
body.is-kakao-flow #step3 .btn-next.is-kakao-continue:disabled {
  background: #fee500;
  color: #191919;
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.kakao-step-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.kakao-privacy-wrap {
  margin-bottom: 16px;
}

.kakao-apply-status {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
}

.kakao-apply-status.is-error {
  color: var(--danger);
}

.kakao-apply-status.is-ok {
  color: var(--brand);
}

.kakao-button-group {
  flex-wrap: wrap;
}

/* hidden 속성이 CSS display:flex 에 덮이지 않도록 */
.step4-panel-hidden,
#step4NextBtn.step4-panel-hidden,
#btnKakaoLogin.step4-panel-hidden,
#step4KakaoPhoneFallback[hidden],
#step4KakaoPhoneFallback.step4-panel-hidden {
  display: none !important;
}

.btn-next,
.btn-submit {
  background: var(--brand);
  color: white;
  box-shadow: none;
}

.btn-submit {
  background: var(--navy);
  box-shadow: 0 12px 22px -10px rgba(15, 23, 42, 0.75);
}

.btn-next:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-prev {
  background: white;
  color: var(--navy);
  border: 1.5px solid var(--line-strong);
}

.btn-restart {
  background: var(--ink);
  color: white;
}

@media (hover: hover) {
  .btn-next:hover:not(:disabled) {
    background: var(--brand-strong);
  }

  .btn-submit:hover {
    background: var(--navy-soft);
  }

  .btn-prev:hover {
    border-color: var(--navy);
  }

  .btn-restart:hover {
    background: #1e293b;
  }
}

/* 요약 컨테이너 */
.summary-container {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  border: 1px solid #dee2e6;
}

.summary-table {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.summary-row {
  display: flex;
  border-bottom: 1px solid var(--line);
}

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

.summary-cell {
  flex: 1;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-cell:last-child {
  border-right: none;
}

.summary-row--full .summary-cell {
  flex: 0 0 100%;
}

.summary-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
}

.summary-value {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.privacy-consent-wrap {
  margin-top: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
}

.privacy-consent-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.privacy-consent-check-row + .privacy-consent-check-row {
  margin-top: 10px;
}

.privacy-consent-label {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
}

.privacy-consent-check-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  cursor: pointer;
  accent-color: var(--brand);
}

.privacy-consent-detail {
  margin-top: 10px;
  border-top: 1px dashed #d1d5db;
  padding-top: 10px;
}

.privacy-consent-detail summary {
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  list-style-position: inside;
}

.privacy-consent-detail-content {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #374151;
  font-size: 0.93rem;
  line-height: 1.6;
}

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

.privacy-consent-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--brand-strong);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand-tint-line);
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}

.privacy-consent-link:hover {
  color: var(--brand-ink);
  text-decoration-color: currentColor;
}

.privacy-popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  padding: 16px;
}

.privacy-popup-overlay.active {
  display: flex;
}

.privacy-popup {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35);
  animation: popupIn 0.28s var(--ease-out);
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.privacy-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.privacy-popup-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.privacy-popup-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 auto;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.privacy-popup-close:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.privacy-popup-body {
  padding: 16px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  max-height: 65vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.privacy-popup-section + .privacy-popup-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.privacy-popup-section h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
}

.privacy-popup-section ol {
  margin: 0;
  padding-left: 1.2em;
}

.privacy-popup-section li {
  margin-bottom: 8px;
}

.privacy-popup-section li:last-child {
  margin-bottom: 0;
}

.privacy-popup-section strong {
  color: #111827;
  font-weight: 600;
}

/* 완료 메시지 */
.completion-message {
  background: rgba(255, 255, 255, 0.98);
  padding: 70px 50px;
  border-radius: 24px;
  text-align: center;
  animation: fadeInUp 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.completion-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  margin-bottom: 25px;
}

.completion-icon {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0;
  animation: completionPop 0.5s var(--ease-out);
}

@keyframes completionPop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sk-cube-grid {
  width: 60px;
  height: 60px;
  display: inline-block;
}

.sk-cube-grid .sk-cube {
  width: 33%;
  height: 33%;
  background-color: var(--brand);
  float: left;
  animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
}

.sk-cube-grid .sk-cube1 {
  animation-delay: 0.2s;
}
.sk-cube-grid .sk-cube2 {
  animation-delay: 0.3s;
}
.sk-cube-grid .sk-cube3 {
  animation-delay: 0.4s;
}
.sk-cube-grid .sk-cube4 {
  animation-delay: 0.1s;
}
.sk-cube-grid .sk-cube5 {
  animation-delay: 0.2s;
}
.sk-cube-grid .sk-cube6 {
  animation-delay: 0.3s;
}
.sk-cube-grid .sk-cube7 {
  animation-delay: 0s;
}
.sk-cube-grid .sk-cube8 {
  animation-delay: 0.1s;
}
.sk-cube-grid .sk-cube9 {
  animation-delay: 0.2s;
}

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

.completion-message h2 {
  font-size: clamp(2rem, 8vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.completion-message p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 35px;
  font-weight: 500;
  text-wrap: pretty;
}

/* 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 차량 상세 정보 */
.car-detail-header {
  text-align: center;
  margin-bottom: 30px;
}

.car-detail-header h2 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.car-detail-header .car-specs {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  background: var(--surface-alt);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: inline-block;
}

.car-detail-header .car-specs:empty {
  display: none;
}

.car-detail-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}

.car-image-section {
  width: 100%;
  text-align: center;
}

.car-image-placeholder {
  width: 70%;
  max-width: 100%;
  /* height: 175px; */
  border-radius: 20px;
  border: none;
  margin: 0 auto 20px auto;
  overflow: hidden;
  position: relative;
}

.car-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-image-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #adb5bd;
}



.car-options-section {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #e9ecef;
}

.color-selection h3 {
  text-align: left;
  margin-bottom: 25px;
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
  position: relative;
}

.color-selection h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #1976d2, #1565c0);
  border-radius: 2px;
}

.color-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* 기존 color-option 스타일은 새로운 스타일로 대체됨 */

/* 기존 color-info 스타일은 새로운 스타일로 대체됨 */

/* 세부모델 선택 */
.model-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.model-name {
  font-weight: 600;
}

/* 옵션 추가 */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.option-item {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-item:hover {
  border-color: #1976d2;
  transform: translateY(-2px);
}

.option-item.selected {
  border-color: #1976d2;
  background: rgba(25, 118, 210, 0.05);
}

.option-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.3s ease;
}

.option-item.selected .option-checkbox {
  background: #1976d2;
  border-color: #1976d2;
  color: white;
}

.option-content {
  flex: 1;
}

.option-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.option-price {
  color: #666;
  font-size: 0.9rem;
}

/* 이용조건 선택 */
.usage-conditions {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

/* 페이드업 애니메이션 */
.fade-up-group {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.fade-up-group.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  height: auto;
  margin: 0;
  padding: 0;
}

/* 연락처 정보 단계의 페이드업 그룹 특별 처리 */
#step5 .fade-up-group {
  opacity: 0 !important;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  display: none !important;
  max-height: 0 !important;
}

#step5 .fade-up-group.show {
  opacity: 1 !important;
  transform: translateY(0);
  visibility: visible !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 3px 3px;
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
}

.condition-group {
  text-align: left;
}

.condition-group label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

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

/* 보증금, 선납금 옵션을 한 줄로 배치 (데스크톱) */
.condition-group:nth-child(3) .condition-options,
.condition-group:nth-child(4) .condition-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
}

.condition-group:nth-child(3) .condition-option,
.condition-group:nth-child(4) .condition-option {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  padding: 15px 10px;
  text-align: center;
}

.condition-option {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  background: white;
  color: var(--text);
  font-weight: 500;
  user-select: none;
}

@media (hover: hover) {
  .condition-option:hover:not(.selected) {
    border-color: var(--brand-tint-line);
    background: var(--brand-tint);
    color: var(--brand-strong);
  }
}

.condition-option:active {
  transform: scale(0.97);
}

.condition-option.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 16px -8px rgba(15, 23, 42, 0.7);
}
.footer_ads{
  background-color: #f4f4f4;
  color : #bcbcbc;
  width : 100%;
  text-decoration: none;
  padding : 1rem 0;
  font-size : 0.8rem;
  font-weight : 400;
}
.footer_ads .ft_call{
  margin : 0.5rem 0;
}
.footer_ads a{
  text-decoration: none;
  color : inherit;
  /* font-size : 1.3rem; */
  line-height : 1.1rem;
}
/* 반응형 디자인 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .main-title {
    font-size: 2rem;
  }

  .step {
    padding: 30px 20px;
  }

  .car-detail-main {
    flex-direction: column;
    gap: 20px;
  }

  .car-image-section {
    order: 1;
  }

  .color-selection-section {
    order: 2;
  }

  .car-image-placeholder {
    height: 140px;
    max-width: 70%;
  }

  .color-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .color-option {
    padding: 10px;
  }

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


  .color-price {
    font-size: 0.7rem;
  }

  .model-group-header {
    padding: 16px 20px;
  }

  .group-title {
    font-size: 0.85rem;
  }

  .group-toggle {
    width: 20px;
    height: 20px;
  }

  .group-toggle::before {
    width: 6px;
    height: 6px;
  }

  .model-group-options {
    padding: 16px 20px;
  }

  .model-option {
    padding: 12px 16px;
    gap: 12px;
  }

  .model-radio {
    width: 18px;
    height: 18px;
  }

  .model-radio::before {
    width: 6px;
    height: 6px;
  }

  .model-sub-trim {
    font-size: 0.9rem;
  }

  .model-price {
    font-size: 0.9rem;
  }

  .condition-options {
    justify-content: flex-start;
  }

  /* 모바일 차량 선택 그리드 조정 */
  .manufacturer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

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

  .manufacturer-card {
    padding: 12px;
    min-height: 80px;
  }

  .car-model-card {
    padding: 12px;
    min-height: 180px;
  }

  /* 보증금, 선납금 옵션을 한 줄로 배치 */
  .condition-group:nth-child(3) .condition-options,
  .condition-group:nth-child(4) .condition-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .condition-group:nth-child(3) .condition-option,
  .condition-group:nth-child(4) .condition-option {
    flex: 1;
    min-width: calc(20% - 8px);
    font-size: 0.9rem;
    padding: 12px 8px;
    text-align: center;
  }

  .month-options {
    gap: 15px;
  }

  .month-option {
    width: 100px;
    height: 100px;
  }

  .month-number {
    font-size: 1.5rem;
  }

  .button-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .btn-next,
  .btn-prev,
  .btn-submit,
  .btn-restart,
  .btn-kakao {
    flex: 1;
    max-width: none;
  }

  /* 모바일에서 버튼 텍스트 변경 */
  .btn-prev::before {
    content: "이전";
  }

  .btn-next::before {
    content: "다음";
  }

  .btn-prev,
  .btn-next {
    font-size: 0;
  }

  .btn-prev::before,
  .btn-next::before {
    font-size: 1.1rem;
  }

  /* 카카오 모드 1~3: 실제 문구 표시 (「다음」 덮어쓰기 방지) */
  body.is-kakao-flow #step1 .btn-next.is-kakao-continue,
  body.is-kakao-flow #step2 .btn-next.is-kakao-continue,
  body.is-kakao-flow #step3 .btn-next.is-kakao-continue {
    font-size: 1.05rem;
  }

  body.is-kakao-flow #step1 .btn-next.is-kakao-continue::before,
  body.is-kakao-flow #step2 .btn-next.is-kakao-continue::before,
  body.is-kakao-flow #step3 .btn-next.is-kakao-continue::before {
    content: none;
  }

  /* 모바일 로고 크기 조정 */
  .main-logo {
    max-width: calc(80% + 2px);
  }

  /* 모바일 요약 화면 정렬 */
  .summary-table {
    grid-template-columns: 1fr;
  }

  .summary-cell {
    padding: 16px;
  }

  .summary-value strong {
    font-size: 1rem;
  }
}

/* 하단 정보 스타일 */
.footer-info {
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.company-name,
.representative-name,
.registration-number,
.business-address,
.per_info {
  font-size: 0.95rem;
  color: #9ca3af;
  margin: 0 0 5px 0;
  font-weight: 400;
  text-align: center;
  line-height: 1.45;
  text-decoration: none;
}

.business-address {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.copyright {
  font-size: 0.75rem;
  color: #d1d5db;
  margin: 0 0 20px 0;
  font-weight: 300;
  text-align: center;
}
.footer_ads{
  font-size : 0.9rem;
  font-weight : 400;
}
.per_info {
  display: inline-block;
  margin: 4px 0 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.per_info:hover {
  color: #e2e8f0;
}

/* 가격 표시 스타일 */
.price-display {
  margin-top: 20px;
  padding: 20px;
  background: var(--brand-ink);
  border-radius: 12px;
  text-align: center;
}

.price-info {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}

.price-info span {
  font-size: 1.5rem;
  color: #fbbf24;
}

/* 새로운 색상 선택 레이아웃 */
.color-selection-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.selected-color-info {
  padding: 15px;
  background: var(--surface-alt);
  border-radius: 12px;
  border: 1px solid var(--line);
  text-align: center;
}

.selected-color-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

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

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-base), transform var(--t-fast);
  background: white;
  text-align: center;
}

@media (hover: hover) {
  .color-option:hover {
    border-color: var(--brand-tint-line);
    box-shadow: 0 6px 14px -8px rgba(15, 23, 42, 0.2);
  }
}

.color-option:active {
  transform: scale(0.96);
}

.color-option.selected {
  border-color: var(--navy);
  background: var(--brand-tint);
  box-shadow: 0 8px 16px -8px rgba(15, 23, 42, 0.55);
}

.color-preview {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  margin-bottom: 8px;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.12), inset 0 4px 8px rgba(255, 255, 255, 0.35), 0 2px 4px rgba(15, 23, 42, 0.12);
}


.color-price {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}


/* 깔끔한 카드 스타일 트림 선택 UI */
.model-group {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color var(--t-fast), box-shadow var(--t-base);
}

@media (hover: hover) {
  .model-group:hover {
    border-color: var(--line-strong);
    box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.18);
  }
}

.model-group.open {
  border-color: var(--navy);
  box-shadow: 0 14px 26px -14px rgba(15, 23, 42, 0.55);
}

.model-group-header {
  background: var(--surface-alt);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--t-fast);
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.model-group-header:hover {
  background: #f1f5f9;
}

.model-group.open .model-group-header {
  background: var(--navy);
  border-bottom-color: var(--navy);
}

.model-group.open .group-title {
  color: white;
}

.group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  flex: 1;
  line-height: 1.4;
}

.group-toggle {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin-left: 12px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background-color var(--t-fast);
  position: relative;
}

.group-toggle::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform var(--t-base), border-color var(--t-fast), margin var(--t-base);
}

.model-group.open .group-toggle {
  border-color: white;
  background: white;
}

.model-group.open .group-toggle::before {
  margin-top: 3px;
  border-color: var(--navy);
  transform: rotate(-135deg);
}

.model-group-options {
  padding: 20px 24px;
  background: white;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-option {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
  background: white;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.model-option:last-child {
  margin-bottom: 0;
}

@media (hover: hover) {
  .model-option:hover {
    border-color: var(--brand-tint-line);
    background: var(--surface-alt);
  }
}

.model-option.selected {
  border-color: var(--navy);
  background: var(--brand-tint);
  outline: 1px solid var(--navy);
  outline-offset: -2px;
}

.model-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background-color var(--t-fast);
  flex-shrink: 0;
}

.model-radio::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transform: scale(0.4);
  transition: transform var(--t-base), background-color var(--t-fast);
}

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

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

.model-option.selected .model-radio::before {
  background: white;
}

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

.model-sub-trim {
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.model-option.selected .model-sub-trim {
  color: var(--navy);
  font-weight: 700;
}

.model-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  background: var(--accent-tint);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--accent-line);
  white-space: nowrap;
  flex: 0 0 auto;
  letter-spacing: -0.02em;
}

.model-option.selected .model-price {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

/* 이름 · 연락처 공통: 입력 영역 래퍼(플로팅 라벨 동일 규칙) */
.text-field-container {
  width: 100%;
  padding: 3px;
  margin-bottom: 40px;
}

.input-group .text-field-container input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  background: white;
  cursor: text;
}

.input-group .text-field-container input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
  outline: none;
}

/* 연락처 입력 필드 스타일 - 3등분 */
.phone-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 3px;
  margin-bottom: 40px;
}

.phone-input-container input {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
}

.phone-input-container input[readonly] {
  background: var(--surface-alt);
  color: var(--muted);
  cursor: default;
}

.phone-input-container input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
  outline: none;
}

/* 이름 입력칸 포커스 스타일 (연락처와 동일) */
.input-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
  outline: none;
}

.phone-separator {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--line-strong);
  user-select: none;
}

/* hidden 입력이 컨테이너와 라벨 사이에 있어 인접(+)가 아니라 일반 형제(~) 선택자 사용 */
.phone-input-container ~ label,
.text-field-container ~ label {
  left: 25px;
  top: 20px;
  font-size: 1.1rem;
  color: var(--muted);
  transition: top var(--t-fast), left var(--t-fast), font-size var(--t-fast), color var(--t-fast), padding var(--t-fast);
  pointer-events: none;
  z-index: 2;
}

.phone-input-container:focus-within ~ label,
.phone-input-container:has(input:not([value=""])) ~ label,
.text-field-container:focus-within ~ label,
.text-field-container:has(input:not(:placeholder-shown)) ~ label,
.text-field-container:has(input:not([value=""])) ~ label {
  left: 15px;
  top: -6px;
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 600;
  background: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.25;
}

/* ===== 테마: 핀테크형 신청 흐름 (한 화면 · 한 질문 · 버튼 하나) ===== */

.container {
  max-width: 560px;
  padding: 0 var(--gutter);
}

/* 상단 헤더: 로고 · 단계 / 진행 막대 */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo step"
    "bar bar";
  align-items: center;
  row-gap: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 14px var(--gutter) 0;
  background: #fff;
}

.app-header .logo-container {
  grid-area: logo;
  margin: 0;
  padding: 0;
  text-align: left;
  line-height: 0;
}

.app-header .main-logo {
  max-width: 104px;
  max-height: 34px;
  width: auto;
}

.app-header .progress-container {
  display: contents;
}

.app-header .progress-bar {
  grid-area: bar;
  height: 4px;
  margin: 0 calc(var(--gutter) * -1);
  width: auto;
  background: var(--fill);
  border-radius: 0;
}

.app-header .progress-fill {
  border-radius: 0 4px 4px 0;
}

.app-header .progress-text {
  grid-area: step;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  letter-spacing: 0;
}

.app-header #currentStep {
  font-size: inherit;
  font-weight: 700;
  color: var(--ink);
  vertical-align: baseline;
}

/* 단계 화면 */
.step {
  background: none;
  border: none;
  border-radius: 0;
  padding: 32px 0 calc(112px + env(safe-area-inset-bottom, 0px));
  text-align: left;
  animation: stepFade 0.3s var(--ease-out);
}

/* 하단 버튼 바가 fixed 기준을 잃지 않도록 transform 은 자식에만 */
.step > :not(.button-group):not(#step5Manual):not(#step4KakaoPhoneFallback),
#step5Manual > :not(.button-group),
#step4KakaoPhoneFallback > :not(.button-group) {
  animation: stepIn 0.42s var(--ease-out);
}

@keyframes stepFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.step h2,
.step-description,
.car-detail-header h2 {
  font-size: clamp(1.5rem, 6.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: left;
  margin-bottom: 24px;
}

/* 국산/수입 세그먼트 */
.car-type-tabs {
  width: 100%;
  margin: 0 0 20px;
  padding: 4px;
  gap: 0;
  background: var(--fill);
  border-radius: 12px;
}

.tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sub);
  text-align: center;
}

.tab.active {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 23, 51, 0.12);
}

@media (hover: hover) {
  .tab:hover:not(.active) {
    color: var(--ink);
  }
}

/* 공통 선택지 면: 회색 면 → 선택 시 연파랑 + 파랑 테두리 */
.manufacturer-card,
.car-model-card,
.color-option,
.condition-option {
  background: var(--fill);
  border: 2px solid transparent;
  box-shadow: none;
  transform: none;
}

@media (hover: hover) {
  .manufacturer-card:hover,
  .car-model-card:hover,
  .color-option:hover,
  .condition-option:hover:not(.selected) {
    background: var(--fill-hover);
    border-color: transparent;
    box-shadow: none;
    transform: none;
    color: var(--text);
  }
}

.manufacturer-card:active,
.car-model-card:active,
.color-option:active,
.condition-option:active {
  transform: scale(0.97);
}

.manufacturer-card.selected,
.car-model-card.selected,
.color-option.selected,
.condition-option.selected {
  background: var(--brand-tint);
  border-color: var(--brand);
  outline: none;
  box-shadow: none;
}

/* 제조사 */
.manufacturer-selection {
  margin-bottom: 8px;
}

.manufacturer-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.manufacturer-card {
  min-height: 100px;
  padding: 14px 6px 12px;
  border-radius: 16px;
}

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

.brand-logo {
  margin-bottom: 6px;
}

.brand-logo img,
.brand-logo-text {
  width: 44px;
  height: 44px;
}

.brand-name {
  margin-top: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.manufacturer-card.selected .brand-name,
.manufacturer-card.selected .brand-logo-text {
  color: var(--brand-strong);
  font-weight: 700;
}

/* 선택 체크 배지: 제조사 · 색상 타일 */
.manufacturer-card,
.color-option {
  position: relative;
}

.manufacturer-card.selected::after,
.color-option.selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand) var(--check-icon) center / 13px no-repeat;
  animation: badgeIn 0.32s var(--ease-out);
}

@keyframes badgeIn {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 차량 모델 */
.car-selection-area {
  margin: 36px 0 0;
}

.selection-label {
  padding: 0;
  margin-bottom: 14px;
  border-top: none;
  text-align: left;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.selection-label::after {
  content: none;
}

.car-models-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.car-models-grid .car-model-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 16px;
  align-items: center;
  min-height: 0;
  padding: 10px 52px 10px 10px;
  border-radius: 16px;
  text-align: left;
}

.car-models-grid .brand-logo-small {
  display: none;
}

.car-models-grid .car-model-image {
  grid-column: 1;
  grid-row: 1 / -1;
  height: 72px;
  margin: 0;
  border-radius: 12px;
  background: #fff;
}

.car-models-grid .car-model-name {
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-start;
  min-height: 0;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.car-models-grid .car-model-price {
  grid-column: 2;
  grid-row: 3;
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}

.car-models-grid .car-model-card.selected .car-model-price {
  color: var(--brand-strong);
}

.car-model-card.selected::after,
.car-models-grid .car-model-card.selected::after {
  top: 50%;
  right: 16px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-color: var(--brand);
  animation: checkIn 0.32s var(--ease-out);
}

@keyframes checkIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.4);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* 2단계: 차량 상세 · 색상 */
.car-detail-header {
  text-align: left;
  margin-bottom: 20px;
}

.car-detail-header h2 {
  margin-bottom: 6px;
}

.car-detail-header .car-specs {
  display: block;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.car-detail-main {
  gap: 28px;
  margin-bottom: 0;
}

.car-image-placeholder {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 24px;
  border-radius: 20px;
  background: var(--fill);
}

.car-image-placeholder img {
  object-fit: contain;
}

.color-selection-section {
  gap: 12px;
}

.color-selection-section h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
}

.selected-color-info {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  text-align: left;
}

.selected-color-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-strong);
}

.color-options-grid {
  gap: 8px;
  margin-bottom: 0;
}

.color-option {
  padding: 14px 6px 12px;
  border-radius: 14px;
}

.color-preview {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 23, 51, 0.1);
  box-shadow: none;
}

.color-price {
  color: var(--muted);
  font-size: 0.8125rem;
}

.price-display {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--brand-tint);
  text-align: left;
}

.price-info {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.price-info span {
  color: var(--brand-strong);
  font-size: 1.25rem;
  font-weight: 800;
}

/* 3단계: 세부모델 */
.model-options {
  gap: 0;
  margin-bottom: 0;
}

.model-group,
.model-group.open {
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.model-group:last-child {
  border-bottom: none;
}

@media (hover: hover) {
  .model-group:hover {
    border-color: var(--line);
    box-shadow: none;
  }

  .model-group:not(.open) .model-group-header:hover {
    background: transparent;
  }

  .model-group:not(.open) .model-group-header:hover .group-title {
    color: var(--brand-strong);
  }
}

.model-group-header,
.model-group.open .model-group-header {
  min-height: 60px;
  padding: 18px 0;
  background: transparent;
  border-bottom: none;
}

.group-title,
.model-group.open .group-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.group-toggle,
.model-group.open .group-toggle {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
}

.group-toggle::before {
  width: 8px;
  height: 8px;
  border-color: var(--faint);
}

.model-group.open .group-toggle::before {
  border-color: var(--ink);
}

.model-group-options {
  padding: 0 0 16px;
  background: transparent;
}

.model-option {
  margin-bottom: 8px;
  padding: 16px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--fill);
  box-shadow: none;
}

.model-option:last-child {
  margin-bottom: 0;
}

@media (hover: hover) {
  .model-option:hover {
    border-color: transparent;
    background: var(--fill-hover);
    box-shadow: none;
  }
}

.model-option:active {
  transform: scale(0.98);
}

.model-option.selected,
.model-option.selected:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
  outline: none;
}

.model-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  background: #fff;
}

.model-radio::before {
  content: none;
}

.model-option.selected .model-radio {
  border-color: var(--brand);
  background: var(--brand) var(--check-icon) center / 14px no-repeat;
  animation: badgeIn 0.32s var(--ease-out);
}

.model-sub-trim {
  font-size: 0.9375rem;
  color: var(--text);
}

.model-option.selected .model-sub-trim {
  color: var(--ink);
}

.model-price,
.model-option.selected .model-price {
  padding: 0;
  border: none;
  background: none;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.model-option.selected .model-price {
  color: var(--brand-strong);
}

/* 4단계: 이용조건 */
.usage-conditions {
  gap: 0;
  margin-bottom: 0;
}

.usage-conditions .condition-group.fade-up-group.show {
  margin-top: 28px;
}

.condition-group label {
  margin-bottom: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sub);
}

.usage-conditions .condition-group .condition-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: stretch;
}

.usage-conditions .condition-group .condition-option {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 2px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}

.usage-conditions .condition-group .condition-option.selected {
  color: var(--brand-strong);
  font-weight: 700;
}

/* 5단계: 이름 · 연락처 입력 */
/* 라벨은 DOM 상 입력 뒤에 있으므로 위쪽 여백 자리에 고정 배치 */
.input-group {
  margin-bottom: 28px;
  padding: 30px 0 0;
}

#step5 .input-group.fade-up-group.show {
  padding: 30px 0 0 !important;
}

.text-field-container,
.phone-input-container {
  padding: 0;
  margin-bottom: 0;
}

.input-group .text-field-container input,
.phone-input-container input,
.input-group input {
  height: 56px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--fill);
  box-shadow: none;
  font-variant-numeric: tabular-nums;
  transition: box-shadow var(--t-fast), background-color var(--t-fast);
}

.input-group input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.input-group .text-field-container input:focus,
.phone-input-container input:focus,
.input-group input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px var(--brand);
}

.phone-input-container input[readonly],
.phone-input-container input[readonly]:focus {
  background: var(--fill);
  box-shadow: none;
  color: var(--muted);
}

.phone-input-container input {
  text-align: center;
}

.phone-separator {
  color: var(--faint);
}

.input-group > label,
.phone-input-container ~ label,
.text-field-container ~ label,
.phone-input-container:focus-within ~ label,
.phone-input-container:has(input:not([value=""])) ~ label,
.text-field-container:focus-within ~ label,
.text-field-container:has(input:not(:placeholder-shown)) ~ label,
.text-field-container:has(input:not([value=""])) ~ label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--sub);
  transition: color var(--t-fast);
}

.text-field-container:focus-within ~ label,
.phone-input-container:focus-within ~ label {
  color: var(--brand-strong);
}

/* 오류: 필드 빨간 링 + 아래 전체 폭 문구 (문구는 script.js 의 .temp-message) */
.input-group:has(.temp-message) input:not([readonly]),
.input-group:has(.temp-message) input:not([readonly]):focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--danger);
}

.input-group:has(.temp-message) > label {
  color: var(--danger);
}

.kakao-step-lead {
  text-align: left;
  color: var(--sub);
}

/* 6단계: 최종 확인 */
.summary-table {
  border: none;
  border-radius: 16px;
  background: var(--surface-alt);
  padding: 8px 0;
}

.summary-table .summary-row {
  display: block;
  border-bottom: none;
}

.summary-table .summary-cell {
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 20px;
  border: none;
  background: transparent;
  text-align: left;
}

.summary-table .summary-label {
  flex: 0 0 auto;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

.summary-table .summary-value {
  text-align: right;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.summary-table #summaryCar,
.summary-table #summaryPhone {
  font-weight: 700;
}

.privacy-consent-wrap {
  margin: 16px 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.privacy-consent-check-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
}

.privacy-consent-check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.privacy-consent-check-row input[type="checkbox"]:checked {
  border-color: var(--brand);
  background: var(--brand) var(--check-icon) center / 16px no-repeat;
}

.privacy-consent-check-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.privacy-consent-label {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.privacy-consent-guide {
  margin: 4px 0 0;
}

.privacy-consent-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration-color: var(--line-strong);
}

.privacy-consent-link:hover {
  color: var(--ink);
}

/* 하단 고정 버튼 바 */
.step .button-group {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 20px);
  border: none;
  border-radius: 0;
}

.step .button-group > button {
  flex: 1;
  min-width: 0;
  max-width: none;
}

.step .button-group > .btn-prev {
  flex: 0 0 30%;
}

.btn-next,
.btn-prev,
.btn-submit,
.btn-restart,
.btn-kakao {
  padding: 17px 16px;
  border: none;
  border-radius: 16px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: none;
}

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

.btn-next:disabled {
  background: var(--brand-disabled);
  color: #fff;
  opacity: 1;
}

.btn-prev {
  background: var(--fill);
  color: var(--sub);
  border: none;
}

@media (hover: hover) {
  .btn-next:hover:not(:disabled),
  .btn-submit:hover,
  .btn-restart:hover {
    background: var(--brand-strong);
  }

  .btn-prev:hover {
    background: var(--fill-hover);
    border-color: transparent;
  }
}

.btn-next:focus-visible,
.btn-prev:focus-visible,
.btn-submit:focus-visible,
.btn-restart:focus-visible,
.btn-kakao:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand);
}

/* 완료 화면 */
.completion-message {
  padding: 96px 0 48px;
  background: none;
  border: none;
  border-radius: 0;
}

.completion-message h2 {
  font-size: clamp(1.5rem, 6.4vw, 1.75rem);
  line-height: 1.36;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
}

.completion-message p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
}

.completion-message .btn-restart {
  width: 100%;
  max-width: 360px;
}

/* 인트로 */
.intro-title {
  font-size: clamp(1.5rem, 6.4vw, 1.75rem);
  color: var(--ink);
  letter-spacing: -0.03em;
}

.intro-subtitle {
  font-size: 1rem;
  color: var(--muted);
}

/* 개인정보 팝업 */
.privacy-popup {
  border-radius: 20px;
}

.privacy-popup-header {
  padding: 18px 20px 12px;
  border-bottom: none;
}

.privacy-popup-header h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}

.privacy-popup-body {
  padding: 4px 20px 20px;
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  .container {
    padding: 0 var(--gutter);
  }

  .step {
    padding-top: 28px;
  }

  .app-header .main-logo {
    max-width: 92px;
    max-height: 30px;
  }

  .manufacturer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .manufacturer-card {
    min-height: 92px;
    padding: 12px 4px 10px;
  }

  .brand-logo img,
  .brand-logo-text {
    width: 40px;
    height: 40px;
  }

  .car-models-grid .car-model-card {
    grid-template-columns: 100px 1fr;
    column-gap: 14px;
    padding: 8px 48px 8px 8px;
  }

  .car-models-grid .car-model-image {
    height: 64px;
  }

  .car-image-placeholder {
    max-width: none;
  }

  .color-options-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .usage-conditions .condition-group .condition-option {
    padding: 13px 2px;
    font-size: 0.875rem;
  }

  .model-group-options .model-option {
    padding: 14px 12px;
  }

  .btn-prev,
  .btn-next {
    font-size: 0;
  }

  .btn-prev::before,
  .btn-next::before {
    font-size: 1.0625rem;
  }
}

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