/* Custom Checkbox & Radio — unified style */
.checkbox, .radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    margin: 0;
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.checkbox-wrapper picture {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #2563EB;
    border-radius: 3px;
    background: #fff;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-wrapper picture::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 7px;
    width: 3px;
    height: 12px;
    background: #2563EB;
    border-radius: 30px;
    transform: rotate(30deg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.checkbox-wrapper picture span {
    position: absolute;
    top: 8px;
    left: 2px;
    display: block;
    width: 3px;
    height: 6px;
    background: #2563EB;
    border-radius: 30px;
    transform: rotate(-30deg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.checkbox-wrapper .checkbox:checked + picture::after,
.checkbox-wrapper .checkbox:checked + picture span,
.checkbox-wrapper .checkbox:checked ~ picture::after,
.checkbox-wrapper .checkbox:checked ~ picture span {
    opacity: 1;
    visibility: visible;
}

/* Radio variant */
.checkbox-wrapper picture.radio-visual {
    border-radius: 50%;
}

.checkbox-wrapper picture.radio-visual::after {
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    background: #2563EB;
    border-radius: 50%;
    transform: scale(0);
}

.checkbox-wrapper .radio:checked + picture.radio-visual::after {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.checkbox-wrapper picture.radio-visual span {
    display: none;
}