.quiz-form,
.quiz-form *{
    box-sizing: border-box;
}
.quiz-form{
    padding: 50px 0;
}
.quiz{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.quiz img{
    max-width: 100%;
}
.quiz-input {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: auto;
    align-items: start;
    margin-bottom: auto;
    padding: 20px 0 0;
}
.quiz-input__item {
    display: flex;
    align-items: center;
    border: 1px solid #00000047;
    border-radius: 5px;
    padding: 10px 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all .5s;
    user-select: none;
}
.quiz-input__item input {
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    height: 24px;
    width: 24px;
    background-color: #eee;
    border-radius: 50%;
    transition: all .5s;
}
.checkmark:hover{
    background-color: #e0e0e0;
}
.checkmark:hover,
.quiz-input__item input:checked~.checkmark {
    background-color: #36B4B6;
}
.quiz-input__item .checkmark:after {
    content: "";
    opacity: 0;
    display: block;
    position: relative;
    left: 9px;
    top: 4px;
    width: 5px;
    height: 10px;
    border-color: #fff;
    border-style: solid;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    box-sizing: content-box;
    transition: all .5s;
}
.quiz-input__item input:checked~.checkmark:after {
    opacity: 1;
}

.quiz-input__answer {
    margin-left: 20px;
    width: 80%;
}
.quiz-item__title{
    font-size: 25px;
}
.quiz-bar__top{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 0 10px;
}
.quiz-bar__val{
    padding: 0 5px;
}
.quiz-bar__val span{
    font-size: 18px;
}
.quiz-line{
    background: #e5e5e5;
    border-radius: 8px;
    height: 8px;
    width: 100%;
    position: relative;
}
.quiz-line span{
    background-color: #36B4B6;
    top: 1px;
    left: 1px;
    border-radius: 8px;
    height: calc(100% - 2px);
    width: 0;
    position: absolute;
    transition: all 0.3s;
}
.quiz-item{
    padding: 30px 0 0;
}
.quiz-content{
    width: calc(60% - 20px);
}
.quiz-img{
    position: relative;
    overflow: hidden;
    height: auto;
    width: calc(40%);
    border-radius: 5px;
    overflow: hidden;
}
.quiz-img img{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 5px;
}
.quiz-navigation{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    grid-gap: 20px;
    padding: 40px 0 0;
    position: relative;
}
.quiz-navigation__info{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: red;
    font-size: 16px;
    transition: all 0.3s;
    transform: translateY(10px);
    opacity: 0;
}
.quiz-navigation__info.show{
    opacity: 1;
    transform: translateY(0px);
}
.quiz-button{
    cursor: pointer;
}
.quiz-button:active{
    transform: scale(0.9);
}
.back-button{
    width: 46px;
    height: 46px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    background-size: 20px;
    position: relative;
    background: none;
    border: 1px solid #d2d2d2;
    transition: all 0.3s;
}
.back-button:before{
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: none;
    background-color: #d2d2d2;
    -webkit-mask: url(../img/back.svg) no-repeat center;
    -webkit-mask-size: 15px;
}
.next-button{
    transition: all 0.3s;
    color: white;
    font-size: 15px;
    background: #36B4B6;
    min-height: 46px;
    border-radius: 4px;
    padding: 0 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
    overflow: hidden;
}
.quiz-item__next.hide{
    opacity: 0;
    pointer-events: none;
}
.next-button:after{
    content: '';
    display: inline-block;
    position: relative;
    transform: rotate(180deg);
    width: 15px;
    height: 15px;
    background: none;
    background-color: white;
    -webkit-mask: url(../img/back.svg) no-repeat center;
    -webkit-mask-size: 15px;
    margin-left: 10px;
}
.next-button:before {
    content: '';
    display: block;
    background: white;
    width: 10px;
    height: 100%;
    top: 0;
    left: -10%;
    position: absolute;
    transform: skew(-18deg);
    animation: 3s infinite bookActive;
}
@keyframes bookActive{
    0%{
        left: -10%;
        transform: skew(-18deg) scale(1);
        opacity: 1;
    }
    50%{
        left: 110%;
        transform: skew(-18deg) scale(1.5);
        opacity: 0;
    }
    100%{
        left: -10%;
        transform: skew(-18deg) scale(1);
        opacity: 0;
    }
}
.quiz-slider{
    position: relative;
    width: 100%;
    overflow: hidden;
}
.quiz-text{
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(10px);
    display: none;
}
.quiz-text.show{
    opacity: 1;
    transform: translateY(0);
    display: block;
}
.quiz-result__price{
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    grid-gap: 10px;
}
.quiz-result{
    font-size: 16px;
    line-height: 178%;
    position: relative;
    padding: 0 0 30px;
    font-weight: 300;
}
.quiz-result p,
.quiz-text{
    padding: 0 0 10px;
}
.quiz-notice{
    font-size: 12px;
}
.final-send{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    padding: 20px 0 0;
}
.final-send__item input{
    display: block;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    border: 2px solid #a7a7a7;
    height: 44px;
    transition: all 0.3s;
    font-size: 16px;
    border-radius: 5px;
}
.final-send__item input[type=submit]{
    display: inline-block;
    border: 2px solid #36b4b6;
    border-radius: 10px;
    background: #36B4B6;
    color: #fff;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}
.final-send__item input[type=submit]:hover{
    background: none;
    border: 2px solid #36b4b6;
    color: #000;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
    text-decoration: none;
}
.final-send__item input[type=submit]:disabled {
    pointer-events: none;
    opacity: 0.5;
}
.final-send__item input.error{
    border-color: red;
}
.final-thanks{
    font-size: 18px;
    padding: 10px 0 0;
    color: #36b4b6;
    display: none;
    position: absolute;
}
.quiz-content .quiz-bar{
    display: none;
}

.quiz-agree {
    position: relative;
    margin: 0 0 -15px;
}
.quiz-agree input {
    display: none;
}
.quiz-agree label {
    position: relative;
    display: block;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 0 5px 30px;
    cursor: pointer;
    margin: 0;
}
.quiz-agree label:before {
    content: '';
    display: block;
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid #dadada;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.quiz-agree label:after {
    content: '';
    display: block;
    position: absolute;
    width: 11px;
    height: 11px;
    background: #36b4b6;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s;
}
.quiz-agree input:checked+label:after {
    opacity: 1;
}

@media all and (max-width: 768px){
    .quiz-bar{
        display: none;
    }
    .quiz-content .quiz-bar{
        display: block;
        padding: 10px 0 0;
    }
    .quiz-item {
        padding: 15px 0 0;
    }
    .quiz{
        flex-direction: column-reverse;
    }
    .quiz-img{
        width: 100%;
        padding: 20px 0 0;
    }
    .quiz-content{
        width: 100%;
    }
    .quiz-img img{
        position: relative;
    }
    .quiz-input{
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }
    .quiz-navigation__info{
        top: 10px;
        font-size: 12px;
        text-align: left;
    }
    .final-send{
        grid-template-columns: 1fr;
    }
    .quiz-navigation{
        justify-content: flex-start;
        padding: 30px 0 0;
    }
}