/* 리뉴얼 페이지 공통 스타일. Tailwind 유틸리티(assets/site/tailwind.css) 뒤에 로드됩니다. */
html { scroll-behavior: smooth; word-break: keep-all; overflow-wrap: break-word; }
body { overflow-x: hidden; }
:focus-visible { outline: 2px solid #1f2430; outline-offset: 3px; border-radius: 6px; }

/* 스크롤 진입 페이드업 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.check-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: #fff; color: #1f2430; flex-shrink: 0; }

/* 주요 경과 타임라인 */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: #e5e8ee; border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 999px; background: #fff; border: 2px solid #d3d8e0; box-sizing: border-box; }
.timeline-item.is-current .timeline-dot { border-color: #1f2430; background: #1f2430; box-shadow: 0 0 0 5px rgba(31, 36, 48, 0.08); }

/* 쟁점 카드 (details) */
.issue-card, .faq-item { border-radius: 20px; background: #fff; }
.issue-card > summary, .faq-item > summary { list-style: none; cursor: pointer; }
.issue-card > summary::-webkit-details-marker, .faq-item > summary::-webkit-details-marker { display: none; }
.issue-card > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 4px; align-items: center; padding: 22px 22px; }
.issue-index { grid-row: 1 / span 2; font-size: 13px; font-weight: 700; color: #9aa3b0; letter-spacing: 0.02em; align-self: start; padding-top: 3px; }
.issue-title { font-size: 17px; font-weight: 700; color: #1f2430; }
.issue-sub { grid-column: 2; font-size: 14px; color: #6b7280; line-height: 1.5; }
@media (min-width: 1024px) {
  /* 2열 배치에서 카드 높이를 맞추기 위해 부제 영역을 2줄 높이로 고정 */
  .issue-sub { min-height: 42px; }
  .issue-card > summary { min-height: 116px; }
}
.issue-chevron { grid-column: 3; grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 999px; background: #f4f6f9; position: relative; flex-shrink: 0; transition: transform 0.25s ease; }
.issue-chevron::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2px solid #1f2430; border-bottom: 2px solid #1f2430; transform: translate(-50%, -65%) rotate(45deg); }
details[open] > summary .issue-chevron { transform: rotate(180deg); }
.issue-body { display: flex; flex-direction: column; gap: 12px; padding: 0 22px 22px; font-size: 15px; line-height: 1.7; color: #4b5563; }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 16px; font-weight: 700; color: #1f2430; line-height: 1.45; }
.faq-body { padding: 0 22px 22px; font-size: 15px; line-height: 1.7; color: #4b5563; }
.faq-item { background: #f4f6f9; }
.faq-item .issue-chevron { background: #fff; }
.link-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: #f4f6f9; color: #1f2430; font-size: 13px; font-weight: 500; text-decoration: none; }
.link-pill::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid #6b7280; border-top: 1.5px solid #6b7280; transform: rotate(45deg); }
.link-pill:hover { background: #e5e8ee; }
.issue-body .link-pill { background: #f4f6f9; }
.issue-body .rounded-ctl { background: #f4f6f9; }

/* 대응 절차 진행도 */
.progress { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; position: relative; padding: 0; margin: 0; list-style: none; max-width: 820px; }
.progress::before { content: ""; position: absolute; left: 7%; right: 7%; top: 16px; height: 2px; background: #e5e8ee; }
.progress li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: #9aa3b0; text-align: center; }
.progress li b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: #fff; border: 2px solid #d3d8e0; color: #9aa3b0; font-size: 12px; font-weight: 700; }
.progress li.is-done { color: #3b3f48; }
.progress li.is-done b { background: #1f2430; border-color: #1f2430; color: #fff; }
.progress li.is-current { color: #1f2430; font-weight: 700; }
.progress li.is-current b { background: #1f2430; border-color: #1f2430; color: #fff; box-shadow: 0 0 0 6px rgba(31, 36, 48, 0.08); }
@media (max-width: 640px) {
  .progress { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; }
  .progress::before { display: none; }
}

/* 하단 고정 버튼 숨김 */
#stickyCta.is-hidden { transform: translateY(110%); }

/* 푸터 운영 법무법인 로고 */
.footer-logo { display: block; align-self: flex-start; width: auto; height: 30px; aspect-ratio: 699 / 132; margin: 0 0 2px; }
@media (min-width: 1024px) { .footer-logo { height: 36px; } }

/* 정책 모달 */
.policy-dialog { width: min(100% - 32px, 720px); max-height: 86vh; padding: 0; border: 0; border-radius: 24px; background: #fff; color: #1f2430; overflow: hidden; display: none; flex-direction: column; }
.policy-dialog[open] { display: flex; }
.policy-dialog::backdrop { background: rgba(31, 36, 48, 0.55); backdrop-filter: blur(4px); }
.policy-body { overflow-y: auto; padding: 24px; font-size: 14px; line-height: 1.75; color: #4b5563; display: flex; flex-direction: column; gap: 18px; }
.policy-body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #1f2430; }
.policy-body p { margin: 0; }

/* 접수 퍼널 */
.choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 16px; border: 1.5px solid #e5e8ee; background: #fff; text-align: left; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease; }
.choice:active { transform: scale(0.985); }
.choice.is-selected { border-color: #1f2430; background: #f4f6f9; }
.choice-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f6f9; color: #6b7280; flex-shrink: 0; }
.choice.is-selected .choice-icon { background: #fff; color: #1f2430; }
.choice-mark { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid #d3d8e0; flex-shrink: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: #fff; }
.choice.is-selected .choice-mark { background: #1f2430; border-color: #1f2430; }
.choice-mark svg { display: none; }
.choice.is-selected .choice-mark svg { display: block; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: #6b7280; }
.field select, .field input { width: 100%; height: 56px; padding: 0 18px; border-radius: 16px; border: 1.5px solid #e5e8ee; background: #fff; color: #1f2430; font: inherit; font-size: 16px; }
.field select:focus, .field input:focus { border-color: #1f2430; outline: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border-radius: 16px; background: #1f2430; color: #fff; font-size: 17px; font-weight: 700; border: 0; cursor: pointer; transition: background 0.15s ease, transform 0.1s ease; }
.btn-primary:active { transform: scale(0.985); }
.btn-primary:disabled { background: #d3d8e0; color: #fff; cursor: not-allowed; }
.step-panel { animation: step-in 0.28s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .step-panel { transition: none; animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
