#your_form_id .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


#your_form_id .wpcf7-checkbox .wpcf7-list-item {
    flex: 1 1 48%; /* Makes each item take 50% of the row, creating two columns */
    margin: 0;
    padding: 8px 12px;
    background-color: #f8f9ff;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn’t affect width */
}

/* Optional: Adjust styling for the label if needed */
#your_form_id .wpcf7-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Style the checkbox input */
#your_form_id .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    margin: 0;
    accent-color: #7733ee;
    width: 16px;
    height: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #your_form_id .wpcf7-checkbox .wpcf7-list-item {
        flex: 1 1 100%; /* Each checkbox item will take the full width on smaller screens */
    }
}
