.survey-header {
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    margin-bottom: 0px;
    }
    .logo {
        img {
            @media only screen and (max-width: 767.98px) {
                height: 34px;
            }
        }
    }
    .survry-header-inner {
        display: flex;
        justify-content: space-between;
    }
    .burger-menu {
        &.navbar-toggler {
            border-color: white;
            color: white;
            border-width: 2px;
            margin-right: 15px;
            position: relative;
            width: 36px;
            height: 34px;
            display: none;
            @media only screen and (max-width: 767.98px) {
                .has-burgermenu & {
                    display: block;
                }
            }
            &:before {
                content: "";
                background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
                // background-image: url(../images/burger-menu.svg);
                position: absolute;
                left: 2px;
                width: 25px;
                height: 25px;
                top: 0px;
            }
        }
    }
}

.survey-container {
    display: flex;
    @media only screen and (max-width: 767.98px) {
        position: relative;
    }
    .nav-survery & {
        @media screen and (max-width: 767.98px) {
            overflow-x: scroll;
        }
    }
}

.left-tool-col {
    background: rgba(255, 255, 255, 1);
    padding: 20px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.08);
    height: calc(100vh - 121px);
    width: 300px;
    margin-right: 30px;
    @media only screen and (max-width: 991.98px) {
        display: none;
        margin-right: 0px;
    }
    .nav-survery & {
        @media only screen and (max-width: 991.98px) {
            display: block;
        }
    }
    @media only screen and (max-width: 1024px) {
        width: 200px;
    }
    @media only screen and (max-width: 767.98px) {
        position: absolute;
        top: 0;
        left: -200px;
        transition: all 0.5s ease;
        z-index: 999;
        height: calc(100vh - 111px);
        &.show {
            left: 0;
        }
    }
    .nav-survery & {
        @media only screen and (max-width: 767.98px) {
            left: 0px;
            position: absolute;
        }
    }
    h3 {
        font-size: 20px;
    }
    .builder-list {
        padding: 15px 0;
        li {
            a {
                border-bottom: solid 1px rgba(0, 0, 0, 0.15);
                display: block;
                color: rgba(0, 0, 0, 0.5);
                padding: 10px 10px;
                &:hover {
                    text-decoration: none;
                    background: rgba(0, 0, 0, 0.05);
                }
            }
            &[class*="icon-"] {
                a {
                    padding-left: 30px;
                    background-size: 16px auto;
                    background-repeat: no-repeat;
                    background-color: transparent;
                    background-position: 0 50%;
                }
            }
            &.icon-text {
                a {
                    background-image: url(../images/icon-text.svg);
                }
            }
            &.icon-radio {
                a {
                    background-image: url(../images/icon-radio.svg);
                }
            }
            &.icon-checkbox {
                a {
                    background-image: url(../images/icon-checkbox.svg);
                }
            }
        }
    }
}

.questions-col {
    flex: 1;
    padding: 15px;
    @media only screen and (max-width: 767.98px) {
        position: relative;
    }
    .btn-delete {
        position: absolute;
        top: 8px;
        right: 15px;
        width: 20px;
        height: 20px;
        font-size: 12px;
        border: solid 1px rgba(0, 0, 0, 0.5);
        border-radius: 3px;
        background: #fff;
        color: black;
        text-align: center;
        padding: 0px 5px 0px 5px;
        line-height: 1;
        @media only screen and (max-width: 767.98px) {
            right: 5px;
        }
    }
}

.question-desc {
    width: 300px;
    padding: 15px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 120px);
    z-index: 1;
    position: relative;
    overflow-y: auto;
    &.question-onscroll {
        max-height: calc(100vh - 217px);
    }
    @media only screen and (max-width: 1024px) {
        width: 200px;
    }
    @media only screen and (max-width: 767.98px) {
        position: absolute;
        top: 0;
        transition: all 0.5s ease;
        z-index: 999;
        right: 0;
        background: #fff;
        height: calc(100vh - 111px);
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.15);
    }
    .question-close {
        position: absolute;
        top: 8px;
        right: 15px;
        width: 26px;
        height: 24px;
        font-size: 12px;
        border: solid 1px rgba(0, 0, 0, 0.5);
        border-radius: 3px;
        background: #fff;
        color: black;
        text-align: center;
        padding: 0px 5px 0px 5px;
        line-height: 1.5;
        z-index: 999999;
    }
    .form-control {
        &.no-resize {
            resize: none;
            min-height: 72px;
        }
    }
}

.sv_bootstrap_css {
    border: solid 1px #d8d8d8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.sv_bootstrap_css .sv_qcbc input[type="checkbox"],
.sv_bootstrap_css .sv_qcbc input[type="radio"] {
    margin-top: -3px !important;
}

.sv_bootstrap_css .panel-footer {
    display: flex;
    justify-content: flex-end;
}

.sv_bootstrap_css .sv_qstn {
    position: relative;
    margin-bottom: 0;
    margin-left: 0;
    padding-bottom: 0;
    transition: all 0.5s ease;
    width: calc(100% - 15px) !important;
    /*border-left: solid 3px #607bff;*/
    padding:0 !important;
}

.sv_bootstrap_css .sv_qstn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    width: calc(100% - 30px) !important;
    /*border-left-color:transparent;*/
}

.sv_bootstrap_css .sv_qstn:before {
    transition: all 0.5s ease;
    content: "";
    width: 2px;
    height: 0;
    background: #607bff;
    position: absolute;
    top: 0;
    left: 0px;
    transition: all 0.5s ease;
}

.sv_bootstrap_css .sv_qstn:hover:before {
    background: #fd397a;
    height: 100%;
}

.sv_bootstrap_css .sv_qstn:after {
    transition: all 0.5s ease;
    content: "";
    width: 2px;
    height: 100%;
    background: #607bff;
    position: absolute;
    bottom: 0;
    left: 0px;
    transition: all 0.5s ease;
}

.sv_bootstrap_css .sv_qstn:hover:after {
    background: #607bff;
    height: 0;
}

.sv_bootstrap_css .sv_qstn .radio label {
    cursor: pointer;
    font-size:12px;
}

.sv_qcbx .checkbox label{font-size:12px;}
.sv_row .sv_qstn .form-control {
    height: calc(1em + 1.25rem + 5px)
}

.survey-runner {
    padding: 45px 0 0;

    @media screen and (max-width: 991.98px) {
        padding: 25px 0 0;
    }

    h1 {
        font-size: 36px;
        margin-bottom: 25px;

        @media screen and (max-width: 991.98px) {
            font-size: 24px;
        }
    }

    .sv_q_required_text {
        color: red;
    }

    .nav-tabs {
        border-bottom: none;
    }

    #myTabContent {
        &.tab-content {
            h4 {
                margin-bottom: 25px;
            }

            .tab-pane {
                .sv_main {
                    padding: 15px 15px 0px;
                }
            }
        }
    }

    .sv_bootstrap_css {
        .panel-footer {
            margin-left: -15px;
            margin-right: -15px;
        }

        .sv_qstn {
            margin-left: 0;
            width: 100% !important;

            &.bgchange {
                background: #f1f1f1;
                margin-left: 40px;
                width: calc(100% - 40px) !important;

                h5 {
                    font-size: 1rem;
                    margin-bottom: 0;
                }

                .custom-rating {
                    padding-top: 35px;

                    .btn {
                        &.btn-default {
                            .sv_q_rating_item_text {
                                &:after {
                                    width: 24px;
                                    height: 24px;
                                    background-size: 24px auto;
                                    top: -30px;
                                    left: 0px;
                                }
                            }
                        }
                    }
                }
            }

            &.sectionchange {
                background: #f1f1f1;
                margin-left: 40px;
                margin-right: 40px;
                width: calc(100% - 80px) !important;

                h5 {
                    font-size: 1.1875rem;
                    margin-bottom: 0;
                }

                .custom-rating {
                    padding-top: 35px;

                    .btn {
                        &.btn-default {
                            .sv_q_rating_item_text {
                                &:after {
                                    width: 24px;
                                    height: 24px;
                                    background-size: 24px auto;
                                    top: -30px;
                                    left: 0px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.survey-header {
    background-color: #001a43;
}

.left-tool-col {
    background: #183698;
    position: relative;
}

.left-tool-col .builder-list li a {
    color: #fff;
    border-bottom: solid 1px rgba(255, 255, 255, 0.3);
}

.left-tool-col h3 {
    color: #fff;
}

.questions-col {
    background: #eaf0ef;
}

.sv_bootstrap_css {
    background: #fff;
}

.formbuilder-tab {
    margin-top: 10px;
    .nav-tabs {
        .nav-item {
            flex: unset;
            color: #676a6c;
            border-radius: 0;
            &.active {
                background-color: #183698;
                color: #fff;
                border: none;
            }
        }
    }
}

.sv_container {
    .custom-rating {
        min-width: 600px;
        padding-left: 0px;
        padding-top: 50px;
        @media screen and (max-width: 767.98px) {
            min-width: 100%;
            padding-left: 0px;
        }
        .btn {
            &.btn-default {
                margin-bottom: 0;
                background: none;
                border: transparent;
                text-align: left;
                padding-left: 0;
                padding-right: 0;
                &.active,
                &:focus,
                &:active {
                    background: transparent;
                    border: transparent;
                    box-shadow: none;
                    outline: none;
                    .sv_q_rating_item_text {
                        background-color: #909192;
                    }
                }
                &:last-child {
                    .sv_q_rating_item_text {
                        &:before {
                            display: none;
                        }
                    }
                }
                &:nth-child(1) {
                    .sv_q_rating_item_text {
                        &:after {
                            content: "";
                            position: absolute;
                            top: -44px;
                            left: -4px;
                            background: url(../images/face-sad.png) 0 0 no-repeat;
                            background-size: 32px auto;
                            width: 32px;
                            height: 32px;
                        }
                    }
                }
                &:nth-child(3) {
                    .sv_q_rating_item_text {
                        &:after {
                            content: "";
                            position: absolute;
                            top: -44px;
                            left: -4px;
                            background: url(../images/face-neutral.png) 0 0 no-repeat;
                            background-size: 32px auto;
                            width: 32px;
                            height: 32px;
                        }
                    }
                }
                &:nth-child(5) {
                    .sv_q_rating_item_text {
                        &:after {
                            content: "";
                            position: absolute;
                            top: -44px;
                            left: -4px;
                            background: url(../images/face-smile.png) 0 0 no-repeat;
                            background-size: 32px auto;
                            width: 32px;
                            height: 32px;
                        }
                    }
                }
            }
        }
        .sv_q_rating_item_text {
            border: solid 2px rgba(34, 36, 38, 0.5);
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-block;
            font-size: 0px;
            color: transparent;
            vertical-align: top;
            background: #fff;
            position: relative;
            z-index: 9;
            &:before {
                content: "";
                position: absolute;
                top: 13px;
                left: 25px;
                width: 94px; // calc(100vh / 5.2);
                height: 2px;
                background: #909192;
                z-index: 0;
                @media screen and (max-width: 767.98px) {
                    width: calc(100vw / 6);
                }
                @media screen and (max-width: 667.98px) {
                    width: calc(100vw / 7.3);
                }
                @media screen and (max-width: 575.98px) {
                    width: calc(100vw / 5.8);
                }
                @media screen and (max-width: 479.98px) {
                    width: calc(100vw / 7);
                }
                @media screen and (max-width: 426.98px) {
                    width: calc(100vw / 9);
                }
                @media screen and (max-width: 374.98px) {
                    width: calc(100vw / 9);
                }
            }
        }
    }
    .sel-imgpreview {
        border: solid 1px #cecece;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
        padding: 10px;
        border-radius: 5px;
        display: inline-block;
        margin-left: 10px;
        vertical-align: middle;
        position: relative;
        margin-top: 5px;
        img {
            max-width: 128px;
        }
    }
}

.sv_main {
    .sv_container {
        .panel-body {
            &.card-block {
                .sv_row {
                    .sv_qstn {
                        &.bgchange {
                            @media (max-width: 600px) {
                                width: calc(100% - 20px) !important;
                                margin-left: 20px;
                            }
                        }
                        &.sectionchange {
                            @media (max-width: 600px) {
                                width: calc(100% - 40px) !important;
                                margin-left: 20px;
                                margin-right: 20px;
                            }
                        }
                    }
                }
            }
        }
    }
}