Read that article on Snippets that I linked above. That explains how you use an action hook to run gravity_form_enqueue_scripts() from anywhere.
You can write a plugin to make your customisations without making modifications to your theme. You can read about writing plugins in the Plugin Handbook: