<footer>
    <img src="<?php echo get_template_directory_uri(); ?>/assets/images/footer-bg.png" alt="" class="bg-img">
    <div class="container">
        <div class="row">
            <div class="col-lg-4 col-md-12">
                <a href="index.php" class="logo"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/logo-footer.svg" alt=""></a>
                <p>Providing your business with access to the world's leading money market funds.</p>
                <ul class="social-icon">
                    <li><a href="#?"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/facebook.svg" alt=""></a></li>
                    <li><a href="#?"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/x.svg" alt=""></a></li>
                    <li><a href="#?"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/instagram.svg" alt=""></a></li>
                    <li><a href="#?"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/linkedin.svg" alt=""></a></li>
                </ul>
            </div>
            <div class="col-lg-2 col-md-3">
                <h5>Quick Links</h5>
                <ul class="footer-menu">
                    <li><a href="#?">Home</a></li>
                    <li><a href="#?">About</a></li>
                    <li><a href="#?">Resources</a></li>
                    <li><a href="#?">Contact</a></li>
                </ul>
            </div>
            <div class="col-lg-2 col-md-3">
                <h5>Others</h5>
                <ul class="footer-menu">
                    <li><a href="#?">Terms & Condition</a></li>
                    <li><a href="#?">Privacy Policy</a></li>
                </ul>
            </div>
            <div class="col-lg-4 col-md-6">
                <h5>Subscribe to our newsletter</h5>
                <div class="form-wraper">
                    <form action="">
                        <input type="search" name="" id="" placeholder="Enter your email address">
                        <input type="submit" value="">
                    </form>
                </div>
                <p class="m-0">You may unsubscribe at any moment. For that purpose, please find our contact info in the legal notice.</p>
            </div>
            <div class="col-lg-12">
                <h6>Copyright © 2024 Money Fund Market. All Right Reserved.</h6>
            </div>
        </div>
    </div>
</footer>


<script>
    jQuery(document).on('submit', '.wpcf7-form', function (e) {
        const $form = jQuery(this);
        const $submitButton = $form.find('[type="submit"]');

        // Disable the submit button to prevent multiple clicks
        $submitButton.prop('disabled', true);

        // Re-enable the button after a delay (e.g., 3 seconds) in case of failure
        setTimeout(function () {
            $submitButton.prop('disabled', false);
        }, 3000);

        // Find the first invalid field
        const $invalidField = $form.find(':invalid').first();

        if ($invalidField.length) {
            e.preventDefault(); // Stop form submission
            $invalidField[0].reportValidity(); // Show validation message for the first invalid field
        }

    });
</script>
<?php wp_footer(); ?>
</body>
</html>

