.custom-check-box label {
  display: block;
}
.custom-check-box input[type=checkbox] {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 4px;
  left: 0;
}
.custom-check-box input[type=checkbox]:checked + .box:after {
  display: block;
}
.custom-check-box input[type=checkbox].is-invalid + .box:before {
  border-color: #dc3545;
}
.custom-check-box .box {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  display: inline-block;
}
.custom-check-box .box:before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: 1px solid var(--extra-medium-gray);
  position: absolute;
  top: 5px;
  left: 0;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}
.custom-check-box .box:after {
  position: absolute;
  left: 7px;
  top: 9px;
  content: "";
  width: 6px;
  height: 10px;
  display: none;
  border: solid var(--dark-gray);
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
