Looking to create a customized checkbox due to challenges in styling the default HTML checkbox, I have attempted the following code. The checkbox functions properly when clicking on the label, but I am unable to change the border color of the label based on the checkbox's status. Any assistance, suggestions, or recommendations would be greatly appreciated.
input[type="checkbox"]{display:none;}
label{
border:1px solid red;
width: 15px;
height:15px;
display:block;
}
label + input:checked{
border-color: blue;
}
<div>
<label>
<input type="checkbox">
</label>
</div>