/* ═══════════════════════════════════════════
   CHECK SEC — 국비지원 대상 확인 (별도 섹션)
   ═══════════════════════════════════════════ */
.check-sec {
  background: #fff;
  padding: 80px 0;
  border-top: 4px solid var(--border);
}
.check-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900; color: var(--dark);
  letter-spacing: -1px; margin-bottom: 8px;
}
.check-desc {
  font-size: 16px; color: var(--text-sub);
  margin-bottom: 48px;
}
.check-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 48px; font-size: 17px; font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 50px;
  background: var(--primary); color: #fff;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0,124,194,0.3);
  transition: opacity .5s ease, height .8s ease, padding .8s ease, margin .8s ease;
  cursor: pointer; border: none;
}
.check-toggle:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,124,194,0.4); }
.check-toggle.open { background: var(--text-sub); box-shadow: none; }

.check-panel {
  /* max-height: 0; overflow: hidden; opacity: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-radius: 16px;
  transition: max-height 2.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.5s ease 1.8s;
  will-change: max-height, opacity; */
  position: relative;
}
/* .check-panel.open { opacity: 1; } */

@keyframes surveyFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 2단 그리드 — 3행 subgrid로 좌우 라인 정렬 */
.survey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 40px;
  row-gap: 0;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.survey-left {
  grid-column: 1;
  grid-row: 1 / 4;
  display: grid;
  grid-template-rows: subgrid;
}
.survey-right {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  grid-template-rows: subgrid;
}

.survey-heading {
  font-size: 20px; font-weight: 800; color: var(--dark);
  margin-bottom: 0; padding-bottom: 12px;
}
.survey-sublabel {
  align-self: end;
  padding-bottom: 16px;
}
.sf-required {
  font-size: 12px; font-weight: 600; color: #f87171;
  margin-left: 6px;
}
.sf-required-line {
  font-size: 14px; font-weight: 600; color: #f87171;
  margin: 0;
}

/* 왼쪽: 과정 선택 */
.survey-courses {
  display: flex; flex-direction: column; gap: 12px;
}
.survey-course {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 20px 18px;
  min-height: 60px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.survey-course:hover {
  border-color: var(--primary);
}
.survey-course input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.survey-course:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
}
.sc-name { font-size: 16px; font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-meta { font-size: 15px; font-weight: 700; color: var(--primary); }
.survey-course:has(input:checked) .sc-name { color: #fff; }
.survey-course:has(input:checked) .sc-meta { color: rgba(255,255,255,0.7); }
.sc-group-label {
  font-size: 15px; font-weight: 800; color: var(--text-sub);
  padding: 12px 0 4px; letter-spacing: 0.5px;
}
.sc-group-label:first-child { padding-top: 0; }

/* 비용 결과 */
.survey-cost {
  display: none;
  margin-top: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: surveyFadeIn 0.3s ease;
}
.survey-cost.active { display: block; }
.cost-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
  font-size: 14px; color: var(--text-sub);
}
.cost-row strong { color: var(--dark); font-weight: 700; }
.cost-divider { height: 1px; background: var(--border); margin: 8px 0; }
.cost-row.highlight { font-size: 17px; font-weight: 800; color: var(--dark); }
.cost-row.highlight strong { color: var(--primary); font-size: 19px; }
.cost-loading {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px 0;
  font-size: 15px; font-weight: 700; color: var(--text-sub);
}
.cost-spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cost-note {
  margin-top: 10px; font-size: 12px; color: var(--text-light);
  line-height: 1.6;
}

/* 오른쪽: 상태 선택 버튼 */
.survey-status {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.survey-status-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 8px; min-height: 80px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 17px; font-weight: 700; color: var(--dark);
  cursor: pointer; transition: all 0.2s;
  text-align: center;
}
.survey-status-btn:hover {
  border-color: var(--primary);
}
.survey-status-btn input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.survey-status-btn:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 신청자 폼 */
.survey-form {
  display: flex; flex-direction: column; gap: 10px;
}
.sf-input {
  width: 100%;
  padding: 13px 14px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--dark);
  font-family: inherit; outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.sf-input::placeholder { color: var(--text-light); }
.sf-input:focus { border-color: var(--primary); }

.sf-phone-group { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sf-phone { text-align: center; }

.sf-note {
  font-size: 12px; color: var(--text-light);
  line-height: 1.5; margin: 4px 0;
}

.sf-privacy {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-sub);
  cursor: pointer;
}
.sf-privacy input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
}

.sf-submit {
  margin-top: 8px;
  padding: 16px;
  background: var(--dark); color: #fff;
  font-size: 16px; font-weight: 800;
  border-radius: 50px; border: none;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.sf-submit:hover { background: #000; transform: translateY(-2px); }

/* 상담 문의 버튼 */
.sf-next {
  margin-top: 24px;
  width: 100%;
  padding: 16px;
  background: var(--dark); color: #fff;
  font-size: 16px; font-weight: 800;
  border-radius: 50px; border: none;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.sf-next:hover:not(:disabled) { background: #000; transform: translateY(-2px); }
.sf-next:disabled { background: var(--border); color: var(--text-light); cursor: not-allowed; }

/* 폼 래퍼 */
.survey-form-wrap {
  max-width: 480px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  animation: surveyFadeIn 0.35s ease;
}

/* CSP inline style 차단 대응 — 초기 숨김을 CSS로 처리 */
#check-step2, #check-step3 { display: none; }
#discount-wrap { display: none; }
#check-next1b { display: none; }

/* ── 감면 유형 영역 ── */
.survey-discount-wrap {
  margin-top: 24px;
  animation: surveyFadeIn 0.35s ease;
}

/* ── 감면 유형 버튼 ── */
.survey-sub {
  font-size: 15px; color: var(--text-sub);
  margin-bottom: 20px; line-height: 1.6;
}
.survey-discount {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.survey-discount-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 8px; min-height: 48px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px; font-weight: 700; color: var(--dark);
  cursor: pointer; transition: all 0.2s;
  text-align: center;
}
.survey-discount-btn:hover {
  border-color: var(--primary);
}
.survey-discount-btn input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.survey-discount-btn:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.sd-full { grid-column: 1 / -1; }

/* 다시 선택 버튼 */
.survey-retry {
  display: block; margin: 16px auto 0;
  padding: 10px 24px;
  background: none; border: none;
  font-size: 14px; font-weight: 600; color: var(--text-light);
  cursor: pointer; font-family: inherit;
  transition: color 0.2s;
}
.survey-retry:hover { color: var(--primary); }

/* 완료 화면 */
.survey-done {
  text-align: center;
  padding: 48px 24px;
  animation: surveyFadeIn 0.35s ease;
}
.survey-done-icon { font-size: 48px; margin-bottom: 12px; }
.survey-done-title { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.survey-done-desc { font-size: 15px; color: var(--text-sub); line-height: 1.7; margin-bottom: 20px; }
.survey-result-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.survey-result-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
