// Learn about this technique:
// @link https://moderncss.dev/pure-css-custom-styled-radio-buttons/

.form-control:focus-within {
  color: var(--form-control-color);
}

input[type="radio"] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  appearance: none;
  /* For iOS < 15 */
  background-color: rgba(0,0,0,0.3);
  /* Not removed via appearance */
  margin: 8px 20%;

  font: inherit;
  color: currentColor;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  transform: translateY(-0.075em);

  display: grid;
  place-content: center;
}

input[type="radio"]::before {
  content: "";
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  /* Windows High Contrast Mode */
  background-color: #fff;
}

input[type="radio"]:checked::before {
  transform: scale(1);
}
