:root {
  color-scheme: light;
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: #212121;
  background: #f7f9fb;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #ece4ff;
  color: #1a1a2e;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* 모바일 우선: 로고+버튼 줄(header-top-row)은 절대 줄바꿈 없이 한 줄 고정, 전체 메뉴는 그 아래 접혔다 펼쳐짐 */
.header-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
}

/* 로고 록업: 원형 行 마크 + 워드마크(소확행/법률센터) + 구분선 + 태그라인.
   좁은 화면에서는 header-top-row(로고+버튼 한 줄)가 넘치지 않도록 태그라인을
   둘째 줄로 내리고 구분선은 숨긴다. */
.brand-lockup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #0f6e56;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 13px;
  color: #0f6e56;
  flex-shrink: 0;
}

.brand-word {
  display: flex;
  align-items: baseline;
  min-width: 0;
  overflow: hidden;
}

.brand-word-main {
  font-family: 'Pretendard Variable', 'Apple SD Gothic Neo', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-word-sub {
  font-family: 'Pretendard Variable', 'Apple SD Gothic Neo', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #6b7280;
  margin-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  flex-shrink: 0;
}

.brand-tagline {
  font-family: 'Pretendard Variable', 'Apple SD Gothic Neo', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-tagline .tag-accent {
  font-weight: 700;
  color: #0f6e56;
}
.brand-tagline .tag-paren {
  color: #9ca3af;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-word {
    opacity: 0;
    animation: brandFadeUp 0.5s ease-out forwards;
  }
  .brand-tagline {
    opacity: 0;
    animation: brandFadeUp 0.5s ease-out 80ms forwards;
  }
}
@keyframes brandFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .brand-divider { display: none; }
  .brand-tagline {
    flex-basis: 100%;
    white-space: normal;
  }
  .brand-word-main { font-size: 20px; }
  .brand-word-sub { font-size: 17px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(127,74,255,.1);
  border: none;
  border-radius: 9px;
  color: #1a1a2e;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
}

.main-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(127,74,255,.06);
  border-radius: 12px;
  padding: 8px;
}

.main-nav.open {
  display: flex;
}

.main-nav a {
  color: #3d3d52;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 8px;
}

.main-nav a:hover {
  color: #7f4aff;
}

/* 데스크톱(넓은 화면)에서만: header-top-row를 풀어서(display:contents) 로고/메뉴/버튼을 한 줄에 배치 */
@media (min-width: 761px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .header-top-row {
    display: contents;
  }
  .brand-lockup {
    order: 1;
    flex: 0 1 auto;
    overflow: visible;
  }
  .brand-word-main,
  .brand-word-sub {
    overflow: visible;
    text-overflow: clip;
  }
  .main-nav {
    order: 2;
    display: flex !important;
    flex-direction: row;
    gap: 20px;
    background: none;
    padding: 0;
  }
  .main-nav a {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0;
  }
  .header-actions {
    order: 3;
  }
  .nav-toggle {
    display: none;
  }
}

.nav-ai-badge {
  background: radial-gradient(60% 120% at 50% 50%, #b090ff 0%, #7f4aff 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 761px) {
  .nav-ai-badge {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

.section {
  padding: 60px 0;
}

.hero {
  position: relative;
  isolation: isolate;
  background: #e9e9ec;
  padding: 80px 0; /* 상하 여유를 늘려 시각적 균형 개선 */
  display: flex; /* 수직/수평 중앙 정렬을 위한 플렉스 레이아웃 */
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 히어로 배경의 흐릿한 보라색 블롭(구름) 장식. 두 개는 아래쪽에 넓게 깔리고,
   위쪽 두 개는 천천히 떠다니듯 움직인다. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  background: #d7c9ff;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-blob-bottom-a {
  width: 70%;
  height: 65%;
  left: -12%;
  bottom: -32%;
}
.hero-blob-bottom-b {
  width: 70%;
  height: 65%;
  right: -12%;
  bottom: -32%;
}
.hero-blob-top-a {
  width: 260px;
  height: 260px;
  left: -90px;
  top: -110px;
  animation: heroBlobFloatA 26s ease-in-out infinite;
}
.hero-blob-top-b {
  width: 260px;
  height: 260px;
  right: -90px;
  top: -110px;
  animation: heroBlobFloatB 28s ease-in-out infinite;
}
@keyframes heroBlobFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 35px) scale(1.15); }
}
@keyframes heroBlobFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -25px) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob-top-a, .hero-blob-top-b { animation: none; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: center; /* 가로 중앙 정렬 */
  align-items: center;
  gap: 40px;
  width: 100%;
}

.eyebrow {
  font-weight: 700;
  color: #66d4c7;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.kakao-shortcut-banner {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #FEE500;
  color: #3C1E1E;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(254, 229, 0, 0.4);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.kakao-shortcut-banner:hover,
.kakao-shortcut-banner:active {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(254, 229, 0, 0.55);
}

/* 배지 - 흰 알약, 아이콘+문구 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1a1a2e;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(127, 74, 255, 0.18);
  margin-bottom: 26px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease-out 0.15s forwards;
}
.hero-badge svg { flex-shrink: 0; }

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.24;
  font-weight: 800;
  text-wrap: balance;
  word-break: keep-all; /* 한글 단어 중간에서 줄바꿈되지 않도록 */
  background: linear-gradient(90deg, #7f4aff 0%, #b090ff 40%, #7f4aff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7f4aff; /* 그라데이션 텍스트 미지원 브라우저용 대체 색 */
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 0.3s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-copy h1, .hero-desc, .hero-actions { animation: none !important; opacity: 1 !important; transform: none !important; }
}


.hero-copy {
  max-width: 720px; /* 텍스트 컬럼 너비 제한으로 가독성 향상 */
  padding: 12px 24px;
  margin: 0 auto; /* 가운데 정렬 유지 */
  text-align: center; /* 텍스트 가운데 정렬 */
}

.hero-desc {
  margin-top: 22px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: #56566b;
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 0.5s forwards;
}
.hero-desc strong {
  color: #2a2a3d;
}

/* 단어(문자) 결합 유지 유틸 */
.keep-together {
  white-space: nowrap; /* 줄바꿈 불가 */
  display: inline-block;
}

/* 현재 진행중인 사건 - 히어로 밑, 하얀 바탕의 별도 섹션에서 좌우로 흐르는 티커 */
.case-ticker-section {
  background: #fff;
  padding: 28px 0;
}

.case-ticker {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.case-ticker-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: caseTickerScroll 40s linear infinite; /* 기존 32s 대비 0.8배 속도(=1.25배 시간) */
}

.case-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #233249;
  font-size: 0.85rem;
  padding: 8px 16px;
  background: #f2f7ff;
  border: 1px solid #dde6f5;
  border-radius: 999px;
}

.case-item em {
  font-style: normal;
  color: #0f8f86;
  font-weight: 700;
  font-size: 0.75rem;
}

.case-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: #233249;
  font-size: 0.95rem;
}

.case-stats-label {
  font-weight: 700;
  color: #06213c;
}

.case-stats-item strong {
  color: #0f8f86;
  font-weight: 800;
}

.case-stats-divider {
  color: #c3cede;
}

.case-stats-footnote {
  text-align: center;
  font-size: 0.72rem;
  color: #a3adbd;
  margin: -8px 0 16px;
}

@keyframes caseTickerScroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

@media (prefers-reduced-motion: reduce) {
  .case-ticker-track { animation: none; }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  justify-content: center; /* CTA 버튼 중앙 정렬 */
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 0.7s forwards;
}

.hero-btn-primary {
  background: radial-gradient(60% 120% at 50% 50%, #b090ff 0%, #7f4aff 100%);
  border: 1px solid #d7c9ff;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(127, 74, 255, 0.28);
}

.btn {
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-actions .hero-btn-primary {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary {
  background: #5dd8d5;
  color: #06213c;
}

.btn-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.note {
  margin-top: 16px;
  color: #7c7c8f;
}

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 32px;
}

.hero-card-inner h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.hero-card-inner ul {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.hero-card-inner li {
  margin-bottom: 14px;
  font-size: 1rem;
}

.highlight-grid,
.service-grid,
.why-grid,
.metrics-grid,
.process-grid,
.pricing-grid,
.lawyer-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.quick-highlights .highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-card,
.service-card,
.mini-card,
.metric-card,
.process-step,
.pricing-card,
.lawyer-card,
.contact-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(15, 32, 64, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.service-card:focus-within,
.service-card:focus {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(15, 32, 64, 0.16);
}

.highlight-card h3,
.service-card h3,
.mini-card h3,
.metric-card h3,
.process-step h4,
.pricing-card h3,
.lawyer-card h3,
.contact-card h3 {
  margin-top: 0;
}

.highlight-card p,
.service-card p,
.mini-card p,
.metric-card p,
.process-step p,
.pricing-card ul,
.lawyer-card ul,
.contact-card p {
  margin-top: 12px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 왜 소확행 - 4가지 강점 카드 그리드 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.why-card {
  background: #fff;
  border: 1px solid #ece4ff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 45px rgba(76, 29, 149, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(76, 29, 149, 0.12);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f3edff;
  color: #7f4aff;
  margin-bottom: 18px;
}
.why-icon svg {
  width: 34px;
  height: 34px;
}

.why-card h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.32rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #1a1030;
}
.why-card p {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  color: #5c5670;
}

/* 큰 수치(누적 상담건수 / 누적 청구액) 스타일 */
.why-card .metric-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #06213c;
  display: inline-block;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* 흐름도(서비스 절차) - 세로 타임라인 스텝퍼 */
.flow-timeline {
  display: flex;
  flex-direction: column;
}

.flow-step {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 16px;
  opacity: 0;
  animation: flowFadeUp 0.45s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

/* 연결선: flex-grow 대신 절대 위치(top/bottom)로 그려서, 스크롤되는 모달
   안에서도 높이 계산이 어긋나지 않도록 함 */
.flow-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

@keyframes flowFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.flow-step-marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.flow-step-num svg { width: 18px; height: 18px; }

.flow-step-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.flow-step-card:hover {
  transform: translateY(-2px);
  border-color: #99f6e4;
}

.flow-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}
.flow-step-desc {
  margin-top: 4px;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* 마지막 단계: 완료/성공 상태로 강조 */
.flow-step-final .flow-step-num {
  border-color: transparent;
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
}
.flow-step-final .flow-step-card {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(13, 148, 136, 0.15);
}
.flow-step-final .flow-step-title,
.flow-step-final .flow-step-desc {
  color: #fff;
}
.flow-step-final .flow-step-desc {
  color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .flow-step { animation: none; opacity: 1; }
}

@media (max-width: 640px) {
  .flow-step { gap: 12px; padding-bottom: 12px; }
  .flow-step:not(:last-child)::before { left: 15px; top: 32px; }
  .flow-step-num { width: 32px; height: 32px; font-size: 0.75rem; }
  .flow-step-num svg { width: 15px; height: 15px; }
  .flow-step-card { padding: 16px; }
}

.service-card {
  cursor: pointer;
}
.service-card h3 {
  font-size: 1.2em; /* 제목을 120%로 확대 */
  font-weight: 700;
  color: #06213c;
  margin-bottom: 8px;
}

.service-card .easy-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: normal;
  word-break: keep-all;
}

.service-price {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  color: #06213c;
  background: #eef7ff;
  border: 1px solid rgba(6,33,60,0.1);
  border-radius: 999px;
  padding: 2px 10px;
  vertical-align: middle;
  margin-left: 4px;
}

.service-price-note {
  font-size: 0.78rem;
  color: #6b7a8d;
  margin-top: 4px;
}

/* 강제집행 카드 하단, 서비스 그리드 밖으로 뺀 추가비용 안내 문구 */
.service-note-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: #6b7a8d;
  line-height: 1.6;
}

.service-card:focus { outline: 2px solid #5dd8d5; }
.card-detail h4 { margin-top: 0; }

/* info modal body spacing */
#infoBody { margin-top: 12px; }

.service-card ul,
.lawyer-card ul {
  list-style: none;
  padding: 0;
}

.service-card li,
.lawyer-card li {
  margin-top: 10px;
}

.lawyer-meta {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 400;
  color: #94a3b8;
}

.why-grid {
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.why-copy ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.why-copy li {
  margin-bottom: 14px;
}

.why-cards {
  display: grid;
  gap: 20px;
}

.metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: 24px;
}

.hero-metrics .metric-card,
.metrics .metric-card {
  max-width: 280px;
  width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: 0 18px 40px rgba(15, 32, 64, 0.1);
  text-align: center;
}

.metric-card h3 {
  margin: 0;
  font-size: 2.5rem;
  color: #0f2040;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step {
  text-align: center;
}

.process-step span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  background: #5dd8d5;
  color: #06213c;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 700;
}

.faq .btn-secondary {
  background: #eef7ff;
  color: #06213c;
  border: 1px solid rgba(6,33,60,0.1);
}

.lawyer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.contact-card {
  background: #0f2040;
  color: #fff;
}

.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.legal-info-card {
  display: block;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(15, 32, 64, 0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.legal-info-card:hover,
.legal-info-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(15, 32, 64, 0.14);
}

.legal-info-tag {
  display: inline-block;
  background: #eef7ff;
  color: #06213c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.legal-info-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #06213c;
}

.legal-info-more-link {
  text-align: center;
  margin-top: 24px;
}

.legal-info-more-link a {
  color: #06213c;
  font-weight: 700;
  text-decoration: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-more {
  margin-top: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 32, 64, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: #06213c;
  cursor: pointer;
}

.faq-toggle-icon {
  flex-shrink: 0;
  color: #5dd8d5;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform .2s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0;
  color: #4a5568;
  line-height: 1.7;
  font-size: 0.92rem;
}

.faq-item.open .faq-answer {
  display: block;
}

#faqMoreBtn {
  display: block;
  margin: 28px auto 0;
}

.site-footer {
  background: #241938;
  color: #cac3db;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
}

.footer-inner a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-info p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: #b3a8d1;
  line-height: 1.6;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 8px !important;
}

.footer-copyright {
  margin-top: 12px !important;
}

.diagnosis-card {
  text-align: center;
  padding: 24px;
  border-radius: 20px;
}

.diagnosis-icon {
  font-size: 2.4rem;
  margin: 0 0 8px;
}

.diagnosis-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.diagnosis-card p {
  margin: 0 0 16px;
  line-height: 1.6;
}

.diagnosis-warning {
  background: #fff4e8;
}

.diagnosis-warning h3 {
  color: #a35a00;
}

.diagnosis-phone {
  font-size: 1.6rem;
  font-weight: 800;
  color: #06213c;
}

.diagnosis-safe {
  background: #e8f9f6;
}

.diagnosis-safe h3 {
  color: #06213c;
}

.diagnosis-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #8a94a6;
  line-height: 1.5;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 30;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 48, 0.68);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 32px;
  max-width: 760px;
  width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px); /* 모바일 주소창 크기 변화까지 반영한 실제 화면 높이 */
  overflow-y: auto;
  padding: 32px;
  z-index: 1;
  box-shadow: 0 40px 80px rgba(15, 32, 64, 0.18);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
}

.modal-body label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.modal-body input,
.modal-body textarea {
  width: 100%;
  border: 1px solid #d7dbe8;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  margin-bottom: 20px;
}

.radio-group {
  display: grid;
  gap: 12px;
}

.radio-group input[type="radio"] {
  width: auto;
  margin-bottom: 0;
  margin-right: 6px;
}

.survey-help {
  margin: -6px 0 16px;
  color: #59739b;
  font-size: 0.9rem;
  font-weight: 400;
}

.dynamic-field {
  margin-bottom: 4px;
}

.detected-badge {
  display: inline-block;
  color: #06213c;
  background: #d9f4f2;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 이전/다음 버튼을 모달 맨 위 좌우 끝단에 고정 배치 - 스크롤해도 항상 보임 */
.survey-actions {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 72px; /* 오른쪽 위 닫기(×) 버튼과 겹치지 않도록 여유를 둠 */
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.survey-actions .btn {
  pointer-events: auto;
  padding: 8px 18px;
  font-size: 0.88rem;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.14);
}

/* 기본 .btn-secondary(흰 글자, 반투명 흰 배경)는 어두운 배경 전용이라
   흰색 모달 위에서는 글자가 안 보였음 - 모달 안에서는 밝은 배경용으로 재정의 */
.survey-actions .btn-secondary {
  background: #eef2f8;
  color: #1a2b4a;
  border: 1px solid #d7dbe8;
}

.survey-actions.single-action {
  justify-content: center;
}

.field-label {
  display: block;
  text-align: left;
  font-size: 0.82rem;
  color: #59739b;
  margin: 14px 0 4px;
}

.required-mark {
  color: #94a3b8;
  font-weight: 400;
}

.field-error {
  color: #d9534f;
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.field-error-center {
  text-align: center;
  font-size: 0.78rem;
  margin: 10px 0 0;
}

.etc-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.etc-inline-input {
  width: auto !important;
  flex: 1 1 140px;
  min-width: 100px;
  border: none !important;
  border-bottom: 1px solid #b7c2d6 !important;
  border-radius: 0 !important;
  padding: 2px 4px !important;
  margin: 0 !important;
  font-size: 0.92rem;
  background: transparent;
}

.etc-inline-input:focus {
  outline: none;
  border-bottom-color: #5dd8d5 !important;
}

.input-invalid {
  border-color: #d9534f !important;
  box-shadow: 0 0 0 2px rgba(217,83,79,0.15);
}

.privacy-note {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 14px;
  text-align: left;
}

#surveyForm .privacy-note {
  margin: 14px 0 0;
}

.survey-page {
  display: none;
}

.survey-page.active {
  display: block;
}

.survey-heading {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  margin-top: 34px; /* 위쪽 고정 이전/다음 버튼과 겹치지 않도록 여백 확보 */
}

.survey-stepper {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #59739b;
}

@media (max-width: 920px) {
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .pricing-grid,
  .lawyer-grid,
  .metrics-grid,
  .process-grid,
  .highlight-grid,
  .legal-info-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .hero-copy p,
  .section-header p,
  .highlight-card p,
  .service-card p,
  .metric-card p,
  .pricing-card p,
  .contact-card p {
    margin-top: 12px;
    line-height: 1.65;
  }
  .hero-card,
  .highlight-card,
  .service-card,
  .metric-card,
  .pricing-card,
  .lawyer-card,
  .contact-card,
  .modal-content {
    padding: 22px;
  }
  .metric-card {
    max-width: none;
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-card {
    padding: 26px 22px;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 40px 0;
  }
  .hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .hero-copy h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .hero-copy p {
    font-size: 0.98rem;
  }
  .btn {
    width: 100%;
  }
  .hero-card,
  .highlight-card,
  .service-card,
  .metric-card,
  .pricing-card,
  .lawyer-card,
  .contact-card {
    width: 100%;
  }
  .metrics-grid,
  .highlight-grid,
  .service-grid,
  .process-grid,
  .pricing-grid,
  .lawyer-grid,
  .contact-grid {
    gap: 18px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }
  .survey-actions {
    left: 12px;
    right: 46px;
  }
  .survey-actions .btn {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  .modal {
    padding: 0;
    align-items: stretch;
  }
  .modal-content {
    max-height: 100vh;
    max-height: 100dvh;
    height: 100dvh;
    width: 100%;
    max-width: 100%;
    padding: 14px 16px 20px;
    border-radius: 0;
  }
  .modal-close {
    top: 10px;
    right: 12px;
  }
  .survey-heading {
    margin-top: 4px;
  }
  .modal-body input,
  .modal-body textarea {
    padding: 11px 14px;
    margin-bottom: 12px;
  }
  .field-label {
    margin: 10px 0 3px;
  }
  .radio-group {
    gap: 8px;
  }
}
