/* ==========================================================================
   셀프 개인회생 준비센터 - 프리미엄 스타일시트 (Vanilla CSS)
   - 모던 리걸 & 셀프 도우미 디자인 시스템
   - PC 2열 / 모바일 1열 반응형 (calc-responsive-grid) 완벽 탑재
   - PC 헤더 1줄 고정 & 모바일 1글자 쪼개짐 방지 (word-break: keep-all)
   - 상단 스티키(Sticky) 진행률 바 & 애드센스 상단 앵커 광고 충돌 방지
   - 외부 링크 없는 내부 완결형 구조
   ========================================================================== */

/* --- 1. CSS 변수 & 디자인 토큰 --- */
:root {
  --primary: #1e3a8a;        /* 신뢰감 있는 딥 네이비 */
  --primary-light: #2563eb;  /* 로열 블루 */
  --primary-dark: #0f172a;   /* 슬레이트 딥 블루 */
  --primary-bg: #eff6ff;     /* 연한 블루 배경 */
  
  --accent: #d97706;         /* 앰버/골드 (주의 및 중요 포인트) */
  --accent-light: #f59e0b;
  --accent-bg: #fffbeb;
  
  --success: #059669;        /* 에메랄드 그린 (준비완료/승인) */
  --success-bg: #ecfdf5;
  --danger: #dc2626;         /* 레드 (위험/전문가 검토 필요) */
  --danger-bg: #fef2f2;
  
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* --- 2. 기본 리셋 & 타이포그래피 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;       /* 한국어 단어 단위 줄바꿈 전역 적용 */
  overflow-wrap: break-word;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, select, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 3. 헤더 & 네비게이션 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1420px; /* PC 메뉴 1줄 수용을 위한 확장 */
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--primary-bg);
  color: var(--primary);
  padding: 3px 7px;
  border-radius: var(--radius-full);
  border: 1px solid #bfdbfe;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-bg);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-bg);
  font-weight: 800;
}

.nav-link.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.nav-link.highlight:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* 모바일 햄버거 메뉴 버튼 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* 모바일 드로어 네비게이션 */
.mobile-drawer {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px 20px;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  padding: 12px 14px;
  font-size: 0.98rem;
  border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 1060px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* --- 4. 영웅 섹션 (Hero) --- */
.hero-section {
  padding: 52px 0 40px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary-dark);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-sub);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.accent-text {
  color: var(--primary-light);
}

/* 신뢰도 핵심 보장 배너 (로그인X, 상담전화X) */
.trust-banner-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 540px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-title-line {
    display: block !important;
    white-space: nowrap !important;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
}

/* --- 5. 그리드 & 카드 시스템 --- */
.section {
  padding: 48px 0 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-light);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto;
}

/* 메인 6대 허브 카드 그리드 (PC 3열 / 태블릿 2열 / 모바일 1열) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-xl);
}

.hub-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.hub-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.hub-card-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.hub-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-top: auto;
}

.hub-card-link span {
  transition: transform var(--transition-fast);
}

.hub-card:hover .hub-card-link span {
  transform: translateX(4px);
}

/* --- 6. 전 기기 1컬럼(단일 열) 중앙 정렬 도구 레이아웃 (최대 너비 820px) --- */
.calc-responsive-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 820px;          /* 760px ~ 840px 범위 준수 */
  margin: 0 auto;            /* 화면 좌우 중앙 정렬 */
  gap: 32px;
}

/* 도구 입력 폼 카드 & 결과 카드 공통 */
.calc-form-card,
.calc-result-card {
  width: 100%;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

@media (max-width: 768px) {
  .calc-form-card,
  .calc-result-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
}

.calc-result-card {
  border-top: 4px solid var(--primary-light);
}

.calc-result-card.highlight-pulse {
  animation: resultPulse 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resultPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    border-color: var(--primary-light);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
  }
  100% {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
  }
}

/* 입력 폼 카드 */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 24px;
}

/* 체크리스트 라디오 필 버튼 그룹 스타일 */
.radio-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.radio-pill {
  flex: 1 1 calc(50% - 10px);
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.radio-pill:hover {
  background: #f1f5f9;
  border-color: #93c5fd;
}

.radio-pill input[type="radio"],
.radio-pill input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-light);
  cursor: pointer;
}

.radio-pill span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.radio-pill:has(input:checked) {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.radio-pill:has(input:checked) span {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 580px) {
  .radio-pill {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

.field-hint {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* 힌트 뱃지 */
.badge-hint {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 8px;
}

/* 상세 분석 요약 행 */
.detail-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.92rem;
}

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

.summary-row:first-child {
  padding-top: 0;
}

.summary-label {
  color: var(--text-sub);
  font-weight: 600;
}

.summary-val {
  color: var(--text-main);
  font-weight: 800;
  text-align: right;
}

/* 알림 및 경보 박스 */
.notice-box {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.notice-box-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-box-info {
  background: var(--primary-bg);
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.notice-box-info .notice-box-title {
  color: #1e3a8a;
}

.notice-box-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.notice-box-warning .notice-box-title {
  color: #b45309;
}

.notice-box-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.notice-box-danger .notice-box-title {
  color: #b91c1c;
}

.warning-list {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.warning-list li {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* 공유 배너 박스 */
.share-banner-box {
  background: #f8fafc;
  border: 1.5px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.share-banner-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-banner-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.btn-share-trigger {
  align-self: flex-start;
  padding: 8px 16px;
  background: var(--primary-bg);
  border: 1px solid #93c5fd;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-share-trigger:hover {
  background: var(--primary);
  color: #ffffff;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.96rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 라디오/체크박스 옵션 박스 */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.option-grid.col-1 {
  grid-template-columns: 1fr;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #ffffff;
}

.option-label:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary-light);
}

.option-label.checked,
.option-label:has(input:checked) {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  font-weight: 700;
  color: var(--primary);
}

/* --- 7. 결과 대시보드 및 액션 버튼 --- */
.result-column-wrapper {
  scroll-margin-top: 85px; /* 스티키 헤더 여백 확보 */
}

/* 폼 하단 '결과 확인하기' 대형 액션 버튼 */
.result-action-box {
  border-top: 1px dashed var(--border-color);
  padding-top: 22px;
  margin-top: 26px;
}

.btn-view-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-view-result:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn-view-result:active {
  transform: translateY(0);
}

.btn-view-result .arrow-icon {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.btn-view-result:hover .arrow-icon {
  transform: translateY(3px);
}

.result-action-tip {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  display: block;
}

/* 결과 상단 헤더 배너 */
.result-section-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--accent-light);
}

.result-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-header-title h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.result-header-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  color: #fde047;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: -0.2px;
}

/* 결과 대시보드 카드 */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

/* 펄스 하이라이트 애니메이션 */
@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
    transform: scale(1);
  }
  35% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.22);
    transform: scale(1.008);
  }
  100% {
    box-shadow: var(--shadow-md);
    transform: scale(1);
  }
}

.highlight-pulse {
  animation: highlightPulse 1.2s ease-out;
}

/* URL 결과 공유 배너 */
.share-banner-box {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.share-banner-content strong {
  display: block;
  font-size: 0.92rem;
  color: #92400e;
  margin-bottom: 2px;
}

.share-banner-content p {
  font-size: 0.8rem;
  color: #b45309;
  margin: 0;
}

.btn-share-url {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
  transition: all var(--transition-fast);
}

.btn-share-url:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

@media (max-width: 580px) {
  .share-banner-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-share-url {
    width: 100%;
  }
}

/* 통계 및 금액 표시 블록 */
.stat-highlight-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.stat-sub {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 4px;
}

/* 요약 내역 테이블/리스트 */
.detail-list-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

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

.detail-row.total {
  background: #f1f5f9;
  font-weight: 800;
  color: var(--primary);
}

/* 안내 및 주의사항 박스 */
.notice-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-sub);
}

.notice-box.warning {
  background: var(--accent-bg);
  border-color: #fde68a;
  color: #92400e;
}

.notice-box.danger {
  background: var(--danger-bg);
  border-color: #fecaca;
  color: #991b1b;
}

.notice-box.success {
  background: var(--success-bg);
  border-color: #a7f3d0;
  color: #065f46;
}

.notice-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* 상단 스티키 진행률 바 (체크리스트용) */
.sticky-progress-card {
  position: -webkit-sticky;
  position: sticky;
  top: 76px;
  z-index: 85;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 22px;
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(10px);
}

.sticky-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #fde047;
  border-radius: var(--radius-full);
  transition: width 0.35s ease;
}

/* 서류 체크리스트 아이템 */
.doc-item-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition-fast);
}

.doc-item-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-sm);
}

.doc-item-card.completed {
  background: #f8fafc;
  border-color: #cbd5e1;
  opacity: 0.85;
}

.doc-info {
  flex-grow: 1;
}

.doc-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.doc-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.doc-issuer-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 6px;
}

/* 탭 버튼 그룹 */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
  background: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
}

/* --- 8. 토스트 팝업 --- */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  background: #0f172a;
  color: #ffffff;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--accent-light);
  pointer-events: auto;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 9. 풋터 (신뢰도 규격) --- */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 48px 0 28px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1e293b;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-desc {
  max-width: 440px;
  color: #64748b;
  font-size: 0.88rem;
}

.footer-col-title {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b;
}

.disclaimer-badge {
  background: #1e293b;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  border-left: 3px solid var(--accent);
}

.footer-admin-bar {
  border-top: 1px dashed #334155;
  padding-top: 18px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-admin-bar a {
  color: #cbd5e1;
  text-decoration: underline;
}

/* ==========================================================================
   10. 절차안내 10단계 구분 디자인 시스템 (.procedure-timeline)
   ========================================================================== */
.procedure-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.procedure-step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  border-left: 6px solid #94a3b8;
}

.procedure-step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

/* 단계별 테마 컬러 구분 (1~3: 신청준비, 4~6: 접수/보정, 7~8: 개시/집회, 9~10: 인가/면책) */
.procedure-step-card:nth-child(1),
.procedure-step-card:nth-child(2),
.procedure-step-card:nth-child(3) {
  border-left-color: var(--primary-light);
}

.procedure-step-card:nth-child(4),
.procedure-step-card:nth-child(5),
.procedure-step-card:nth-child(6) {
  border-left-color: var(--accent);
}

.procedure-step-card:nth-child(7),
.procedure-step-card:nth-child(8) {
  border-left-color: #6366f1;
}

.procedure-step-card:nth-child(9),
.procedure-step-card:nth-child(10) {
  border-left-color: var(--success);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.procedure-step-card:nth-child(4) .step-num-badge,
.procedure-step-card:nth-child(5) .step-num-badge,
.procedure-step-card:nth-child(6) .step-num-badge {
  background: var(--accent);
}

.procedure-step-card:nth-child(7) .step-num-badge,
.procedure-step-card:nth-child(8) .step-num-badge {
  background: #6366f1;
}

.procedure-step-card:nth-child(9) .step-num-badge,
.procedure-step-card:nth-child(10) .step-num-badge {
  background: var(--success);
}

.step-meta-chips {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.step-chip {
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 16px;
}

.step-action-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.step-action-box.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/* ==========================================================================
   11. 용어사전 30선 카드 & 더보기 아코디언 (.dict-card-grid)
   ========================================================================== */
.dict-filter-container {
  max-width: 820px;
  margin: 0 auto 28px;
}

.dict-card-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.dict-term-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.dict-term-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.dict-term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.dict-term-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dict-term-cat-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  color: var(--primary);
  white-space: nowrap;
}

.dict-term-meaning {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 14px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-light);
}

.dict-term-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.dict-term-doc {
  color: var(--text-sub);
}

.dict-term-importance {
  color: #b91c1c;
  line-height: 1.5;
  font-weight: 600;
}

/* 추가 10선 더보기 버튼 */
.btn-dict-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 820px;
  margin: 30px auto 0;
  padding: 16px 24px;
  background: #ffffff;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-dict-more:hover {
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dict-more.expanded {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--text-sub);
}

/* ==========================================================================
   12. 내부 순환 네비게이션 (Flow Navigator & Journey Cards)
   ========================================================================== */
.flow-navigator-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.flow-navigator-header {
  margin-bottom: 18px;
}

.flow-navigator-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #93c5fd;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.flow-navigator-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.4px;
}

.flow-navigator-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-top: 4px;
}

.flow-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .flow-cards-grid {
    grid-template-columns: 1fr;
  }
}

.flow-action-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.flow-action-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.flow-action-card.primary-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-color: #86efac;
}

.flow-action-card.primary-highlight:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
}

.flow-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.flow-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.flow-action-card.primary-highlight .flow-card-icon {
  background: #dcfce7;
}

.flow-card-question {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.flow-card-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
}

.flow-card-detail {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.flow-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-light);
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  margin-top: auto;
}

.flow-card-cta .arrow {
  transition: transform var(--transition-fast);
  font-size: 1.1rem;
}

.flow-action-card:hover .flow-card-cta .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   구글 애드센스 (Google AdSense) 반응형 래퍼 스타일
   ========================================================================== */
.ad-placement {
  width: 100%;
  max-width: 800px;
  margin: 24px auto;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md, 14px);
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  box-sizing: border-box;
}

.ad-placement.ad-top {
  margin-top: 20px;
  margin-bottom: 28px;
}

.ad-placement.ad-action {
  margin-top: 24px;
  margin-bottom: 24px;
  background: #ffffff;
  border-color: #cbd5e1;
}

.ad-placement.ad-bottom {
  margin-top: 28px;
  margin-bottom: 36px;
}

.ad-placement .ad-caption {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .ad-placement {
    margin: 18px auto;
    padding: 10px 8px;
    border-radius: 10px;
  }
}

/* ==========================================================================
   AI 노출 최적화 (GEO · AEO · AIO · LLMO) 상단 요약 카드 스타일
   - 생성형 AI(ChatGPT, Gemini, Perplexity 등) 및 사용자 직답(Direct Answer) 제공
   ========================================================================== */

.geo-summary-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 20px auto 32px;
  max-width: 900px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
  position: relative;
  overflow: hidden;
}

.geo-summary-box::after {
  content: "GEO · AEO";
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #93c5fd;
  opacity: 0.6;
  pointer-events: none;
}

.geo-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: -0.2px;
}

.geo-badge-icon {
  font-size: 0.95rem;
}

.geo-sub-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.geo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.45;
}

.geo-direct-answer {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.geo-direct-answer-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.geo-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.geo-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
}

.geo-summary-item strong {
  color: #0f172a;
  font-weight: 700;
}

.geo-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.geo-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.geo-fact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.geo-fact-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.geo-fact-value {
  font-size: 0.98rem;
  color: #1e3a8a;
  font-weight: 800;
}

.geo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.78rem;
  color: #64748b;
}

.geo-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.geo-copy-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

@media (max-width: 640px) {
  .geo-summary-box {
    padding: 16px 18px;
    margin: 16px auto 24px;
  }
  .geo-title {
    font-size: 1.05rem;
  }
  .geo-direct-answer {
    font-size: 0.88rem;
    padding: 10px 12px;
  }
  .geo-summary-item {
    font-size: 0.86rem;
  }
  .geo-facts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   15. 구글 애드센스 (Google AdSense) 반응형 자동맞춤 스타일
   - 비정상적인 세로 늘어남 방지 및 최적 가로 반응형 배너 자동맞춤
   - 불필요한 고정 높이·이중 테두리 박스 전면 제거
   ========================================================================== */
.ad-placement {
  width: 100%;
  max-width: 820px;
  margin: 18px auto;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  clear: both;
}

.ad-placement.ad-top {
  margin: 12px auto 20px;
  max-width: 820px;
}

.ad-placement.ad-in-content {
  margin: 22px auto;
  max-width: 800px;
}

.ad-placement.ad-bottom {
  margin: 22px auto 26px;
  max-width: 820px;
}

.ad-placement .ad-caption {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
}

.ad-placement ins.adsbygoogle {
  display: block !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* ==========================================================================
   16. 계산기 입력 폼 직관성 고도화 스타일 (.calc-form-card & .form-control)
   - 명확한 2px 테두리, 포커스 하이라이트
   - 우측 단위 라벨 (원), 실시간 한글 금액 뱃지
   - 원클릭 퀵 조정 버튼 (+10만, +50만, +100만 등)
   ========================================================================== */
.calc-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.calc-form-card .form-group {
  margin-bottom: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 18px 16px;
  transition: all 0.2s ease;
}

.calc-form-card .form-group:focus-within {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.calc-form-card .form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.calc-form-card .field-hint {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.45;
}

/* 인풋 래퍼 및 컨트롤 */
.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  height: 52px;
  padding: 10px 48px 10px 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  background-color: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  letter-spacing: -0.5px;
}

.form-control:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
  color: #94a3b8;
  font-weight: 500;
  font-size: 1rem;
}

.unit-suffix {
  position: absolute;
  right: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
  user-select: none;
}

/* 셀렉트 박스 */
.form-select {
  width: 100%;
  height: 52px;
  padding: 10px 42px 10px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
}

.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* 실시간 한글 금액 뱃지 */
.amount-hangul-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.hangul-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* 퀵 조정 버튼 바 */
.quick-adjust-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-quick-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-quick-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-quick-chip:active {
  transform: translateY(0);
}

.btn-quick-chip.chip-reset {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.btn-quick-chip.chip-reset:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* 생계비 힌트 뱃지 */
.badge-hint {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #166534;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .calc-form-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .calc-form-card .form-group {
    padding: 14px 12px;
  }
  .form-control {
    font-size: 1.15rem;
    height: 48px;
  }
  .form-select {
    font-size: 0.95rem;
    height: 48px;
  }
  .btn-quick-chip {
    padding: 5px 9px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   연관 내부 링크 넥서스 컴포넌트 (Related Nexus Internal Links)
   사용자가 쉽게 인지하고 클릭할 수 있는 고대비 반응형 카드 시스템
   ========================================================================== */
.related-nexus-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 50px 0 60px;
  margin-top: 40px;
}

.nexus-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.nexus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0e7ff;
  color: #3730a3;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.nexus-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.nexus-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.nexus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.nexus-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.nexus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nexus-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 12px 20px -3px rgba(37, 99, 235, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.nexus-card:hover::before {
  opacity: 1;
}

.nexus-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.nexus-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nexus-card:hover .nexus-icon {
  transform: scale(1.08);
}

.nexus-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nexus-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
  line-height: 1.35;
}

.nexus-card-text {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.nexus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  transition: color 0.15s ease;
}

.nexus-card:hover .nexus-btn {
  color: #1d4ed8;
}

.nexus-arrow {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.nexus-card:hover .nexus-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   셀프 vs 전문가 비교 페이지 전용 스타일 (.self-vs-pro)
   ========================================================================== */
.svp-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 44px;
}

@media (max-width: 992px) {
  .svp-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.svp-tier-card {
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.svp-tier-card.tier-green {
  background: #f0fdf4;
  border: 2px solid #86efac;
}

.svp-tier-card.tier-yellow {
  background: #fffbeb;
  border: 2px solid #fcd34d;
}

.svp-tier-card.tier-red {
  background: #fef2f2;
  border: 2px solid #fca5a5;
}

.svp-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  width: fit-content;
}

.tier-green .svp-tier-badge {
  background: #dcfce7;
  color: #166534;
}

.tier-yellow .svp-tier-badge {
  background: #fef3c7;
  color: #92400e;
}

.tier-red .svp-tier-badge {
  background: #fee2e2;
  color: #991b1b;
}

.svp-tier-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #0f172a;
}

.svp-tier-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.4;
}

.svp-condition-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-grow: 1;
}

.svp-condition-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #1e293b;
}

.svp-condition-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.svp-tier-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.svp-action-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tier-green .svp-action-btn {
  background: #16a34a;
  color: #ffffff;
}

.tier-green .svp-action-btn:hover {
  background: #15803d;
}

.tier-yellow .svp-action-btn {
  background: #d97706;
  color: #ffffff;
}

.tier-yellow .svp-action-btn:hover {
  background: #b45309;
}

.tier-red .svp-action-btn {
  background: #dc2626;
  color: #ffffff;
}

.tier-red .svp-action-btn:hover {
  background: #b91c1c;
}

/* 실제 커뮤니티 소명 사례 인용 박스 */
.svp-case-quote {
  background: #ffffff;
  border-left: 4px solid #3b82f6;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin: 24px 0;
}

.svp-case-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.svp-case-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

/* 무료 법률구조 지원 박스 */
.legal-aid-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 28px 30px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 768px) {
  .legal-aid-banner {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
  }
}

.legal-aid-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #ffffff;
}

.legal-aid-content p {
  font-size: 0.9rem;
  color: #c7d2fe;
  line-height: 1.55;
  margin: 0;
}

.legal-aid-btn {
  background: #fbbf24;
  color: #1e1b4b;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.legal-aid-btn:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

