<form class="form-inline" id="drip-embedded-subscribe-form" target="_blank"
	  action="https://www.getdrip.com/forms/250437573/submissions"
	  method="post" data-drip-embedded-form="250437573">

	{{ icwp_macros.formInput_Text( 'fields[first_name]', vars.name, 'Your Name', vars.name ) }}
	{{ icwp_macros.formInput_Email( 'fields[email]', vars.user_email, 'Your Email',
		vars.user_email, 'We never SPAM and you can remove yourself at any time.' ) }}
	{{ icwp_macros.formInput_Checkbox(
		'OptinConsent', 'Y', 'Agree To Privacy Policy',
		strings.privacy_policy,
		'We treat your membership information under our strict, and GDPR-compliant, privacy policy.',
		'OptinConsent'
	) }}
	{{ icwp_macros.formInput_Submit( 'Sign-Up', 'subscribe' ) }}
</form>

<script type="text/javascript">
	jQuery( document ).ready( function ( $ ) {
		let $oSubButton = $( 'form#drip-embedded-subscribe-form button' );
		let $oCheck = $( '#OptinConsent' );
		$oSubButton.attr( "disabled", "disabled" );
		$( document ).on( 'change', $oCheck, function () {
			$oSubButton.prop( "disabled", !$oCheck.is( ":checked" ) );
		} );
	} );
</script>