/* 우리동네 명의 찾기 - Custom Medical UI Theme */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --primary: #0284c7;       /* Trust Medical Blue */
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-accent: #0284c7;
  --secondary: #0d9488;     /* Teal / Mint Accent */
  --secondary-light: #ccfbf1;
  --dark-slate: #0f172a;
  --body-text: #334155;
  --muted-text: #64748b;
  --border-color: #e2e8f0;
  --bg-soft: #f8fafc;
  --card-bg: #ffffff;
  --big5-badge-bg: #eff6ff;
  --big5-badge-text: #1d4ed8;
  --paper-badge-bg: #fef3c7;
  --paper-badge-text: #b45309;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-soft);
  color: var(--body-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7, #0d9488);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}
.nav-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.5px;
}
.nav-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.nav-reset-btn {
  font-size: 13px;
  color: var(--muted-text);
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.nav-reset-btn:hover {
  background: #f1f5f9;
  color: var(--dark-slate);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 20px 40px;
  text-align: center;
}
.hero-container {
  max-width: 800px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--dark-slate);
  letter-spacing: -1px;
  margin-bottom: 18px;
  line-height: 1.25;
}
.hero-title span {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 18px;
  color: #475569;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
}
.hero-desc .highlight-line {
  font-weight: 700;
  color: #0f172a;
}
.hero-trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.trust-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-chip svg {
  color: var(--primary);
}

/* Step Wizard Progress Bar */
.wizard-progress-wrap {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 0 20px;
}
.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
}
.wizard-progress::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}
.wizard-progress-fill {
  position: absolute;
  top: 20px;
  left: 30px;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #0d9488);
  z-index: 2;
  transition: width 0.3s ease;
  width: 0%;
}
.wizard-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.3s ease;
}
.wizard-step-node.active .step-circle {
  background: #0284c7;
  border-color: #e0f2fe;
  color: white;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}
.wizard-step-node.completed .step-circle {
  background: #0d9488;
  border-color: #0d9488;
  color: white;
}
.step-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.wizard-step-node.active .step-title {
  color: #0284c7;
}

/* Main Container */
.main-content {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 80px;
  flex: 1;
}

/* Card Section Box */
.section-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
  margin-bottom: 30px;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}
.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--muted-text);
}

/* Interactive Grid for Clicks */
.interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.option-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.option-btn:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.1);
}
.option-btn.selected {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px #0284c7;
}
.option-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.option-info {
  flex: 1;
}
.option-name {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}
.option-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
.option-arrow {
  color: #94a3b8;
  align-self: center;
  font-size: 16px;
  transition: transform 0.2s;
}
.option-btn:hover .option-arrow {
  color: #0284c7;
  transform: translateX(4px);
}

/* Step 3 Special Direct Input Box */
.custom-input-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fefce8 0%, #fffbeb 100%);
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.custom-input-card:hover {
  background: #fef3c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15);
}
.custom-input-title {
  font-size: 17px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.custom-input-desc {
  font-size: 13px;
  color: #92400e;
}

/* Direct Input Form (When expanded) */
.direct-input-form {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.direct-input-text {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  background: white;
  transition: border-color 0.2s;
}
.direct-input-text:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.direct-input-submit {
  background: #0284c7;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.direct-input-submit:hover {
  background: #0369a1;
}

/* Region Selector Styles */
.region-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.region-chip {
  padding: 10px 18px;
  border-radius: 30px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.region-chip:hover {
  background: #e2e8f0;
}
.region-chip.active {
  background: #0284c7;
  color: white;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.region-dropdown-row {
  display: flex;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto 20px;
}
.region-select {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: white;
  outline: none;
  font-weight: 600;
  color: #1e293b;
}

/* Back / Navigation Action Row */
.step-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: #f8fafc;
  color: #0f172a;
}
.breadcrumbs {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs .crumb-active {
  font-weight: 700;
  color: #0284c7;
}

/* ========================================================
   RESULTS PAGE: DOCTOR RECOMMENDATIONS & HOSPITAL PROFILE TAB
   ======================================================== */
.result-summary-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.result-summary-banner::after {
  content: "RECOMMENDATION";
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 60px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.result-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.result-banner-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.result-banner-query-tag {
  background: rgba(2, 132, 199, 0.3);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.result-banner-subtitle {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Scoring Formula Guide Bar */
.scoring-rules-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.scoring-rules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}
.score-rule-badge {
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-paper { background: #fef3c7; color: #92400e; }
.badge-big5 { background: #dbeafe; color: #1e40af; }
.badge-specialty { background: #dcfce7; color: #166534; }
.badge-dept { background: #f1f5f9; color: #475569; }

/* Doctor Profile Cards (Hospital Medical Staff Style) */
.doctor-cards-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.doctor-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}
.doctor-card:hover {
  border-color: #38bdf8;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.doctor-card.rank-1 {
  border-color: #0284c7;
}

/* Card Header Strip with Score */
.doc-card-header {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.doc-rank-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #0284c7;
}
.rank-badge-number {
  background: #0284c7;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.doc-total-score-badge {
  background: linear-gradient(135deg, #0284c7, #0d9488);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* Card Main Body */
.doc-card-body {
  padding: 24px;
}
.doc-main-row {
  display: flex;
  gap: 24px;
}
.doc-avatar-wrap {
  width: 110px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #f1f5f9;
  box-shadow: var(--shadow-sm);
}
.doc-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 전문의 배지형 아바타 (저작권 안전 및 진료과별 직관적 비주얼) */
.doc-specialist-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 10px 6px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.18);
  user-select: none;
  border-radius: inherit;
  transition: transform 0.2s ease;
}
.doc-specialist-avatar:hover {
  transform: scale(1.02);
}
.doc-specialist-avatar .avatar-dept-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.doc-specialist-avatar .avatar-name-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  margin-bottom: 5px;
  white-space: nowrap;
}
.doc-specialist-avatar .avatar-specialist-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  padding: 1px 8px;
  letter-spacing: 0.3px;
  color: #ffffff;
  white-space: nowrap;
}
.doc-specialist-avatar.avatar-modal .avatar-dept-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.doc-specialist-avatar.avatar-modal .avatar-name-title {
  font-size: 12.5px;
  margin-bottom: 4px;
}
.doc-specialist-avatar.avatar-modal .avatar-specialist-badge {
  font-size: 10px;
  padding: 1px 6px;
}
.doc-info-col {
  flex: 1;
}
.doc-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.doc-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark-slate);
}
.doc-title {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}
.doc-clinic-name {
  font-size: 15px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.doc-address {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Big 5 Verified Tag */
.big5-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

/* Specialties Pills */
.doc-specialties-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.specialty-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.specialty-pill.highlight {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
  font-weight: 800;
}

/* Doctor's Quote / Bio excerpt */
.doc-bio-quote {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  background: #f8fafc;
  padding: 10px 14px;
  border-left: 3px solid #0284c7;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}

/* Hospital Introduction Tabs (병원 의료진 소개 탭 적극 활용) */
.hospital-profile-tabs {
  margin-top: 18px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}
.tab-buttons {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 14px;
}
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.tab-btn:hover {
  color: #0f172a;
}
.tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

.tab-pane {
  display: none;
  font-size: 13px;
  color: #334155;
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Career List in Tab */
.career-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.career-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.career-bullet {
  color: #0284c7;
  font-weight: 800;
}

/* Papers Highlight in Tab (+100점 근거) */
.paper-item {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.paper-badge {
  background: #f59e0b;
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}
.paper-title {
  font-weight: 700;
  color: #78350f;
  font-size: 13px;
  margin-bottom: 2px;
}
.paper-journal {
  font-size: 12px;
  color: #b45309;
}
.paper-pubmed-link {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  border-radius: 4px;
  padding: 2px 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.paper-pubmed-link:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* Score Breakdown Accordion / Detail */
.score-breakdown-box {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.score-subitem {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.score-subitem-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.score-subitem-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.score-subitem-val.earned {
  color: #0284c7;
}

/* Action Footer */
.doc-card-footer {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.doc-contact-info {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}
.doc-actions-wrap {
  display: flex;
  gap: 8px;
}
.btn-call {
  background: #0284c7;
  color: white;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-call:hover {
  background: #0369a1;
}
.btn-map {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-map:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.btn-clinic-homepage {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #065f46;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}
.btn-clinic-homepage:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

/* Modal styles for full profile */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
}

/* Footer */
footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 40px 20px 48px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-top: auto;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--dark-slate);
}

.footer-logo {
  font-size: 18px;
}

.footer-tagline {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 4px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
}

.footer-nav-link {
  background: none;
  border: none;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: color 0.15s ease;
  border-radius: 4px;
}

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

.footer-sep {
  color: #cbd5e1;
  font-size: 12px;
  user-select: none;
}

.footer-contact-info {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer-contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-info a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: 860px;
  margin: 0 auto 16px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .section-card {
    padding: 24px 18px;
  }
  .doc-main-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .doc-name-row {
    justify-content: center;
  }
  .doc-clinic-name, .doc-address {
    justify-content: center;
  }
  .doc-specialties-wrap {
    justify-content: center;
  }
  .doc-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .doc-actions-wrap {
    flex-direction: column;
  }
  .btn-call, .btn-map, .btn-clinic-homepage {
    justify-content: center;
  }
}

/* Korea Interactive Map Layout & Component Styles */
.map-picker-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .map-picker-layout {
    grid-template-columns: 1fr;
  }
}

.map-graphic-box {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-box-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.map-instruction {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-all-korea {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-all-korea:hover, .btn-all-korea.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.korea-map-svg-container {
  width: 100%;
  max-width: 440px;
  margin: 4px auto 0 auto;
}

.korea-svg-map {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.08));
}

.region-group {
  cursor: pointer;
}

.map-region {
  fill: #f1f5f9;
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-linejoin: round;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.region-group:hover .map-region {
  fill: #bae6fd;
  stroke: var(--primary);
  stroke-width: 1.8;
  filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.35));
}

.map-region.active {
  fill: #0284c7 !important;
  stroke: #0369a1 !important;
  stroke-width: 2 !important;
  filter: drop-shadow(0 4px 12px rgba(2, 132, 199, 0.5)) !important;
}

.map-label {
  fill: #1e293b;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 2.5px;
  stroke-linejoin: round;
  transition: all 0.2s ease;
}

.region-group:hover .map-label {
  fill: #0284c7;
  stroke: #ffffff;
  stroke-width: 3px;
  font-weight: 800;
  font-size: 12px;
}

.map-region.active + .map-label {
  fill: #ffffff !important;
  stroke: #0369a1 !important;
  stroke-width: 2.5px !important;
  font-weight: 800;
  font-size: 12px;
}

/* Sido Quick Pills */
.sido-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  width: 100%;
}

.sido-pill-btn {
  padding: 5px 11px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.sido-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

/* Right Control Panel */
.map-control-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.region-status-card {
  background: #ffffff;
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@keyframes statusCardPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
    border-color: var(--primary);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
    border-color: var(--primary);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
  }
}

.region-status-card.pulse {
  animation: statusCardPulse 0.45s ease-out;
}

.region-status-card .status-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.status-value-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.status-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-text);
  line-height: 1.45;
}

.sigungu-select-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sigungu-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sigungu-field-label .label-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--body-text);
}

.sigungu-field-label .label-badge {
  font-size: 11px;
  background: #f1f5f9;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.full-width-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--dark-slate);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.full-width-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.full-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
}

.map-step-nav {
  margin-top: 6px;
}

/* ==========================================================================
   Google AdSense & SEO Content Section Styles
   ========================================================================== */
.adsense-content-section {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 64px 20px 72px;
  margin-top: 40px;
}

.adsense-inner-container {
  max-width: 1040px;
  margin: 0 auto;
}

.adsense-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.adsense-pill-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.adsense-main-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-slate);
  line-height: 1.35;
  margin-bottom: 12px;
}

.adsense-sub-heading {
  font-size: 15px;
  color: var(--muted-text);
  line-height: 1.6;
}

/* 3 Guide Column Cards */
.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .guide-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.guide-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  background: #ffffff;
}

.guide-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.guide-tag {
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
}

.guide-read-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.guide-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 12px;
}

.guide-card-lead {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.5;
  margin-bottom: 12px;
}

.guide-card-body {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.65;
  flex: 1;
}

.guide-card-body p {
  margin-bottom: 10px;
}

.guide-card-body strong {
  color: #0f172a;
}

.guide-card-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.guide-tip-label {
  font-weight: 700;
  color: var(--primary);
  display: inline;
  margin-right: 4px;
}

/* FAQ Section */
.adsense-faq-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .adsense-faq-section {
    padding: 24px 16px;
  }
}

.faq-section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 30px;
}

.faq-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 8px;
}

.faq-section-desc {
  font-size: 14px;
  color: var(--muted-text);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion-item[open] {
  background: #ffffff;
  border-color: #bae6fd;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-slate);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  flex-shrink: 0;
}

.faq-question-text {
  flex: 1;
}

.faq-chevron {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.faq-accordion-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 20px 18px 60px;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .faq-answer {
    padding: 0 16px 16px 16px;
  }
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: #0f172a;
}

/* Policy & Legal Modal Styling */
.policy-modal-wrap {
  text-align: left;
}

.policy-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.policy-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-color);
}

.policy-modal-content {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.7;
}

.policy-doc h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 18px 0 8px;
}

.policy-doc p {
  margin-bottom: 10px;
}

.policy-doc ul {
  margin: 8px 0 14px 20px;
  line-height: 1.65;
}

.policy-doc li {
  margin-bottom: 6px;
}

.policy-effective-date {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 14px;
}

