In the service configuration within the appointment type, you will find the checkbox Mandatory Service. By enabling this option, the service is marked as required, and the appointment can only move to completed status once that service has been finished.