/* 새 설문 응답 화면 (survey/svy_form) - 이전 고객만족도 화면(survey_kor.html)의 모양을 그대로 쓰고 아래에 새 부품만 더함 */
*, *::before, *::after { font-family: 'Pretendard', Arial, sans-serif; box-sizing: border-box; }
body { background: #f4f7fb; margin: 0; padding: 0; }

/* ── 헤더 ── */
.sv-header {
  background: #fff; border-bottom: 2px solid #024a84;
  padding: 12px 0; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sv-header-inner {
  max-width: 720px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.sv-header img { height: 36px; }
.sv-lang-btn {
  background: none; border: 1.5px solid #bcc8d8; border-radius: 20px;
  padding: 5px 14px; font-size: 12px; color: #555; cursor: pointer;
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  transition: all 0.18s;
}
.sv-lang-btn:hover { border-color: #024a84; color: #024a84; }

/* ── 메인 래퍼 ── */
.sv-wrap { max-width: 720px; margin: 28px auto 48px; padding: 0 16px; }

/* ── 메인 카드 ── */
.sv-main-card {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08); overflow: hidden;
}
.sv-main-header {
  background: #024a84; color: #fff;
  padding: 20px 28px; text-align: center;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
}
.sv-main-header i { margin-right: 8px; }
.sv-main-body { padding: 28px 28px; }
.sv-main-footer {
  background: #f4f7fb; padding: 12px 20px; text-align: center;
  font-size: 13px; color: #666; font-weight: 600;
  border-top: 1px solid #dce2ea;
}

/* ── 인트로 텍스트 ── */
.sv-intro-text { font-size: 14px; color: #444; line-height: 1.85; margin-bottom: 24px; }
.sv-email-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sv-email-label { font-size: 14px; font-weight: 600; color: #333; white-space: nowrap; }
.sv-email-input {
  flex: 1; min-width: 200px; padding: 9px 14px; border: 1.5px solid #bcc8d8;
  border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.18s;
}
.sv-email-input:focus { border-color: #024a84; }
.sv-email-note { font-size: 12px; color: #888; margin-bottom: 20px; }

/* ── 개인정보 동의 박스 ── */
.sv-privacy-box {
  background: #f9fafc; border: 1px solid #dce2ea; border-radius: 8px;
  padding: 16px 20px; margin-bottom: 20px;
}
.sv-privacy-box p { font-size: 12px; color: #555; line-height: 1.75; margin: 0; }
.sv-privacy-agree {
  border-top: 1px solid #dce2ea; margin-top: 14px; padding-top: 14px;
  display: flex; justify-content: center; gap: 24px;
}
.sv-agree-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sv-agree-item input[type="radio"] { accent-color: #024a84; width: 16px; height: 16px; }

/* ── 시작 버튼 ── */
.sv-start-wrap { text-align: center; margin-top: 24px; }

/* ── 섹션 카드 (Step2~) ── */
.sv-section {
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07); overflow: hidden;
  max-width: 580px; margin: 0 auto;
}
.sv-section-header {
  background: #024a84; color: #fff;
  padding: 13px 20px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}

/* ── 진행바 ── */
.sv-progress-wrap { background: #edf0f5; height: 4px; }
.sv-progress-bar { height: 4px; background: #cbd5e1; transition: width 0.4s ease, background 0.4s ease; }
.sv-progress-bar[style*="20%"] { background: #f97316; }
.sv-progress-bar[style*="40%"] { background: #eab308; }
.sv-progress-bar[style*="60%"] { background: #22c55e; }
.sv-progress-bar[style*="80%"] { background: #10b981; }
.sv-progress-bar[style*="100%"] { background: #059669; }
.sv-progress-label { text-align: right; font-size: 11px; color: #aaa; padding: 5px 16px 0; }

/* ── 섹션 바디 ── */
.sv-section-body { padding: 22px 24px; }
.sv-q-wrap { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #f0f2f5; }
.sv-q-wrap:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sv-q-text { font-size: 13px; font-weight: 600; color: #333; line-height: 1.6; margin-bottom: 12px; text-align: center; }
.sv-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sv-options .form-check { margin: 0; }
.sv-options input[type="radio"],
.sv-options input[type="checkbox"] { accent-color: #024a84; }
.sv-textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid #bcc8d8; border-radius: 6px;
  font-size: 13px; resize: vertical; outline: none; transition: border-color 0.18s;
  font-family: 'Pretendard', Arial, sans-serif;
}
.sv-textarea:focus { border-color: #024a84; }
.sv-char-count { text-align: right; font-size: 11px; color: #aaa; margin-top: 4px; }

/* ── 섹션 푸터 / 버튼 ── */
.sv-section-footer { padding: 14px 20px; text-align: center; border-top: 1px solid #edf0f5; display: flex; justify-content: center; gap: 10px; }
.sv-btn {
  padding: 7px 22px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.18s; border: 1.5px solid #024a84;
  display: inline-flex; align-items: center; gap: 5px;
}
.sv-btn-primary { background: #024a84; color: #fff; }
.sv-btn-primary:hover { background: #023a6b; }
.sv-btn-outline { background: #fff; color: #024a84; }
.sv-btn-outline:hover { background: #f4f7fb; }

/* ── 정보 입력 폼 ── */
.sv-field-wrap { margin-bottom: 14px; }
.sv-field-label { font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; }
.sv-field-input, .sv-field-select {
  width: 100%; padding: 9px 14px; border: 1.5px solid #bcc8d8; border-radius: 6px;
  font-size: 13px; outline: none; transition: border-color 0.18s;
  font-family: 'Pretendard', Arial, sans-serif; background: #fff;
}
.sv-field-input:focus, .sv-field-select:focus { border-color: #024a84; }

@media (max-width: 767px) {
  .sv-section { max-width: 100%; }
}

@media (max-width: 575px) {
  .sv-wrap { padding: 0 10px; margin-top: 16px; margin-bottom: 32px; }
  .sv-main-body { padding: 18px 14px; }
  .sv-main-header { font-size: 15px; padding: 14px 16px; }
  .sv-section-body { padding: 16px 14px; }
  .sv-section-header { font-size: 13px; padding: 11px 14px; }
  .sv-section-footer { padding: 12px 14px; gap: 8px; }
  .sv-btn { padding: 8px 18px; font-size: 12px; }

  /* 이메일 입력 - 세로 배치 */
  .sv-email-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sv-email-input { min-width: 0; width: 100%; }

  /* 개인정보 동의 */
  .sv-privacy-agree { gap: 16px; }
  .sv-privacy-box { padding: 14px 14px; }
  .sv-privacy-box p { font-size: 11.5px; }

  /* 질문 옵션 - 라디오 버튼 세로 배치 */
  .sv-q-text { font-size: 12.5px; text-align: left; }
  .sv-options { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 4px; }
  .sv-options .form-check { margin: 0; }
  .sv-options .form-check-label { font-size: 13px; }
  .sv-options input[type="radio"],
  .sv-options input[type="checkbox"] { width: 17px; height: 17px; }

  /* 진행 라벨 */
  .sv-progress-label { padding: 4px 14px 0; font-size: 10px; }

  /* 필드 */
  .sv-field-label { font-size: 11.5px; }
  .sv-field-input, .sv-field-select { font-size: 13px; padding: 9px 12px; }

  /* 텍스트 영역 */
  .sv-textarea { font-size: 13px; }

  /* 헤더 로고 */
  .sv-header img { height: 30px; }
  .sv-header-inner { padding: 0 14px; }
}

/* ── 새 응답 화면 부품 ── */
[v-cloak] { display: none; }

/* 분류 머리 (큰 틀은 바깥 카드 하나 - 분류·문항은 따로 상자를 두지 않음) */
.svf-step { margin: 0 0 6px; }
.svf-step-head { display: flex; align-items: center; gap: 8px; color: #024a84; font-size: 16px; font-weight: 700; }
.svf-step-head i { font-size: 19px; }
.svf-step-name { flex: 1; min-width: 0; }
.svf-step-no { font-size: 12px; font-weight: 500; color: #94a3b8; white-space: nowrap; }
.svf-bar { height: 4px; background: #edf0f5; border-radius: 2px; margin-top: 10px; overflow: hidden; }
.svf-bar > span { display: block; height: 100%; background: #024a84; transition: width .3s ease; }
.svf-body { padding-top: 18px; }
.svf-desc { text-align: left; margin: 0 0 16px; }
/* 조건으로 나타난 하위 문항: 옅은 바탕 + ↳, 들여쓰기·세로줄 없음 (몇 단계든 같은 모양) */
.sv-q-wrap:has(+ .svf-follow) { border-bottom: none; padding-bottom: 6px; margin-bottom: 10px; }
.sv-q-wrap.svf-follow { background: #f6f8fb; border-radius: 8px; border-bottom: none; padding: 14px 12px; margin-bottom: 10px; }
.sv-q-wrap.svf-follow:not(:has(+ .svf-follow)) { margin-bottom: 22px; }
.sv-q-wrap .sv-field-select { display: block; max-width: 360px; margin: 0 auto; }
/* 입력 칸 모양 문항 (단답형·드롭다운): 왼쪽 라벨 + 꽉 찬 칸, 칸 사이 구분선 없이 촘촘하게 */
.sv-q-wrap.svf-field { border-bottom: none; padding-bottom: 0; margin-bottom: 16px; }
.sv-q-wrap.svf-field .sv-field-label { display: block; font-size: 13px; color: #333; }
.sv-q-wrap.svf-field .sv-field-select { max-width: none; width: 100%; margin: 0; }
.sv-q-wrap.svf-field + .sv-q-wrap:not(.svf-field) { border-top: 1px solid #f0f2f5; padding-top: 22px; }
.sv-q-wrap.svf-field .sv-req { margin-left: 2px; }
.svf-follow-i { color: #024a84; margin-right: 6px; }
.svf-nav { display: flex; justify-content: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #edf0f5; }
@media (max-width: 575px) {
  .svf-step-head { font-size: 15px; }
  .sv-q-wrap.svf-follow { padding: 12px 8px; }
}
.sv-title-text { white-space: pre-line; }
.sv-pre { white-space: pre-line; }
.sv-q-wrap.sv-err { background: #fff5f5; border-radius: 6px; outline: 2px solid #e53e3e33; }
.sv-q-help { font-size: 12px; color: #777; text-align: center; margin: -6px 0 10px; white-space: pre-line; }
.sv-req { color: #e53e3e; margin-left: 2px; }
.sv-other-input { margin-top: 8px; }
.sv-msg { color: #c53030; font-size: 13px; text-align: center; margin: 10px 0 0; white-space: pre-line; }
.sv-ok { color: #2f855a; font-size: 13px; text-align: center; margin: 10px 0 0; }
.sv-code-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.sv-code-row .sv-email-input { min-width: 0; }
.sv-captcha { display: flex; justify-content: center; margin: 12px 0; }
.sv-resume-box { background: #f9fafc; border: 1px dashed #bcc8d8; border-radius: 8px; padding: 14px 18px; margin: 0 0 18px; text-align: center; font-size: 13px; color: #555; }
.sv-resume-code { display: block; font-size: 22px; font-weight: 700; letter-spacing: 3px; color: #024a84; margin: 6px 0; user-select: all; }
.sv-alt { text-align: center; margin-top: 18px; font-size: 13px; color: #666; }
.sv-alt a { color: #024a84; cursor: pointer; text-decoration: underline; }
.sv-center { text-align: center; padding: 30px 0; color: #555; font-size: 14px; white-space: pre-line; }
.sv-lang-seg { display: flex; gap: 6px; }
