/**
 * Template Page Quiz
 */

.page-template-quiz .entry-header,
.page-template-quiz .entry-content {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--narrow-width);
}

.entry-header {
    margin-bottom: 1em;
    margin-top: 3em;
}

.entry-title {
    margin-bottom: 0;
    margin-top: 0;
}

@media screen and (min-width: 821px) {
    .page-template-quiz article.page {
        display: initial;
    }
}

/*-----------------------------------------------
# QSM - Quiz and Survey Master
-----------------------------------------------*/

.qsm-error-message {
    background-color: #fff;
    color: #ff5b45;
    font-weight: bold;
}

.qsm-page {
    background-color: #f0f0f0;
}

.qsm-page .quiz_section {
    margin-bottom: 1.5em;
    padding-left: 1em;
    padding-right: 1em;
}

.qsm-page .quiz_section.quiz_begin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath fill='%23f0f0f0' d='M0 40 50 0l50 40H0z'/%3E%3C/svg%3E");
    background-color: #fff;
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: 1.5em auto;
    padding: 0 0 1.5em;
}

.qsm-page .quiz_section.qsm-question-wrapper {
    border-bottom: dotted 4px #fff;
    padding-bottom: 1.5em;
    padding-top: 0;
}

.qsm-page .quiz_section:not(.qsm-question-wrapper):last-child {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath fill='%23ffffff' d='M0 40 50 0l50 40H0z'/%3E%3C/svg%3E");
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: 1.5em auto;
    padding-bottom: 2em;
    padding-top: 0;
}

.qsm-question-page .quiz_section:first-child {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath fill='%23ffffff' d='m0 0 50 40 50-40H0z'/%3E%3C/svg%3E");
    background-position: left top;
    background-repeat: repeat-x;
    background-size: 1.5em auto;
}

.quiz_section h2 {
    font-size: 1.5em
}

.quiz_section h3 {
    font-size: 1.3em;
    font-weight: normal;
    margin-top: 0;
}

.quiz_section[class*="question-section-id-"] .mlw_qmn_question {
    display: block;
    font-weight: bold;
    margin-bottom: 1em;
}

.quiz_section .qsm_contact_div .mlw_qmn_question {
    font-weight: bold;
}

.quiz_section .qmn_mc_answer_wrap {
    margin-bottom: 6px;
}

.qsm_contact_div {
    margin: 10px 0;
}

.qmn_radio_answers .mlw_horizontal_choice {
    display: block;
}

.qmn_radio_answers .mlw_horizontal_choice .qmn_quiz_radio {
    display: inline-block;
    margin-right: 0.5em;
}

.qsm-pagination {
    clear: both;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 2em;
    position: relative;
}

.progressbar-text {
    top: -25px !important;
}

.qsm-pagination .qsm-btn {
    display: inline-block;
    border: 0;
    border-radius: 0;
    color: #fff;
    line-height: 1;
    margin-top: 1em;
    padding: .6em 1em .65em;
    -webkit-box-ordinal-group: 5;
    -ms-flex-order: 4;
    order: 4;
}

.entry-content .qmn_quiz_container .qmn_btn,
.entry-content .qmn_quiz_container .btn {
    color: #fff !important;
    background: var(--color-links) !important;
}

.entry-content .qmn_quiz_container .qmn_btn:hover,
.entry-content .qmn_quiz_container .btn:hover {
    background: var(--color-links-hover) !important;
}

.qsm-contact-type-checkbox input[type=checkbox]+.mlw_qmn_question {
    display: inline-block;
    font-weight: normal;
    padding-left: 8px
}

.qsm-page .quiz_begin .mlw_qmn_message_before {
	color: var(--color-text);
	font-size: 1em;
	margin-bottom: 0;
	padding-bottom: 0;
}

.qsm-page .quiz_section.question-type-6 {
    padding-bottom: 1.5em;
}

.qsm-page .quiz_section.question-type-6 p {
    font-weight: 400;
    font-size: 1;
}

.qsm-page .quiz_section.question-type-6 p:last-child {
    margin-bottom: 0;
}

.qsm-question-page .quiz_section:first-child.question-type-6 {
    padding-top: 2em;
}

.qsm-page .quiz_section.question-type-6 .mlw_qmn_question {
    margin-bottom: 0;
}

.qsm-page .question-type-6 h2 {
    margin: 0;
}

.qsm-page .qsm_mailchimp_label {
    margin-left: 10px;
}

.qsm-page .qmn_question_answer {
    margin-top: 16px;
}

.qsm-page .qmn_question_answer p {
    margin-bottom: 8px;
}

.qsm-page .qmn_question_answer br {
    display: none;
}

.qsm-page .qmn_user_incorrect_answer {
    color: #f00;
}

.qsm-page .qmn_user_correct_answer {
    color: var(--color-accent);
}

.qsm-page h2 {
    margin-top: 0.5em;
}

.qsm-page br {
    display: none;
}

.quiz-consent {
    font-size: 0.85em;
    font-weight: 400;
}

.quiz_section .qsm_mailchimp_label {
    font-weight: 400;
}

.quiz_section .qsm_mailchimp_checkbox_span {
    display: flex;
    align-items: flex-start;
}

.quiz_section #qsm_mailchimp_checkbox {
    margin: 6px 5px 4px 3px !important;
}

.site-main .quiz_section select,
.site-main .quiz_section textarea,
.site-main .quiz_section input[type="text"],
.site-main .quiz_section input[type="email"],
.site-main .quiz_section input[type="url"],
.site-main .quiz_section input[type="number"] {
    border: 1px solid var(--color-links);
    border-radius: 0;
    color: #555;
    font-size: 16px;
    width: 100% !important;
}

.qsm-page .quiz_section input[type="text"] {
    margin-top: 0;
    padding: 0.5em;
}

.qsm-page .quiz_section .qmn_radio_answers label, 
.qsm-page .quiz_section .qmn_check_answers label, 
.qsm-page .quiz_section .qmn_accept_answers label {
	font-size: 1em;
}

.page-template-quiz .qsm-pagination .qmn_btn,
.page-template-quiz .qsm-pagination .qsm-quiz-container.qmn_quiz_container .qmn_btn,
.page-template-quiz .qsm-pagination .qsm-quiz-container.qmn_quiz_container .btn {
    border-color: var(--color-links);
    border-radius: 0 !important;
	margin-top: 0 !important;
	box-shadow: none !important;
}

.page-template-quiz .qsm-progress-bar .progressbar-text {
    color: var(--color-accent);
    font-size: 1em;
    top: -24px !important;
}

/* Radio */

.quiz_section .qmn_radio_answers .qmn_mc_answer_wrap .qmn_quiz_radio {
    display: none;
}

.quiz_section .qmn_radio_answers .qmn_mc_answer_wrap .qsm-input-label {
    background-color: #fff;
    border: 1px solid #ffffff80;
    display: flex;
    align-items: flex-start;
    font-size: 1em;
    margin: 0 0 0.5em;
    padding: 0.4em 1em;
    width: min( 100%, 25em );
}

.quiz_section .qmn_radio_answers .qmn_mc_answer_wrap .qsm-input-label:hover {
    background-color: #ffffff90;
    -webkit-box-shadow: 0 0 10px rgba(49, 173, 179, .35);
    -moz-box-shadow: 0 0 10px rgba(49, 173, 179, .35);
    box-shadow: 0 0 10px rgba(49, 173, 179, .35);
}

.quiz_section .qmn_radio_answers .qmn_mc_answer_wrap .qmn_quiz_radio:checked + label {
    border-color: var(--color-accent);
    font-weight: 700;
}

#mlw_error_message_bottom {
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .qsm-page .quiz_section {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }
    .qsm-page .quiz_begin {
        padding-left: 0;
        padding-right: 0;
    }
}
