I'm currently working on creating a stylish hover effect for my radio button with a round border. However, I'm encountering an issue where the border is appearing both inside and outside of the button when hovered over. My goal is to have the border visible only on the outside. Additionally, I am having trouble getting the fade transition to work properly. Any suggestions or advice would be greatly appreciated. Thank you.
input[type='radio'] {
width: 20px;
height: 20px;
border: 2px solid #747474;
border-radius: 50%;
outline: none;
opacity: 0.6;
transition: 0.3s;
}
input[type='radio']:hover:before {
box-shadow: 0px 0px 0px 12px rgba(80, 80, 200, 0.2);
border-radius: 50%;
opacity: 1;
}
input[type='radio']:before {
content: '';
display: block;
width: 60%;
height: 60%;
margin: 20% auto;
border-radius: 50%;
}
input[type='radio']:checked:before {
background: green;
}
<input type="radio">