label input {
    display: none; /* Hide the default checkbox */
}

/* Style the artificial checkbox */
label span {
    background: #F4F5FB;
    border: 1px solid #DDE0E9;
    border-radius: 6px;
    width: 23.5px;
    height: 23px;
    display: inline-block;
}

/* Style its checked state...with a ticked icon */
[type=checkbox]:checked + span:not(.wpcf7-list-item-label) {
    background: #3D60E6;
}

[type=checkbox]:checked + span:before {
    content: '\2713';
    position: absolute;
    top: 0;
    left: 6px;
    color: #fff;
}



/* custom checkbox styling for contact form 7 checkbox */
span.wpcf7-list-item {
    display: inline-block;
    margin: 0;
}
.wpcf7-acceptance label {
    position: relative;
    cursor: pointer;
}
.wpcf7-acceptance input[type=checkbox] {
    position: absolute;
    visibility: hidden;
    width: 23px;
    height: 23px;
    top: 0;
    left: 0;
}
.wpcf7-acceptance input[type=checkbox] + span:before {
    display: block;
    position: absolute;
    content: '';
    border-radius: 6px;
    height: 23px;
    width: 23px;
    top: 0px;
    left: 0px;
    background: #F4F5FB;
    border: 1px solid #DDE0E9;
}
.wpcf7-acceptance input[type=checkbox] + span:after {
    display: block;
    position: absolute;
    content: "\f00c";
    height: 23px;
    width: 23px;
    top: 0;
    left: 0;
    visibility: hidden;
    font-size: 12px;
    text-align: center;
    line-height: 23px;
    color: #fff;
    font-family: 'FontAwesome';
    background: #3D60E6;
    border-radius: 6px;
}
.wpcf7-acceptance input[type=checkbox]:checked + span:after {
    visibility: visible;
}
.wpcf7-list-item-label {
    margin-left: 35px;
}