Smart Solar Savings

Quick Free Solar Quote

Only takes 60 seconds.

Who's your electric utility provider?
$

To be pasted in Survey CSS box

/* Custom styles for radio button with highlight effect */

.form-builder--wrap-questions .form-builder--item .option-radio label {

padding-top: 5px !important;

padding-bottom: 5px !important;

padding-right: 5px !important;

padding-left: 35px !important;

display: block !important;

width: 100% !important;

border-radius: 3px !important;

margin-bottom: 10px !important;

border: 1px solid #c3c3c3!important;

background: #cdcdcd;

}

.form-builder--wrap-questions .form-builder--item .option-radio label:hover {

border: 1px solid #049537!important; // be sure to change this color to match your own

background-color: #80e2ac!important; // be sure to change this color to match your own

color: #ffffff !important; // be sure to change this color to match your own

}

.form-builder--wrap-questions .form-builder--item .option-radio label.checked {

border: 1px solid #5e00b5!important; // be sure to change this color to match your own

background-color: #00b564!important; // be sure to change this color to match your own

color: #ffffff !important; // be sure to change this color to match your own

}

.hl-app #_builder-form, label.checked::before {

border: 3px solid #000!important; // be sure to change this color to match your own

background: #fff !important; // be sure to change this color to match your own

}

.option-radio label::before {

top: 8px !important;

left: 8px !important;

}

.option-radio input[type="radio"] + label::after {

font-family: FontAwesome !important;

content: "\f00c" !important;

border: 1px solid #e4ff00!important; // be sure to change this color to match your own

background-color: #0ec760 !important; // be sure to change this color to match your own

font-size: 0px !important;

top: 7px !important;

left: 7px !important;

}

.option-radio input[type="radio"] + label.checked::after {

opacity: 1 !important;

border: none !important;

background-color: #ffffff !important; // be sure to change this color to match your own

color: #00b564!important; // be sure to change this color to match your own

}

To be pasted in HTML element inside survey builder

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>


<style>


.progress {

height: 45px;

margin-bottom: 0;

overflow: hidden;

background-color: #f5f5f5;

border-radius: 10px;

-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);

box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);

border: 3px solid #5c5c5c;


}


.progress-bar.active,

.progress.active .progress-bar {

-webkit-animation: progress-bar-stripes 3s linear infinite;

-o-animation: progress-bar-stripes 3s linear infinite;

animation: progress-bar-stripes 3s linear infinite;

}


.progress-bar-striped,

.progress-striped .progress-bar {

background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);

background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);

background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);

-webkit-background-size: 40px 40px;

background-size: 40px 40px;

}


.progress-bar {

float: left;

width: 0%;

height: 100%;

font-size: 18px;

line-height: 25px;

color: #fff;

text-align: center;

background-color: #00bd78;

-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);

box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);

-webkit-transition: width 1.5s ease;

-o-transition: width 1.5s ease;

transition: width 1.5s ease;

align-items: center;

display: flex;

padding-left: 20px;

}


@-webkit-keyframes progress-bar-stripes {

from {

background-position: 40px 0;

}


to {

background-position: 0 0;

}

}


@keyframes progress-bar-stripes {

from {

background-position: 40px 0;

}


to {

background-position: 0 0;

}

}


.ghl-button-bar {

display: none !important;

}


div.progress-bar.progress-bar-striped.active {

background-color: #7cd700;

}


div.progress {

height: 40px;

border-radius: 50px;

margin-bottom: 20px;

}

.hl-app {

font-family: Roboto, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol !important;

color: #117d46!important;

line-height: 1.7 !important;

-webkit-font-smoothing: antialiased !important;

-moz-osx-font-smoothing: grayscale !important;

padding: 0 !important;

min-height: 100% !important;

font-size: 24px !important;

font-weight: 400 !important;

line-height: 1.8 !important;

width: 100% !important;

margin: 0 auto !important;

}



.multiselect__content-wrapper {

position: absolute !important;

display: block;

background: #afffd6;

width: 100% !important;

max-height: 240px !important;

overflow: auto !important;

border: 1px solid #e8e8e8 !important;

border-top: none !important;

border-bottom-left-radius: 5px !important;

border-bottom-right-radius: 5px !important;

z-index: 50 !important;

-webkit-overflow-scrolling: touch !important;

}




.hl-app #form-builder {

width: 100%;

display: block;

justify-content: center;

align-items: center;

margin: 0 auto;

padding: 0;

}


.hl-app .hl_form-builder--main {

padding: 0 !important;

overflow: auto !important;

margin: 0 auto !important;

}



#_builder-form>div.ghl-footer {

background: #029165f7;

position: relative;

bottom: 0;

top: auto;

left: 0;

right: 0;

width: 100%;

margin: 0 auto;

padding: 0;

height: 50px;

box-shadow: none !important;

z-index: 0;

overflow: none;

text-align: center;

display: block;

border-radius: 0 0 6px 6px !important;

}


#_builder-form>div.ghl-question-set.ghl-ques-wrap-big>div.form-builder--wrap-questions.ghl-question.ghl-page-current>div {

margin: 0;

display: flex;

flex-direction: row;

flex-wrap: nowrap;

}


.hl-app .ghl-question-set {


padding: 10px !important;

}



.hl-app .ghl-question-set.ghl-ques-wrap-big .custom-vue-select.form-control,

.hl-app .ghl-question-set.ghl-ques-wrap-big input[type=email],

.hl-app .ghl-question-set.ghl-ques-wrap-big input[type=number],

.hl-app .ghl-question-set.ghl-ques-wrap-big input[type=phone],

.hl-app .ghl-question-set.ghl-ques-wrap-big input[type=text],

.hl-app .ghl-question-set.ghl-ques-wrap-big textarea {

width: 100% !important;

margin: 0 auto !important;

}


.hl-app .multi_select_form .multiselect__input {

padding: 0 !important;

line-height: normal !important;

display: none;

}


#_builder-form {

-webkit-perspective: none !important;

perspective: none !important;

-webkit-transform-style: flat !important;

transform-style: flat !important;

position: relative !important;

overflow-y: visible !important;

zoom: 1 !important;

z-index: 0 !important;

border-radius: 5px 5px 5px 5px !important;

background: #ffffff !important;

border-top: 3px solid #a0a0a0!important;

padding: 0 !important;

border-left: 3px solid #a0a0a0!important;

border-right: 3px solid #a0a0a0!important;

border-bottom: 3px solid #a0a0a0!important;

}


#_builder-form>div.ghl-footer>div.ghl-button-bar>div>button {

background-color: #3a8ea800 !important;

}


.hl-app .ghl-button-bar .ghl-next-button .right-pointing-triangle::after {

content: " ➢ Next" !important;

font-family: 'Spartan', sans-serif !important;

font-size: 24px !important;

font-weight: 600 !important;

letter-spacing: 0 !important;

}


.hl-app .ghl-button-bar .ghl-next-button {

float: right;

height: 40px;

width: auto;

min-width: 50px;

margin: 5px !important;

text-align: center;

border: 0;

border-radius: 4px;

padding: 0 15px;

font-weight: 600;

font-family: roboto !important;

}


#_builder-form>div.ghl-footer>div.ghl-progress-bar {

position: relative !important;

bottom: 0 !important;

width: 100% !important;

height: 20px !important;

zoom: 1 !important;

-moz-zoom: 2 !important;

line-height: 20px !important;

clear: both !important;

justify-content: center !important;

align-items: center !important;

top: 20px !important;

left: 0% !important;

display: none !important;

flex-wrap: nowrap !important;

flex-direction: row !important;

margin: 0 auto !important;

}


#_builder-form>div.ghl-footer>div.ghl-progress-bar>div.ghl-progress-bar-text {

color: #fff;

background-color: #214a41!important;

font-size: 16px !important;

width: 100px !important;

text-align: center !important;

border-radius: 20px 0 0 20px !important;

float: left !important;

height: 10px !important;

display: flex !important;

flex-wrap: nowrap !important;

justify-content: center !important;

align-items: center !important;

flex-direction: row !important;

}


#_builder-form>div.ghl-footer>div.ghl-progress-bar>div.ghl-progress-bar-background {

width: 95% !important;

background-color: #d6dee8 !important;

border-left: 1px solid #fff !important;

float: left !important;

border-radius: 0 20px 20px 0 !important;

display: flex !important;

flex-wrap: nowrap !important;

justify-content: left !important;

align-items: center !important;

height: 30px !important;

padding: 0 !important;

margin: 0 auto !important;

flex-direction: row !important;

}




#_builder-form>div.ghl-footer>div.ghl-progress-bar>div.ghl-progress-bar-background>div {

background-color: #254c5d!important;

height: 100% !important;

border-radius: 0 20px 20px 0 !important;

}


#_builder-form label {

color: #000000 !important;

margin-bottom: 8px !important;

margin-left: 2px !important;

font-size: 22px !important;

font-weight: 400 !important;

line-height: 1.3em !important;

font-family: Poppins;

}


#nextButton {

color: #fff !important;

background-color: #06a86d!important;

font-size: 16px !important;

}


#_builder-form>div.row {

display: -webkit-box !important;

display: flex !important;

flex-wrap: wrap !important;

margin-right: 0;

margin-left: 0;

margin-bottom: 30px !important;


}


#_builder-form>div.ghl-question-set.ghl-ques-wrap-big>div.form-builder--wrap-questions.ghl-question.ghl-page-current>div>div>div>div>div>div {

display: flex !important;

flex-grow: 1 !important;

flex-wrap: wrap !important;

}


.hl-app .option-radio label,

.hl-app .option label {

line-height: 1.3em !important;

display: flex !important;

flex-wrap: wrap !important;

cursor: pointer !important;

margin-bottom: 20px !important;

font-size: 20px !important;

margin-left: 5px !important;

padding-right: 60px !important;

padding-left: 30px !important;

font-family: 'Spartan', sans-serif !important;

padding-top: 7px !important;

padding-bottom: 5px !important;

}


.hl-app .option label::before {

content: "" !important;

display: flex !important;

width: 20px !important;

height: 20px !important;

border-radius: 2px !important;

border: 2px solid #e6edf2 !important;

background: #fff !important;

position: absolute !important;

top: 8px !important;

left: 8px !important;

box-sizing: border-box !important;

}


.hl-app .option label::after {

content: "✓" !important;

display: flex !important;

width: 20px !important;

height: 20px !important;

border-radius: 2px !important;

border: 2px solid #e6edf2 !important;

background: #fff !important;

position: absolute !important;

top: 8px !important;

left: 8px !important;

box-sizing: border-box !important;

border: 1px solid #006deb !important;

background-color: #006deb !important;

}


.hl-app .option-radio label::before {

content: "";

display: block;

width: 20px;

height: 20px;

border-radius: 10px;

border: 2px solid #8c918f;

background: #fff;

position: absolute;

top: 7px !important;

left: 8px !important;

box-sizing: border-box;

}


.hl-app .option-radio label::after {

content: "✓" !important;

display: block;

width: 20px;

height: 20px;

border-radius: 10px;

border: 2px solid #00d26a!important;

background: #1eb46a !important;

position: absolute;

top: 7px !important;

left: 8px !important;

box-sizing: border-box;

}


.hl-app input[type=email],

.hl-app input[type=number],

.hl-app input[type=password],

.hl-app input[type=text],

.hl-app textarea {

width: 100% !important;

margin: 0 auto !important;

border: 1.5px solid #D4D9E3 !important;

background-color: #fff !important;

height: 50px !important;

font-family: 'Spartan', sans-serif !important;

font-size: 18px !important;

font-weight: 400;

padding: 0 8px !important;

}


.hl-app input[type=email]:hover,

.hl-app input[type=number]:hover,

.hl-app input[type=password]:hover,

.hl-app input[type=text]:hover,

.hl-app textarea:hover {

border: 2px solid #0e9567 !important;

}




#_builder-form>div.ghl-question-set.ghl-ques-wrap-big>div.form-builder--wrap-questions.ghl-question.ghl-page-current>div>div>div>div>div>div>div>div.multiselect__tags>input {

display: none !important;

}


.hl-app .form-builder--wrap-questions .col-6,

.hl-app .form-builder--wrap-questions .col-12,

.hl-app .form-builder--wrap-questions .form-builder--item,

.hl-app .form-builder--wrap-questions .row {

padding: 0px 5px 0px 5px !important;

}


.hl-app .h1,

.hl-app .h3,

.hl-app .h6 h1,

.hl-app h3,

.hl-app h6 {

font-family: poppins;

font-weight: 500;

line-height: 1.3;

color: inherit;

display: flex;

justify-content: center;

align-items: center;

margin: 0 auto;

padding: 50px;

text-align: center;

}



.multiselect {

box-sizing: content-box !important;

display: block !important;

position: relative !important;

width: 100% !important;

min-height: 40px !important;

text-align: left !important;

color: #35495e !important;

}


.multiselect__tag-icon:after {

content: "\D7" !important;

color: #ffffff !important;

font-size: 18px !important;

}


.multiselect__tag {

position: relative;

display: inline-block;

padding: 4px 26px 4px 10px;

border-radius: 5px;

margin-right: 10px;

color: #fff;

line-height: 1;

background: #eea400!important;

margin-bottom: 5px;

white-space: nowrap;

overflow: hidden;

max-width: 100%;

text-overflow: ellipsis;

}



.hl-app .multi_select_form .multiselect__option--highlight:hover {

color: #ffffff !important;

background-color: #2ed0be !important;

}


.hl-app .multiselect__content-wrapper {

box-shadow: 0 8px 16px 5px rgba(90, 172, 255, 0.12) !important;

max-height: 300px !important;

width: 100% !important;

padding: 8px !important;

margin-top: 1px !important;

background: #fff !important;

}


.hl-app .option,

.hl-app .option-radio {

display: -webkit-box !important;

display: flex !important;

-webkit-box-align: center !important;

align-items: center !important;

position: relative !important;

width: 50% !important;

}


.hl-app .ghl-question-set {

-webkit-perspective: none !important;

perspective: none !important;

-webkit-transform-style: flat !important;

transform-style: flat !important;

margin-top: 0px !important;

position: relative !important;

overflow-y: visible !important;

zoom: 1 !important;

z-index: 99999999999999999999999999999999999999 !important;

min-height: 250px !important;

display: flex !important;

align-items: center !important;

animation-fill-mode: both !important;

padding: 20px 0 !important;

}



#row-QVeWYMIum,

#col-8tIdrnUM,

#col-gr34r0Xm {

margin: 0 auto !important;

padding: 0 !important;

display: flex !important;

}


@media only screen and (max-width: 750px) {


#_builder-form>div.ghl-question-set.ghl-ques-wrap-big>div.form-builder--wrap-questions.ghl-question.ghl-page-current>div {

flex-direction: column !important;

flex-wrap: wrap !important;

}



.hl-app .hl_form-builder--main {

padding: 0 !important;

overflow: auto !important;

margin-top: 0 auto !important;

display: block !important;

justify-content: center !important;

align-items: center !important;

}




}


@media only screen and (max-width: 832px) {



.hl-app .hl_form-builder--main {

padding: 0 !important;

overflow: auto !important;

margin-top: 0 auto !important;

display: block !important;

justify-content: center !important;

align-items: center !important;

}


}



@media only screen and (max-width: 450px) {


#_builder-form>div.ghl-footer {

height: 50px !important;

}


.hl-app .option,

.hl-app .option-radio {

width: 100% !important;

}


.hl-app {

width: 95% !important;

}



}


@media only screen and (max-width: 360px) {


#_builder-form>div.ghl-footer {

height: 50px !important;

}


.hl-app .option,

.hl-app .option-radio {

width: 100% !important;

}


.hl-app {

width: 95% !important;

}



}


.jfCard-actions {

padding: 0;

position: relative;

}


.jfCard-actions {

border-radius: 0 0 6px 6px;

background-color: #eea400;

}


.jfCard-actions {

text-align: center;

}


.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forPrev {

border-bottom-left-radius: 6px;

text-align: left;

}


.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater) {

width: 50%;

border: none;

padding: 0.5em 2.5em;

background: #00bb6e;

font-weight: 400;

letter-spacing: 0.13em;

margin: 0;

text-transform: uppercase;

position: relative;

z-index: 1;

-webkit-transition: 0.3s;

-o-transition: 0.3s;

transition: 0.3s;

-webkit-transform: none;

-ms-transform: none;

transform: none;

}


.jfInput-button.forPrev,

.jfInput-button.forPrev-heading,

.jfInput-button.forBackToForm {

color: rgba(70, 70, 96, .7);

}


body:not(.JotFormCardBuilder) input,

body.jfCardForm input,

body:not(.JotFormCardBuilder) textarea,

body.jfCardForm textarea,

body:not(.JotFormCardBuilder) select,

body.jfCardForm select,

body:not(.JotFormCardBuilder) button,

body.jfCardForm button {

font-family: "Roboto";

}


div.u-left,

button.u-left,

span.u-left,

p.u-left {

float: left;

}


.jfInput-button {

border: 2px solid #bfcbd8;

background-color: transparent;

}


.jfInput-button {

float: none;

font-size: 16px !important;

line-height: 1;

text-decoration: none;

cursor: pointer;

display: inline-block;

padding: 0.75em 1.8em;

font-weight: 300;

margin: 0;

font-family: inherit;

border: 3px solid #fff;

}


.jfInput-button:focus {

outline: 0;

-webkit-box-shadow: none;

box-shadow: none

}


.jfInput-button:hover {

outline: 0

}


.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forNext,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReviewButton,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReview,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forSubmit {

border-bottom-right-radius: 6px;

text-align: right;

border-left: 1px solid rgba(255, 255, 255, .1);

}


.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forNext:hover,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReviewButton:hover,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReview:hover,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forSubmit:hover,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forNext:active,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReviewButton:active,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReview:active,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forSubmit:active,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forNext:focus,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReviewButton:focus,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReview:focus,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forSubmit:focus {

border-left: 1px solid rgba(255, 255, 255, .1);

}


.jfInput-button.forNext,

.jfInput-button.forNext-heading {

color: #fff;

border-radius: 0 0 3px 0;

}


.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReviewButton,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forReview,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forSubmit {

background: rgba(0, 0, 0, .1);

}


.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forNext:after,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forNext-heading:after,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forPrev-heading:before,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forPrev:before,

.cf-minimal .jfWelcome-button:not(.forPrev-heading):not(.forNext-heading):after {

content: "";

width: 1.2em;

height: 0.7em;

display: inline-block;

background-size: 1.15em;

background-position: right;

position: relative;

background-repeat: no-repeat;

top: 1px;

}


.cf-minimal .jfInput-button:not(.forMobileNav).forNext:after,

.cf-minimal .jfInput-button:not(.forMobileNav).forNext-heading:after {

background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3e%3cg fill='none' fill-rule='evenodd' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3e%3cpath d='M1.7797 8.0199h20.9252l-6.2016 6.2016'/%3e%3cpath d='M16.806 1.308l5.8236 6.5842-2.9118 3.0499'/%3e%3c/g%3e%3c/svg%3e");

right: -0.7em;

}


.jfCard-actions:before,

.jfCard-actions:after {

content: " ";

display: table;

}


.cf-minimal .jfInput-button:not(.forMobileNav).forPrev:hover:before,

.cf-minimal .jfInput-button:not(.forMobileNav).forPrev-heading:hover:before {

background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3e%3cg fill='none' fill-rule='evenodd' stroke='%23bfcbd8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3e%3cpath d='M22.2203 8.0199H1.2951l6.2016 6.2016'/%3e%3cpath d='M7.194 1.308L1.3704 7.8922l2.9118 3.0499'/%3e%3c/g%3e%3c/svg%3e");

right: 0.7em;

}


.cf-minimal .jfInput-button:not(.forMobileNav).forPrev:before,

.cf-minimal .jfInput-button:not(.forMobileNav).forPrev-heading:before {

background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3e%3cg fill='none' fill-rule='evenodd' stroke='%23bfcbd8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3e%3cpath d='M22.2203 8.0199H1.2951l6.2016 6.2016'/%3e%3cpath d='M7.194 1.308L1.3704 7.8922l2.9118 3.0499'/%3e%3c/g%3e%3c/svg%3e");

right: 0.7em;

}


.jfInput-button.forNext:hover,

.jfInput-button.forNext-heading:hover {

border-color: #f79b05;

}


.jfInput-button:hover {

outline: 0;

}


div.u-right,

button.u-right,

span.u-right,

p.u-right {

float: right;

}


.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forNext:hover:after,

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater).forNext-heading:hover:after {

-webkit-animation: animateNext 1s 1;

animation: animateNext 1s 1;

}


::-webkit-scrollbar {

width: 9px;

height: 9px;

}


::-webkit-scrollbar-thumb {

border-radius: 5px;

background: rgba(0, 0, 0, 0.2);

}


::-webkit-scrollbar-track {

border-radius: 5px;

background: rgba(0, 0, 0, 0.1);

}


@media only screen and (max-width: 768px) {

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater) {

padding: 1em 1.5em;

font-size: 14px!important;

}


.jfInput-button {

font-size: 0.9em !important;

}


#nextButton {

font-size: 1em !important;

padding: 0.8em 1em;

}

}


@media only screen and (min-width: 769px) and (max-width: 1024px) {

.cf-minimal .jfInput-button:not(.forMobileNav):not(.forLink):not(.forContinueLater) {

padding: 0.5em 1.5em;

}


.jfInput-button {

font-size: 1.3em !important;

}

}


@keyframes animateNext {

25% {

right: -1.2em

}


50% {

right: -0.7em

}


75% {

right: -1em

}


100% {

right: -0.7em

}

}


@-webkit-keyframes animateNext {

25% {

right: -1.2em

}


50% {

right: -0.7em

}


75% {

right: -1em

}


100% {

right: -0.7em

}

}



/* .hl-app .ghl-page-rotateSlideInNext{-webkit-animation:slide-in-left .5s cubic-bezier(.25,.46,.45,.94) both !important;animation:slide-in-left .5s cubic-bezier(.25,.46,.45,.94) both !important}

.hl-app .ghl-page-rotateSlideInPrev {-webkit-animation:slide-in-left .5s cubic-bezier(.25,.46,.45,.94) both !important;animation:slide-in-left .5s cubic-bezier(.25,.46,.45,.94) both !important}

.hl-app .ghl-page-rotateSlideOutNext {-webkit-animation:slide-out-right .5s cubic-bezier(.55,.085,.68,.53) both !important;animation:slide-out-right .5s cubic-bezier(.55,.085,.68,.53) both !important}

.hl-app .ghl-page-rotateSlideOutPrev {-webkit-animation:slide-out-right .5s cubic-bezier(.55,.085,.68,.53) both !important;animation:slide-out-right .5s cubic-bezier(.55,.085,.68,.53) both !important} */


/* .hl-app .ghl-page-rotateSlideInNext {

-webkit-animation: none !important;

animation: none !important

}


.hl-app .ghl-page-rotateSlideInPrev {

-webkit-animation: none !important;

animation: none !important

}


.hl-app .ghl-page-rotateSlideOutNext {

-webkit-animation: none !important;

animation: none !important

}


.hl-app .ghl-page-rotateSlideOutPrev {

-webkit-animation: none !important;

animation: none !important

} */



/* @-webkit-keyframes slide-in-left {

0% {

-webkit-transform: translateX(-1000px);

transform: translateX(-1000px);

opacity: 0

}


100% {

-webkit-transform: translateX(0);

transform: translateX(0);

opacity: 1

}

}


@keyframes slide-in-left {

0% {

-webkit-transform: translateX(-1000px);

transform: translateX(-1000px);

opacity: 0

}


100% {

-webkit-transform: translateX(0);

transform: translateX(0);

opacity: 1

}

}


@-webkit-keyframes slide-out-right {

0% {

-webkit-transform: translateX(0);

transform: translateX(0);

opacity: 1

}


100% {

-webkit-transform: translateX(1000px);

transform: translateX(1000px);

opacity: 0

}

}


@keyframes slide-out-right {

0% {

-webkit-transform: translateX(0);

transform: translateX(0);

opacity: 1

}


100% {

-webkit-transform: translateX(1000px);

transform: translateX(1000px);

opacity: 0

}

} */

</style>

<script>

$(document).ready(function () {


window.surveyData;

var loaded_from_funnel = false;


// Check if survey is being loaded from direct link or funnel page

if (__NUXT__.data[0].surveyId) {

// Survey loaded directly

surveyData = __NUXT__.data[0].surveyData;

} else if (__NUXT__.state.elements.filter(el => el.meta === 'survey')[0]) {

// Survey loaded from funnel page

surveyData = __NUXT__.state.elements.filter(el => el.meta === 'survey')[0].surveyData;

}

else {

//Loaded in the popup

surveyData = __NUXT__.state.popups.filter(x => x.surveyData)[0]?.surveyData.__ob__.dep.subs[0]?.vm?.$children[0];;

loaded_from_funnel = true;

}


var progressbar = document.createElement('div');

progressbar.setAttribute('class', 'progress');

progressbar.innerHTML = "<div id='progress-bar' class='progress-bar progress-bar-striped active' role='progressbar' aria-valuenow='0' aria-valuemin='0' aria-valuemax='100' style='width:0%'>0%</div>";


$('.ghl-footer').before(progressbar);


// Define current precentage as the amount of slides divided 100

var currentPercentage = 0;

var dividedPercentage = 100 / $('.ghl-question-set').children().length;


// Adding custom styled container

var html = "<div class='cf-minimal'><div class='jfCard-actions'></div></div>";

$('.ghl-footer').append(html);


//Next button styled

var nextBtn = document.createElement('div');

nextBtn.setAttribute('id', 'next-btn');

nextBtn.innerHTML = "<button style='display:block' type='button' class='jfInput-button forNext u-right' data-component='button' aria-label='Next'>Next</button>";

nextBtn.onclick = nextorsubmit;


//Submit button styled

var submitButton = document.createElement('div');

submitButton.setAttribute('id', 'submit-btn');

submitButton.innerHTML = "<button style='display:block' type='button' id='nextButton' name='nextButton' value='Submit' class='jfInput-button forSubmit u-right' data-component='button' aria-label='Submit'>Submit</button>";

submitButton.onclick = nextorsubmit;


//Custom next or submit called

function nextorsubmit() {

//Check if submit button has been added to the DOM instead of next then bind the next event for submit too

if ($('.ghl-footer').has('.ghl-btn-submit').length > 0) {

$('.ghl-next-button, .ghl-mobile-next').on('click', function (e) {

next()

})

}

$('.ghl-next-button').click();

}


//For single pages survey add submit button instead of next button

if ($('.ghl-question-set').children().length > 1) {

$('.jfCard-actions').append(nextBtn);

}

else if ($('.ghl-question-set').children().length == 1) {

$('.jfCard-actions').append(submitButton);

}


//Define previous button definition

var prevButton = document.createElement('div');

prevButton.setAttribute('id', 'previous-btn');

prevButton.innerHTML = "<button style='display:block' type='button' class='jfInput-button forPrev u-left' data-component='button' aria-label='Previous'>Previous</button>";

prevButton.onclick = previous;


// Add event listener to all Radio Inputs

// Add previous button if it doesn't exist

// Adjust percentage of percentage bar

document.querySelectorAll('#form-builder input[type="radio"]').forEach(input => {

input.addEventListener('click', function (e) {

next()

})

})


//Add event listener for enter key

document.querySelectorAll('#form-builder input[type="text"]').forEach(input => {

input.addEventListener('keydown', function (e) {

if (e.keyIdentifier == 'U+000A' || e.keyIdentifier == 'Enter' || e.keyCode == 13) {

if (e.target.nodeName == 'INPUT' && e.target.type == 'text') {

next(true);

}

}

}, true);

})


// Add event listener to built in Next button

// Add previous button if it doesn't exist

// Adjust percentage of percentage bar

$('.ghl-next-button, .ghl-mobile-next').on('click', function () {

next()

})


// Handle click on previous button.

function previous() {


var index = $('.ghl-question-set').find('.ghl-page-current').index();

if (index == 1) {

$('#previous-btn').remove();

}


if (!loaded_from_funnel)

surveyData.__ob__.dep.subs[1].vm.moveToPrev()


else

surveyData.moveToPrev()


if ($('#submit-btn').length > 0) {

$('#submit-btn').remove();

$('.jfCard-actions').append(nextBtn);

}


currentPercentage -= Math.round(dividedPercentage, 2);

if (currentPercentage < 0) currentPercentage = 0;

$('#progress-bar').attr('aria-valuenow', currentPercentage);

$('#progress-bar').css('width', currentPercentage + '%');

$('#progress-bar')[0].innerHTML = currentPercentage + "%";

}


//Handle next event

function next(keypress = false) {


setTimeout(function () {

if (!($('.alert-danger').length > 0)) {


let lastStep = $('.ghl-button:button').length == 0 ? true : false;

let submitClick = $('.ghl-button:input').length == 0 ? true : false;

if (keypress && lastStep)

return;


//Adding previous button if not present and not submit click

if ($('#previous-btn').length == 0 && !submitClick) {

$('.jfCard-actions').append(prevButton);

}


//If next step is the last submit and this is not a submit click

if (lastStep && !submitClick) {

$('#next-btn').remove();

$('.jfCard-actions').append(submitButton);

}


//In case of submit click

if (submitClick) {

$('.ghl-progress-bar').remove();

$('.jfCard-actions').remove();

$('.ghl-footer').css('background', '#214166');


setTimeout(() => {

$('.progress').remove();

}, 500);

}


currentPercentage += Math.round(dividedPercentage, 2);

if (currentPercentage > 100) currentPercentage = 100;

$('#progress-bar').attr('aria-valuenow', currentPercentage);

$('#progress-bar').css('width', currentPercentage + '%');

$('#progress-bar')[0].innerHTML = currentPercentage + "%";

}

}, 500);

}


//Check if DOM is changed and detect if next button is added and submit is removed

$('body').on('DOMNodeInserted', '.ghl-next-button:button', function () {

$('.ghl-next-button, .ghl-mobile-next').on('click', function (event) {

next()

})

});

});

</script>

GET TO KNOW US