html, body{
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-family: "Arial";
    position: fixed;
    width: 100%;
    height: 100%;

}

.generate_form_preview{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    transition: background-color 0.2s;
}
.generate_form_header{
    margin-top: 20px;
    z-index: 1;
}
.generate_form_header img{
    max-height: 80px;
}
.generate_form_body{
    margin-top: 40px;
    max-width: 350px;
    width: 85%;
    position: relative;
    z-index: 1;
}
.generate_form_item{
    position: absolute;
    width: 100%;
    height: auto;
    left: 0;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    top: -10px;
    transition: opacity 0.5s, top 0.5s, visibility 0.5s;
}
.generate_form_item.active{
    top: 0;
    opacity: 1;
    visibility: visible;
}
.gf_screen_background{
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: block;
    z-index: 0;
    overflow: hidden;
}
.gf_header{
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 20px;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.gf_info{
    font-size: 14px;
    text-align: center;
    line-height: 20px;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.gf_button{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    border: 0;
    border-radius: 4px;
    height: 50px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
    text-decoration: none;
    transition: opacity 0.2s, color 0.2s, background-color 0.2s;
}
.gf_button:focus{
    outline: none;
}
.gf_button:disabled{
    opacity: 0.4;
}

.gf_qr_error img{
    width: 300px;
}

.gf_item{
    text-align: left;
    margin-bottom: 15px;
    position: relative;
}
.gf_item label{
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.gf_item input{
    border: 1px solid;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    background-color: transparent;
    outline: none;
    box-sizing: border-box;
    transition: color 0.2s, border-color 0.2s;
}
.gf_item input.error{
    border-color: #ff0000 !important;
}
.gf_item input::placeholder{
    opacity: 0.5;
}
label.error{
    font-size: 8px;
    color: red;
}
.gf_item select{
    border: 1px solid;
    height: 37px;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    background-color: transparent;
    outline: none;
    transition: color 0.2s, border-color 0.2s;
    -webkit-appearance: menulist;
    position: relative;
}

.gf_item select:after {content:"";}

.gf_item select::placeholder{
    opacity: 0.5;
}
.gf_item select.error{
    border-color: #ff0000 !important;
}
.gf_item select option{
    background-color: transparent;
}

.gf_phone_verification_top{
    line-height: 18px;
    margin-bottom: 5px;
    transition: color 0.2s;
}
.gf_phone_verification_phone{
    font-size: 22px;
    transition: color 0.2s;
}
.gf_phone_verification_bottom{
    line-height: 18px;
    margin-top: 5px;
    transition: color 0.2s;
}
.gf-mb-20{
    margin-bottom: 30px;
}
.gf_policy{
    margin-top: 30px;
    margin-bottom: 0px;
    text-align: center;
    line-height: 20px;
    transition: color .2s;
}
.gf_policy a{
    color: inherit;
    text-decoration: underline;
}
.gf_phone_verification_success{
    margin-top: 20px;
}

.generate_form_logo{
    width: 150px;
    height: 150px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
}
.footer_message{
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 350px;
    text-align: center;
    margin-left: calc((100% - 350px) / 2);
}
.footer_message a{
    color: inherit;
}

#submit_loading {
    display: none;
    border: 5px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    border-top: 5px solid #ffffff;
    width: 20px;
    height: 20px;
    -webkit-animation: spin .5s linear infinite;
    animation: spin .5s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gf_policy_bottom{
    margin-top: -15px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 20px;
    transition: color .2s;
    color: #fff;
}
.gf_policy_bottom a{
    color: inherit;
    text-decoration: underline;
    transition: color .2s;
}

.gf_button_href{
    margin-top: 20px;
    display: block;
}

.iti__flag-container{
    left: 0;
    right: auto;
    top: auto;
    height: 37px;
    bottom: 0;
    cursor: pointer;

    display: flex;
    align-items: center;
}
.iti__selected-code{
    margin-left: 3px;
    line-height: 13px;
    font-size: 13px;
}
.gf_item input.input_phone{
    padding-left: 50px;
}

.show_iti .iti.iti--container{
    max-width: 380px;
    margin: auto;
    max-height: 500px;
}
.show_iti_overlay{
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    display: none;
}

.show_iti.iti-mobile .show_iti_overlay{
    display: block;
}

.error_form{
    margin-bottom: 10px;
    background-color: rgb(255 0 0 / 30%);
    color: #ff9494;
    padding: 10px 0;
    border-radius: 5px;
    display: none;
    font-weight: 600;
}


.payment{
    margin-top: 5px;
    padding: 10px;
    border: 1px solid;
    border-radius: 4px;
}
.payment.error{
    border-color: #ff0000!important;
}
.card-field{
    border: 1px solid;
    width: calc(100% - 22px);
    padding: 10px;
    border-radius: 4px;
    background-color: transparent;
    outline: none;
    margin-bottom: 5px;
}

.card-double-fields{
    display: flex;
    justify-content: space-between;
}

.card-double-fields .card-field{
    width: calc(50% - 25px);
}
#payment_button{
    width: 100%;
    border: 0;
    height: 37px;
    border-radius: 4px;
    font-weight: 600;
}

.payment_error{
    display: none;
    margin-top: 5px;
    text-align: center;
    color: #ff9494;
}
.payment_error.visible{
    display: block;
}

.hide_when_epmty{
    margin-bottom: 5px;
}
.total-payment{
    display: flex;
    justify-content: flex-end;
}

.card-recurring{
    display: flex;
}
.card-recurring input{
    visibility: hidden;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.card-recurring label{
    position: relative;
    margin-left: 16px;
    top: 2px;
    cursor: pointer;
}
.card-recurring label::before{
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid;
    border-radius: 4px;
    left: -24px;
    top: -1px;
}
.card-recurring input:checked~label::after{
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--bkg-color);
    top: 2px;
    left: -21px;
    border-radius: 2px;
}

.promo_input_block{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.gf_item .promo_input_block .promo_input{
    background-color: #ffffff;
    border-radius: 4px 0 0 4px;
    border-right: 0;
}
.gf_item .promo_input_block .promo_input:disabled{
    opacity: 0.5;
}
.gf_item .promo_input_block .check_promo{
    padding: 11px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    border: 0;
    font-weight: 600;
    outline: none;
}
.gf_item .promo_input_block .check_promo:disabled{
    cursor: default;
    opacity: 0.5;
}

.promo_input_messages{
    text-align: center;
    margin-top: 5px;
}
.promo_input_messages.error{
    color: #cb4444!important;
}


#tick {
    stroke: #63bc01;
    stroke-width: 10;
    transition: all 1s;
}
#circle {
    stroke: #63bc01;
    stroke-width: 10;
    transform-origin: 50px 50px 0;
    transition: all 1s;
}
.progress #tick {
    opacity: 0;
}

.ready #tick {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 8s ease-out forwards;
}

.progress #circle {
    stroke: currentColor;
    stroke-dasharray: 314;
    stroke-dashoffset: 1000;
    animation: spin 3s linear infinite;
}

.ready #circle {
    stroke-dashoffset: 66;
    stroke: #63bc01;
}

#circle {
    stroke-dasharray: 500;
}

@keyframes spin {
    0% {
      transform: rotate(0deg);
      stroke-dashoffset: 66;
    }
    50% {
      transform: rotate(540deg);
      stroke-dashoffset: 314;
    }
    100% {
      transform: rotate(1080deg);
      stroke-dashoffset: 66;
    }
}

@keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
}

#check {
    width: 15px;
    height: 15px;
}

.gf_checkbox_container{
    text-align: left;
    position: relative;
}
.gf_checkbox_container input{
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.gf_checkbox_container label.gf_checkbox_label{
    user-select: none;
    cursor: pointer;
    display: block;
    margin-left: 28px;
    line-height: 20px;
    font-size: 14px;
    text-transform: none;
}
.gf_checkbox_container label.gf_checkbox_label:before {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #999;
    border-radius: 4px;
    margin-right: 8px;
    background-color: white;
    transition: 0.2s;
}

.gf_checkbox_container input:checked ~ label.gf_checkbox_label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #2196F3;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.gf_checkbox_container input.error ~ label.gf_checkbox_label::before {
    border: 2px solid #ff0000 !important;
}

.gf_checkbox_container input ~ label.error {
    position: absolute;
    bottom: -10px;
    text-transform: uppercase;
}