.yandex-quiz-block {
    padding: 80px 0;

}

.yandex-quiz-block__shell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 460px);
    gap: 24px;
    background: #d2dbea;
}

.yandex-quiz-block__shell::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 100%;
    background: url("../img/bg-block-quiz.png") no-repeat bottom center / cover;
    pointer-events: none;
    z-index: 0;
}

.yandex-quiz-block__intro,
.yandex-quiz-block__form-wrap {
    position: relative;
    z-index: 1;
}

.yandex-quiz-block__intro {
    padding: 24px 18px;
    max-width: 520px;
}

.yandex-quiz-block__title {
    margin: 0;
    max-width: 420px;
    font-size: 42px;
    line-height: 0.95;
    font-weight: 600;
    color: #4a5fe6;
}

.yandex-quiz-block__description {
    margin: 40px 0 0;
    max-width: 370px;
    font-size: 16px;
    line-height: 1.28;
    font-weight: 400;
    color: #2f3443;
}

.yandex-quiz-block__form-wrap .wpcf7 {
    width: 100%;
}

.yandex-quiz-block__form-wrap .question_block-quests {
    width: 100%;
    min-height: 520px;
    border-radius: 16px;
    background: #97AEFF4D;
    backdrop-filter: blur(10px);
    padding: 34px 30px;
    display: grid;
    align-content: space-between;
    justify-items: stretch;
}

.yandex-quiz-block__form-wrap .progress-indicator {
    margin: 0 0 12px;
    text-align: right;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #2f3443;
}

.wpcf7-form-control wpcf7-radio{
	display:grid;
	justify-content:center;
}

.question_form{
	display:grid;
}

.yandex-quiz-block__form-wrap .quiz-step {
    display: none;
}

.yandex-quiz-block__form-wrap .quiz-step.active {
    display: grid;
    width: 100%;
    min-height: 405px;
    align-content: space-between;
}

.yandex-quiz-block__form-wrap .head_frm {
    margin: 0;
    width: 100%;
    font-size: 52px;
    line-height: 0.95;
    font-weight: 600;
    color: #2f3443;
}

.yandex-quiz-block__form-wrap .question_form {
    gap: 18px;
}

.yandex-quiz-block__form-wrap .question_form.input_quest input[type="text"],
.yandex-quiz-block__form-wrap .question_form.input_quest input[type="url"],
.yandex-quiz-block__form-wrap .question_form.input_quest input[type="tel"],
.yandex-quiz-block__form-wrap .question_form.input_quest input[type="email"],
.yandex-quiz-block__form-wrap .question_form.input_quest input[type="number"] {
    width: 100%;
    min-height: 64px;
    border-radius: 999px;
    border: 1px solid rgba(44, 44, 44, 0.2);
    background: rgba(255, 255, 255, 0.68);
    padding: 14px 24px;
    font-size: 22px;
    line-height: 1.2;
    color: #2f3443;
}

.yandex-quiz-block__form-wrap .question_form.input_quest input::placeholder {
    color: rgba(44, 44, 44, 0.45);
}

.yandex-quiz-block__form-wrap .next-button,
.yandex-quiz-block__form-wrap .question_btn {
    align-self: end;
    justify-self: end;
    border: 0;
    border-radius: 999px;
    min-height: 52px;
    padding: 14px 30px;
    background: #ffd027;
    color: #2f3443;
    font-size: 22px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
}

.yandex-quiz-block__form-wrap .next-button:hover,
.yandex-quiz-block__form-wrap .question_btn:hover {
    background: #f4c000;
}

.yandex-quiz-block__form-wrap .question_back {
    display: none;
}

@media (max-width: 1240px) {
    .yandex-quiz-block__title {
        font-size: 50px;
    }

    .yandex-quiz-block__description {
        font-size: 18px;
    }

    .yandex-quiz-block__form-wrap .head_frm {
        font-size: 44px;
    }

    .yandex-quiz-block__form-wrap .progress-indicator {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .yandex-quiz-block {
        padding: 60px 0;
    }

    .yandex-quiz-block__shell {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .yandex-quiz-block__shell::before {
        height: 40%;
    }

    .yandex-quiz-block__intro {
        max-width: 100%;
        padding: 12px;
    }

    .yandex-quiz-block__title {
        max-width: 100%;
        font-size: 42px;
    }

    .yandex-quiz-block__description {
        max-width: 100%;
        margin-top: 20px;
        font-size: 16px;
    }

    .yandex-quiz-block__form-wrap .question_block-quests {
        min-height: 470px;
        padding: 24px 20px;
    }

    .yandex-quiz-block__form-wrap .quiz-step.active {
        min-height: 360px;
    }

    .yandex-quiz-block__form-wrap .head_frm {
        font-size: 36px;
    }

    .yandex-quiz-block__form-wrap .progress-indicator {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .yandex-quiz-block {
        padding: 44px 0;
    }

    .yandex-quiz-block__title {
        font-size: 32px;
        line-height: 1;
    }

    .yandex-quiz-block__description {
        font-size: 14px;
        line-height: 1.35;
    }

    .yandex-quiz-block__form-wrap .question_block-quests {
        min-height: 420px;
        border-radius: 14px;
        padding: 18px 14px;
    }

    .yandex-quiz-block__form-wrap .quiz-step.active {
        min-height: 320px;
    }

    .yandex-quiz-block__form-wrap .head_frm {
        font-size: 30px;
    }

    .yandex-quiz-block__form-wrap .progress-indicator {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .yandex-quiz-block__form-wrap .question_form.input_quest input[type="text"],
    .yandex-quiz-block__form-wrap .question_form.input_quest input[type="url"],
    .yandex-quiz-block__form-wrap .question_form.input_quest input[type="tel"],
    .yandex-quiz-block__form-wrap .question_form.input_quest input[type="email"],
    .yandex-quiz-block__form-wrap .question_form.input_quest input[type="number"] {
        min-height: 54px;
        font-size: 16px;
        padding: 12px 16px;
    }

    .yandex-quiz-block__form-wrap .next-button,
    .yandex-quiz-block__form-wrap .question_btn {
        min-height: 46px;
        font-size: 16px;
        padding: 12px 22px;
    }
}

/* =========================
   Точная подгонка под макет
   ========================= */
.yandex-quiz-block__shell {
    min-height: 590px;
}

.yandex-quiz-block__intro {
    padding: 34px 40px 40px;
}

.yandex-quiz-block__title {
    max-width: 470px;
    font-size: 42px;
    line-height: 0.94;
    letter-spacing: -0.02em;
}

.yandex-quiz-block__description {
    margin-top: 34px;
    max-width: 430px;
    font-size: 20px;
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.yandex-quiz-block__form-wrap .wpcf7,
.yandex-quiz-block__form-wrap .wpcf7-form {
    width: 100%;
    height: 100%;
}






.yandex-quiz-block__form-wrap .quiz-step.active {
    display: grid;
    min-height: 430px;
    align-content: space-between;
    gap: 20px;
}

.yandex-quiz-block__form-wrap .head_frm,
.yandex-quiz-block__form-wrap .head_frm.end_head {
    margin: 0;
    text-align: left;
    font-size: 36px;
    line-height: 0.94;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: #2f3443;
}

.yandex-quiz-block__form-wrap .quiz__form-finally-text,
.yandex-quiz-block__form-wrap .highlight-text {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    text-align: left;
    background: transparent;
    color: #2f3443;
}

.yandex-quiz-block__form-wrap .question_form {
    width: 100%;
    gap: 14px;
}

.yandex-quiz-block__form-wrap .question_form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.yandex-quiz-block__form-wrap .question_block-quests input[type="text"],
.yandex-quiz-block__form-wrap .question_block-quests input[type="url"],
.yandex-quiz-block__form-wrap .question_block-quests input[type="tel"],
.yandex-quiz-block__form-wrap .question_block-quests input[type="email"],
.yandex-quiz-block__form-wrap .question_block-quests input[type="number"],
.yandex-quiz-block__form-wrap .question_block-quests textarea {
    width: 100% !important;
    min-height: 64px;
    border: 1px solid rgba(44, 44, 44, 0.22) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow: none !important;
    padding: 14px 24px !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    color: #2f3443 !important;
}

.yandex-quiz-block__form-wrap .question_block-quests input::placeholder,
.yandex-quiz-block__form-wrap .question_block-quests textarea::placeholder {
    color: rgba(44, 44, 44, 0.45) !important;
}

.yandex-quiz-block__form-wrap .question_form .wpcf7-list-item {
    margin: 0 0 10px;
}

.yandex-quiz-block__form-wrap .question_form .wpcf7-list-item label {
    gap: 12px;
    padding-left: 0;
    font-size: 16px;
    line-height: 1.2;
    color: #2f3443;
}

.yandex-quiz-block__form-wrap .question_form .wpcf7-list-item label::before,
.yandex-quiz-block__form-wrap .question_form .wpcf7-list-item label::after {
    content: none;
}

.yandex-quiz-block__form-wrap .question_form input[type="radio"],
.yandex-quiz-block__form-wrap .question_form input[type="checkbox"] {
    position: static !important;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(44, 44, 44, 0.35);
    cursor: pointer;
}

.yandex-quiz-block__form-wrap .question_form input[type="checkbox"] {
    border-radius: 5px;
}

.yandex-quiz-block__form-wrap .question_form input[type="radio"] {
    border-radius: 50%;
}

.yandex-quiz-block__form-wrap .question_form input[type="radio"]:checked,
.yandex-quiz-block__form-wrap .question_form input[type="checkbox"]:checked {
    background: #4a5fe6;
    border-color: #4a5fe6;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.yandex-quiz-block__form-wrap .next-button,
.yandex-quiz-block__form-wrap .question_btn,
.yandex-quiz-block__form-wrap .yellow-btn,
.yandex-quiz-block__form-wrap input[type="submit"].yellow-btn {
    width: auto !important;
    min-width: 245px;
    min-height: 52px;
    align-self: end;
    justify-self: end;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    background: #ffd027 !important;
    color: #2f3443 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.yandex-quiz-block__form-wrap .next-button:hover,
.yandex-quiz-block__form-wrap .question_btn:hover,
.yandex-quiz-block__form-wrap .yellow-btn:hover {
    background: #f4c000 !important;
}

.yandex-quiz-block__form-wrap .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.2;
    color: #ea4a4a;
}

.yandex-quiz-block__form-wrap .wpcf7-response-output {
    margin: 10px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.32);
    color: #2f3443;
    font-size: 14px;
    line-height: 1.3;
    padding: 8px 10px !important;
}

/* В макете нет большого красного блока ошибки снизу карточки */
.yandex-quiz-block__form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.yandex-quiz-block__form-wrap .wpcf7 form.unaccepted .wpcf7-response-output,
.yandex-quiz-block__form-wrap .wpcf7 form.payment-required .wpcf7-response-output {
    display: none;
}

@media (max-width: 1240px) {
    .yandex-quiz-block__title {
        font-size: 56px;
    }

    .yandex-quiz-block__description {
        font-size: 18px;
    }

    .yandex-quiz-block__form-wrap .progress-indicator {
        font-size: 32px;
    }

    .yandex-quiz-block__form-wrap .head_frm,
    .yandex-quiz-block__form-wrap .head_frm.end_head {
        font-size: 44px;
    }

    .yandex-quiz-block__form-wrap .question_block-quests input[type="text"],
    .yandex-quiz-block__form-wrap .question_block-quests input[type="url"],
    .yandex-quiz-block__form-wrap .question_block-quests input[type="tel"],
    .yandex-quiz-block__form-wrap .question_block-quests input[type="email"],
    .yandex-quiz-block__form-wrap .question_block-quests input[type="number"],
    .yandex-quiz-block__form-wrap .question_block-quests textarea {
        font-size: 20px !important;
    }

    .yandex-quiz-block__form-wrap .next-button,
    .yandex-quiz-block__form-wrap .question_btn,
    .yandex-quiz-block__form-wrap .yellow-btn,
    .yandex-quiz-block__form-wrap input[type="submit"].yellow-btn {
        font-size: 20px !important;
    }
}

@media (max-width: 991px) {
    .yandex-quiz-block__intro {
        padding: 20px 14px;
    }

    .yandex-quiz-block__title {
        font-size: 44px;
    }

    .yandex-quiz-block__description {
        font-size: 16px;
        margin-top: 20px;
    }

    .yandex-quiz-block__form-wrap .question_block-quests {
        min-height: 470px;
        padding: 22px 18px;
    }

    .yandex-quiz-block__form-wrap .progress-indicator {
        font-size: 28px;
    }

    .yandex-quiz-block__form-wrap .head_frm,
    .yandex-quiz-block__form-wrap .head_frm.end_head {
        font-size: 36px;
    }

    .yandex-quiz-block__form-wrap .question_block-quests input[type="text"],
    .yandex-quiz-block__form-wrap .question_block-quests input[type="url"],
    .yandex-quiz-block__form-wrap .question_block-quests input[type="tel"],
    .yandex-quiz-block__form-wrap .question_block-quests input[type="email"],
    .yandex-quiz-block__form-wrap .question_block-quests input[type="number"],
    .yandex-quiz-block__form-wrap .question_block-quests textarea {
        min-height: 56px;
        font-size: 18px !important;
        padding: 12px 16px !important;
    }

	
    .yandex-quiz-block__form-wrap .question_btn,
    .yandex-quiz-block__form-wrap .yellow-btn,
    .yandex-quiz-block__form-wrap input[type="submit"].yellow-btn {
        min-width: 190px;
        min-height: 46px;
        font-size: 20px !important;
        padding: 10px 20px !important;
    }

    .yandex-quiz-block__form-wrap .question_form .wpcf7-list-item label {
        font-size: 17px;
    }
}
