/* Основные стили квиза */


.open-quiz-btn {
	position: fixed;
	left: 15px;
	bottom: 15px;
}

.quiz-modal * {
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
}

.quiz-modal h4,
.quiz-modal h5,
.quiz-modal h6 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: normal;
}

.quiz-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #333;
    background-color: #f5f5f5;
    font-size: 12px;
}

.quiz-content {
    margin: 0;
    padding: 20px 20px 0 20px;
    border: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.quiz-title {
    font-size: 1.5em;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
    margin-left: 10px;
}

.quiz-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.quiz-close:hover {
    color: black;
}

.quiz-body {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
}

#quizForm {
    display: contents;
}

/* Стили для экранов */
.quiz-screen {
    display: none;
    height: 100%;
    flex-direction: column;
    justify-content: space-around;
}

.quiz-screen.active {
    display: flex;
}

/* Экран приветствия */
#welcomeScreen {
    text-align: center;
    justify-content: space-around;
    align-items: normal;
    flex-direction: row;
    flex-wrap: wrap;
}

.welcome-description {
    margin: 20px 0;
    line-height: 1.5;
    max-width: 800px;
    font-size: 2.5em;
    font-weight: 700;
}

.welcome-subdescription {
    font-size: 1.34em;
}

@media screen and (max-width: 680px) {
    .welcome-description {
        font-size: 2em;
        line-height: 1.2;
        text-align: center;
        margin: 5px 0;
    }

    .welcome-subdescription {
        font-size: 1.2em;
    }
}

.welcome-right,
.welcome-left {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.welcome-right {
    padding: 0 40px 20px 40px;
}

@media screen and (max-width: 680px) {

    .welcome-right,
    .welcome-left {
        width: auto;
    }

    .welcome-right {
        padding: 0;
    }
}

.welcome-image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.question-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.question-container {
    display: none;
}

.question-container.active {
    display: block;
}

.question-image {
    margin: 0 auto 30px;
    max-width: 100%;
    height: auto;
    display: block;
}

.question-text {
    font-size: 2.65em;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 45px;
    text-align: center;
    font-weight: 700;
}

@media screen and (max-width: 680px) {
    .question-text {
        font-size: 2em;
        line-height: 1.2;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.answers-container {
    display: flex;
    justify-content: center;
}

.answers-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Стили для ответов */
.answer-item {
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: fit-content;
    min-height: 60px;
    overflow: hidden;
}

.answer-item:last-child {}

.answer-item:hover {
    background-color: #fafafa;
    box-shadow: 1px 3px 5px #324ac7;
}

.answer-checkbox:checked+.answer-item {
    background-color: #324ac7;
    border-color: #324ac7;
    color: #fff;
}

.answer-text {
    display: flex;
    align-items: center;
    padding: 15px;
    font-size: 1.18em;
}

.answer-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Чекбоксы */
.answer-checkbox {
    display: none;
}

.checkmark {
    height: 56px;
    width: 56px;
    right: -28px;
    top: -28px;
    transform: rotate(45deg);
    border: none;
    border-radius: 0;
    border-color: #0000001a;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    background: rgba(255, 255, 255, 0);
    position: absolute;
}

.answer-checkbox:checked+.answer-item .checkmark {
    border-color: #324ac7;
    background-color: #324ac7;
    opacity: 1;
}

.checkmark svg {
    transform: scale(1) rotate(-45deg);
    transition: all .3s 0s ease;
    display: block;
    top: 16px;
    position: relative;
}

.checkmark svg path {
    stroke: #fff;
}

/* Экран контактов */

.contact-form {
    width: 315px;
}

.contact-description {
    font-size: 1.18em;
    text-align: center;
}

.contact-form input:not(.terms-checkbox) {
    /*background: #f5f5f5;*/
    border: 1px solid #324ac72b;
    border-radius: 5px;
    padding: 14px 24px;
    width: 100%;
    margin: 10px 0 0;
    font-size: 1.2em;
}

.contact-form .terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-top: 15px;
}

.contact-form .terms-checkbox-label input {
    margin-right: 10px;
}

/* Футеры для разных экранов */

.welcome-footer,
.questions-footer,
.contact-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 35px 0;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #eee;
    background-color: #f5f5f5;
}

.contact-footer,
.welcome-footer {
    justify-content: center;
}

@media screen and (min-width: 680px) {
    .welcome-footer {
        justify-content: flex-start;
    }
}

.welcome-footer button {
    width: 260px;
}


@media screen and (max-width: 680px) {
    .welcome-footer,
    .questions-footer,
    .contact-footer {
        padding: 15px 0;
    }
}

.quiz-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: #324ac7;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    border-radius: 10px;
}

.quiz-btn svg {
    margin-right: 16px;
}

.quiz-btn svg path {
    fill: #fff;
}

.quiz-btn:hover {
    background-color: #415adbff;
}

.quiz-btn:disabled {
    background-color: #324ac7;
    opacity: .5 !important;
    cursor: not-allowed;
}

.quiz-progress {
    text-align: center;
    font-size: 1.2em;
    color: #333;
}

.noScroll {
    overflow: hidden;
}

.d-none {
    display: none;
}