HTML
<fieldset class="crb-tick">
<legend class="crb-sr">Layout</legend>
<label><input type="radio" name="crb-tick" checked /><span></span>Compact</label>
<label><input type="radio" name="crb-tick" /><span></span>Comfortable</label>
<label><input type="radio" name="crb-tick" /><span></span>Spacious</label>
</fieldset>
CSS
.crb-tick { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; }
.crb-tick label {
display: flex; align-items: center; gap: 10px;
font: 500 13px/1 system-ui, sans-serif; color: #cbd5e1; cursor: pointer;
}
.crb-tick input { appearance: none; -webkit-appearance: none; position: absolute; opacity: 0; }
.crb-tick span {
width: 18px; height: 18px; border-radius: 50%;
border: 2px solid #444461; background: transparent;
position: relative;
transition: border-color 0.2s, background 0.3s;
}
.crb-tick span::after {
content: ''; position: absolute;
top: 50%; left: 50%;
width: 4px; height: 8px;
border: solid #fff; border-width: 0 2px 2px 0;
transform: translate(-50%, -60%) rotate(45deg) scale(0);
transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.crb-tick input:checked + span { background: #2ecc8a; border-color: #2ecc8a; }
.crb-tick input:checked + span::after { transform: translate(-50%, -60%) rotate(45deg) scale(1); }
.crb-sr {
position: absolute !important;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}