/* selection guide와 standard chamber 페이지의 
라디오버튼과 체크박스 통일을 위한 css*/

input[type="radio"] {
  display: none;
}

.customRadio {
  width: 16px;
  height: 16px;
  border: 1px solid var(--gray); 
  border-radius: 50%;
  position: relative;
  margin-right: 0.5em;
  box-sizing: border-box;
}
input[type="radio"]:checked + .customRadio{
  border: 1px solid var(--primary);
}


/* 선택 시 내부 원 */
input[type="radio"]:checked + .customRadio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--light-primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 1;
}

/* 초기 상태: 점 안 보이게 (트랜지션 자연스럽게) */
.customRadio::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--light-primary);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}



input[type="checkbox"] {
  -webkit-appearance: none;
  position: relative;
  width: 16px;
  height: 16px;
  cursor: pointer;
  outline: none !important;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--gray-light);
}
input[type="checkbox"]::before {
  content: "\2713";
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transform: scale(0) translate(-50%, -50%);
  line-height: 1;
}

input[type="checkbox"]:hover {
  border-color: rgba(170, 170, 170, 1);
}

input[type="checkbox"]:checked {
  background-color: #ff0909;
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.9em;
}
input[type="checkbox"]:checked::before{
  border-radius: 2px;
  transform: scale(1) translate(-50%, -50%)
}