/* ============================================
   디자인 규격 시스템 (3가지 규격)
   ============================================ */

/* 사용자 정의 색상 시스템 */
:root {
  /* 브랜드 색상 */
  --color-primary: #3b82f6;      /* 파란색 (기본) */
  --color-primary-dark: #2563eb;
  --color-primary-light: #60a5fa;
  
  --color-secondary: #10b981;    /* 초록색 */
  --color-secondary-dark: #059669;
  --color-secondary-light: #34d399;
  
  --color-accent: #f59e0b;       /* 주황색 */
  --color-accent-dark: #d97706;
  --color-accent-light: #fbbf24;
  
  /* 중성 색상 */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* 텍스트 색상 */
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;
  --color-text-white: #ffffff;
  
  /* 배경 색상 */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-dark: #1f2937;
  
  /* 상태 색상 */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
}

/* ============================================
   규격 1: 모바일 (0px ~ 767px)
   기준 크기: 375px (iPhone), 360px (Android)
   가장 많이 사용하는 모바일 크기
   ============================================ */
:root {
  /* 브레이크포인트 (가장 많이 사용하는 크기) */
  --mobile-max: 767px;
  --base-mobile: 375px;      /* iPhone 기준 */
  --base-mobile-alt: 360px;  /* Android 기준 */
  
  /* 컨테이너 */
  --container-width: 100%;
  --container-padding: 16px;
  
  /* 헤더 (2026 트렌드: 낮은 높이) */
  --header-height: 28px;
  --header-padding-x: 16px;
  --header-font-size: 14px;
  
  /* 푸터 */
  --footer-height: 60px;
  --footer-padding-x: 16px;
  --footer-font-size: 12px;
  
  /* 높이 단계 (xs, sm, md, lg, xl, 2xl) */
  --height-xs: 24px;      /* 매우 작은 높이 */
  --height-sm: 32px;      /* 작은 높이 */
  --height-md: 40px;      /* 기본 높이 */
  --height-lg: 48px;      /* 큰 높이 */
  --height-xl: 56px;      /* 매우 큰 높이 */
  --height-2xl: 64px;     /* 최대 높이 */
  
  /* 선 굵기 (Border Width) */
  --border-width-none: 0;
  --border-width-thin: 1px;      /* 얇은 선 */
  --border-width-base: 2px;      /* 기본 선 */
  --border-width-thick: 3px;     /* 두꺼운 선 */
  --border-width-bold: 4px;      /* 굵은 선 */
  
  /* 라운드 (Border Radius) */
  --radius-none: 0;
  --radius-sm: 4px;       /* 작은 라운드 */
  --radius-md: 8px;       /* 기본 라운드 */
  --radius-lg: 12px;      /* 큰 라운드 */
  --radius-xl: 16px;      /* 매우 큰 라운드 */
  --radius-2xl: 20px;     /* 최대 라운드 */
  --radius-full: 9999px;  /* 완전한 원형 */
  
  /* 그림자 (Box Shadow) */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);                    /* 작은 그림자 */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);  /* 기본 그림자 */
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* 큰 그림자 */
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* 매우 큰 그림자 */
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);            /* 최대 그림자 */
  
  /* 폰트 크기 */
  --font-size-xs: 12px;      /* 작은 텍스트 */
  --font-size-sm: 14px;      /* 본문 텍스트 */
  --font-size-base: 16px;    /* 기본 텍스트 */
  --font-size-lg: 18px;      /* 강조 텍스트 */
  --font-size-xl: 20px;      /* 소제목 */
  --font-size-2xl: 24px;     /* 제목 */
  --font-size-3xl: 28px;     /* 대제목 */
  --font-size-4xl: 32px;     /* 헤드라인 */
  
  /* 간격 (Spacing) */
  --spacing-xs: 4px;         /* 매우 작은 간격 */
  --spacing-sm: 8px;         /* 작은 간격 */
  --spacing-md: 16px;        /* 기본 간격 */
  --spacing-lg: 24px;        /* 큰 간격 */
  --spacing-xl: 32px;        /* 매우 큰 간격 */
  --spacing-2xl: 48px;       /* 최대 간격 */
  
  /* 버튼 사전 설정 */
  --button-height: var(--height-md);        /* 40px */
  --button-padding-x: 16px;
  --button-padding-y: 8px;
  --button-font-size: 14px;
  --button-border-radius: var(--radius-md);  /* 8px */
  --button-border-width: var(--border-width-thin);  /* 1px */
  --button-shadow: var(--shadow-sm);         /* 작은 그림자 */
  --button-transition: all 0.2s ease-in-out;
  
  /* 버튼 크기 변형 */
  --button-height-xs: var(--height-xs);      /* 24px */
  --button-height-sm: var(--height-sm);      /* 32px */
  --button-height-md: var(--height-md);      /* 40px */
  --button-height-lg: var(--height-lg);      /* 48px */
  --button-height-xl: var(--height-xl);      /* 56px */
  
  /* 입력 필드 */
  --input-height: 40px;
  --input-padding-x: 12px;
  --input-padding-y: 8px;
  --input-font-size: 16px;
  --input-border-radius: 8px;
  
  /* 카드 */
  --card-padding: 16px;
  --card-border-radius: 12px;
  --card-gap: 16px;
  
  /* 그리드 */
  --grid-columns: 2;         /* 모바일: 2열 */
  --grid-gap: 16px;
}

/* ============================================
   규격 2: 태블릿 (768px ~ 1023px)
   기준 크기: 768px (iPad), 1024px (iPad Pro)
   가장 많이 사용하는 태블릿 크기
   ============================================ */
@media (min-width: 768px) {
  :root {
    /* 컨테이너 */
    --container-width: 768px;
    --container-padding: 24px;
    
    /* 헤더 (2026 트렌드: 낮은 높이) */
    --header-height: 37px;
    --header-padding-x: 24px;
    --header-font-size: 15px;
    
    /* 푸터 */
    --footer-height: 70px;
    --footer-padding-x: 24px;
    --footer-font-size: 13px;
    
    /* 높이 단계 */
    --height-xs: 28px;
    --height-sm: 36px;
    --height-md: 44px;
    --height-lg: 52px;
    --height-xl: 60px;
    --height-2xl: 72px;
    
    /* 선 굵기 */
    --border-width-none: 0;
    --border-width-thin: 1px;
    --border-width-base: 2px;
    --border-width-thick: 3px;
    --border-width-bold: 4px;
    
    /* 라운드 */
    --radius-none: 0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* 그림자 */
    --shadow-none: none;
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 폰트 크기 */
    --font-size-xs: 13px;
    --font-size-sm: 15px;
    --font-size-base: 17px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 28px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    
    /* 간격 */
    --spacing-xs: 6px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;
    --spacing-2xl: 56px;
    
    /* 버튼 사전 설정 */
    --button-height: var(--height-md);        /* 44px */
    --button-padding-x: 20px;
    --button-padding-y: 10px;
    --button-font-size: 15px;
    --button-border-radius: var(--radius-md);  /* 10px */
    --button-border-width: var(--border-width-thin);  /* 1px */
    --button-shadow: var(--shadow-md);        /* 기본 그림자 */
    --button-transition: all 0.2s ease-in-out;
    
    /* 버튼 크기 변형 */
    --button-height-xs: var(--height-xs);
    --button-height-sm: var(--height-sm);
    --button-height-md: var(--height-md);
    --button-height-lg: var(--height-lg);
    --button-height-xl: var(--height-xl);
    
    /* 입력 필드 */
    --input-height: 44px;
    --input-padding-x: 16px;
    --input-padding-y: 10px;
    --input-font-size: 17px;
    --input-border-radius: 10px;
    
    /* 카드 */
    --card-padding: 20px;
    --card-border-radius: 14px;
    --card-gap: 20px;
    
    /* 그리드 */
    --grid-columns: 3;         /* 태블릿: 3열 */
    --grid-gap: 20px;
  }
}

/* ============================================
   규격 3: 모니터/PC (1024px 이상)
   기준 크기: 1366px (노트북), 1920px (Full HD), 2560px (2K)
   가장 많이 사용하는 모니터 크기
   ============================================ */
@media (min-width: 1024px) {
  :root {
    /* 컨테이너 */
    --container-width: 1200px;
    --container-padding: 32px;
    
    /* 헤더 (2026 트렌드: 낮은 높이) */
    --header-height: 37px;
    --header-padding-x: 32px;
    --header-font-size: 16px;
    
    /* 푸터 */
    --footer-height: 80px;
    --footer-padding-x: 32px;
    --footer-font-size: 14px;
    
    /* 높이 단계 */
    --height-xs: 32px;
    --height-sm: 40px;
    --height-md: 48px;
    --height-lg: 56px;
    --height-xl: 64px;
    --height-2xl: 80px;
    
    /* 선 굵기 */
    --border-width-thin: 1px;
    --border-width-base: 2px;
    --border-width-thick: 3px;
    --border-width-bold: 4px;
    
    /* 라운드 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* 그림자 */
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 버튼 */
    --button-height: var(--height-md);        /* 48px */
    --button-border-radius: var(--radius-md);  /* 12px */
    --button-shadow: var(--shadow-md);        /* 기본 그림자 */
    
    --button-height-xs: var(--height-xs);
    --button-height-sm: var(--height-sm);
    --button-height-md: var(--height-md);
    --button-height-lg: var(--height-lg);
    --button-height-xl: var(--height-xl);
    
    /* 폰트 크기 */
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-base: 18px;
    --font-size-lg: 22px;
    --font-size-xl: 28px;
    --font-size-2xl: 32px;
    --font-size-3xl: 36px;
    --font-size-4xl: 48px;
    
    /* 간격 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    
    /* 버튼 사전 설정 */
    --button-height: var(--height-md);        /* 48px */
    --button-padding-x: 24px;
    --button-padding-y: 12px;
    --button-font-size: 16px;
    --button-border-radius: var(--radius-md);  /* 12px */
    --button-border-width: var(--border-width-thin);  /* 1px */
    --button-shadow: var(--shadow-md);        /* 기본 그림자 */
    --button-transition: all 0.2s ease-in-out;
    
    /* 버튼 크기 변형 */
    --button-height-xs: var(--height-xs);
    --button-height-sm: var(--height-sm);
    --button-height-md: var(--height-md);
    --button-height-lg: var(--height-lg);
    --button-height-xl: var(--height-xl);
    
    /* 입력 필드 */
    --input-height: 48px;
    --input-padding-x: 20px;
    --input-padding-y: 12px;
    --input-font-size: 18px;
    --input-border-radius: 12px;
    
    /* 카드 */
    --card-padding: 24px;
    --card-border-radius: 16px;
    --card-gap: 24px;
    
    /* 그리드 */
    --grid-columns: 4;         /* PC: 4열 */
    --grid-gap: 24px;
  }
}

/* 다크 모드 지원 (선택사항) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-primary: #f9fafb;
    --color-text-secondary: #d1d5db;
    --color-bg-primary: #111827;
    --color-bg-secondary: #1f2937;
  }
}

/* 유틸리티 클래스 */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-light { color: var(--color-text-light); }
.text-white { color: var(--color-text-white); }

.bg-primary { background-color: var(--color-bg-primary); }
.bg-secondary { background-color: var(--color-bg-secondary); }
.bg-dark { background-color: var(--color-bg-dark); }

.border-primary { border-color: var(--color-primary); }
.border-secondary { border-color: var(--color-secondary); }

/* 캐러셀 가로 스크롤바 숨김 */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* 반응형 컨테이너 */
.container-responsive {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* 반응형 헤더 높이 */
.header-height {
  height: var(--header-height);
}

/* 헤더 네비게이션 링크 스타일 (2026 트렌드) */
.header-nav-link {
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
  font-size: var(--header-font-size);
  position: relative;
}

.header-nav-link:hover {
  background-color: rgba(75, 85, 99, 0.8);
  transform: translateY(-1px);
}

.header-nav-link:active {
  transform: translateY(0);
}

.header-nav-link-bold {
  font-weight: 700;
  font-size: calc(var(--header-font-size) * 1.1);
}

/* 헤더 버튼 스타일 (2026 트렌드) */
.header-nav-button {
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
  font-size: var(--header-font-size);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.header-nav-button:hover {
  background-color: rgba(75, 85, 99, 0.8);
  transform: translateY(-1px);
}

.header-nav-button:active {
  transform: translateY(0);
}

/* 신청 버튼 (네비게이션 바 내부) - 상담 페이지 전용 */
.header-apply-button {
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
  font-size: var(--header-font-size);
  background: #10b981;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.header-apply-button:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.header-apply-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.3);
}

/* 모바일 메뉴 애니메이션 */
@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slide-down 0.3s ease-out;
}

/* 플로팅 액션 버튼 (FAB) - 등록 버튼 */
/* 모바일: 햄버거 메뉴 하부, PC/태블릿: 로그인 버튼 하부 */
.fab-button {
  position: fixed;
  top: calc(var(--header-height) + 4px);
  right: var(--header-padding-x);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.fab-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 태블릿 플로팅 버튼 (로그인 버튼 하부) */
@media (min-width: 768px) and (max-width: 1023px) {
  .fab-button {
    top: calc(var(--header-height) + 4px);
    right: var(--header-padding-x);
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* PC/모니터 플로팅 버튼 (로그인 버튼 하부) */
@media (min-width: 1024px) {
  .fab-button {
    top: calc(var(--header-height) + 4px);
    right: var(--header-padding-x);
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* 신청 버튼 (상담 페이지 전용) - 네비게이션 바 외부 배치 */
/* 모바일: 햄버거 메뉴 바로 아래 네비바 우측, PC/태블릿: 로그인 버튼 바로 아래 우측 */
.apply-button {
  position: fixed;
  right: var(--header-padding-x);
  padding: 0;
  border-radius: 12px;
  background: #10b981;
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.apply-button:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apply-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25), 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 모바일: 네비바 바로 아래 우측 (햄버거 메뉴 위치 기준) */
@media (max-width: 767px) {
  .apply-button {
    top: calc(var(--header-height) + 4px); /* 28px + 4px = 32px (네비바 바로 아래) */
    right: var(--header-padding-x); /* 16px (네비바 우측 정렬) */
    height: 36px;
    min-width: 72px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 8px;
  }
}

/* 태블릿: 로그인 버튼 바로 아래 우측 */
@media (min-width: 768px) and (max-width: 1023px) {
  .apply-button {
    top: calc(var(--header-height) + 4px); /* 37px + 4px = 41px (로그인 버튼 바로 아래) */
    right: var(--header-padding-x); /* 24px (로그인 버튼과 같은 위치) */
    height: 40px;
    min-width: 100px;
    padding: 0 20px;
    font-size: 15px;
    border-radius: 10px;
  }
}

/* PC/모니터: 로그인 버튼 바로 아래 우측 */
@media (min-width: 1024px) {
  .apply-button {
    top: calc(var(--header-height) + 4px); /* 37px + 4px = 41px (로그인 버튼 바로 아래) */
    right: var(--header-padding-x); /* 32px (로그인 버튼과 같은 위치) */
    height: 40px;
    min-width: 110px;
    padding: 0 24px;
    font-size: 15px;
    border-radius: 10px;
  }
}

/* 반응형 푸터 높이 */
.footer-height {
  min-height: var(--footer-height);
}

/* ============================================
   버튼 사전 설정 스타일
   ============================================ */
.btn {
  height: var(--button-height);
  padding: var(--button-padding-y) var(--button-padding-x);
  font-size: var(--button-font-size);
  border-radius: var(--button-border-radius);
  border-width: var(--button-border-width);
  border-style: solid;
  box-shadow: var(--button-shadow);
  cursor: pointer;
  transition: var(--button-transition);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 버튼 크기 변형 */
.btn-xs {
  height: var(--button-height-xs);
  padding: 4px 12px;
  font-size: 12px;
}

.btn-sm {
  height: var(--button-height-sm);
  padding: 6px 14px;
  font-size: 13px;
}

.btn-md {
  height: var(--button-height-md);
  padding: var(--button-padding-y) var(--button-padding-x);
  font-size: var(--button-font-size);
}

.btn-lg {
  height: var(--button-height-lg);
  padding: 12px 24px;
  font-size: 16px;
}

.btn-xl {
  height: var(--button-height-xl);
  padding: 14px 28px;
  font-size: 18px;
}

/* 버튼 라운드 변형 */
.btn-rounded-sm {
  border-radius: var(--radius-sm);
}

.btn-rounded-md {
  border-radius: var(--radius-md);
}

.btn-rounded-lg {
  border-radius: var(--radius-lg);
}

.btn-rounded-xl {
  border-radius: var(--radius-xl);
}

.btn-rounded-full {
  border-radius: var(--radius-full);
}

/* 버튼 그림자 변형 */
.btn-shadow-none {
  box-shadow: var(--shadow-none);
}

.btn-shadow-sm {
  box-shadow: var(--shadow-sm);
}

.btn-shadow-md {
  box-shadow: var(--shadow-md);
}

.btn-shadow-lg {
  box-shadow: var(--shadow-lg);
}

.btn-shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* 버튼 호버 효과 */
.btn:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn:active {
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
}

/* ============================================
   입력 필드 스타일
   ============================================ */
.input {
  width: 100%;
  height: var(--input-height);
  padding: var(--input-padding-y) var(--input-padding-x);
  font-size: var(--input-font-size);
  border-radius: var(--input-border-radius);
  border-width: var(--border-width-thin);
  border-style: solid;
  border-color: var(--color-gray-300);
  transition: var(--button-transition);
}

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

/* ============================================
   카드 스타일
   ============================================ */
.card {
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  background-color: var(--color-bg-primary);
  box-shadow: var(--shadow-md);
  border-width: var(--border-width-thin);
  border-style: solid;
  border-color: var(--color-gray-200);
  transition: var(--button-transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* 카드 라운드 변형 */
.card-rounded-sm {
  border-radius: var(--radius-sm);
}

.card-rounded-md {
  border-radius: var(--card-border-radius);
}

.card-rounded-lg {
  border-radius: var(--radius-lg);
}

/* 카드 그림자 변형 */
.card-shadow-sm {
  box-shadow: var(--shadow-sm);
}

.card-shadow-md {
  box-shadow: var(--shadow-md);
}

.card-shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* ============================================
   그리드 레이아웃 (전역)
   모바일 2열 / 태블릿 3열 / PC 4열 (--grid-columns)
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
}

/* 그리드 셀 균등 너비: 내용 오버플로우로 한쪽 열만 넓어지는 것 방지 (모바일 2열 등) */
.grid > * {
  min-width: 0;
}

/* 그리드 카드 내 긴 글/긴 단어: 줄바꿈 후 말줄임(…)으로 일정하게 표시 */
.grid p,
.grid h1, .grid h2, .grid h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================================
   유틸리티 클래스
   ============================================ */

/* 선 굵기 유틸리티 */
.border-none { border-width: var(--border-width-none); }
.border-thin { border-width: var(--border-width-thin); }
.border-base { border-width: var(--border-width-base); }
.border-thick { border-width: var(--border-width-thick); }
.border-bold { border-width: var(--border-width-bold); }

/* 라운드 유틸리티 */
.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* 그림자 유틸리티 */
.shadow-none { box-shadow: var(--shadow-none); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* 높이 유틸리티 */
.h-xs { height: var(--height-xs); }
.h-sm { height: var(--height-sm); }
.h-md { height: var(--height-md); }
.h-lg { height: var(--height-lg); }
.h-xl { height: var(--height-xl); }
.h-2xl { height: var(--height-2xl); }

/* 200x200 검정 박스 (상담 목록 페이지용) */
.consultation-black-box {
  width: 200px;
  height: 200px;
  background-color: black;
  display: block;
}

.consultation-center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* ============================================
   Kakao Maps 컴포넌트 스타일 (모바일 최적화)
   ============================================ */
.map-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

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

.current-location-btn {
  padding: 0.625rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.current-location-btn:hover {
  background: #2563eb;
}

.current-location-btn:active {
  background: #1d4ed8;
}

/* 검색 결과 자동완성 */
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-result-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f9fafb;
}

.search-result-item:active {
  background: #f3f4f6;
}

.place-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
  margin-bottom: 0.25rem;
}

.address-name {
  font-size: 0.75rem;
  color: #6b7280;
}

/* 지도 컨테이너 */
.map-container {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  min-height: 300px;
}

@media (min-width: 640px) {
  .map-container {
    min-height: 400px;
  }
}

/* 선택된 주소 표시 */
.selected-address {
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.selected-address .address {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.selected-address .loading {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.selected-address .placeholder {
  font-size: 0.875rem;
  color: #9ca3af;
}

.error-message {
  padding: 0.625rem 0.875rem;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  border: 1px solid #fecaca;
}

/* 상담 카드: 뷰포트 밖 항목 렌더 지연 (대량 목록 성능) */
.consultation-card-virtual {
  content-visibility: auto;
  contain-intrinsic-size: 1px 140px;
}

/* 캐러셀: 모바일은 터치만, PC(768px 이상)에서만 네비·페이징 표시 */
@media (max-width: 767px) {
  .carousel-pc-nav swiper-container::part(button-prev),
  .carousel-pc-nav swiper-container::part(button-next),
  .carousel-pc-nav swiper-container::part(pagination) {
    display: none !important;
  }
}

/* 스크롤바 숨기기 (미디어 캐러셀 등) */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 상단 문의 캐러셀: 전역 2/3/4열 (--grid-columns, --grid-gap). 스크롤바 숨김 */
.inquiry-top-carousel__scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.inquiry-top-carousel__scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.inquiry-top-carousel__track {
  gap: var(--grid-gap);
}

.inquiry-top-carousel .inquiry-top-carousel__card {
  flex: none;
  flex-shrink: 0;
  width: calc((100vw - var(--grid-gap) * (var(--grid-columns) - 1)) / var(--grid-columns));
  min-width: calc((100vw - var(--grid-gap) * (var(--grid-columns) - 1)) / var(--grid-columns));
  box-sizing: border-box;
  scroll-snap-stop: always;
}

/* 상담 상세 미디어 갤러리: 목록 페이지처럼 큰 이미지. 전역 그리드(2/3/4열), 셀 크기 1fr → 큰 카드 */
.consultation-media-gallery__btn {
  display: block;
}
.consultation-media-gallery .consultation-media-gallery__thumb {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
}

/* 게시판 업로드 이미지: 썸네일 2rem, 클릭 시 큰 이미지·닫기 */
.board-upload-thumb {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
}

/* 모바일: 상담 신청 등 모달이 네비바에 가리지 않도록 아래로 내림 */
@media (max-width: 767px) {
  .modal-overlay {
    align-items: flex-start;
    padding-top: 4.5rem;
    overflow-y: auto;
  }
}

/* 전역 닫기/되돌아가기 — 가독성 있게 X 표시 */
.close-btn-x {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
