/* 시민의 소리 (voice.html) — 버스 안 QR 로 들어오는 휴대폰 화면이 기준이다.
   색과 글꼴은 홈페이지와 같게: 남색 바탕, 붉은 포인트, Pretendard 두 종. */
@font-face { font-family: PretendardLocal; src: url('../font/Pretendard-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: PretendardLocal; src: url('../font/Pretendard-SemiBold.otf') format('opentype'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url('../font/Archivo-Expanded.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --v-navy: #10243a;
  --v-ink: #142b43;
  --v-muted: #5d6b78;
  --v-line: #e2e5e9;
  --v-mist: #f4f5f7;
  --v-red: #a9312b;
  --v-red-on-navy: #cf463e;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100svh; background: var(--v-mist); color: var(--v-ink); font: 400 16px/1.6 PretendardLocal, 'Noto Sans KR', sans-serif; letter-spacing: -.02em; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; } /* display 를 지정한 칸도 hidden 이면 숨긴다 */
/* 카카오 본인 확인을 켰는지(body data-kakao)에 따라 한쪽 안내만 보인다 */
body[data-kakao="off"] .only-kakao, body:not([data-kakao="off"]) .only-manual { display: none !important; }
/* QR 로 들어왔는지(body data-from=qr|web, js/voice.js)에 따라 머리말을 바꾼다. 스크립트가 없으면 QR 문구 */
body[data-from="web"] .only-qr, body:not([data-from="web"]) .only-web { display: none !important; }
.voice-field small { font-size: 12px; line-height: 1.6; color: var(--v-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리글: 로고만 */
.voice-top { display: flex; align-items: center; height: 60px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--v-line); }
.voice-logo img { display: block; }

.voice { width: min(100%, 560px); margin: 0 auto; }

/* ── 머리말 ── */
.voice-hero { position: relative; overflow: hidden; padding: 44px 24px 28px; background: var(--v-navy); color: #fff; }
.voice-kicker { font: 600 11px/1 "Archivo Expanded", PretendardLocal, sans-serif; letter-spacing: .08em; color: #94b4d2; }
.voice-hero h1, .voice-done h2 { position: relative; margin-top: 14px; font-size: clamp(28px, 8vw, 36px); font-weight: 600; line-height: 1.3; letter-spacing: -.045em; }
.voice-lead { position: relative; margin-top: 14px; font-size: 15px; color: #c3d0dc; }

/* 소리가 퍼지는 고리: 오른쪽 위에서 세 겹이 차례로 번져 나간다 ('동작 줄이기' 설정이면 멈춘 채로 보인다) */
.voice-pulse { position: absolute; top: -70px; right: -70px; width: 240px; height: 240px; pointer-events: none; }
.voice-pulse i { position: absolute; inset: 0; border: 1px solid #ffffff38; border-radius: 50%; animation: voice-ring 4.5s cubic-bezier(.2, .6, .3, 1) infinite; }
.voice-pulse i:nth-child(2) { animation-delay: 1.5s; }
.voice-pulse i:nth-child(3) { animation-delay: 3s; }
.voice-pulse::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--v-red-on-navy); box-shadow: 0 0 0 6px #cf463e33; }
@keyframes voice-ring { from { transform: scale(.15); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .voice-pulse i { animation: none; opacity: .5; } .voice-pulse i:nth-child(1) { transform: scale(.4); } .voice-pulse i:nth-child(2) { transform: scale(.7); } }

/* 탑승 차량 (02 내용 칸 맨 위): QR 에 담긴 차량번호 */
.voice-bus { clear: both; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 8px; background: var(--v-mist); }
.voice-bus-label { font-size: 12px; color: var(--v-muted); }
.voice-bus strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.voice-bus-edit { margin-left: auto; padding: 4px 10px; border: 1px solid var(--v-line); border-radius: 999px; background: #fff; color: var(--v-ink); font-size: 12px; cursor: pointer; }

/* ── 접수 양식 ── */
.voice-form { padding: 8px 20px 36px; }
.voice-step { margin-top: 20px; padding: 24px 20px; border: 0; border-radius: 10px; background: #fff; }
.voice-step legend { float: left; width: 100%; margin-bottom: 18px; font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.voice-step legend b { font-weight: inherit; }
.voice-step legend span { display: block; margin-bottom: 6px; font: 600 11px/1 "Archivo Expanded", sans-serif; letter-spacing: .06em; color: var(--v-red); }
/* 제안: 있었던 시각을 숨기고 차량번호를 선택으로 (form data-type, js/voice.js) */
.show-for-suggestion, [data-type="SUGGESTION"] .hide-for-suggestion { display: none !important; }
[data-type="SUGGESTION"] .show-for-suggestion { display: block !important; }
/* 정류장에서 있었던 일(무정차 등)을 고르면 방면·정류장도 필수 표시 (form data-stop, js/voice.js STOP_REQUIRED) */
.show-for-stop { display: none !important; }
[data-stop="required"] .show-for-stop { display: inline-block !important; }
/* 필수 표시: 우리 회사 빨간 점 */
.voice-req { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--v-red); vertical-align: super; }
.voice-req-note { grid-column: 1 / -1; margin-top: 16px; font-size: 13px; color: var(--v-muted); text-align: right; }
.voice-req-note .voice-req { margin: 0 2px 0 0; vertical-align: middle; }
.voice-field em, .voice-step legend em { margin-left: 6px; font-size: 12px; font-style: normal; font-weight: 400; color: var(--v-muted); }
.voice-step > :not(legend) { clear: both; }   /* 떠 있는 legend 아래로 내린다 (앞 칸이 숨겨져도) */

/* 유형 고르기: 큰 단추 세 개 */
.voice-types { display: grid; gap: 10px; }
.voice-types label { cursor: pointer; }
.voice-types input, .voice-categories input { position: absolute; opacity: 0; pointer-events: none; }
.voice-types span { display: flex; flex-direction: column; gap: 2px; padding: 15px 16px 15px 46px; border: 1px solid var(--v-line); border-radius: 8px; position: relative; transition: border-color .2s, background-color .2s; }
.voice-types span::before { content: ""; position: absolute; top: 50%; left: 16px; width: 18px; height: 18px; margin-top: -9px; border: 1.5px solid #b9c2cb; border-radius: 50%; transition: border-color .2s, box-shadow .2s; }
.voice-types b { font-size: 16px; font-weight: 600; }
.voice-types small { font-size: 13px; color: var(--v-muted); }
.voice-types input:checked + span { border-color: var(--v-ink); background: #142b4308; }
.voice-types input:checked + span::before { border-color: var(--v-red); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--v-red); }
.voice-types input:focus-visible + span, .voice-categories input:focus-visible + span { outline: 2px solid var(--v-ink); outline-offset: 2px; }

/* 세부 항목: 작은 칩 */
.voice-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--v-line); }
.voice-categories label { cursor: pointer; }
.voice-categories span { display: block; padding: 7px 13px; border: 1px solid var(--v-line); border-radius: 999px; font-size: 14px; color: var(--v-muted); transition: all .2s; }
.voice-categories input:checked + span { border-color: var(--v-ink); background: var(--v-ink); color: #fff; }

/* 입력 칸 */
.voice-row { display: grid; gap: 14px; align-items: start; margin-top: 14px; }   /* 옆 칸에 안내 글이 길어도 입력칸 높이를 맞춘다 */
.voice-field { position: relative; display: grid; gap: 6px; font-size: 13px; color: var(--v-muted); }
.voice-field input, .voice-field textarea, .voice-field select { width: 100%; padding: 13px 14px; border: 1px solid var(--v-line); border-radius: 8px; background: #fff; color: var(--v-ink); font-size: 16px; } /* 16px 미만이면 아이폰이 화면을 확대한다 */
.voice-field textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
/* 노선번호·정류장 찾기: 적고 Enter(또는 찾기) → 아래 목록에서 고른다 (js/voice.js searchBox) */
.voice-search > label { font-size: 13px; color: var(--v-muted); }
.voice-search-box { display: flex; gap: 6px; }
.voice-search-box input { flex: 1; min-width: 0; }
.voice-search-box button { flex: none; padding: 0 16px; border: 0; border-radius: 8px; background: var(--v-ink); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.voice-search-list { max-height: 240px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--v-line); border-radius: 8px; background: #fff; }
.voice-search-list li { display: block; }
.voice-search-list button { width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: var(--v-ink); font-size: 15px; text-align: left; cursor: pointer; }
.voice-search-list button:hover, .voice-search-list button:focus-visible { background: var(--v-mist); outline: none; }
.voice-search-list .is-empty { padding: 10px 12px; font-size: 13px; color: var(--v-muted); }
.voice-field select:disabled { background: var(--v-mist); color: var(--v-muted); }
.voice-field :is(input, textarea, select):focus { outline: none; border-color: var(--v-ink); box-shadow: 0 0 0 3px #142b431a; }
.voice-field [aria-invalid="true"] { border-color: var(--v-red); }
.voice-count { justify-self: end; font-size: 12px; font-variant-numeric: tabular-nums; }

/* 본인 확인 (카카오 로그인) */
.voice-hint { margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; background: var(--v-mist); font-size: 14px; color: var(--v-ink); }
.voice-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.voice-check input { width: 20px; height: 20px; flex: none; accent-color: var(--v-ink); }
.voice-contact { display: grid; gap: 14px; }
.voice-contact .voice-row { margin-top: 0; }
.voice-terms { padding: 14px 16px; border-radius: 8px; background: var(--v-mist); font-size: 13px; color: var(--v-muted); }
.voice-terms summary { cursor: pointer; font-weight: 600; color: var(--v-ink); }
.voice-terms dl { display: grid; gap: 6px; margin: 12px 0 10px; }
.voice-terms dl div { display: grid; grid-template-columns: 64px 1fr; }
.voice-terms dt { color: var(--v-ink); }
/* 카카오 디자인 가이드의 버튼 색 (노랑 바탕 #FEE500, 글자 85% 검정) */
.voice-kakao { width: 100%; padding: 15px; border: 0; border-radius: 8px; background: #fee500; color: #000000d9; font-size: 16px; font-weight: 600; cursor: pointer; }
.voice-verified { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--v-ink); border-radius: 8px; font-size: 14px; }
.voice-verified > span { display: grid; gap: 2px; color: var(--v-muted); font-variant-numeric: tabular-nums; }   /* 첫 줄 '확인되었습니다', 둘째 줄 가린 이름·번호 */
.voice-verified b { color: var(--v-ink); }
.voice-verified b::before { content: "✓ "; color: var(--v-red); }
.voice-verified button { flex: none; white-space: nowrap; margin-left: auto; padding: 4px 10px; border: 1px solid var(--v-line); border-radius: 999px; background: none; font-size: 12px; color: var(--v-muted); cursor: pointer; }

.voice-trap { position: absolute; left: -9999px; }

/* 보내기 */
.voice-error { margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: #a9312b12; color: var(--v-red); font-size: 14px; }
.voice-submit { display: block; width: 100%; margin-top: 22px; padding: 17px; border: 0; border-radius: 8px; background: var(--v-navy); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.voice-submit:hover { background: #18324f; }
.voice-submit:disabled { opacity: .6; cursor: progress; }
.voice-note { margin-top: 14px; font-size: 13px; text-align: center; color: var(--v-muted); }

/* ── 접수 완료 ── */
.voice-done { position: relative; overflow: hidden; min-height: calc(100svh - 120px); padding: 64px 24px; background: var(--v-navy); color: #fff; outline: none; }
.voice-receipt { position: relative; margin-top: 30px; padding: 16px; border: 1px solid #ffffff26; border-radius: 8px; font-size: 13px; color: #c3d0dc; }
.voice-receipt strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.voice-home { position: relative; display: inline-block; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid #ffffff66; color: #fff; font-size: 14px; text-decoration: none; }

.voice-foot { padding: 20px; font-size: 12px; text-align: center; color: #8a96a3; }

/* 넓은 화면(PC 로 열었을 때): 유형 단추를 가로로 */
@media (min-width: 600px) {
  .voice { margin-top: 32px; border-radius: 12px; overflow: hidden; }
  .voice-hero { padding: 52px 36px 32px; }
  .voice-form { padding: 8px 0 36px; }
  .voice-types { grid-template-columns: repeat(3, 1fr); }
  .voice-types span { padding: 46px 14px 16px; }
  .voice-types span::before { top: 16px; left: 14px; margin-top: 0; }
  .voice-row { grid-template-columns: 1fr 1fr; }
}

/* 세부 항목 묶음 제목 (기사님 / 버스 / 노선·배차 / 정류장) */
.voice-cat-group { width: 100%; margin-top: 6px; font-size: 12px; color: var(--v-muted); }
.voice-cat-group:first-child { margin-top: 0; }

/* ── 개인정보처리방침 (privacy.html): 시민의 소리와 같은 틀에 긴 글 ── */
.policy .voice-hero h1 { font-size: clamp(26px, 7vw, 32px); }
.policy-body { padding: 8px 20px 40px; }
.policy-body section { margin-top: 20px; padding: 24px 20px; border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.75; }
.policy-body h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.policy-body h2 span { font: 600 12px/1 "Archivo Expanded", sans-serif; color: var(--v-red); }
.policy-body p + p, .policy-body p + ul, .policy-body ul + p, .policy-body dl + p { margin-top: 10px; }
.policy-body ul { padding-left: 18px; }
.policy-body li + li { margin-top: 4px; }
.policy-body b { font-weight: 600; }
.policy-list { display: grid; gap: 6px; }   /* 이름표 + 내용 (수집 항목, 보호책임자) */
.policy-list div { display: grid; grid-template-columns: 72px 1fr; }
.policy-list dt { color: var(--v-muted); }
.voice-terms a { color: var(--v-ink); text-decoration: underline; text-underline-offset: 3px; }   /* 동의 안내 아래 처리방침 링크 */
@media (min-width: 600px) { .policy-body { padding: 8px 0 48px; } .policy-body section { padding: 28px 32px; } }
.voice-foot a { color: inherit; text-decoration: none; }
.voice-foot b { font-weight: 600; color: var(--v-ink); }   /* 처리방침은 눈에 띄게 (개인정보 보호법 시행령 제31조) */

/* ── 접수하기 / 내 접수 내역 전환 (머리말 바로 아래) ── */
.voice-switch { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-bottom: 1px solid var(--v-line); }
.voice-switch a { padding: 15px 0; text-align: center; font-size: 15px; color: var(--v-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.voice-switch a[aria-current="page"] { color: var(--v-ink); font-weight: 600; border-bottom-color: var(--v-red); }

/* ── 내 접수 내역 ── */
.voice-lookup { padding: 8px 20px 40px; }
.voice-lookup-title { margin-bottom: 14px; font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.voice-lookup-title span { display: block; margin-bottom: 6px; font: 600 11px/1 "Archivo Expanded", sans-serif; letter-spacing: .06em; color: var(--v-red); }
.voice-lookup .voice-row { margin-top: 0; }
.voice-mine { display: grid; gap: 12px; margin-top: 16px; list-style: none; }
.voice-mine li { padding: 20px; border-radius: 10px; background: #fff; }
.voice-mine-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--v-muted); font-variant-numeric: tabular-nums; }
.voice-mine-head time { margin-left: auto; }
.voice-mine-kind { padding: 3px 10px; border: 1px solid var(--v-red); border-radius: 999px; color: var(--v-red); font-weight: 600; }   /* 불편·칭찬·제안 */
.voice-mine-status { padding: 3px 10px; border-radius: 999px; background: var(--v-mist); color: var(--v-ink); font-weight: 600; }
.voice-mine-status.is-done { background: var(--v-ink); color: #fff; }
.voice-mine-meta { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--v-ink); }
.voice-mine-content { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--v-muted); white-space: pre-line; overflow-wrap: anywhere; }
.voice-inline { color: #fff; text-decoration: underline; text-underline-offset: 3px; }   /* 접수 완료 화면 안의 '내 접수 내역' */
@media (min-width: 600px) { .voice-lookup { padding: 8px 0 48px; } }

body.page-voice { background: var(--v-mist); }   /* 공통 css 의 흰 바탕 위에서도 칸(흰 카드)이 보이게 */

/* ── PC (1000px 이상): 다른 페이지처럼 화면을 꽉 채운다. 휴대폰·태블릿은 위의 카드 모양 그대로 ──
   머리말은 다른 페이지와 같은 배너(interior-2026.css), 그 아래 탭 줄, 본문은 다른 페이지와 같은 폭(최대 1360px)에 2단으로 놓는다. */
@media (min-width: 1000px) {
  .page-voice { --v-gutter: max(28px, calc((100% - 1360px) / 2)); }   /* 다른 페이지 본문과 같은 좌우 여백 */
  .page-voice .voice { width: 100%; margin: 0; border-radius: 0; overflow: visible; overflow-x: clip; }   /* 배경 지도 장식(theme-navy.css)이 옆으로 넘치지 않게 */
  .page-voice .voice-done h2 { font-size: clamp(40px, 3.6vw, 56px); }
  .page-voice .voice-switch { display: flex; gap: 40px; padding: 0 var(--v-gutter); }
  .page-voice .voice-switch a { padding: 20px 2px; }

  /* 접수: 01 은 가로 전체, 02 내용과 03 연락처는 나란히, 보내기는 오른쪽 아래 */
  .page-voice .voice-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; padding: 40px var(--v-gutter) 90px; }
  .page-voice .voice-form > .voice-step { margin-top: 0; padding: 32px; }
  .page-voice .voice-form > .voice-step:first-of-type, .page-voice .voice-form > .voice-error { grid-column: 1 / -1; }
  .page-voice .voice-form > .voice-error { margin-top: 0; }
  .page-voice .voice-req-note { margin: 0 0 -12px; }
  .page-voice .voice-submit { grid-column: 2; margin-top: 0; }
  .page-voice .voice-note { grid-column: 1; grid-row: auto; margin-top: 0; align-self: center; text-align: left; }
  .page-voice .voice-types span { padding: 50px 22px 22px; }
  .page-voice .voice-types span::before { left: 22px; top: 22px; }

  /* 내 접수 내역: 왼쪽 조회 칸, 오른쪽 결과 */
  .page-voice .voice-lookup { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 32px; align-items: start; padding: 40px var(--v-gutter) 90px; }
  .page-voice .voice-lookup > .voice-step { margin-top: 0; padding: 32px; position: sticky; top: 110px; }
  .page-voice .voice-lookup .voice-row { grid-template-columns: 1fr; }
  .page-voice .voice-lookup .voice-submit { margin-top: 24px; }   /* 접수 양식의 보내기(margin-top: 0)와 달리 조회 칸 안에서는 입력칸과 띄운다 */
  .page-voice .voice-mine { margin-top: 0; }
  .page-voice .voice-mine li { padding: 24px 28px; }

  /* 접수 완료: 머리말과 같은 남색 띠 */
  .page-voice .voice-done { min-height: 0; padding: 120px var(--v-gutter) 100px; }
  .page-voice .voice-receipt { display: inline-block; min-width: 320px; }
}
