/*! forms.js | Huro | Css ninja 2020-2021 */
"use strict";$((function(){if($("#form-layout-4").length){var e=document.querySelectorAll(".form-datepicker"),s=[];console.log(e.length);for(var t=0;t<e.length;t++)s[t]=new Pikaday({field:e[t],firstDay:1,format:"MMM D, YYYY",onSelect:function(){}})}if($("#form-layout-5").length){var i=0;$("#next-button").on("click",(function(){i+=1;var e=$(this);e.addClass("is-loading"),setTimeout((function(){e.removeClass("is-loading"),$("#form-step-"+i).addClass("is-active")}),800),setTimeout((function(){$(".form-help").addClass("is-hidden"),$(".steps").removeClass("is-hidden"),$(".stepper-form .steps-segment, .mobile-steps .steps-segment").removeClass("is-active"),$("#step-segment-"+i).addClass("is-active"),$("#mobile-step-segment-"+i).addClass("is-active"),$("html, body").animate({scrollTop:$("#form-step-"+i).offset().top},500)}),1200)})),$(".help-button").on("click",(function(){var e=$(this).attr("data-help");$(".steps").addClass("is-hidden"),$(".form-help").removeClass("is-hidden"),$(".form-help-inner").removeClass("is-active"),$("#"+e).addClass("is-active")})),$(".close-help-button").on("click",(function(){$(".form-help").addClass("is-hidden"),$(".steps").removeClass("is-hidden")})),$(window).on("scroll",(function(){$(window).scrollTop()>80?$(".mobile-steps").addClass("is-active"):$(".mobile-steps").removeClass("is-active")}))}}));