/* Pretendard Font Family */
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Thin.woff') format('woff');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Medium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-SemiBold.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Black.woff') format('woff');
    font-weight: 900;
    font-display: swap;
}

/* Global Font Application */
* {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modern Design System & Utilities */
:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 16px 32px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.12);
}

html { scroll-behavior: smooth; }
::selection { background: #3b82f6; color: #ffffff; }
::-moz-selection { background: #3b82f6; color: #ffffff; }
img { image-rendering: -webkit-optimize-contrast; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Glass morphism cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

/* Modern gradient backgrounds */
.gradient-bg { background: var(--gradient-primary); }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Enhanced shadows */
.shadow-modern { box-shadow: var(--shadow-card); }
.shadow-float { box-shadow: var(--shadow-float); transform: translateY(-2px); }

/* Color swiper modern design */
.swiper-container { position: relative; width: 100%; }
.swiper-wrapper { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
.swiper-slide { 
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; 
  border: 4px solid rgba(255, 255, 255, 0.8); 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08); 
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.swiper-slide::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.swiper-slide:hover::before { opacity: 1; }
.swiper-slide[aria-selected="true"] { 
  border-color: #1678e5; transform: scale(1.15); 
  box-shadow: 0 12px 32px rgba(22, 120, 229, 0.3), 0 8px 16px rgba(0, 0, 0, 0.1); 
}
.swiper-slide:hover { transform: scale(1.08); }

.selected-color-info { 
  padding: 20px; background: var(--glass-bg); border-radius: 16px; 
  border: 1px solid var(--glass-border); margin-bottom: 16px;
  backdrop-filter: blur(12px);
}

/* Modern typography */
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-hero { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }

/* Animated elements */
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-timer { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }
.timer-pulse { animation: pulse-timer 2s ease-in-out infinite; }

/* Modern buttons */
.btn-modern {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none; border-radius: 12px;
  padding: 14px 28px; color: white !important;
  font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  cursor: pointer;
}
.btn-modern::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn-modern:hover::before { transform: translateX(100%); }
.btn-modern:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
  color: white !important;
  text-decoration: none;
}

/* Enhanced spacing */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* Options List Scrollable Area */
.options-scroll-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -8px;
}

/* Custom Scrollbar Styling */
.options-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.options-scroll-container::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 3px;
}

.options-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.options-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* For Firefox */
.options-scroll-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) rgba(148, 163, 184, 0.1);
}

/* 아코디언 스타일 */
.input-arrow2 {
  transition: all 0.3s ease;
  border-radius: 8px;
  user-select: none;
  position: relative;
}

.input-arrow2.on {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.input-arrow2 .arrow svg {
  transition: transform 0.3s ease;
}

.detail-car-list {
  transition: all 0.3s ease;
  overflow: hidden;
  border-top: 1px solid #e2e8f0;
}

/* 아코디언이 열렸을 때 */
.input-arrow2.on + .detail-car-list {
  display: block !important;
  max-height: 1000px;
  opacity: 1;
}

/* 아코디언이 닫혔을 때 */
.input-arrow2:not(.on) + .detail-car-list {
  display: none !important;
  max-height: 0;
  opacity: 0;
}

.input-check {
  transition: all 0.2s ease;
}

.input-check:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.input-check input[type="radio"]:checked + label {
  background-color: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
}

.input-check input[type="radio"]:checked + label .txt {
  color: #1e40af;
  font-weight: 600;
}

.input-check input[type="radio"]:checked + label .price {
  color: #1e40af;
  font-weight: 700;
}

/* 선택된 트림 표시 */
.abcd2 {
  transition: all 0.3s ease;
}

/* 라디오 버튼 숨김 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 기본 버튼 스타일 리셋 */
button {
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* 탭 버튼 전용 스타일 (완전 독립적) */
#tab-lease, #tab-rent {
  background: transparent !important;
  border: 2px solid #d1d5db !important;
  color: #374151 !important;
  padding: 8px 24px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  font-family: inherit !important;
}

#tab-lease[aria-selected="true"], #tab-rent[aria-selected="true"] {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: transparent !important;
}

#tab-lease:hover, #tab-rent:hover {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 기존 role="tab" 스타일은 제거하고 ID로 직접 타겟팅 */

/* 모던 버튼 스타일 (특정 클래스에만 적용) */
.btn-modern {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: white !important;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-modern:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  text-decoration: none;
}

/* 상담 신청 버튼 전용 스타일 */
.consultation-submit-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: white !important;
  border: none !important;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.consultation-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4) !important;
}

/* 텍스트 선택 개선 */
* {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* 폼 요소들 가시성 개선 */
input, select, textarea {
  background: white !important;
  color: #1f2937 !important;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 라벨 텍스트 가시성 */
label {
  color: #374151 !important;
  font-weight: 500;
}

/* 일반 텍스트 가시성 */
p, span, div {
  color: inherit;
}

/* 특정 클래스들 색상 보정 */
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }
.text-blue-600 { color: #2563eb !important; }
.text-brand-600 { color: #2563eb !important; }



