/* 비대면 진료 동의 섹션 */
.consent-section {
  margin-top: 30px;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
}
.consent-header {
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff5f9 0%, #fff 100%);
  border-bottom: 1px solid #f0f0f0;
}
.consent-title {
  font-size: 14px;
  font-weight: 800;
  color: #5B1530;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.consent-subtitle {
  font-size: 11px;
  color: #888;
  line-height: 1.55;
}

/* 전체 동의 행 (강조) */
.consent-all-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fafafa;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  user-select: none;
}
.consent-all-row .consent-label {
  font-size: 14px;
  font-weight: 800;
  color: #222;
  flex: 1;
}
.consent-all-row.checked { background: #fff5f9; }
.consent-all-row.checked .consent-label { color: #E8366A; }

/* 개별 동의 행 */
.consent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  user-select: none;
}
.consent-row:last-of-type { border-bottom: none; }
.consent-row .consent-label {
  flex: 1;
  font-size: 13px;
  color: #333;
  line-height: 1.55;
}
.consent-row.checked .consent-label { color: #1a1a1a; }
.consent-tag-req {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #E8366A;
  background: #ffe2ec;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}
.consent-tag-opt {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #777;
  background: #efefef;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}
.consent-view-btn {
  background: none;
  border: none;
  color: #E8366A;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  font-family: inherit;
  text-decoration: underline;
  white-space: nowrap;
}
.consent-view-btn:hover { color: #cc2457; }

/* 체크박스 */
.consent-check {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1.8px solid #d0d0d0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.consent-check::after {
  content: '';
  width: 11px;
  height: 6px;
  border-left: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
  transform: rotate(-45deg) translate(1px, -1px);
  transition: border-color 0.15s;
}
.consent-row.checked .consent-check,
.consent-all-row.checked .consent-check {
  background: #E8366A;
  border-color: #E8366A;
}
.consent-row.checked .consent-check::after,
.consent-all-row.checked .consent-check::after {
  border-left-color: #fff;
  border-bottom-color: #fff;
}

/* 필수 미선택 에러 */
.consent-row.error {
  background: #fff0f5;
}
.consent-row.error .consent-check {
  border-color: #E8366A;
  animation: shake .35s ease;
}
