Contact and Calendar folder locations for iCloud

My Contacts and Calendar folder locations are currently set to Local Folders. I’d like to change these to synchronize with my iCloud account, but the folder property settings are not editable. I’d be grateful for any advice on how to modify the folder locations, and what the appropriate setting should be for an iCloud account.

Not sure if its relevant, but I have my iCloud account set in Mail, and this works perfectly.
Thanks in advance!

Problem solved by deleting the iCloud mail account and re-adding it. Now I can select Contacts and Calendars from both ‘Local Folders’ and the iCloud account. Not sure why only local folders were available previously.