(function () {
    'use strict';

    var form = document.querySelector('.eyewvitr-form');

    if (!form) {
        return;
    }

    form.addEventListener('submit', function () {
        var button = form.querySelector('.eyewvitr-btn--primary');

        if (button) {
            button.disabled = true;
            button.style.opacity = '0.75';
        }
    });
})();
