/* ============================================================
   visit.css — 내방 신청 + 온라인 안전교육 전용
   YPM css/visit.css 를 YEST 사이트로 이식. YPM 마크업이 쓰던 클래스명은
   그대로 두고(visit-card, visit-btn, step-bar 등), 색·변수만 YEST 토큰으로
   바꿨다. YPM style.css 에만 있던 구조 클래스(step-bar, form-group,
   vg-sites, privacy-box 등)는 이 파일 아래쪽에 함께 옮겨 담았다.
   style.css 는 건드리지 않으므로 내방 관련 페이지에서만 이 파일을 부른다.
   ============================================================ */

/* ---- 공통 카드 ---- */
/* 데스크톱에선 넓게, 모바일은 컨테이너 폭에 맞춰 유동(반응형). */
/* 슬라이드마다 높이가 달라 스크롤바가 생겼다 사라지며 중앙정렬이 좌우로 흔들리는 것 방지.
   scrollbar-gutter 미지원 환경까지 확실히 막으려 세로 스크롤바를 '항상' 띄운다. */
html { scrollbar-gutter: stable; overflow-y: scroll; }
/* ★ 폭 흔들림의 근본 원인 차단.
   style.css 의 `.section:has([id])` 규칙은 (메인사이트 앵커 섹션용) 해당 섹션을
   flex 컬럼 + 뷰포트 높이로 만든다. 그런데 내방 페이지 섹션은 폼·교육 요소에 id 가
   많아 이 규칙에 걸리고, 그러면 `.container { margin:0 auto }` 의 auto 마진이 flex
   자동마진으로 작동해 컨테이너가 '콘텐츠(=이미지) 너비'만큼 줄고 가운데 정렬된다
   → 슬라이드 사진 크기에 따라 안쪽 너비가 계속 바뀜.
   내방 섹션(.visit-wrap 을 품은 섹션)은 일반 블록 흐름으로 되돌려 폭을 고정한다.
   (visit.css 는 style.css 뒤에 로드 → 동일 특이도라도 이 규칙이 이긴다.) */
.section:has(.visit-wrap) { display: block; min-height: 0; }
/* width:100% 를 반드시 준다 — 이게 없으면 일부 페이지(폼처럼 콘텐츠가 좁은 경우)에서
   래퍼가 콘텐츠 너비만큼만 줄어(shrink-to-fit) 가운데 좁은 컬럼으로 쪼그라든다.
   width:100% + max-width 로 'PC에선 넓게, 그 이상은 안 넘게' 를 확정한다. */
.visit-wrap { width: 100%; max-width: 1120px; margin: 0 auto; }
/* 교육/확인문제는 PC에서 더 넓게 쓴다(컨테이너 상한 1600px 안). 모바일은 어차피
   화면폭이 이보다 좁아 그대로 유동 → 반응형은 모바일 해상도에서만 작동한다. */
.visit-wrap--wide { max-width: 1360px; }

.visit-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .visit-card { padding: 18px 16px; } }

.visit-card h2 {
  font-size: 21px; font-weight: 800; color: var(--color-charcoal);
  margin: 0 0 14px; line-height: 1.4;
}
.visit-card h3 {
  font-size: 17px; font-weight: 700; color: var(--color-charcoal);
  margin: 0 0 10px;
}
.visit-card p { color: var(--color-text); line-height: 1.75; margin: 0 0 12px; }
.visit-card p:last-child { margin-bottom: 0; }

/* ---- 안내 상자 ---- */
.visit-note {
  border-left: 3px solid var(--color-brand);
  background: var(--color-bg-alt);
  padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px; line-height: 1.7; color: var(--color-text);
}
.visit-note.is-warn { border-left-color: #C0392B; background: #fdeceb; }
.visit-note.is-ok   { border-left-color: #2c8a4b; background: #eef7ee; }
.visit-note strong { font-weight: 800; }

/* ---- 교육 탭 (기본 안전교육 / 공사교육) : 세그먼트 pill ---- */
.edu-tabs {
  display: inline-flex; gap: 4px; margin-bottom: 22px; padding: 5px;
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 12px;
}
.edu-tab {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--color-text-muted);
  padding: 10px 22px; border-radius: 8px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.edu-tab:hover:not(.is-active):not(.is-locked) { color: var(--color-text); background: rgba(0,0,0,.04); }
.edu-tab.is-active { background: var(--color-brand); color: #fff; box-shadow: 0 3px 10px rgba(192,57,43,.28); }
.edu-tab.is-locked { color: var(--color-text-muted); opacity: .5; cursor: not-allowed; }
.edu-tab__lock { font-size: 11.5px; }
@media (max-width: 480px) {
  .edu-tabs { display: flex; }
  .edu-tab { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13.5px; }
}

/* ---- 기본→공사 교육 전환 확인 모달 ---- */
.edu-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,22,28,.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: eduFade .18s ease;
}
@keyframes eduFade { from { opacity: 0; } to { opacity: 1; } }
.edu-modal__box {
  background: var(--color-bg); border-radius: 16px; max-width: 440px; width: 100%;
  padding: 34px 30px 28px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: eduPop .2s ease;
}
@keyframes eduPop { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.edu-modal__ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: #eef7ee; display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.edu-modal__box h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; color: var(--color-text); }
.edu-modal__box p { font-size: 15px; line-height: 1.7; color: var(--color-text); margin: 0; }
.edu-modal__box p b { color: var(--color-brand); }
.edu-modal__btns { margin-top: 24px; }
.edu-modal__btns .visit-btn { min-width: 220px; }

/* ---- 진행 막대 (교육 N/M) ---- */
.edu-progress { margin-bottom: 14px; }
.edu-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--color-text-muted); margin-bottom: 8px;
}
.edu-progress-head b { color: var(--color-brand); font-size: 16px; font-weight: 800; }
.edu-progress-bar {
  height: 6px; background: var(--color-border);
  border-radius: 3px; overflow: hidden;
}
.edu-progress-fill {
  height: 100%; background: var(--color-brand);
  border-radius: 3px; transition: width .3s ease;
}

/* ---- 슬라이드 ---- */
.edu-slide-cat {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--color-brand); background: var(--color-bg-alt);
  padding: 4px 10px; border-radius: 3px; margin-bottom: 10px;
}
/* PC: 이미지와 텍스트를 좌우로 나란히 두어 스크롤 없이 한 화면에 담는다(세로 스택 폐지).
   이미지는 뷰포트 높이에 맞춰 축소(object-fit: contain)한다.
   공사교육의 가로형 인포그래픽은 내용이 많으므로 이미지를 더 넓게 배분한다. */
.edu-slide__main.has-img { display: flex; flex-direction: row; gap: 24px; align-items: center; }
.edu-slide__text { flex: 1 1 42%; min-width: 0; }
.edu-slide__media {
  flex: 1 1 58%; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
/* 공사교육(가로 인포그래픽) = 이미지가 곧 내용 → 이미지 넓게, 텍스트 좁게 */
.edu-slide[data-track="construction"] .edu-slide__media { flex-basis: 66%; }
.edu-slide[data-track="construction"] .edu-slide__text  { flex-basis: 34%; }
.edu-slide-img {
  max-width: 100%; max-height: 56vh; width: auto; height: auto; object-fit: contain;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  margin: 0; background: #fafbfc;
  cursor: zoom-in; transition: box-shadow .15s, transform .15s;
}
.edu-slide-img:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-1px); }

/* ---- 교육 이미지 확대 라이트박스 ---- */
.edu-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(16,18,24,0); backdrop-filter: blur(0);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s ease, background .28s ease, backdrop-filter .28s ease, visibility 0s .28s;
}
.edu-lightbox.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  background: rgba(16,18,24,.8); backdrop-filter: blur(6px);
  transition: opacity .28s ease, background .28s ease, backdrop-filter .28s ease;
}
.edu-lightbox__fig {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
  transform: scale(.95); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.edu-lightbox.is-open .edu-lightbox__fig { transform: scale(1); }
.edu-lightbox__fig img {
  max-width: 92vw; max-height: 92vh; width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; cursor: default;
}
.edu-lightbox__close {
  position: fixed; top: 18px; right: 22px; z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .2s;
}
.edu-lightbox__close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
@media (max-width: 640px) {
  .edu-lightbox { padding: 2vh 2vw; }
  .edu-lightbox__fig img { max-width: 96vw; max-height: 88vh; }
  .edu-lightbox__close { top: 10px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
}
/* 슬라이드 카드·버튼 여백을 줄여 한 화면에 담기 쉽게 */
.edu-slide.visit-card { padding: 22px 24px; margin-bottom: 0; }
.edu-slide .visit-btns { justify-content: center; margin-top: 16px; }
.edu-ack { min-width: 300px; }
@media (max-width: 860px) {
  .edu-slide__main.has-img { flex-direction: column; gap: 14px; align-items: stretch; }
  .edu-slide__text, .edu-slide__media,
  .edu-slide[data-track="construction"] .edu-slide__text,
  .edu-slide[data-track="construction"] .edu-slide__media { flex-basis: auto; width: 100%; }
  .edu-slide-img { max-height: 42vh; }
  .edu-ack { min-width: 0; width: 100%; }
}

/* 교육 화면: PC = 왼쪽 자료 목록(TOC) | 오른쪽 콘텐츠 2단, 모바일 = 세로 스택 */
.edu-layout { display: flex; gap: 24px; align-items: flex-start; }
.edu-main { flex: 1 1 auto; min-width: 0; }
.edu-side { flex: 0 0 250px; position: sticky; top: 96px; }
.edu-toc { padding: 16px 14px; }
.edu-toc h3 { font-size: 15px; margin: 0 0 10px; }
#eduDots { display: flex; flex-direction: column; gap: 3px; }
.edu-toc__item {
  display: block; width: 100%; text-align: left;
  padding: 9px 11px; border: 0; border-radius: 6px; background: transparent;
  font-family: inherit; font-size: 13.5px; line-height: 1.4; color: var(--color-text);
  cursor: pointer; white-space: normal;
}
.edu-toc__item:hover { background: var(--color-bg-alt); }
.edu-toc__item.is-active { background: var(--color-brand); color: #fff; font-weight: 700; }
.edu-toc__item.is-locked { color: var(--color-text-muted); opacity: .55; cursor: default; }
.edu-toc__item.is-locked:hover { background: transparent; }
@media (max-width: 860px) {
  .edu-layout { flex-direction: column; }
  .edu-side { position: static; flex: 0 0 auto; width: 100%; order: 2; }
  .edu-main { order: 1; width: 100%; }
  #eduDots { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .edu-toc__item { width: auto; }
}
/* 본문은 HTML(리스트·표) 로 렌더한다(관리자/시드 신뢰 콘텐츠). */
.edu-slide-body { font-size: 16px; line-height: 1.8; color: var(--color-text); }
.edu-slide-body > p { margin: 0 0 12px; }
.edu-slide-body > p:last-child { margin-bottom: 0; }
.edu-slide-body ul { margin: 8px 0 14px; padding: 0; list-style: none; }
.edu-slide-body li { position: relative; padding-left: 18px; margin-bottom: 8px; line-height: 1.6; }
.edu-slide-body li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; background: var(--color-brand); border-radius: 50%; }
.edu-slide-body table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 15px; }
.edu-slide-body th, .edu-slide-body td { border: 1px solid var(--color-border); padding: 9px 12px; text-align: left; vertical-align: top; line-height: 1.55; }
.edu-slide-body th { background: var(--color-bg-alt); font-weight: 700; white-space: nowrap; }
.edu-slide-body strong { color: var(--color-charcoal); font-weight: 700; }

/* ---- 퀴즈 ---- */
.quiz-item { padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.quiz-item:last-of-type { border-bottom: 0; }
.quiz-q {
  font-size: 16px; font-weight: 700; line-height: 1.6;
  color: var(--color-charcoal); margin: 0 0 14px;
}
.quiz-q .no {
  display: inline-block; min-width: 26px; height: 26px; line-height: 26px;
  text-align: center; background: var(--color-brand); color: #fff;
  border-radius: 50%; font-size: 13px; font-weight: 800; margin-right: 8px;
}
.quiz-choice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; margin-bottom: 8px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  cursor: pointer; line-height: 1.6; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.quiz-choice:hover { border-color: var(--color-brand); background: var(--color-bg-alt); }
.quiz-choice input { margin-top: 4px; flex-shrink: 0; }
.quiz-choice.is-wrong { border-color: #e8a9a3; background: #fdeceb; }
.quiz-choice.is-answer { border-color: #8dc79c; background: #eef7ee; }
.quiz-explain {
  margin-top: 10px; padding: 11px 14px; border-radius: var(--radius);
  background: var(--color-bg-alt); font-size: 14px; line-height: 1.7;
  color: var(--color-text);
}
.quiz-explain b { color: #C0392B; }

/* ---- 버튼 줄 ---- */
.visit-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.visit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border: 0; border-radius: var(--radius);
  font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  background: var(--color-bg-alt); color: var(--color-text);
  text-decoration: none; line-height: 1.2;
}
.visit-btn:hover { background: var(--color-border); }
.visit-btn--primary { background: var(--color-brand); color: #fff; }
.visit-btn--primary:hover { background: var(--color-brand-dark); }
.visit-btn--primary:disabled { background: var(--color-text-muted); cursor: not-allowed; }
.visit-btn--wide { flex: 1 1 100%; }
@media (max-width: 640px) {
  .visit-btn { flex: 1 1 100%; padding: 15px 20px; }
}

/* ---- 접수 완료 : 접수번호 ---- */
.receipt-box {
  text-align: center; padding: 30px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  margin: 20px 0;
}
.receipt-label { font-size: 14px; color: var(--color-text-muted); margin-bottom: 8px; }
.receipt-no {
  font-size: 30px; font-weight: 800; letter-spacing: .06em;
  color: var(--color-brand);
  font-family: "Consolas", "Menlo", monospace;
  word-break: break-all;
}
@media (max-width: 480px) { .receipt-no { font-size: 24px; } }

/* ---- 인증번호 입력 ---- */
.otp-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.otp-row input[type="text"] { flex: 1 1 140px; min-width: 0; }
.otp-row .visit-btn { flex: 0 0 auto; padding: 12px 18px; font-size: 15px; }
.otp-msg { font-size: 14px; line-height: 1.6; margin-top: 8px; }
.otp-msg.is-ok  { color: #2c662d; }
.otp-msg.is-err { color: #C0392B; }
.otp-code-input {
  font-size: 22px; letter-spacing: .3em; text-align: center;
  font-family: "Consolas", "Menlo", monospace;
}

/* ---- 이수 이력 안내 ---- */
.edu-valid-box {
  border: 1px solid #cfe8cf; background: #eef7ee;
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px;
  font-size: 15px; line-height: 1.7; color: #2c662d;
}

/* ---- 조회 결과 ---- */
.visit-result-row {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px; line-height: 1.6;
}
.visit-result-row:last-child { border-bottom: 0; }
.visit-result-row .k {
  flex: 0 0 110px; color: var(--color-text-muted); font-weight: 700;
}
.visit-result-row .v { flex: 1 1 auto; color: var(--color-text); word-break: break-word; }
@media (max-width: 520px) {
  .visit-result-row { flex-direction: column; gap: 4px; }
  .visit-result-row .k { flex: none; font-size: 13px; }
}

.visit-status {
  display: inline-block; padding: 5px 13px; border-radius: var(--radius);
  font-size: 14px; font-weight: 800;
}
.visit-status.s-new      { background: var(--color-bg-alt); color: var(--color-text); }
.visit-status.s-read     { background: #eaf2fb; color: #24619e; }
.visit-status.s-approved { background: #eef7ee; color: #2c662d; }
.visit-status.s-rejected { background: #fdeceb; color: #C0392B; }
.visit-status.s-done     { background: var(--color-bg-alt); color: var(--color-text-muted); }

/* ============================================================
   구조 클래스 — YPM style.css 에서 옮겨 옴 (YEST style.css 에는 없다)
   ============================================================ */

/* ---- 진행 단계 막대 ---- */
.step-bar { display: flex; gap: 0; margin-bottom: 48px; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.step-item:not(:last-child)::after {
  content: ''; position: absolute; top: 18px; left: 50%;
  width: 100%; height: 2px; background: var(--color-border); z-index: 0;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-border); color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; position: relative; z-index: 1; margin-bottom: 8px;
}
.step-num.active { background: var(--color-brand); color: #fff; }
.step-num.done { background: var(--color-brand); color: #fff; opacity: .55; }
.step-lbl { font-size: 14px; font-weight: 600; color: var(--color-text-muted); text-align: center; }
.step-lbl.active { color: var(--color-brand); }

/* ---- 방문 목적 선택 (visit_purpose.asp) ---- */
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .purpose-grid { grid-template-columns: 1fr; } }
.purpose-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 32px 22px; cursor: pointer;
  background: var(--color-bg); border: 2px solid var(--color-border); border-radius: 14px;
  font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.purpose-card:hover { border-color: var(--color-brand); box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-2px); }
.purpose-card:focus-visible { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.purpose-card__ico { font-size: 46px; line-height: 1; }
.purpose-card__title { font-size: 21px; font-weight: 800; color: var(--color-text); }
.purpose-card__desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }
.purpose-card__edu {
  margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--color-brand);
  background: var(--color-bg-alt); border-radius: 999px; padding: 7px 14px; line-height: 1.4;
}

/* ---- 폼 필드 ---- */
.form-group { margin-bottom: 18px; }
.form-group > label {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--color-charcoal); margin-bottom: 6px;
}
label .req { color: var(--color-brand); margin-left: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 860px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

/* 입력칸 — .visit-wrap 안으로 한정해 사이트 전역 폼 규칙과 부딪히지 않게 한다 */
.visit-wrap input[type="text"],
.visit-wrap input[type="email"],
.visit-wrap input[type="tel"],
.visit-wrap input[type="number"],
.visit-wrap input[type="date"],
.visit-wrap input[type="time"],
.visit-wrap textarea,
.visit-wrap select {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: #fff; color: var(--color-text);
}
.visit-wrap textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.visit-wrap input:focus,
.visit-wrap textarea:focus,
.visit-wrap select:focus {
  outline: none; border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(197,45,47,0.1);
}
.visit-wrap input[readonly] { background: var(--color-bg-alt); color: var(--color-text-muted); }

/* ---- 개인정보 동의 ---- */
.privacy-box {
  border: 1px solid var(--color-border); background: var(--color-bg-alt);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 4px;
}
.privacy-terms {
  display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 0;
}
.privacy-terms .privacy-row { display: contents; }
.privacy-terms dt { font-size: 14px; font-weight: 700; color: var(--color-text); }
.privacy-terms dd { margin: 0; font-size: 14px; color: var(--color-text); line-height: 1.6; }
.privacy-row { display: flex; align-items: flex-start; gap: 10px; }
.privacy-row input[type=checkbox] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--color-brand);
}
.privacy-row p { font-size: 14px; color: var(--color-text); line-height: 1.6; }
@media (max-width: 520px) {
  .privacy-terms { grid-template-columns: 1fr; gap: 2px 0; }
  .privacy-terms dd { margin-bottom: 8px; }
}

/* ---- 방문 사업장 선택 ---- */
.vg-sites {
  border: none; margin: 0 0 16px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.vg-sites--form { margin-bottom: 0; }
.vg-sites .vg-site-err { grid-column: 1/-1; margin-top: 2px; }
.vg-site {
  display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius);
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.vg-site:hover { border-color: var(--color-text-muted); }
.vg-site input { width: 17px; height: 17px; flex: none; margin-top: 2px; accent-color: var(--color-brand); cursor: pointer; }
.vg-site b { display: block; font-size: 14px; font-weight: 700; color: var(--color-charcoal); line-height: 1.35; }
.vg-site em { display: block; font-style: normal; font-size: 11.5px; color: var(--color-text-muted); margin-top: 3px; line-height: 1.4; }
.vg-site:has(input:checked) { border-color: var(--color-brand); background: var(--color-bg-alt); }
.vg-site input:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.vg-hint { font-size: 12px; line-height: 1.5; color: #B45309; margin-top: 5px; word-break: keep-all; }
@media (max-width: 520px) { .vg-sites { grid-template-columns: 1fr; gap: 8px; } }

/* ---- 출입 기간 · 차량 ---- */
.visit-car-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius); background: var(--color-bg-alt); cursor: pointer;
}
.visit-car-toggle input { width: 18px; height: 18px; flex: none; cursor: pointer; accent-color: var(--color-brand); }
.visit-car-toggle span { font-size: 15px; font-weight: 700; color: var(--color-text); }
.visit-car-fields { margin-top: 14px; }
.visit-car-fields[hidden] { display: none; }

.car-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.car-row input { flex: 1 1 auto; min-width: 0; }
.car-row[hidden] { display: none; }
.car-del {
  flex: none; padding: 9px 12px; font-size: 13px; font-weight: 700;
  color: var(--color-text-muted); background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border); border-radius: var(--radius);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.car-del:hover { color: #C0392B; border-color: #f0c4bf; background: #fdeceb; }
.car-add {
  display: inline-block; margin-top: 2px; padding: 9px 14px;
  font-size: 14px; font-weight: 700; color: var(--color-brand);
  background: #fff; border: 1.5px dashed var(--color-border);
  border-radius: var(--radius); cursor: pointer; font-family: inherit;
}
.car-add:hover { background: var(--color-bg-alt); border-style: solid; }
.car-add[hidden] { display: none; }
.car-limit-msg { font-size: 13px; color: var(--color-text-muted); margin-top: 8px; }
.car-limit-msg[hidden] { display: none; }
.car-warn {
  font-size: 13px; line-height: 1.6; color: #B45309;
  background: #FEF2E9; border-radius: var(--radius); padding: 11px 13px; margin-top: 12px;
}

/* ---- 모바일 ---- */
@media (max-width: 640px) {
  .step-bar { margin-bottom: 30px; }
  .step-num { width: 30px; height: 30px; font-size: 13px; margin-bottom: 6px; }
  .step-item:not(:last-child)::after { top: 15px; }
  .step-lbl { font-size: 11px; line-height: 1.35; letter-spacing: -.2px; word-break: keep-all; padding: 0 3px; }
  .visit-car-toggle { padding: 12px 14px; }
}
@media (max-width: 380px) {
  .step-lbl { font-size: 10px; padding: 0 1px; }
  .step-num { width: 27px; height: 27px; font-size: 12px; }
  .step-item:not(:last-child)::after { top: 13px; }
}
