(function(){
  // v3.0.4.2.17: legacy form UX disabled to prevent double submit handlers.
  // Unified handler is assets/js/mj-v30428-popup-speed.js.
  function ready(fn){document.readyState!=='loading'?fn():document.addEventListener('DOMContentLoaded',fn)}
  ready(function(){
    window.MJFormUX = window.MJFormUX || {
      showToast:function(msg){ if(window.MJ428&&window.MJ428.toast){window.MJ428.toast({type:'info',message:msg||''});} },
      overlay:function(msg){ if(window.MJ428&&window.MJ428.loader){return window.MJ428.loader(msg||'Processing...');} },
      hideOverlay:function(){ if(window.MJ428&&window.MJ428.hideLoader){window.MJ428.hideLoader();} },
      validate:function(){ return true; }
    };
  });
})();
