/* ==========================================================================
   해외 입국신고서 포털 (Arrival Card Hub) - 모던 디자인 시스템 표준
   Master Blueprint v2.0 규격 준수 (전 기기 1컬럼 800px 중앙정렬 & 고대비 UI)
   ========================================================================== */

:root {
  /* 브랜드 테마 컬러 (딥 네이비 & 로얄 블루 & 앰버 골드) */
  --primary: #0f2b48;
  --primary-dark: #0a192f;
  --primary-medium: #1e3a8a;
  --primary-light: #2563eb;
  --primary-bg: #eff6ff;
  --primary-border: #bfdbfe;

  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-dark: #b45309;
  --accent-bg: #fffbeb;
  --accent-border: #fde68a;

  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;

  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  /* 중립색 (텍스트 & 배경 & 테두리) */
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;

  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* 라운드 & 그림자 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  --shadow-pulse: 0 0 0 4px rgba(37, 99, 235, 0.35);

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", Roboto, sans-serif;
}

/* 4.1 전역 리셋 & 한국어 단어 단위 줄바꿈 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 3.1 & 3.2 1컬럼 중앙 정렬 표준 레이아웃 (최대 너비 800px) */
.page-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  flex: 1;
}

/* ==========================================================================
   헤더 & 글로벌 내비게이션 (5.0 메뉴 줄바꿈 방지 공식)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.site-header .header-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  font-size: 1.15rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: -0.2px;
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 9px;
  color: var(--text-sub);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

.nav-link.active {
  color: var(--primary-light);
  background-color: var(--primary-bg);
  border-bottom: 2px solid var(--primary-light);
}

.nav-pill-new {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 3px;
  line-height: 1.2;
  vertical-align: middle;
  text-transform: uppercase;
}

/* 햄버거 메뉴 버튼 */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.4rem;
}

/* 모바일 드로어 */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 61px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
}

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

.drawer-content {
  background: #ffffff;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 2px solid var(--primary-light);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: calc(100vh - 61px);
  overflow-y: auto;
}

.drawer-link {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 14px;
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-link:hover, .drawer-link.active {
  background: var(--primary-bg);
  color: var(--primary-light);
}

.drawer-category {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 4px;
  padding-left: 6px;
}

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

/* ==========================================================================
   브레드크럼 내비게이션 (SEO & 사이트 구조적 유기적 연결)
   ========================================================================== */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 4px 0;
}

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-nav a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-light);
  user-select: none;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   히어로 섹션 & 타이틀 2줄 분리 패턴 (4.2 표준)
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 24px 0 20px;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

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

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

.accent-text {
  color: var(--primary-light);
  background: linear-gradient(120deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto;
}

.hero-country-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.quick-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.quick-country-chip:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.12);
}

.quick-country-chip--new {
  border-color: rgba(239, 68, 68, 0.4);
  background: #fff5f5;
  color: #dc2626;
  font-weight: 800;
}

.chip-new-badge {
  font-size: 0.65rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
}

/* ==========================================================================
   출국 직전 3대 해결 허브 퀵 카드 & 콜아웃 배너
   ========================================================================== */
.quick-hubs-section {
  margin: 28px 0;
}

.quick-hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.quick-hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.quick-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.quick-hub-card.hub-card--blue {
  border-top: 4px solid #0284c7;
}

.quick-hub-card.hub-card--green {
  border-top: 4px solid #10b981;
}

.quick-hub-card.hub-card--purple {
  border-top: 4px solid #8b5cf6;
}

.hub-card-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.hub-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  margin-bottom: 6px;
}

.hub-card-desc {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0;
}

.hub-card-action {
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hub-card--blue .hub-card-action { color: #0284c7; }
.hub-card--green .hub-card-action { color: #10b981; }
.hub-card--purple .hub-card-action { color: #8b5cf6; }

/* 본문 내 출국 직전 3대 해결 허브 콜아웃 배너 */
.problem-solving-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 28px 0;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

.problem-solving-banner .banner-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.problem-solving-banner .banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.problem-solving-banner .banner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.problem-solving-banner .banner-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.problem-solving-banner .banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.problem-solving-banner .banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.problem-solving-banner .banner-text strong {
  font-size: 0.88rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.problem-solving-banner .banner-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

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

/* ==========================================================================
   12.1 두괄식 핵심 요약 박스 (GEO · AEO 최적화 .geo-summary-box)
   ========================================================================== */
.geo-summary-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0 26px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.geo-summary-box .summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 10px;
}

.geo-summary-box .summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.geo-summary-box .summary-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1f2937;
  position: relative;
  padding-left: 18px;
}

.geo-summary-box .summary-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #16a34a;
  font-weight: bold;
  font-size: 1.1rem;
}

/* ==========================================================================
   3.3 카드 디자인 시스템 & 스택
   ========================================================================== */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.feature-card {
  --card-color: var(--primary-light);
  --card-tint: var(--primary-bg);
  display: block;
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card--country { --card-color: #2563eb; --card-tint: #eff6ff; }
.card--tool    { --card-color: #d97706; --card-tint: #fffbeb; }
.card--calc    { --card-color: #7c3aed; --card-tint: #f5f3ff; }
.card--docs    { --card-color: #0d9488; --card-tint: #f0fdf4; }
.card--warn    { --card-color: #dc2626; --card-tint: #fef2f2; }

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--card-color);
  background: var(--card-tint);
  padding: 4px 10px;
  border-radius: 6px;
}

.card-badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-badge-free {
  font-size: 0.75rem;
  font-weight: 800;
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 14px;
}

.card-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-meta-item strong {
  color: var(--text-main);
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--card-color);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   15.0 인터랙티브 도구 입력 폼 UX 극대화 규격
   ========================================================================== */
.calc-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.form-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.form-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

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

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

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

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

/* 15.1 뚜렷한 2px 테두리 & 포커스 글로우 */
.input-control, .select-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

/* 15.2 우측 단위 접미사 고정 (.input-unit-wrap) */
.input-unit-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-unit-wrap .input-control {
  padding-right: 48px;
}

.input-unit {
  position: absolute;
  right: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

/* 15.4 원클릭 퀵 조정 칩 */
.quick-adjust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: var(--primary-bg);
  border-color: var(--primary-border);
  color: var(--primary-light);
}

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

/* 라디오 & 체크박스 커스텀 셋트 */
.radio-group-cards, .checkbox-group-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-card-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-card-label:hover {
  border-color: #94a3b8;
  background: #fafafa;
}

.choice-card-label input[type="radio"],
.choice-card-label input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-light);
}

.choice-card-label.selected {
  border-color: var(--primary-light);
  background: var(--primary-bg);
}

.choice-content {
  flex: 1;
}

.choice-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.choice-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   3.2 대형 액션 버튼 (.btn-view-result) & 스무스 스크롤 이동
   ========================================================================== */
.result-action-box {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
  text-align: center;
}

.btn-view-result {
  width: 100%;
  max-width: 440px;
  min-height: 52px;
  margin: 0 auto;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-view-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

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

.arrow-icon {
  font-size: 1.2rem;
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

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

/* ==========================================================================
   3.2 결과 대시보드 카드 & 펄스 강조
   ========================================================================== */
.result-column-wrapper {
  scroll-margin-top: 85px;
  width: 100%;
}

.mobile-result-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}

.mobile-result-divider::before,
.mobile-result-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.mobile-result-divider span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-medium);
  background: var(--primary-bg);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--primary-border);
}

.result-section-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  border-left: 5px solid var(--accent-light);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.result-header-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
}

.calc-result-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease;
}

/* 펄스 강조 효과 */
.highlight-pulse {
  animation: pulseCard 1.2s ease;
}

@keyframes pulseCard {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.result-main-value-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-align: center;
  margin-bottom: 20px;
}

.result-caption {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-value-big {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.2;
}

.result-value-sub {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-top: 6px;
}

/* 결과 분석 항목 테이블 */
.result-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

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

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

/* ==========================================================================
   7.0 URL 결과 공유 배너 (.share-banner-box)
   ========================================================================== */
.share-banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--accent-bg);
  border: 1px dashed var(--accent-dark);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

.share-banner-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--accent-dark);
  margin-bottom: 2px;
}

.share-banner-content p {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.4;
  margin: 0;
}

.btn-share-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
  transition: background 0.15s ease;
}

.btn-share-url:hover {
  background: var(--accent-dark);
}

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

/* ==========================================================================
   10.0 구글 애드센스 고수익 전용 래퍼 규격 (.ad-placement)
   (높이 제한 없음, auto 형식, 래퍼 너비 일치)
   ========================================================================== */
.ad-placement {
  width: 100%;
  max-width: 820px;
  margin: 28px auto;
  padding: 14px 12px;
  box-sizing: border-box;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.ad-placement .ad-caption {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.ad-placement ins.adsbygoogle {
  display: block;
}

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

/* ==========================================================================
   14.0 연관 내부 링크 넥서스 컴포넌트 (.related-nexus-section)
   ========================================================================== */
.related-nexus-section {
  margin: 44px 0 28px;
  padding: 30px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  text-align: center;
}

.nexus-header {
  margin-bottom: 22px;
}

.nexus-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.nexus-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.nexus-header p {
  font-size: 0.88rem;
  color: #64748b;
}

.nexus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
}

.nexus-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
}

.nexus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  border-color: #3b82f6;
}

.nexus-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.nexus-card-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.nexus-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.nexus-card p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
  flex-grow: 1;
  margin-bottom: 12px;
}

.nexus-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  margin-top: auto;
}

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

/* ==========================================================================
   상태별 공지 안내 박스 (.notice-box-*)
   ========================================================================== */
.notice-box {
  padding: 18px 20px;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

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

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

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

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

.notice-box strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}

/* ==========================================================================
   상세 콘텐츠 스타일링 (테이블, 단계 스텝 카드, FAQ 등)
   ========================================================================== */
.content-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 22px 0 10px;
}

.content-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table th {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-sub);
  line-height: 1.5;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #fdfdfd;
}

/* 절차형 스텝 카드 */
.step-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.procedure-step-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.step-num-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 50%;
}

.step-body h4 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 8px;
}

.step-tip {
  font-size: 0.82rem;
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* FAQ 아코디언 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.faq-question:hover {
  background: var(--bg-subtle);
}

.faq-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-sub);
  border-top: 1px solid var(--border-color);
  background: #fafafa;
}

.faq-item.active .faq-answer {
  display: block;
  padding-top: 14px;
}

/* ==========================================================================
   8.0 풋터 운영자 정보 및 신뢰도 규격 (.footer-admin-bar)
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 40px 20px 32px;
  margin-top: auto;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
}

.footer-nav a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-admin-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid #334155;
  line-height: 1.6;
}

.footer-admin-bar strong {
  color: #f1f5f9;
}

.footer-admin-bar a {
  color: #38bdf8;
  text-decoration: none;
}

.footer-copyright {
  color: #64748b;
  font-size: 0.78rem;
}

/* ==========================================================================
   토스트 알림 (common.js 연동)
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   4.3 상단 스티키 진행률 바 규격 (.sticky-progress-card)
   ========================================================================== */
.sticky-progress-card {
  position: -webkit-sticky;
  position: sticky;
  top: 76px;
  z-index: 85;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.25);
  backdrop-filter: blur(8px);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #f59e0b;
  border-radius: 4px;
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .page-container {
    padding: 16px 14px 48px;
  }
  .calc-form-card, .content-section, .calc-result-card {
    padding: 20px 18px;
  }
  .sticky-progress-card {
    top: 72px;
    padding: 10px 14px;
  }
}

/* ==========================================================================
   공식 전자 입국신고서 정부 포털 배너 & 다이렉트 링크 버튼
   ========================================================================== */
.official-portal-banner {
  background: linear-gradient(135deg, #0a192f 0%, #0f2b48 60%, #1e3a8a 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 22px 0 26px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.official-portal-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.official-portal-banner .banner-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.official-portal-banner .gov-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 150, 105, 0.25);
  border: 1px solid #10b981;
  color: #34d399;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.official-portal-banner .gov-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  display: inline-block;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.official-portal-banner .gov-cost-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fde68a;
  background: rgba(217, 119, 6, 0.25);
  border: 1px solid #f59e0b;
  padding: 4px 10px;
  border-radius: 6px;
}

.official-portal-banner .banner-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.official-portal-banner .banner-info p {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.official-portal-banner .banner-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #94a3b8;
  word-break: break-all;
}

.official-portal-banner .banner-url-box code {
  color: #60a5fa;
  font-family: monospace;
  font-weight: 600;
}

.btn-official-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.btn-official-external:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
  color: #ffffff !important;
}

.btn-official-external svg {
  transition: transform 0.2s ease;
}

.btn-official-external:hover svg {
  transform: translate(2px, -2px);
}

.btn-step-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: var(--primary-bg);
  border: 1px solid var(--primary-border);
  color: var(--primary-light) !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.btn-step-link:hover {
  background-color: var(--primary-light);
  color: #ffffff !important;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.btn-table-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background-color: var(--primary-bg);
  border: 1px solid var(--primary-border);
  color: var(--primary-light) !important;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-table-link:hover {
  background-color: var(--primary-light);
  color: #ffffff !important;
}

/* ==========================================================================
   푸터 및 사이트맵 디렉터리 (사이트 전반 유기적 연결)
   ========================================================================== */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 30px;
  margin-top: 60px;
}

.site-footer .footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.footer-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding: 24px 0 20px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
  text-align: left;
}

.footer-dir-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-dir-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-dir-list li a {
  font-size: 0.82rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
}

.footer-dir-list li a:hover {
  color: var(--primary-light);
  transform: translateX(2px);
}

.footer-admin-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
