.form-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  font-size: 16px;
  line-height: 24px;
  height: 40px;
}

.form-control > input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;

  z-index: -1;
  position: absolute;
  left: -10px;
  top: 0;
  display: flex;
  margin: 0;
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  background-color: #5f6368;
  opacity: 0;
  transform: scale(1);
  outline: none;
  pointer-events: none;
}

.form-control > span {
  display: inline-flex;
  width: 100%;
  cursor: pointer;
}
.form-control > span::before {
  content: '';
  box-sizing: border-box;
  display: inline-flex;
  margin: auto 20px auto 0;
  border: solid 2px #5f6368;
  border-radius: 9999px;
  width: 20px;
  height: 20px;
}
.form-control > span::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  display: flex;
  border-radius: 9999px;
  width: 10px;
  height: 10px;
  background-color: #1967d2;
  transform: translate(5px, 5px) scale(0);
}

.form-control > input:checked {
  background-color: #1967d2;
}
.form-control > input:checked + span::before {
  border-color: #1967d2;
}
.form-control > input:checked + span::after {
  transform: translate(5px, 5px) scale(1);
}

.form-control > input:hover {
  background-color: rgba(60, 64, 67, 0.1);
  opacity: 1;
}
.form-control:hover > input + span::before {
  border-color: #3c4043;
}
.form-control:hover > input + span::after {
  background-color: #3c4043;
}

.form-control > input:hover:checked {
  background-color: rgba(66, 133, 244, 0.12);
  opacity: 1;
}
.form-control:hover > input:checked + span::before {
  border-color: #174ea6;
}
.form-control:hover > input:checked + span::after {
  background-color: #174ea6;
}
