add_action( 'wp_footer', 'mycustom_wp_footer' );
 
function mycustom_wp_footer() {
?>
<script type="text/javascript">
document.addEventListener( 'wpcf7mailsent', function( event ) {
    if ( '4423' == event.detail.contactFormId ) {
        location = 'https://secova.com/thank-you-demo';
    }
    if ( '4513' == event.detail.contactFormId ) {
        location = 'https://secova.com/thank-you-contact';
    }
}, false );
</script>
<?php
}

Change the ID of your contact from 7 with the id mentioned here. You can use as many forms as you want.