/* ==========================================================================
   소규모 환경영향평가 안내센터 — 스타일
   대상 독자가 40~60대 개인 사업자·토지주라는 전제로,
   기본 글자 크기를 크게 잡고 대비를 높였습니다.
   ========================================================================== */

:root {
  --green-900: #10331f;
  --green-700: #1c6b3f;
  --green-600: #22804b;
  --green-100: #e7f4ec;
  --green-050: #f3faf6;

  --ink-900: #14181c;
  --ink-700: #39424b;
  --ink-500: #616c78;
  --ink-300: #aab3bd;
  --line: #dfe4e9;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;

  --amber-700: #8a5a00;
  --amber-100: #fdf1d8;
  --red-700: #a32020;
  --red-100: #fbe6e6;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 8px 24px rgba(20, 24, 28, .07);
  --wrap: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic",
               "맑은 고딕", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.38; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: 1.85rem; font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--green-700); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 62px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.brand b { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.brand span { font-size: .72rem; color: var(--ink-500); letter-spacing: .02em; }
.header-tel {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-700); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .95rem;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}

/* ---------- 히어로 ---------- */
.hero { background: linear-gradient(180deg, var(--green-050), #fff); padding: 44px 0 36px; }
.hero .eyebrow {
  display: inline-block; background: var(--green-100); color: var(--green-700);
  font-size: .84rem; font-weight: 700; padding: 6px 13px; border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 { font-size: 2rem; }
.hero h1 em { font-style: normal; color: var(--green-700); }
.hero .lede { font-size: 1.06rem; color: var(--ink-700); margin-bottom: 26px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: var(--radius); border: 1px solid transparent;
  min-height: 52px; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-ghost { background: #fff; color: var(--green-700); border-color: var(--green-600); }
.btn-ghost:hover { background: var(--green-050); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 신뢰 배지 ---------- */
.trust { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 620px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; font-size: .93rem; line-height: 1.55;
}
.trust b { display: block; color: var(--green-700); font-size: .98rem; margin-bottom: 2px; }

/* ---------- 섹션 ---------- */
section { padding: 46px 0; border-top: 1px solid var(--line); }
section.soft { background: var(--bg-soft); }
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--ink-700); margin: 0; }

/* ---------- 자가진단 ---------- */
.checker {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px 20px; margin-top: 8px;
}
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps i {
  flex: 1; height: 5px; border-radius: 999px; background: var(--line);
  transition: background .25s;
}
.steps i.on { background: var(--green-600); }

.step { display: none; }
.step.active { display: block; animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.q { font-size: 1.22rem; font-weight: 750; margin-bottom: 6px; letter-spacing: -.02em; }
.q-sub { color: var(--ink-500); font-size: .93rem; margin-bottom: 18px; }

.opts { display: grid; gap: 9px; margin-bottom: 8px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--green-600); background: var(--green-050); }
.opt input { margin: 4px 0 0; width: 19px; height: 19px; accent-color: var(--green-700); flex: none; }
.opt-body { flex: 1; min-width: 0; }
.opt-label { font-weight: 650; }
.opt-hint { display: block; font-size: .85rem; color: var(--ink-500); font-weight: 400; }
.opt:has(input:checked) { border-color: var(--green-600); background: var(--green-050); }

.opt-group { margin-bottom: 18px; }
.opt-group > h4 {
  font-size: .84rem; font-weight: 700; color: var(--ink-500);
  text-transform: none; letter-spacing: .02em; margin: 0 0 8px;
}

details.more { margin-top: 6px; }
details.more > summary {
  cursor: pointer; font-weight: 650; color: var(--green-700);
  padding: 12px 0; font-size: .95rem;
}

/* 면적 입력 */
.area-input { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.area-input input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.35rem; font-weight: 700;
  padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  text-align: right;
}
.area-input input:focus { outline: none; border-color: var(--green-600); }
.unit-toggle { display: flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; flex: none; }
.unit-toggle button {
  font: inherit; font-weight: 700; border: 0; background: #fff; color: var(--ink-500);
  padding: 0 18px; cursor: pointer; min-width: 62px;
}
.unit-toggle button.on { background: var(--green-700); color: #fff; }
.area-echo { font-size: .95rem; color: var(--ink-500); min-height: 1.6em; margin-bottom: 14px; }
.area-echo b { color: var(--ink-900); }

.nav-row { display: flex; gap: 10px; margin-top: 20px; }
.nav-row .btn { flex: 1; }

/* 결과 */
.verdict { border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.verdict h3 { margin: 0 0 6px; font-size: 1.3rem; }
.verdict p { margin: 0; font-size: .98rem; }
.verdict.yes { background: var(--red-100); color: var(--red-700); }
.verdict.yes h3 { color: var(--red-700); }
.verdict.maybe { background: var(--amber-100); color: var(--amber-700); }
.verdict.maybe h3 { color: var(--amber-700); }
.verdict.no { background: var(--green-100); color: var(--green-900); }
.verdict.no h3 { color: var(--green-700); }

.calc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 16px; margin-bottom: 20px; font-size: .95rem;
}
.calc dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 14px 0; }
.calc dt { color: var(--ink-500); }
.calc dd { margin: 0; text-align: right; font-weight: 650; }
.calc .src { border-top: 1px dashed var(--line); padding: 12px 0; color: var(--ink-500); font-size: .85rem; }

.disclaimer {
  background: var(--bg-soft); border-left: 3px solid var(--ink-300);
  padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .89rem; color: var(--ink-700); margin-bottom: 20px;
}
.disclaimer b { color: var(--ink-900); }

/* ---------- 정보 카드 ---------- */
.cards { display: grid; gap: 14px; }
@media (min-width: 620px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* 절차 타임라인 */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 24px 34px; }
.timeline li::before {
  content: ''; position: absolute; left: 8px; top: 26px; bottom: 0; width: 2px; background: var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .dot {
  position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green-600);
}
.timeline b { display: block; }
.timeline span { color: var(--ink-500); font-size: .9rem; }

/* 지방환경청 */
.offices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.offices span {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: .88rem;
}
.offices span b { font-weight: 700; }
.offices span i { font-style: normal; color: var(--ink-500); }

/* ---------- 문의 폼 ---------- */
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--red-700); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .help { font-size: .85rem; color: var(--ink-500); margin-top: 5px; }
.form-note { font-size: .85rem; color: var(--ink-500); }

.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-100); color: var(--green-900); }
.form-status.err { background: var(--red-100); color: var(--red-700); }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--green-900); color: #c9d8ce; padding: 36px 0 96px;
  font-size: .89rem; line-height: 1.75;
}
.site-footer b { color: #fff; }
.site-footer a { color: #9fd3b4; }
.site-footer .legal { margin-top: 14px; color: #8ea698; font-size: .82rem; }

/* ---------- 모바일 하단 고정 통화 바 ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.callbar .btn { flex: 1; min-height: 50px; padding: 12px 14px; }
@media (min-width: 760px) { .callbar { display: none; } .site-footer { padding-bottom: 36px; } }

/* ---------- 칩 선택 (시·도, 사업 종류) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; border: 1.5px solid var(--line); background: #fff;
  border-radius: 999px; padding: 11px 18px; cursor: pointer; font-weight: 650;
  font-size: .97rem; transition: border-color .15s, background .15s, color .15s;
}
.chip span:hover { border-color: var(--green-600); background: var(--green-050); }
.chip input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--green-600); outline-offset: 2px; }

.echo { font-size: .95rem; color: var(--ink-500); min-height: 1.6em; margin: 10px 0 0; }
.echo b { color: var(--green-700); }

/* ---------- 용도지역별 면적 입력 (비고 9) ---------- */
.area-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 9px;
}
.area-row label {
  flex: 1; min-width: 0; font-weight: 650; font-size: .97rem;
}
.area-row input {
  width: 42%; max-width: 190px; font: inherit; font-size: 1.1rem; font-weight: 700;
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  text-align: right;
}
.area-row input:focus { outline: none; border-color: var(--green-600); }

.unit-fixed {
  display: inline-flex; align-items: center; padding: 0 18px; flex: none;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); color: var(--ink-500); font-weight: 700;
}

/* ---------- 조건부 추가 질문 ---------- */
.extra {
  border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px;
}
.extra .q { margin-bottom: 4px; }

/* ---------- 결과 하단 주의사항 ---------- */
.notes {
  background: var(--amber-100); border-radius: var(--radius);
  padding: 6px 18px; margin-bottom: 20px;
}
.notes p { font-size: .9rem; color: var(--amber-700); line-height: 1.65; margin: 12px 0; }

/* ---------- 업체 매칭 ---------- */
.match { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.match-title { font-size: 1.15rem; margin-bottom: 4px; }

.providers { display: grid; gap: 10px; margin-top: 14px; }
.provider {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.provider:hover { border-color: var(--green-600); }
.provider input { margin: 3px 0 0; width: 19px; height: 19px; accent-color: var(--green-700); flex: none; }
.provider:has(input:checked) { border-color: var(--green-600); background: var(--green-050); }
.provider.is-featured { border-color: var(--green-600); border-width: 2px; }

.provider-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.provider-name { font-weight: 750; font-size: 1.05rem; }
.provider-meta { font-size: .84rem; color: var(--ink-500); }
.provider-blurb { font-size: .92rem; color: var(--ink-700); line-height: 1.6; }
.tag {
  align-self: flex-start; background: var(--green-700); color: #fff;
  font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  margin-bottom: 3px;
}

/* ---------- 동의 체크박스 ---------- */
.consent {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
}
.consent input { margin: 3px 0 0; width: 19px; height: 19px; accent-color: var(--green-700); flex: none; }
.consent span { font-size: .88rem; color: var(--ink-700); line-height: 1.6; }
.consent:has(input:checked) { border-color: var(--green-600); background: var(--green-050); }

@media (min-width: 620px) {
  body { font-size: 18px; }
  .hero h1 { font-size: 2.4rem; }
  .checker { padding: 32px 30px; }
}
