.wpcf7-form {
    background: #FFF;
    border-radius: 30px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.15);
    padding: 30px 40px;
    margin-top: 40px;
}
    .wpcf7-form label {
        width: 100%;
        font-size: 14px;
        font-weight: 500;
    }
    .wpcf7-form :place {
        width: 100%;
        font-size: 14px;
        font-weight: 500;
    }
    .post-password-form input[type=password],
    .wpcf7-form textarea,
    .wpcf7-form input[type=text],
    .wpcf7-form input[type=email]{
        width: 100%;
        line-height: 32px;
        padding: 10px;
        font-size: 18px;
        border: 1px solid #DDD;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .post-password-form input[type=password] {
        max-width: 300px;
    }
    .wpcf7-form textarea::placeholder,
    .wpcf7-form input[type=text]::placeholder,
    .wpcf7-form input[type=email]::placeholder{
        color: #222;
    }
    .wpcf7-form input[type=radio] {
        width: 20px;
        box-sizing: border-box;
        padding: 0;
    }
    .wpcf7-form textarea {
        height: 130px;
    }

    .wpcf7-form .wpcf7-submit {
        padding: 4px 20px;
        border-radius: 30px;
        display: inline-block;
        line-height: 40px;
        text-decoration: none;
        background: #222;
        display: inline-block;
        font-weight: 500;
        color: #FFF;
        width: auto;
        border: 0;
        font-size: var(--font-size-base);
        font-family: var(--font-body);
    }

    .wpcf7-form p.disclaimer {
        width: 100%;
        margin: 10px 0 20px;
        font-size: 14px;
        line-height: 22px;
        color: #666;
    }
    .wpcf7-radio .wpcf7-list-item, .wpcf7-checkbox .wpcf7-list-item {
        display: block;
        margin-left: 0px;
    }

    .wpcf7-radio:after, 
    .wpcf7-checkbox:after {
        content: "";
        display: block;
        height: 15px;
    }

    .wpcf7 .wpcf7-list-item {
        display: block;
        margin-bottom: 5px;
    }

    .wpcf7-form .wpcf7-radio label {
        position: relative;
        cursor: pointer;
        line-height: 35px;
    }
    .wpcf7-form .wpcf7-radio label span {
        line-height: 35px;
        font-size: 1.15em;
        padding-top: 10px;
    }

    .wpcf7-form .wpcf7-radio input[type=radio] {
        position: relative;
        visibility: hidden;
    }

    .wpcf7-form .wpcf7-radio input[type=radio] + span:before {
        display: block;
        position: absolute;
        content: '';
        border-radius: 100%;
        height: 24px;
        width: 24px;
        top: -3px;
        border: 1px solid #CCC;
    }

    .wpcf7-form .wpcf7-radio input[type=radio] + span:after {
        display: block;
        position: absolute;
        content: '';
        border-radius: 100%;
        height: 18px;
        width: 18px;
        top: 0px;
        left: 3px;
        visibility: hidden;
    }

    .wpcf7-form .wpcf7-radio input[type=radio]:checked + span:before {
        background: transparent;
    }


    .wpcf7-form .wpcf7-radio input[type=radio], 
    .wpcf7-form .wpcf7-list-item input[type=checkbox] {
        margin-right: 10px;
    }

    .wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=radio]:checked + span:after {
        background: #FF8800;
        visibility: visible;
    }

    /* Verberg de native checkbox */
.wpcf7-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Layout van elk checkbox-item */
.wpcf7-checkbox .wpcf7-list-item {
    display: block;
    margin-bottom: 10px;
}

.wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

/* De custom checkbox via :before op de label-span */
.wpcf7-checkbox .wpcf7-list-item-label {
    position: relative;
    padding-left: 34px;
    line-height: 22px;
    font-size: 17px;
}

.wpcf7-checkbox .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #aaa;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Het vinkje via :after */
.wpcf7-checkbox .wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 7px;
    height: 12px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s;
}

/* Checked state */
.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
    background-color: #922A7C; /* jouw brandkleur */
    border-color: #922A7C;
}

.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    opacity: 1;
}

/* Focus state voor toegankelijkheid */
.wpcf7-checkbox input[type="checkbox"]:focus + .wpcf7-list-item-label::before {
    outline: 2px solid #922A7C;
    outline-offset: 2px;
}

/* Hover state */
.wpcf7-checkbox .wpcf7-list-item-label:hover::before {
    border-color: #2e7d32;
}
