/* 공용 컴포넌트 — 버튼·카드·칩·선택지·슬라이더·진행바·폼 요소 */

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 24px;
  border: 0; border-radius: var(--radius-md);
  font-weight: 700; font-size: 1.05rem;
  transition: var(--transition);
  width: 100%;
}
.btn-primary { background: var(--c-cherry-700); color: var(--c-white); }
.btn-primary:active { background: var(--c-burgundy-900); }
.btn-primary:disabled { background: var(--c-line); color: var(--c-text-muted); cursor: default; }
.btn-ghost { background: transparent; color: var(--c-text-muted); }
.btn-ghost:active { color: var(--c-text); }

/* 카드 */
.card {
  background: var(--c-cream-50);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow);
}

/* 선택지 (single/scale) */
.opt {
  display: block; width: 100%;
  padding: 14px 16px; margin-bottom: var(--sp-2);
  background: var(--c-white);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-md);
  text-align: left; font-size: 1rem;
  transition: var(--transition);
}
.opt[aria-pressed="true"] {
  border-color: var(--c-cherry-700);
  background: #FBEFF1;
  font-weight: 700;
}

/* 칩 (multi/text-chips) */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: 10px 14px;
  background: var(--c-white);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  transition: var(--transition);
}
.chip[aria-pressed="true"] {
  border-color: var(--c-cherry-700);
  background: #FBEFF1;
  font-weight: 700;
}

/* 척도 버튼 줄 (scale 1~5) */
.scale-row { display: flex; gap: var(--sp-2); }
.scale-row .opt { flex: 1; text-align: center; margin-bottom: 0; padding: 14px 0; }
.scale-labels { display: flex; justify-content: space-between; margin-top: var(--sp-2); font-size: 0.85rem; color: var(--c-text-muted); }

/* 슬라이더 (1~10) */
.slider-wrap { padding: var(--sp-3) 0; }
input[type="range"] {
  width: 100%; accent-color: var(--c-cherry-700); height: 32px;
}
.slider-value {
  text-align: center; font-size: 1.6rem; font-weight: 800; color: var(--c-cherry-700);
  margin-bottom: var(--sp-2);
}

/* 텍스트 입력 */
.field {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--c-white);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-md);
}
.field:focus { border-color: var(--c-cherry-600); outline: none; }

/* 진행바 */
.progress { height: 6px; background: var(--c-cream-200); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar { height: 100%; background: var(--c-cherry-700); border-radius: var(--radius-pill); transition: width 0.25s ease; }

/* 체크박스 줄 */
.check-row { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) 0; }
.check-row input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--c-cherry-700); flex: none; }
.check-row label { font-size: 0.95rem; line-height: 1.5; }

/* 배지·보조 */
.badge {
  display: inline-block; padding: 4px 12px;
  background: var(--c-beige-300); color: var(--c-burgundy-900);
  border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700;
}
.muted { color: var(--c-text-muted); font-size: 0.9rem; }
.error-msg { color: var(--c-danger); font-size: 0.9rem; margin-top: var(--sp-2); display: none; }
.error-msg.show { display: block; }

/* 심각도 팔로업 박스 */
.severity-box {
  margin-top: var(--sp-3); padding: var(--sp-4);
  background: var(--c-cream-200); border-radius: var(--radius-md);
}
.severity-box h4 { margin: 0 0 var(--sp-2); font-size: 0.95rem; }
