/*region Misc */

html, body {
    height: auto;
}

body.x-disabled-scroll {
    overflow: hidden;
}

/*endregion*/

/*region Main */

#plugt {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    font-size: 18px;
    line-height: 1.3;
    background-color: rgba(0, 0, 0, .7);
    z-index: 1000;
}

#plugt.x-fullscreen {
    background-color: white;
}

#plugt * {
    background-repeat: no-repeat;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

#plugt .x-block {
    position: relative;
    display: block;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    overflow: hidden;
    width: 500px;
    margin: 0 auto;
    background-position: bottom right;
    background-size: 100% auto;
    transition: width .2s ease-out;
}

#plugt.x-questions-state .x-block {
    width: 700px;
}

#plugt .x-img-wrap {
    position: relative;
    width: calc(100% + 80px);
    left: -40px;
    top: -40px;
    max-width: calc(100% + 80px);
}

#plugt .x-img-wrap img {
    display: block;
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

#plugt .x-content-group {
    min-height: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#plugt .x-questions.x-content-group {
    padding-bottom: 170px;
}

#plugt [type="submit"] {
    display: none;
}

#plugt .x-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 15px;
    line-height: 1.4;
}

#plugt .x-description {
    text-align: center;
    margin: 15px 0 30px;
}

#plugt .x-welcome .x-second,
#plugt .x-pre-final .x-second,
#plugt .x-final .x-second {
    display: flex;
}

#plugt .x-common-notice {
    border: 1px solid #9d9d9d;
    background-color: #e8e8e8;
    border-radius: 4px;
    color: black;
    font-size: 14px;
    padding: 7px 12px 7px 31px;
    margin-bottom: 20px;
    font-weight: 600;
    display: inline-block;
    background-image: url('img/quiz-checkbox-wb.png');
    background-size: 18px auto;
    background-position: 6px 7px;
    opacity: .6;
}

/*endregion*/

/*region Loading */

#plugt .x-loading {
    opacity: .5;
    position: relative;
}

#plugt .x-loading {
    padding-left: 40px;
}

#plugt .x-loading::before {
    content: '';
    display: block;
    position: absolute;
    height: 100%;
    width: 40px;
    top: 0;
    left: 0;
    background-image: url("loading.svg");
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .5;
}

/*endregion*/

/*region Percents */

#plugt .x-percents-text {
    font-size: 12px;
}

#plugt .x-percents-value-wrap {
    color: #ff3636;
    font-weight: 600;
    font-size: 18px;
    margin-left: 5px;
}

#plugt .x-percents-wrap {
    position: relative;
    height: 15px;
    /* width: 80%; */
    /* max-width: 390px; */
}

#plugt .x-percents-text {
    margin-bottom: 15px;
}

#plugt .x-percents {
    position: relative;
    top: -8px;
    height: 8px;
    background-image: linear-gradient(90deg,
    #ff7676 0%,
    #ff7676 25%,
    #ff3636 26%,
    #ff3636 50%,
    #ff7676 51%,
    #ff7676 75%,
    #ff3636 76%,
    #ff3636 100%);
    background-position: 0 0;
    background-size: 50px auto;
    background-repeat: repeat;
    animation: move_bar 10s linear infinite;
    transform: skewX(-15deg);
    overflow: hidden;
    border-radius: 100px;
    box-shadow: 5px 3px 5px rgba(255, 54, 54, .4);
    width: 0;
    transition: width .5s;
}

#plugt .x-percents-bg {
    height: 8px;
    background-color: rgb(220 220 220);
    border-radius: 100px;
}

@keyframes move_bar {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 0;
    }
}

/*endregion*/

/*region Questions, answers */

#plugt .x-question-numbers {
    font-size: 14px;
    margin-bottom: 10px;
    color: rgb(100, 100, 100);
}

#plugt .x-question-title {
    font-size: 24px;
    max-width: 100%;
    /* n0, 2025-03-20 > Раньше было так, но потом начали делать очень длинные заголовки */
    /*max-width: 450px;*/
    margin: 10px 0 20px;
    font-weight: bold;
}

#plugt .x-question-with-images .x-answers {
    display: flex;
    flex-wrap: wrap;
}

#plugt .x-answer {
    margin: 0 0 20px;
    border: 2px solid rgb(220 220 220);
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
}

#plugt .x-question-with-images .x-answer {
    width: 45%;
    margin: 0 5% 20px 0;
}

#plugt .x-answer,
#plugt .x-answer-image,
#plugt .x-answer-image img {
    max-width: 100%;
}

#plugt .x-answer-image {
    cursor: zoom-in;
    margin-bottom: 5px;
}

#plugt .x-answer label {
    font-size: 16px;
    padding-left: 7px;
}

#plugt .x-questions-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: 2px solid rgb(220, 220, 220);
    padding-top: 20px;
    margin-bottom: 30px;
}

#plugt .x-questions-panel-inner {
    position: relative;
    padding: 0 40px 95px;
}

#plugt .x-finish-question {
    position: absolute;
    background-image: url("img/quiz-forward.png");
    background-size: 27px;
    background-position: right 11px center;
    font-weight: 400;
    bottom: 10px;
    right: 40px;
    left: 40px;
    width: calc(100% - 80px) !important;
}

/*endregion*/

/*region Close button */

#plugt .x-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: white;
    background-image: url("../img/close.svg");
    background-position: center;
    background-size: 15px;
    cursor: pointer;
    transition: all .2s;
}

#plugt .x-close:hover {
    background-color: red;
    background-image: url("../img/close-white.svg");
}

#plugt.x-fullscreen .x-close {
    display: none;
}

/*endregion*/

/*region Form, label, input, select*/

#plugt .x-input-group {
    margin: 0 auto;
    position: relative;
}

#plugt .x-input-group:not(:first-child) {
    margin-top: 20px;
}

#plugt label {
    cursor: pointer;
}

#plugt .x-input-group label {
    display: block;
    position: absolute;
    top: 7px;
    left: 13px;
    font-size: 11px;
    font-family: inherit;
    color: rgb(150, 150, 150);
    cursor: pointer;
}

#plugt .x-input-group.x-required label::after {
    content: '*';
    color: #d72c2c;
    font-size: 14px;
    position: relative;
    left: 2px;
}

#plugt .x-input-group input[type="text"],
#plugt .x-input-group input[type="number"],
#plugt .x-input-group input[type="email"],
#plugt .x-input-group input[type="phone"],
#plugt .x-input-group input[type="name"],
#plugt .x-input-group select {
    display: block;
    width: 100%;
    border-radius: 5px;
    border: 1px solid rgb(200, 200, 200);
    outline: none;
    padding: 22px 12px 7px;
    font-family: inherit;
    background-color: rgb(240, 240, 240);
    font-size: 16px;
    min-height: 52px;
    height: 52px;
}

#plugt .x-input-group select.x-starting-state-without-value {
    color: rgb(190, 190, 190);
}

#plugt select option {
    color: black;
}

#plugt input[type="text"]:focus,
#plugt input[type="number"]:focus,
#plugt input[type="email"]:focus,
#plugt input[type="phone"]:focus,
#plugt input[type="name"]:focus,
#plugt select:focus {
    border-color: rgb(30, 30, 30);
    box-shadow: none !important;
}

/*endregion*/

/*region Approval */

#plugt .plug-test_approval {
    width: auto;
    border-radius: 0;
    padding: 0;
    min-height: auto;
    height: auto;
    display: inline-block;
    margin-bottom: 0;
    margin-top: 0;
}

#plugt .plug-test-approval-wrap {
    margin: 10px 0 20px;
    position: relative;
    line-height: 1;
    color: rgb(50, 50, 50);
    top: 10px;
}

#plugt .plug-test_approval_label {
    position: relative;
    display: inline;
    left: 0;
    top: -2px;
    font-size: 12px;
    line-height: 1;
}

#plugt .plug-test-approval-wrap a {
    color: #fb3535;
}

#plugt .plug-test-approval-wrap p {
    margin-bottom: 10px;
}

/*endregion*/

/*region Buttons */

#plugt .x-button {
    display: block;
    width: 100%;
    padding: 13px 10px;
    background-color: rgb(230, 10, 10);
    border: 2px solid transparent;
    color: white;
    text-align: center;
    font-family: inherit;
    border-radius: 5px;
    margin: 30px 0 0;
    outline: none;
    cursor: pointer;
    font-size: 16px;
}

#plugt .x-button:focus,
#plugt .x-button:hover {
    background-color: rgb(250, 40, 40);
    border-color: rgb(30, 30, 30);
}

#plugt .x-button:active {
    background-color: rgb(200, 40, 40);
}

#plugt .x-button:not(:last-child) {
    margin-top: 15px;
}

#plugt .x-button:hover,
#plugt .x-button:focus {
    background-color: #d72c2c;
}

/*endregion*/

/*region Radio, checkboxes */

#plugt .x-radio-input-img,
#plugt .x-checkbox-input-img {
    display: inline-block;
    background-color: rgb(230, 230, 230);
    width: 20px;
    height: 20px;
    background-size: 100%;
    flex-shrink: 0;
    position: relative;
    top: 4px;
}

#plugt .x-radio-input-img {
    border-radius: 100px;

}

#plugt .x-radio-input-img.x-active {
    background-color: transparent;
    background-image: url("img/quiz-checkbox.png");
}

#plugt .x-checkbox-input-img {
    border-radius: 4px;
}

#plugt .x-checkbox-input-img.x-active {
    background-color: transparent;
    background-image: url("img/quiz-checked.png");
}

#plugt .x-answer [type="radio"],
#plugt .x-answer [type="checkbox"] {
    display: none;
}

/*endregion*/

/*region Small screen size */

#plugt.x-screen-small-size {
    display: block;
    background-color: white;
}

#plugt.x-screen-small-size .x-block {
    max-width: 100%;
    min-width: 100%;
}

#plugt.x-screen-small-size .x-img-wrap {
    width: 100%;
    max-width: 100%;
    left: 0;
    top: 0;
}

#plugt.x-screen-small-size .x-img-wrap img {
    max-width: 650px;
    margin-bottom: 20px;
}

#plugt.x-screen-small-size .x-content-wrap,
#plugt.x-screen-small-size .x-questions-panel-inner {
    max-width: 100%;
    min-width: 100%;
}

/*endregion*/

/*region Footer */

#plugt .x-footer {
    display: none !important;
    /*display: flex;*/

    background-color: #10101a;
    color: rgba(255, 255, 255, .8);
    padding: 25px 0 30px;
    font-size: 12px;
    position: absolute;
    left: 0;
    width: 100%;
    margin-top: 20px;
    line-height: 1.6;
    justify-content: center;
}

#plugt.x-fullscreen .x-footer,
#plugt.x-screen-small-size .x-footer {
    background-color: white;
    color: rgba(0, 0, 0, .7);
}

#plugt.x-fullscreen .x-footer a,
#plugt.x-screen-small-size .x-footer a {
    color: rgba(0, 0, 0, .7) !important;
}

#plugt .x-footer .x-container {
    width: 550px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
}

#plugt .x-footer .main-site-logo {
    display: block;
    width: 100px;
    height: 30px;
    background-image: url(img/trendup-logo-white.png);
    background-repeat: no-repeat;
    background-position: top left;
    margin-bottom: 10px;
    background-size: 100% auto;
}

#plugt.x-fullscreen .x-footer .main-site-logo,
#plugt.x-screen-small-size .x-footer .main-site-logo {
    background-image: url(img/trendup-logo-black.png);
}

#plugt .x-footer a {
    color: rgba(255, 255, 255, .8) !important;
    transition: color .2s;
    font-size: 12px;
}

#plugt .x-footer a:hover,
#plugt .x-footer a:active {
    color: #ff3636 !important;
    text-decoration: underline;
}

#plugt .x-footer .x-second a {
    text-decoration: none;
}

#plugt.x-screen-small-size .x-footer .x-container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    flex-direction: column;
}

/*endregion*/

@media screen and (min-width: 651px) {

    #plugt.x-screen-small-height {
        padding: 20px;
    }

    #plugt.x-screen-small-height .x-block {
        max-height: 90vh;
        overflow-y: auto;
    }

    #plugt.x-screen-small-height .x-content-wrap {
        position: relative;
    }

    #plugt.x-screen-small-height .x-questions-panel {
        bottom: -20px;
        left: -40px;
        width: calc(100% + 80px);
        padding-top: 20px;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 500px) {

    #plugt .x-questions-panel-inner {
        padding: 0 5px 95px;
    }

    #plugt .x-percents-wrap {
        width: 100%;
        max-width: 100%;
    }

    #plugt.x-screen-small-size .x-block {
        padding: 20px;
    }

    #plugt.x-screen-small-size .x-questions-panel {
        padding: 20px 20px 0;
    }

    #plugt.x-screen-small-size .x-footer .x-first {
        margin-bottom: 20px;
    }

    #plugt.x-screen-small-size .x-questions.x-content-group {
        padding-bottom: 200px;
    }
}
