/* =========================================================
 * 식단 선호 설문 체험판 (/survey)
 * 모바일 우선 한 열 레이아웃, 사이트 기본색(진녹색·크림)에 맞춤
 * 전역 h1·h3가 흰색이라 제목 색은 클래스에서 직접 지정한다
 * ========================================================= */

/* 체험판 공통 색·모양 변수 */
.survey-trial-page {
  --st-green: var(--main-body-bar-color, #27391c);
  --st-green-soft: #eef3e6;
  --st-green-line: #b9cda1;
  --st-ink: #1b1b18;
  --st-muted: #5f5f58;
  --st-error: #b91c1c;
  --st-error-soft: #fff7f7;
  --st-line: #e6e3da;
  --st-card: #ffffff;
  --st-bg: #fafaf8;
  --st-radius: 18px;

  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--st-bg);
  color: var(--st-ink);
  /* 헤더 메뉴 강조 배경이 화면 끝을 살짝 넘어도 가로 스크롤이 생기지 않게 자른다(clip은 하단 고정 버튼 sticky를 깨지 않음) */
  overflow-x: clip;
}

/* 상단 공통 헤더 영역 높이 */
.survey-trial-header-shell {
  min-height: var(--site-header-height-mobile);
  background: var(--st-bg);
}

/* 본문 폭 컨테이너 */
.survey-trial-wrap {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  box-sizing: border-box;
}

/* 작은 라벨(알약 모양) */
.survey-trial-eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 9999px;
  background: var(--st-green-soft);
  color: var(--st-green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

/* ---------- 상단 소개 카드 ---------- */
.survey-trial-hero {
  padding: 24px 20px;
  border-radius: var(--st-radius);
  background: var(--st-green);
  color: #ffffff;
}

.survey-trial-hero .survey-trial-eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.survey-trial-title {
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.survey-trial-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.6;
}

/* 문항 수·소요 시간·체험 횟수 표시 줄 */
.survey-trial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.survey-trial-meta li {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

/* ---------- 응답 진행률 ---------- */
.survey-trial-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 4px 4px;
}

.survey-trial-progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 9999px;
  background: var(--st-line);
  overflow: hidden;
}

.survey-trial-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--st-green);
  transition: width 0.25s ease;
}

.survey-trial-progress-text {
  min-width: 44px;
  color: var(--st-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 문항 묶음(대분류 카드) ---------- */
.survey-trial-questions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

/* 대분류 하나를 담는 카드: 머리말 + 구분선으로 이어진 문항들 */
.survey-trial-section {
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: var(--st-card);
  overflow: hidden;
}

/* 대분류 머리말(번호·제목·답한 문항 수) */
.survey-trial-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--st-line);
  background: var(--st-green-soft);
}

.survey-trial-section-no {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--st-green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.survey-trial-section-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--st-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

/* 이 묶음에서 답한 문항 수 / 전체 문항 수 */
.survey-trial-section-count {
  flex-shrink: 0;
  color: var(--st-green);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 문항 하나: 카드 안에서 구분선으로만 나눈다 */
.survey-trial-question {
  min-width: 0;
  margin: 0;
  padding: 20px 16px;
  border: 0;
}

.survey-trial-question + .survey-trial-question {
  border-top: 1px solid var(--st-line);
}

.survey-trial-question:disabled {
  opacity: 0.85;
}

.survey-trial-question[aria-invalid="true"] {
  outline: 2px solid var(--st-error);
  outline-offset: -2px;
  background-color: var(--st-error-soft);
  scroll-margin-top: calc(var(--site-header-height-mobile, 72px) + 16px);
}

.survey-trial-page-in-app .survey-trial-question[aria-invalid="true"] {
  scroll-margin-top: 16px;
}

.survey-trial-question-error {
  margin: 10px 0 0;
  color: var(--st-error);
  font-size: 14px;
  font-weight: 600;
}

.survey-trial-question-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  float: left;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  color: var(--st-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* legend float 뒤 보기 영역이 아래로 오도록 정리 */
.survey-trial-question-title + * {
  clear: both;
}

/* 문항 번호(1-1): 질문 앞의 초록 글자 */
.survey-trial-question-no {
  flex-shrink: 0;
  min-width: 28px;
  color: var(--st-green);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 보기 칩: 글자 길이만큼의 칩이 줄을 바꿔 가며 이어져 보기 수와 상관없이 같은 모양 */
.survey-trial-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.survey-trial-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 16px 9px 12px;
  border: 1.5px solid var(--st-line);
  border-radius: 22px;
  background: #fcfcfa;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
}

.survey-trial-option:hover {
  border-color: var(--st-green-line);
}

/* 실제 라디오·체크박스는 숨기고 표시 모양으로 대신 보여준다 */
.survey-trial-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

/* 하나 선택은 동그라미 표시 */
.survey-trial-option-mark {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #c9c6bb;
  border-radius: 9999px;
  background: #ffffff;
  box-sizing: border-box;
}

.survey-trial-option-label {
  min-width: 0;
  color: var(--st-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.survey-trial-option.is-selected {
  border-color: var(--st-green);
  background: var(--st-green-soft);
}

.survey-trial-option.is-selected .survey-trial-option-mark {
  border-color: var(--st-green);
  background: var(--st-green);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.survey-trial-option.is-selected .survey-trial-option-label {
  font-weight: 700;
}

/* ---------- 척도 문항(동그라미를 선으로 이은 가로 척도) ---------- */
/* 칸 수는 보기 수에 맞춰 인라인 style로 정한다. 칸 사이 간격은 0으로 두고 선이 칸 가운데끼리 이어지게 한다 */
.survey-trial-scale {
  --st-dot: 38px;
  display: grid;
  column-gap: 0;
  padding-top: 4px;
}

/* 보기 한 칸: 동그라미 + 아래 라벨(칸 전체가 눌리는 영역) */
.survey-trial-scale-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 2px 2px 4px;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* 앞 보기 동그라미와 이어 주는 선(첫 칸 제외): 앞 칸 가운데 ~ 이 칸 가운데에서 동그라미 반지름만큼 뺀 길이 */
.survey-trial-scale-option + .survey-trial-scale-option::before {
  content: "";
  position: absolute;
  top: calc(2px + var(--st-dot) / 2 - 1px);
  left: calc(-50% + var(--st-dot) / 2 + 4px);
  right: calc(50% + var(--st-dot) / 2 + 4px);
  height: 2px;
  border-radius: 2px;
  background: var(--st-line);
  transition: background-color 0.18s ease;
}

/* 고른 보기까지의 선은 초록으로 */
.survey-trial-scale-option.is-passed::before {
  background: var(--st-green);
}

/* 실제 라디오는 숨기고 칸 전체를 눌러 고른다 */
.survey-trial-scale-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

/* 동그라미(숫자 척도면 안에 숫자) */
.survey-trial-scale-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--st-dot);
  height: var(--st-dot);
  border: 2px solid #d4d0c5;
  border-radius: 50%;
  background: #ffffff;
  color: var(--st-muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-sizing: border-box;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.survey-trial-scale-option:hover .survey-trial-scale-dot {
  border-color: var(--st-green-line);
}

/* 고른 보기 앞쪽 동그라미: 테두리만 초록 */
.survey-trial-scale-option.is-passed .survey-trial-scale-dot {
  border-color: var(--st-green);
  color: var(--st-green);
}

/* 고른 동그라미: 초록으로 채우고 바깥에 옅은 테두리 */
.survey-trial-scale-option.is-selected .survey-trial-scale-dot {
  border-color: var(--st-green);
  background: var(--st-green);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--st-green-soft);
}

/* 숫자 없는 척도(거의 안 마심 등)를 고르면 동그라미 가운데 흰 점 */
.survey-trial-scale-option.is-selected .survey-trial-scale-dot:empty::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
}

/* 라벨(매우 싫다, 거의 안 마심 등): 좁으면 낱말 단위로 두 줄 */
.survey-trial-scale-text {
  max-width: 100%;
  color: var(--st-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}

.survey-trial-scale-option.is-selected .survey-trial-scale-text {
  color: var(--st-green);
  font-weight: 800;
}

.survey-trial-scale-option:has(input:focus-visible) .survey-trial-scale-dot {
  outline: 2px solid var(--st-green);
  outline-offset: 3px;
}

.survey-trial-scale-option:has(input:disabled) {
  cursor: default;
}

/* 여러 개 선택 문항은 동그라미 대신 네모 표시, 고르면 흰 체크 */
.survey-trial-option.is-multi .survey-trial-option-mark {
  border-radius: 5px;
}

.survey-trial-option.is-multi.is-selected .survey-trial-option-mark {
  box-shadow: none;
  background: var(--st-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* 최대 개수를 채워 더 고를 수 없는 보기 */
.survey-trial-option.is-blocked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 문항 제목 옆 여러 개 선택 안내 */
/* 여러 개 선택 표시: 질문 글 아래 줄에, 질문 글 첫 글자와 같은 위치에서 시작(글 길이와 상관없이 항상 같은 자리) */
.survey-trial-question-tag {
  display: table;
  margin: 6px 0 0;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--st-green-soft);
  color: var(--st-green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 1px;
}

/* 직접 입력 보기를 골랐을 때 보기 아래에 열리는 글 입력칸 */
.survey-trial-input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1.5px solid var(--st-green-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--st-ink);
  font-size: 15px;
  box-sizing: border-box;
}

.survey-trial-input:focus-visible {
  outline: 2px solid var(--st-green);
  outline-offset: 1px;
}

/* 지역 문항: 시/도·시군구 칸 두 개(작은 라벨 + 고른 값 + 화살표) */
.survey-trial-region {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.survey-trial-region-field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 40px 8px 14px;
  border: 1.5px solid var(--st-line);
  border-radius: 14px;
  background: #fcfcfa
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5f58' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 14px center / 14px no-repeat;
  color: var(--st-ink);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
}

.survey-trial-region-field:hover:not(:disabled) {
  border-color: var(--st-green-line);
}

/* 값을 고른 칸 */
.survey-trial-region-field.is-filled {
  border-color: var(--st-green);
  background-color: var(--st-green-soft);
}

/* 목록이 펼쳐진 칸: 테두리 강조 + 화살표 위로 */
.survey-trial-region-field.is-open {
  border-color: var(--st-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327391c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E");
}

.survey-trial-region-field:disabled {
  background-color: #f3f2ee;
  cursor: default;
}

.survey-trial-region-field:focus-visible {
  outline: 2px solid var(--st-green);
  outline-offset: 2px;
}

.survey-trial-input[aria-invalid="true"],
.survey-trial-region .survey-trial-region-field[aria-invalid="true"] {
  border-color: var(--st-error);
  outline-color: var(--st-error);
}

/* 칸 위쪽 작은 라벨(시/도, 시군구) */
.survey-trial-region-label {
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

/* 고른 값(안 골랐으면 "선택"을 흐리게) */
.survey-trial-region-value {
  max-width: 100%;
  overflow: hidden;
  color: var(--st-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.survey-trial-region-field.is-filled .survey-trial-region-value {
  color: var(--st-ink);
  font-weight: 700;
}

/* 펼친 선택 목록: 칸 아래 칩 격자 */
.survey-trial-region-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: var(--st-bg);
}

.survey-trial-region-item {
  min-width: 0;
  min-height: 44px;
  padding: 6px 4px;
  border: 1.5px solid var(--st-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--st-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  word-break: keep-all;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.survey-trial-region-item:hover {
  border-color: var(--st-green-line);
}

.survey-trial-region-item.is-selected {
  border-color: var(--st-green);
  background: var(--st-green);
  color: #ffffff;
  font-weight: 700;
}

.survey-trial-region-item:focus-visible {
  outline: 2px solid var(--st-green);
  outline-offset: 2px;
}

/* 키보드 포커스 표시 */
.survey-trial-option:has(input:focus-visible) {
  outline: 2px solid var(--st-green);
  outline-offset: 2px;
}

/* ---------- 하단 고정 버튼 영역 ---------- */
.survey-trial-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 16px -16px 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--st-bg) 72%, rgba(250, 250, 248, 0));
}

.survey-trial-result .survey-trial-actions {
  position: static;
  margin: 24px 0 0;
  padding: 0;
  background: none;
}

.survey-trial-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--st-muted);
  font-size: 13px;
}

.survey-trial-loading {
  color: var(--st-green);
  font-weight: 600;
  text-align: center;
}

.survey-trial-missing-hint {
  margin: 0 0 10px;
  text-align: center;
}

/* 분석 중 회전 표시 */
.survey-trial-spinner {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--st-green-line);
  border-top-color: var(--st-green);
  border-radius: 9999px;
  animation: survey-trial-spin 0.8s linear infinite;
}

@keyframes survey-trial-spin {
  to {
    transform: rotate(360deg);
  }
}

.survey-trial-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 9999px;
  background: var(--st-green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.survey-trial-button:active:not(:disabled) {
  transform: scale(0.99);
}

.survey-trial-button:disabled {
  background: #d6d4cc;
  color: #ffffff;
  cursor: not-allowed;
}

.survey-trial-button:focus-visible,
.survey-trial-link:focus-visible {
  outline: 2px solid var(--st-green);
  outline-offset: 3px;
}

/* ---------- AI 분석 결과 ---------- */
/* 로고 3색: 초록(요약·조리 요령·주찬), 파랑(국·찌개), 주황(부찬·다시 받기)
   로고색 그대로는 흰 바탕 글자로 흐려서, 글자에는 같은 색의 진한 값(-ink)을 쓴다 */
.survey-trial-result {
  --st-blue: #019acd;
  --st-blue-ink: #04729a;
  --st-blue-soft: #e8f5fb;
  --st-orange: #e18c26;
  --st-orange-ink: #9c5508;
  --st-orange-soft: #fdf2e5;
  --st-leaf: #56852f;
  /* 캐릭터 너비(요약 말풍선 꼬리 위치도 이 값으로 맞춘다) */
  --st-mascot-w: 92px;

  margin-top: 20px;
  padding: 22px 18px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: var(--st-card);
  transition: opacity 0.2s ease;
}

/* 결과 다시 받는 동안 기존 결과를 흐리게 */
.survey-trial-result.is-busy {
  opacity: 0.55;
}

/* 결과 머리: 제목·이미지로 저장(좌) + 캐릭터(우, 아래 요약 말풍선 꼬리가 캐릭터를 가리킴) */
.survey-trial-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.survey-trial-result-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

/* 캐릭터: 결과가 나올 때 한 번 손 흔들듯 기울었다 돌아옴 */
.survey-trial-mascot {
  flex-shrink: 0;
  width: var(--st-mascot-w);
  height: auto;
  margin: -6px -2px -4px 0;
  transform-origin: 50% 90%;
  animation: survey-trial-mascot-wave 0.9s ease-out 0.15s both;
}

@keyframes survey-trial-mascot-wave {
  0% {
    transform: translateY(8px) rotate(0deg);
    opacity: 0;
  }
  35% {
    transform: translateY(0) rotate(-6deg);
    opacity: 1;
  }
  65% {
    transform: rotate(4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.survey-trial-result-title {
  margin: 12px 0 0;
  color: var(--st-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}

.survey-trial-image-btn {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 12px;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--st-line);
  border-radius: 9999px;
  background: #ffffff;
  color: var(--st-ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.survey-trial-image-btn:hover:not(:disabled) {
  border-color: var(--st-green-line);
  background: var(--st-green-soft);
}

.survey-trial-image-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.survey-trial-image-btn:focus-visible {
  outline: 2px solid var(--st-green);
  outline-offset: 2px;
}

/* 요약 말풍선: 오른쪽 위 꼬리가 캐릭터 쪽을 가리킨다 */
.survey-trial-summary {
  position: relative;
  margin: 12px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--st-green-line);
  border-radius: 16px;
  background: var(--st-green-soft);
  color: var(--st-ink);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.survey-trial-summary::before {
  content: "";
  position: absolute;
  top: -8px;
  right: calc(var(--st-mascot-w) / 2 - 6px);
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--st-green-line);
  border-left: 1px solid var(--st-green-line);
  background: var(--st-green-soft);
  transform: rotate(45deg);
}

/* 요약 문단 사이 간격 */
.survey-trial-summary p {
  margin: 0;
}

.survey-trial-summary p + p {
  margin-top: 10px;
}

/* 결과 묶음: 제목 앞 색 점으로 묶음 색을 알린다 */
.survey-trial-block {
  margin-top: 24px;
  overflow-wrap: anywhere;
}

.survey-trial-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--st-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.survey-trial-block-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-leaf);
}

.survey-trial-card-title {
  display: block;
  color: var(--st-ink);
  font-size: 15px;
  font-weight: 700;
}

.survey-trial-reason {
  margin: 6px 0 0;
  color: var(--st-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* 추천 메뉴: 번호 칸 색이 메뉴 종류(국·찌개 파랑 / 주찬 초록 / 부찬 주황) */
.survey-trial-menu-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.survey-trial-menu {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: #fcfcfa;
}

.survey-trial-menu-no {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--st-leaf);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.survey-trial-menu.is-blue .survey-trial-menu-no {
  background: var(--st-blue);
}

.survey-trial-menu.is-orange .survey-trial-menu-no {
  background: var(--st-orange);
}

.survey-trial-menu-body {
  min-width: 0;
}

.survey-trial-menu-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 28px;
}

.survey-trial-menu-top .survey-trial-card-title {
  display: inline;
  font-size: 16px;
}

/* 메뉴 종류 표시(번호 칸과 같은 색 계열) */
.survey-trial-menu-type {
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--st-green-soft);
  color: var(--st-green);
  font-size: 12px;
  font-weight: 700;
}

.survey-trial-menu.is-blue .survey-trial-menu-type {
  background: var(--st-blue-soft);
  color: var(--st-blue-ink);
}

.survey-trial-menu.is-orange .survey-trial-menu-type {
  background: var(--st-orange-soft);
  color: var(--st-orange-ink);
}

/* 조리 요령: 초록 체크 목록 */
.survey-trial-tips {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.survey-trial-tips li {
  position: relative;
  padding-left: 26px;
  color: var(--st-ink);
  font-size: 14.5px;
  line-height: 1.6;
}

.survey-trial-tips li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--st-green-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356852f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* 보호자 링크 결과 버튼: 왼쪽 결과 다시 받기(주황 테두리) / 오른쪽 결과 저장하기(초록) */
.survey-trial-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.survey-trial-result-actions .survey-trial-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.survey-trial-button.is-retry {
  border: 1.5px solid var(--st-orange);
  background: #ffffff;
  color: var(--st-orange-ink);
}

.survey-trial-button.is-retry:hover:not(:disabled) {
  background: var(--st-orange-soft);
}

.survey-trial-button.is-retry:disabled {
  border-color: var(--st-line);
  background: #f3f2ee;
  color: var(--st-muted);
}

.survey-trial-button small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

/* 저장 완료 안내 */
.survey-trial-saved {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--st-green-soft);
  color: var(--st-green);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.survey-trial-saved::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--st-leaf)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* 넓은 화면: 추천 메뉴 2열, 캐릭터 조금 크게 */
@media (min-width: 640px) {
  .survey-trial-menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-trial-result {
    --st-mascot-w: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .survey-trial-mascot {
    animation: none;
  }
}

/* ---------- 안내 카드(준비 중·이미 체험·제출 완료) ---------- */
.survey-trial-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  padding: 36px 22px 32px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: var(--st-card);
  text-align: center;
}

.survey-trial-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border-radius: 9999px;
  background: var(--st-green-soft);
  color: var(--st-green);
}

.survey-trial-notice-title {
  margin: 14px 0 0;
  color: var(--st-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.survey-trial-notice-text {
  margin: 10px 0 0;
  color: var(--st-ink);
  font-size: 15px;
  line-height: 1.6;
}

.survey-trial-notice-sub {
  margin: 4px 0 0;
  color: var(--st-muted);
  font-size: 14px;
  line-height: 1.6;
}

.survey-trial-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 22px;
  border: 1px solid rgba(39, 57, 28, 0.3);
  border-radius: 9999px;
  color: var(--st-green);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- 넓은 화면 ---------- */
@media (min-width: 768px) {
  .survey-trial-header-shell {
    min-height: var(--site-header-height);
  }

  .survey-trial-wrap {
    padding: 36px 24px 64px;
  }

  .survey-trial-hero {
    padding: 32px 28px;
  }

  .survey-trial-title {
    font-size: 28px;
  }

  .survey-trial-section-head {
    padding: 16px 22px;
  }

  .survey-trial-question {
    padding: 22px;
  }

  .survey-trial-question[aria-invalid="true"] {
    scroll-margin-top: calc(var(--site-header-height, 80px) + 16px);
  }

  /* 태블릿·데스크탑: 동그라미와 라벨을 키운다(선 길이는 칸 폭을 따라 늘어난다) */
  .survey-trial-scale {
    --st-dot: 44px;
  }

  .survey-trial-scale-dot {
    font-size: 17px;
  }

  .survey-trial-scale-text {
    font-size: 14px;
  }

  .survey-trial-actions {
    margin-inline: -24px;
    padding-inline: 24px;
  }

  .survey-trial-result {
    padding: 28px 26px;
  }
}

/* 움직임 줄이기 설정 사용자 */
@media (prefers-reduced-motion: reduce) {
  .survey-trial-progress-bar span,
  .survey-trial-option,
  .survey-trial-scale-option,
  .survey-trial-scale-option::before,
  .survey-trial-scale-dot,
  .survey-trial-scale-text,
  .survey-trial-region-field,
  .survey-trial-region-item,
  .survey-trial-result,
  .survey-trial-image-btn,
  .survey-trial-button {
    transition: none;
  }

  .survey-trial-spinner {
    animation-duration: 2s;
  }
}

