/* =======================
   RADIOFIX.CSS - fieldset variant
   ======================= */

/* Zet labels op een eigen regel */
fieldset label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
  border-bottom: 1px solid #ccc;
  position: relative;
}

/* Laatste label zonder onderlijn */
fieldset label:last-of-type {
  border-bottom: none;
}

/* Input radiobutton zichtbaar houden */
fieldset input[type="radio"] {
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  margin: 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
}

/* Stijl de bolletjes */
span.n-radio {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #5f9823; /* donkergroen */
  box-sizing: border-box;
  pointer-events: none;
}

/* Geselecteerde bolletje opvullen */
input[type="radio"]:checked + .n-radio {
  background-color: #5f9823;
  box-shadow: inset 0 0 0 4px #fff;
}

/* Focus voor toetsenbordgebruikers */
input[type="radio"]:focus + .n-radio,
input[type="radio"]:focus-visible + .n-radio {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.4);
  border-radius: 4px;
}

/* Hover op de hele regel */
fieldset label:hover {
  background-color: #f5f5f5;
}


fieldset input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 2px solid #4d8532; /* jouw veilige donkergroen */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-right: 0.6em;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}

fieldset input[type="radio"]:checked {
  background-color: #4d8532; /* donkergroen als vulling */
}

fieldset input[type="radio"]:focus {
  outline: 2px solid #0066cc; /* blauw randje bij toetsenbordnavigatie */
  outline-offset: 2px;
}
