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

body {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: white;
  min-height: 100vh;
  color: #334155;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 인트로 화면 */
.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: #334155;
}

.logo {
  margin-bottom: 60px;
}

.intro-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e40af;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

.intro-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 300;
}

@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: #1e40af;
  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: 200px;
  height: auto;
  object-fit: contain;
}

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

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(203, 213, 225, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  width: 14.28%;
  transition: width 0.5s ease;
  border-radius: 4px;
}

.progress-text {
  color: #475569;
  font-weight: 600;
  font-size: 1.1rem;
}

/* 폼 컨테이너 */
.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: 2rem;
  margin-bottom: 20px;
  color: #1e40af;
  font-weight: 700;
  line-height: 1.3;
}

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

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

/* 차량 타입 탭 */
.car-type-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.tab {
  padding: 16px 32px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #666;
  font-size: 1.1rem;
}

.tab.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  transform: translateY(-2px);
}

.tab:hover:not(.active) {
  background: #f5f5f5;
  color: #333;
}

/* 제조사 선택 */
.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 #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.manufacturer-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.manufacturer-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  transform: translateY(-2px);
}

.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: all 0.3s ease;
}

.brand-logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #3b82f6;
  text-align: center;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-top: 5px;
}

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

.selection-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 25px;
  text-align: center;
  padding: 15px;
  border: 1px solid #3b82f6;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.1));
}

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

.car-model-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.car-model-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.car-model-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  transform: translateY(-2px);
}

.car-model-card.selected .brand-logo-small {
  color: white;
}

.brand-logo-small {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 0.7rem;
  color: #666;
  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: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #64748b;
}

.car-model-name {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #2d3748;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.car-model-price {
  font-size: 0.9rem;
  color: #3b82f6;
  font-weight: 600;
  margin-top: auto;
}

.car-model-card.selected .car-model-price {
  color: rgba(255, 255, 255, 0.8);
}

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

.input-group input,
.input-group select {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  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: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group label {
  position: absolute;
  left: 20px;
  top: 15px;
  color: #999;
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 1rem;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group input:not([value=""]) + label,
.input-group select:focus + label,
.input-group select:not([value=""]) + label {
  top: -10px;
  left: 15px;
  font-size: 0.85rem;
  color: #3b82f6;
  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 {
  padding: 18px 35px;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.btn-next,
.btn-submit {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-2px);
}

.btn-next:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-prev {
  background: white;
  color: #666;
  border: 1px solid #e9ecef;
}

.btn-prev:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.btn-restart {
  background: linear-gradient(135deg, #1a237e, #283593);
  color: white;
}

.btn-restart:hover {
  transform: translateY(-2px);
}

/* 요약 컨테이너 */
.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 #d1d5db;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.summary-row {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}

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

.summary-cell {
  flex: 1;
  padding: 20px 22px;
  border-right: 1px solid #e5e7eb;
  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: #6b7280;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

.summary-value {
  font-weight: 700;
  color: #111827;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* 완료 메시지 */
.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;
  margin-bottom: 0;
}

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

.sk-cube-grid .sk-cube {
  width: 33%;
  height: 33%;
  background-color: #1976d2;
  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: 2.2rem;
  margin-bottom: 20px;
  color: #1976d2;
  font-weight: 700;
}

.completion-message p {
  font-size: 1.2rem;
  color: #495057;
  margin-bottom: 35px;
  font-weight: 500;
}

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

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

.car-detail-header h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #1976d2;
  font-weight: 700;
  line-height: 1.2;
}

.car-detail-header .car-specs {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 12px;
  border-left: 4px solid #1976d2;
  display: inline-block;
}

.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;
  transition: all 0.3s ease;
  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-image-placeholder:hover {
  transform: translateY(-3px);
}


.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-option {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.model-option.selected {
  border-color: #1976d2;
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
}

.model-option.selected .model-price {
  color: rgba(255, 255, 255, 0.8);
}

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

.model-price {
  color: #1976d2;
  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: 0 !important;
  display: block !important;
  max-height: 200px !important;
}

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

.condition-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.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 #e1e5e9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  font-weight: 500;
}

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

.condition-option.selected {
  border-color: #1976d2;
  background: #1976d2;
  color: white;
  transform: translateY(-1px);
}

/* 반응형 디자인 */
@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;
  }

*** End Patch

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

  /* 모바일 로고 크기 조정 */
  .main-logo {
    max-width: 80%;
  }

  /* 모바일 요약 화면 정렬 */
  .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;
}

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

.company-name,
.registration-number,
.business-address {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0 0 5px 0;
  font-weight: 400;
  text-align: center;
  line-height: 1.4;
}

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

.copyright {
  font-size: 0.75rem;
  color: #d1d5db;
  margin: 0 0 20px 0;
  font-weight: 300;
  text-align: center;
}

/* 가격 표시 스타일 */
.price-display {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  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: #f8fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  text-align: center;
}

.selected-color-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
}

.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 #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  text-align: center;
}

.color-option:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.color-option.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.color-preview {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


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


/* 깔끔한 카드 스타일 트림 선택 UI */
.model-group {
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.model-group:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.model-group.open {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.model-group-header {
  background: #f9fafb;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid #e5e7eb;
}

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

.group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  flex: 1;
  line-height: 1.4;
}

.group-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.group-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  transition: all 0.3s ease;
}

.model-group.open .group-toggle {
  border-color: #3b82f6;
  background: #3b82f6;
}

.model-group.open .group-toggle::before {
  background: white;
  transform: scale(1.2);
}

.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 #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.model-option:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

.model-option.selected {
  border-color: #3b82f6;
  background: #eff6ff;
}

.model-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.model-radio::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.model-option.selected .model-radio {
  border-color: #3b82f6;
  background: #3b82f6;
}

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

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

.model-sub-trim {
  font-weight: 500;
  color: #374151;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.model-option.selected .model-sub-trim {
  color: #1e40af;
  font-weight: 600;
}

.model-price {
  font-weight: 600;
  color: #059669;
  font-size: 1rem;
  background: #f0fdf4;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.model-option.selected .model-price {
  color: #047857;
  background: #dcfce7;
  border-color: #86efac;
}

/* 연락처 입력 필드 스타일 - 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 #e1e5e9;
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.phone-input-container input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* 이름 입력칸 포커스 스타일 (연락처와 동일) */
.input-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.phone-separator {
  font-size: 1.2rem;
  font-weight: 600;
  color: #64748b;
  user-select: none;
}

.phone-input-container + label {
  left: 25px;
  top: 20px;
  font-size: 1.1rem;
  color: #64748b;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.phone-input-container:focus-within + label,
.phone-input-container:has(input:not([value=""])) + label {
  left: 15px;
  top: -5px;
  font-size: 0.75rem;
  color: #3b82f6;
  background: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.2;
}
