/* Custom Checkbox Styling - UIverse inspired */

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  flex-direction: column;
}

.checkbox-wrapper-46 {
  position: relative;
}

.inp-cbx {
  display: none;
}

.cbx {
  display: block;
  user-select: none;
  cursor: pointer;
  padding-left: 38px;
  line-height: 30px;
  position: relative;
  font-weight: 400;
  color: #333;
  transition: all 0.3s ease;
  font-size: 17px;
}

.cbx:hover {
  color: #dd384c;
}

.cbx::before {
  content: "";
  width: 25px;
  height: 25px;
  border: 2px solid #d2d2d2;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.cbx::after {
  content: "✓";
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top:2px;
  transition: all 0.3s ease;
  opacity: 0;
}

.inp-cbx:checked + .cbx::before {
  background-color: #dd384c;
  border-color: #dd384c;
  /* box-shadow: 0 0 8px rgba(0, 168, 107, 0.3); */
}

.inp-cbx:checked + .cbx::after {
  opacity: 1;
  animation: checkmark 0.3s ease;
}

.inp-cbx:checked + .cbx {
  color: #dd384c;
  font-weight: 600;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Radio Button Styling */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.radio-wrapper {
  position: relative;
}

.inp-radio {
  display: none;
}

.radio-label {
  display: block;
  user-select: none;
  cursor: pointer;
  padding-left: 38px;
  line-height: 30px;
  position: relative;
  font-weight: 400;
  color: #333;
  transition: all 0.3s ease;
  font-size: 17px;
}

.radio-label:hover {
  color: #dd384c;
}

.radio-label::before {
  content: "";
  width: 25px;
  height: 25px;
  border: 2px solid #d2d2d2;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.radio-label::after {
  content: "";
  width: 15px;
  height: 15px;
  background-color: #dd384c;
  border-radius: 50%;
  position: absolute;
  left: 5px;
  top: 8px;
  opacity: 0;
  transition: all 0.3s ease;
}

.inp-radio:checked + .radio-label::before {
  border-color: #dd384c;
  background-color: #fff;
  /* box-shadow: 0 0 8px rgba(0, 168, 107, 0.3); */
}

.inp-radio:checked + .radio-label::after {
  opacity: 1;
  animation: radiocheck 0.3s ease;
}

.inp-radio:checked + .radio-label {
  color: #dd384c;
  font-weight: 600;
}

@keyframes radiocheck {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .checkbox-group {
    gap: 15px;
  }

  .cbx,
  .radio-label {
    font-size: 14px;
  }
}
