:root {
    --fontfamily: Rubik;
    --primarytextcolor: #000;
    --bodybg: #f7f9fa;
}

*,
*::before,
*::after {
    padding: 0px;
    margin: 0px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: var(--fontfamily), helvatica, Arial, sans-serif;
    font-size: 100%;
    line-height: 1;
    color: var(--primarytextcolor);
    background-color: var(--bodybg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

.txt_center {
    text-align: center;
}

.it_poll {
    border: 1px solid #EDEAE5;
    background-color: #FBF8F4;
    padding: 20px 45px;
    border-radius: 5px;
    min-height: 100dvh;
}

.itp_section_hd {
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    color: #CC0000;
    margin-bottom: 15px;
}

.itp_section_hd_icon {
    line-height: 0px;
}

.itp_quest_hd {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    margin-bottom: 15px;
    text-align: center;
}

.itp_quest_content {
    display: flex;
    justify-content: center;
}

.itp_option {
    display: flex;
    align-items: center;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 26px;
    user-select: none;
}

.itp_option:last-child {
    margin-bottom: 20px;
}

.itp_q_radio_grp input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 8px;
    margin-right: 12px;
    display: grid;
    place-content: center;
}

.itp_q_radio_grp input[type="radio"]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    transform: scale(0);
    transition: 0.2s ease-in-out;
    background-color: #CC0000;
}

.itp_q_radio_grp input[type="radio"]:checked {
    border-color: #CC0000;
}

.itp_q_radio_grp input[type="radio"]:checked::before {
    transform: scale(1);
}

.itp_quest_footer {
    border-top: 1px solid #D9D9D9;
    padding-top: 30px;
    text-align: center;
}

#poll_results_section .itp_quest_footer {
    padding-top: 17px;
}

#question_set .itp_quest_footer {
    padding-top: 52px;
}

#question_set:not(:has(.itp_msg[style="display:none"])) .itp_quest_footer {
    padding-top: 13px;
}

.itp_msg {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #000;
    margin-bottom: 15px;
    min-height: 20px;
}

.itp_submit_btn {
    width: 171px;
    height: 40px;
    background-color: #CC0000;
    border: none;
    box-shadow: 0px 4px 4px 0px #00000026;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    margin: 0 auto;
    position: relative;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    color: #fff;
    padding-right: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.itp_submit_btn svg {
    position: absolute;
    top: 4px;
    right: 5px;
    transition: transform 0.3s ease;
}

.itp_submit_btn:hover {
    background-color: #e00000;
}

.itp_submit_btn:hover svg {
    transform: translateX(-5px);
}

.itp_poll_item:not(:last-child) {
    margin-bottom: 14px;
}

.itp_poll_grp {
    width: 100%;
    max-width: 379px;
    margin-bottom: 6px;
}

.itp_poll_label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 15px;
    line-height: 16.5px;
    color: #000000;
}

.itp_poll_bar_container {
    background-color: #DCD0C1;
    border-radius: 8px;
    height: 7px;
    overflow: hidden;
    width: 100%;
    max-width: 335px;
}

.itp_poll_bar_fill {
    background-color: #45C486;
    height: 100%;
    width: 0;
    border-radius: 8px;
    transition: width 0.3s ease;
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    to {
        width: var(--fill-width);
    }
}

.itp_poll_count {
    font-weight: 600;
    font-size: 18px;
    line-height: 18px;
    color: #000000;
    position: relative;
    top: 12px;
}

.itp_btn_outline {
    height: 40px;
    padding: 7px 25px;
    font-weight: 600;
    font-size: 14.72px;
    line-height: 100%;
    text-align: center;
    color: #CC0000;
    border: 1px solid #CC0000;
    border-radius: 25px;
    background-color: transparent;
    cursor: pointer;
    transition: visibility 0.3s;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
}

.itp_quest_grp {
    width: 100%;
    max-width: 346px;
    margin-bottom: 30px;
}

.itp_quest_option {
    min-height: 38px;
    border-radius: 24px;
    line-height: 1;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #E2E2E2;
    background-color: #fff;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px 10px 10px;
}

.itp_quest_option:last-child {
    margin-bottom: 0;
}

/* .itp_quest_option:hover {
  transform: scale(1.02);
} */

.itp_quest_option_default {
    background-color: #fff;
    border: 2px solid #eee;
}

.itp_quest_option_correct {
    background-color: #009612;
    color: #fff;
}

.itp_quest_option_wrong {
    background-color: #BC0000;
    color: #fff;
}

.itp_quest_icon {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    line-height: 0px;
}

.itp_quest_footer_type2 {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 30px;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    gap: 15px;
    max-width: 484px;
    justify-content: center;
}

.itp_progress_container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 284px;
}

.itp_quest_progress_bar {
    height: 6px;
    width: 100%;
    border-radius: 4px;
    background-color: #D9D9D9;
    overflow: hidden;
    position: relative;
}

.itp_quest_progress_fill {
    height: 100%;
    width: 0;
    background-color: #CC0000;
    transition: width 1s ease-out;
}

.itp_quest_progress_text {
    min-width: 40px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 14.72px;
    color: #000;
    margin-bottom: 5px;
}

/*
.itp_quest_footer_type2 .itp_btn_outline{
    margin-left: auto;
}
*/

.itp_score_container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.itp_score_heading {
    color: #333;
    font-weight: 500;
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 5px;
    margin-top: 10px;
}

.itp_score_text {
    font-weight: 500;
    font-size: 32px;
    line-height: 34px;
    margin-bottom: 10px;
    color: rgba(51, 51, 51, 1);
    padding-top: 15px;
}

.itp_score_circle_wrapper {
    width: 135px;
    height: 135px;
    background-color: #CC0000;
    border-radius: 50%;
    border: 7px solid #E8E3DB;
    margin-bottom: 15px;
    display: grid;
    place-content: center;
}

.itp_score_number {
    font-weight: 500;
    font-size: 42.62px;
    line-height: 52.23px;
    color: #fff;
}

.itp_score_number span {
    font-size: 25.21px;
    line-height: 52.23p
}

.thanks-quiz {
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    color: #000000;
    margin-top: 20px;
}

.first-slide-headline {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0px;
    text-align: center;
    color: rgba(51, 51, 51, 1);
}

.start-quiz-wrapper {
    height: 80px;
    background-color: #f5f2ed;
    display: grid;
    place-content: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 30;
    left: 0;
    border-radius: 0 0 5px 5px;
    border: 1px solid #EDEAE5;
    border-top: 0px;
}

.start-quiz-button {
    background-color: rgba(204, 0, 0, 1);
    color: #fff;
    padding: 11px 52px 11px 40px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 18px;
    font-weight: 500;
    background-image: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="white"/><path d="M15.1777 18.9169C15.0091 18.9169 14.8711 18.8632 14.7637 18.7559C14.6564 18.6332 14.6027 18.4952 14.6027 18.3419V8.4749C14.6027 8.30624 14.6564 8.16824 14.7637 8.0609C14.8711 7.95357 15.0091 7.8999 15.1777 7.8999H17.8227C17.9761 7.8999 18.1064 7.95357 18.2137 8.0609C18.3364 8.16824 18.3977 8.30624 18.3977 8.4749V18.3419C18.3977 18.4952 18.3364 18.6332 18.2137 18.7559C18.1064 18.8632 17.9761 18.9169 17.8227 18.9169H15.1777ZM15.0857 24.9999C14.9171 24.9999 14.7791 24.9462 14.6717 24.8389C14.5644 24.7316 14.5107 24.5936 14.5107 24.4249V21.5959C14.5107 21.4272 14.5644 21.2892 14.6717 21.1819C14.7791 21.0592 14.9171 20.9979 15.0857 20.9979H17.9147C18.0681 20.9979 18.1984 21.0592 18.3057 21.1819C18.4284 21.2892 18.4897 21.4272 18.4897 21.5959V24.4249C18.4897 24.5936 18.4284 24.7316 18.3057 24.8389C18.1984 24.9462 18.0681 24.9999 17.9147 24.9999H15.0857Z" fill="%23CC0000"/></svg>');
    background-repeat: no-repeat;
    background-position: top right;
    background-position-x: calc(100% - 4px);
    background-position-y: calc(100% - 4px);
}

.first-slide-headline-container {
    height: calc(100dvh - 150px);
    display: grid;
    align-content: center;
    max-width: 600px;
    margin-inline: auto;
}

.quiz-info-text {
    font-size: 17px;
    line-height: 25px;
    letter-spacing: 0px;
    text-align: center;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 19px;
    font-weight:500;
    min-height:50px;
}

.it_poll:has(.last-slide.swiper-slide-active) .itp_quest_footer_type2 {
    display: none;
}
.quiz_info_thanks{font-weight: 500;font-size: 18px;color: rgba(51, 51, 51, 1); line-height:20px;}

@media (min-width:680px){
    .itp_btn_outline:hover {
        background-color: #CC0000;
        color: #fff;
    }
}

@media (max-width:680px) {
    .it_poll {
        padding: 15px;
    }

    .itp_section_hd {
        font-size: 18px;
        line-height: 20px;
        column-gap: 6px;
        margin-bottom: 20px;
    }

    .itp_section_hd_icon svg {
        width: 19px;
        height: auto;
    }

    .itp_quest_hd {
        font-size: 16px;
        line-height: 24px;
    }

    #question_set .itp_quest_hd {
        margin-bottom: 15px;
    }

    .itp_q_radio_grp {
        width: 100%;
    }

    .itp_option {
        font-size: 14px;
    }

    .itp_option:last-child {
        margin-bottom: 30px;
    }

    #poll_results_section .itp_quest_footer {
        padding-top: 5px;
    }

    #question_set .itp_quest_footer {
        padding-top: 40px;
    }

    #question_set:not(:has(.itp_msg[style="display:none;"])) .itp_quest_footer {
        padding-top: 4px;
    }

    .itp_poll_bar_container {
        width: calc(100% - 50px)
    }

    .itp_quest_content {
        margin-top: 0px;
    }

    #poll_results_section .itp_quest_content {
        margin-top: 0px;
    }

    #question_set .itp_quest_content {
        margin-top: 0px;
    }

    .itp_quest_option {
        margin-bottom: 10px;
    }

    .itp_progress_container {
        max-width: 100%;
    }

    .itp_btn_outline {
        margin: 0 auto;
    }

    .itp_msg {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 15px;
    }

    .thanks-quiz {
        margin-top: 10dvh;
    }

    .itp_quest_footer_type2 {
        bottom: 15px;
        width: 100%;
        padding: 0px 15px;
    }

    .first-slide-headline {
        font-size: 18px;
        line-height: 26px;
    }

    .quiz-info-text {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 10px;
        min-height: 72px;
    }

    .itp_score_text {
        font-size: 22px;
        line-height: 35px;
        padding-top: 0px;
    }
    .itp_btn_outline:active {
        background-color: #CC0000;
        color: #fff;
    }
}