.csq {
    font-family: "Inter";
    min-height: 456px;
    padding: 70px 53px 102px 53px;
    border: 1px solid #E2E2E2;
    border-radius: 25px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    overflow: hidden;
    scroll-margin-top: 106px;
    opacity: 1 !important;
    transition: opacity 0.6s ease-in-out;
}

.csq[data-step="1"] .csq__progress span:nth-child(1){
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
    color: #fff;
}

.csq[data-step="2"] .csq__progress span:nth-child(1){
    background: url(./images/step-finished.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}
.csq[data-step="2"] .csq__progress span:nth-child(1):after{
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
}
.csq[data-step="2"] .csq__progress span:nth-child(2){
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
    color: #fff;
}

.csq[data-step="3"] .csq__progress span:nth-child(1),
.csq[data-step="3"] .csq__progress span:nth-child(2){
    background: url(./images/step-finished.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}
.csq[data-step="3"] .csq__progress span:nth-child(1):after,
.csq[data-step="3"] .csq__progress span:nth-child(2):after{
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
}
.csq[data-step="3"] .csq__progress span:nth-child(3){
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
    color: #fff;
}

.csq[data-step="4"] .csq__progress span:nth-child(1),
.csq[data-step="4"] .csq__progress span:nth-child(2),
.csq[data-step="4"] .csq__progress span:nth-child(3){
    background: url(./images/step-finished.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}
.csq[data-step="4"] .csq__progress span:nth-child(1):after,
.csq[data-step="4"] .csq__progress span:nth-child(2):after,
.csq[data-step="4"] .csq__progress span:nth-child(3):after{
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
}
.csq[data-step="4"] .csq__progress span:nth-child(4){
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
    color: #fff;
}

.csq[data-step="5"] .csq__progress span:nth-child(1),
.csq[data-step="5"] .csq__progress span:nth-child(2),
.csq[data-step="5"] .csq__progress span:nth-child(3),
.csq[data-step="5"] .csq__progress span:nth-child(4){
    background: url(./images/step-finished.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}
.csq[data-step="5"] .csq__progress span:nth-child(1):after,
.csq[data-step="5"] .csq__progress span:nth-child(2):after,
.csq[data-step="5"] .csq__progress span:nth-child(3):after,
.csq[data-step="5"] .csq__progress span:nth-child(4):after{
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
}
.csq[data-step="5"] .csq__progress span:nth-child(5){
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
    color: #fff;
}

.csq[data-step="6"] .csq__progress span:nth-child(1),
.csq[data-step="6"] .csq__progress span:nth-child(2),
.csq[data-step="6"] .csq__progress span:nth-child(3),
.csq[data-step="6"] .csq__progress span:nth-child(4),
.csq[data-step="6"] .csq__progress span:nth-child(5){
    background: url(./images/step-finished.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}
.csq[data-step="6"] .csq__progress span:nth-child(1):after,
.csq[data-step="6"] .csq__progress span:nth-child(2):after,
.csq[data-step="6"] .csq__progress span:nth-child(3):after,
.csq[data-step="6"] .csq__progress span:nth-child(4):after,
.csq[data-step="6"] .csq__progress span:nth-child(5):after{
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
}
.csq[data-step="6"] .csq__progress span:nth-child(6){
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
    color: #fff;
}

.csq-alert{
    color: #D63637;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 0;
    display: none;
}

/* -- buttons -- */

.csq__btn{
    appearance: none;
    border: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.14;    
    padding: 17px 30px;
    border-radius: 50px;
    min-width: 151px;
    display: inline-block; 
    text-align: center;
    word-break: break-word !important;
    white-space: break-spaces !important;
}

.csq__btn--next{
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: #000 !important;
}

.csq__btn--next:hover:before, .csq__btn--next:focus:before{
    opacity: 0;
}

.csq__btn--next:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.csq__btn--prev{
    color: #0C73BD;
    background-color: #EEFBFF;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.csq__btn--prev:hover, .csq__btn--prev:focus{
    background-color: #000;
    color: #fff;
}

.csq-buttons{
    display: flex;
    width: calc(100% - 166px);
    justify-content: space-between;
    gap: 10px;
    position: absolute;
    left: 166px;
    top: 100%;
}

/* -- start step -- */

.csq[data-step="0"] {
    position: relative;
    z-index: 1;
    background: linear-gradient(112deg, #D1E4F6 0%, #F2F8FC 100%);
}

.csq[data-step="0"]:before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-image: url(./images/start-step-bg.jpg);
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    z-index: -1;
}

.csq__start {
    max-width: 460px;
    margin: 0 0 0 auto;
    padding-top: 30px; 
}

.csq__start h2{
    font-size: 54px;
    line-height: 1.11;
    font-weight: 800;
    margin: 0;
    color: #000000;
}

.csq__start p{
    font-size: 22px;
    font-weight: 300;
    color: #000000;
    line-height: 1.59;
    margin-top: 31px;
    margin-bottom: 60px;
    max-width: 413px;
}

/* -- steps progress bar -- */

.csq__progress{
    display: flex;
    flex-direction: column;
    user-select: none;
    position: absolute;
    top: 0;
    left: 0;
}

.csq__progress span{
    display: flex;
    width: 45px;
    height: 45px;
    border-radius: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0C73BD;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    background-color: #EEFBFF;
    position: relative;
    margin-bottom: 40px;
}

.csq__progress span.current{
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
    color: #fff;
}

.csq__progress span.finished{
    background: url(./images/step-finished.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}

.csq__progress span:after{
    content: "";
    width: 3px;
    height: 40px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #EEFBFF;
}

.csq__progress span:last-of-type{
    margin-bottom: 0;
}

.csq__progress span:last-of-type:after{
    display: none;
}

.csq__progress span.finished:after{
    background: linear-gradient(112deg, #0D3FB9 0%, #1D60DC 100%);
}

/* -- steps container -- */

.csq__steps{
    padding-left: 166px;
    position: relative;
    color: #000;
    flex-direction: column;
    min-height: inherit;
    display: none;
}

.csq h3{
    font-size: 27px;
    font-weight: 600;
    line-height: 1.07;
    margin-bottom: 33px;
    margin-top: 0;
    padding-top: 8px;
}

/* -- steps global elements -- */

.csq-step{
    padding-bottom: 40px;
}

.csq-step>span{
    font-size: 18px;
    line-height: 1.66;
    font-weight: 400;
    display: block;
    color: #0C73BD;
    text-transform: uppercase;
}

.csq-step .yes-no{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.csq-step .yes-no li{
    display: flex;
    width: 220px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid #E2E2E2;
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
    cursor: pointer;
}

.csq-step .yes-no li:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0;
    background: linear-gradient(138deg, #0D3FB9 0%, #1D60DC 100%);
    transition: opacity 0.3s ease;
}

.csq-step .yes-no li:hover:before, .csq-step .yes-no .active:before{
    opacity: 1;
}

.csq-step .yes-no li:hover, .csq-step .yes-no .active{
    color: #ffffff !important;
}

.csq-step-result{
    display: none;
}

/* -- step-1 elements -- */

.csq-step--1 .csq-buttons{
    justify-content: flex-end;
}

.csq-step--1 .csq-objectives{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.csq-step--1 li{
    padding: 40px 30px 35px 30px;
    border: 1px solid #E2E2E2;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.csq-step--1 li:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
    opacity: 0;
    background: linear-gradient(138deg, #0D3FB9 0%, #1D60DC 100%);
    transition: opacity 0.3s ease;
}

.csq-step--1 li:hover:before, .csq-step--1 .active:before{
    opacity: 1;
}

.csq-step--1 li:hover h4, .csq-step--1 .active h4{
    background: transparent;
    color: #fff;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.csq-step--1 li:hover p, .csq-step--1 .active p{
    color: #fff;
}

.csq-step--1 h4{
    font-size: 28px;
    line-height: 1.07em;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(138deg, #0D3FB9 0%, #1D60DC 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.csq-step--1 p{
    font-size: 18px;
    font-weight: 300;
    line-height: 1.66em;
    margin: 15px 0 0 0;
    position: relative;
    z-index: 1;
}

/* -- step-2 elements -- */

/* -- step-3 elements -- */

/* -- step-4 elements -- */


/* -- step-5 elements -- */

.csq-step--5 .csq-categories{
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.csq-step--5 .csq-categories li{
    display: flex;
    border-radius: 10px;
    border: 1px solid #E2E2E2;
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.66em;
    text-align: center;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 20px 10px;
    color: #000;
}

.csq-step--5 .csq-categories li:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0;
    background: linear-gradient(138deg, #0D3FB9 0%, #1D60DC 100%);
    transition: opacity 0.3s ease;
}

.csq-step--5 .csq-categories li:hover:before, .csq-step--5 .csq-categories .active:before{
    opacity: 1;
}

.csq-step--5 .csq-categories li:hover, .csq-step--5 .csq-categories .active{
    color: #ffffff !important;
}

/* -- step-6 elements -- */
.csq-step--6 h5{
    color: #1A76D2;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.75em;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 70px;
    margin-top: 0;
}

.csq-step--6 h4{
    font-size: 28px;
    font-weight: 600;
    line-height: 1.5em;
    margin: 0;
}

.csq-step--6 h4 span{
    display: block;
    background: linear-gradient(138deg, #0D3FB9 0%, #1D60DC 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.csq-step--6 p{
    font-size: 18px;
    line-height: 1.66em;
    font-weight: 300;
    margin-top: 13px;
}

@media screen and (max-width: 1024px) {
    .csq__steps{
        padding-left: 100px;
    }

    .csq__start{
        margin-left: 0;
    }

    .csq__steps .csq-objectives{
        grid-template-columns: 1fr 1fr;
    }

    .csq-step--5 .csq-categories{
        grid-template-columns: 1fr 1fr 1fr;
    }

    .csq-step--6 h5{
        margin-bottom: 30px;
    }
}



@media screen and (max-width: 767px) {
    .csq{
        padding: 60px 40px 130px 40px;
        min-height: auto;
    }

    .csq[data-step="0"]:before {
        display: none;
    }

    .csq__start{
        padding-top: 0;
        margin-bottom: -60px;
    }

    .csq__start h2{
        font-size: 36px;
    }

    .csq__start p{
        font-size: 16px
    }


    .csq__steps{
        padding-left: 0;
    }

    .csq__progress{
        position: relative;
        flex-direction: row;
        margin-bottom: 20px;
    }

    .csq__progress span{
        margin-bottom: 0;
        width: 40px;
        height: 40px;
        margin-right: 20px;
    }

    .csq__progress span:last-child{
        margin-right: 0;
    }

    .csq__progress span:after{
        width: 30px;
        height: 3px;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
    }

    .csq h3{
        margin-bottom: 40px;
    }

    .csq-buttons{
        left: 0;
        width: 100%;
        flex-direction: column;
        padding: 0 20px;
    }

    .csq__btn{
        font-size: 13px;
        padding: 15px 14px;
        min-width: 104px;
    }

    .csq__btn--next{
        order: -1;
    }

    .csq__steps .csq-objectives{
        grid-template-columns: 1fr;
    }

    .csq-step--5 .csq-categories{
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .csq-step--5 .csq-categories li{
        font-size: 14px;
    }

    .csq-step--6 h5{
        font-size: 14px;
        line-height: 1.3em;
    }

    .csq-step--6 h4{
        font-size: 22px;
        line-height: 1.3em;
    }

    .csq-step--6 p{
        font-size: 16px;
        line-height: 1.4em;
    }

    .csq-step .yes-no{
        justify-content: center;
    }
}

@media screen and (max-width: 400px) {
    .csq__progress span{
        margin-right: 20px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .csq__progress span:after{
        width: 20px;
    }

    /* .csq-step h4{
        font-size: 22px;
    } */
}

@media screen and (max-width: 370px) {
    .csq{
        padding: 40px 20px 130px 20px;
    }

    .csq__start{
        padding-top: 0;
        margin-bottom: -60px;
    }
    
    .csq__start h2{
        font-size: 30px;
    }

    .csq__start p{
        margin-bottom: 30px;
    }

    .csq h3{
        font-size: 26px;
    }

    .csq-buttons{
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% + 20px);
    }

    .csq[data-step="4"] .csq-buttons{
        width: calc(100% + 45px);
    }

    .csq__progress span{
        width: 30px;
        height: 30px;
    }
}