@font-face {
    font-family: 'Manrope Kabu';
    src: url('../fonts/Manrope-VariableFont_wght.woff2') format('woff2'),
    url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Regular.woff2') format('woff2'),
    url('../fonts/SF-Pro-Display-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

.kabu-quiz-wrapper {
    width: 100%;
}
.kabu-quiz-wrapper_container {
    max-width: 1280px;
    padding: 0 24px;
    font-family: 'Manrope Kabu', 'Manrope', sans-serif;
    margin: auto;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    min-height: 100vh;
    overflow: hidden;
}

.kabu-quiz__header {
    padding-top: 40px;
}

.kabu-quiz__header a {
    color: #9B938B;
    font-size: 14px;
    display: flex;
    gap: 12px;
    line-height: 1.1;
    align-items: center;
}

.kabu-quiz__content {
    max-width: 798px;
    width: 100%;
    align-self: center;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.kabu-quiz__content-progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.kabu-quiz__content-progress_number {
    color: #666666;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
}

.kabu-quiz__content-progress_bar {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    border-radius: 10px;
    background: linear-gradient(90deg, #D5CFEA 0%, #C8BCF1 100%);
}

.kabu-quiz__content-progress_bar-item {
    height: 10px;
    width: 100%;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.kabu-quiz__content-progress_bar-item::after {
    content: "";
    display: block;
    position: relative;
    width: 3px;
    height: 100%;
    background-color: #FAF6F1;
    z-index: 2;
}

.kabu-quiz__content-progress_bar-item:first-of-type::after {
    content: none;
}
.kabu-quiz__content-progress_bar-item:first-of-type {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.kabu-quiz__content-progress_bar-item:last-of-type {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.kabu-quiz__content-progress_bar-item::before {
    content: "";
    z-index: 1;
    position: absolute;
    inset: 0;
    background: #fff;
    transform-origin: right;
    transform: scaleX(1);
    transition: transform 0.45s ease;
    will-change: transform;
}

.kabu-quiz__content-progress_bar-item.colored::before {
    transform: scaleX(0);
}

.kabu-quiz__content_question {
    margin-top: 8px;
}

.kabu-quiz__content_question-title {
    margin-bottom: 32px;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    color: #3C3C3C;
}
.kabu-quiz__content_question-answers {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    flex-wrap: wrap;
}
.kabu-quiz__content_question-answer-item {
    width: calc(50% - 12px);
    background-color: #E2B97F26;
    padding: 24px 24px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #3C3C3C;
    cursor: pointer;
    box-shadow: 0px 2px 4px 0px #0000000A;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.kabu-quiz__content_question-answer-item:hover {
    box-shadow: 0px 4px 8px 0px #00000014;
}
.kabu-quiz__content_action {
    display: flex;
    gap: 24px;
}
.kabu-quiz__content_action>div {
    min-height: 58px;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px 0px #0000000A;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.kabu-quiz__content_action-prev {
    max-width: 250px;
    background-color: #FAF6F1;
    gap: 8px;
    color: #3c3c3c;
}
.kabu-quiz__content_action-prev:hover {
    border: 1px solid #FAF6F1;
}
.kabu-quiz__content_action-prev.disabled {
    opacity: .6;
    pointer-events: none;
    cursor: not-allowed;
}
.kabu-quiz__content_action-none {
    background-color: #EAEAEA;
}
.kabu-quiz__content_action-none:hover {
    box-shadow: 0px 4px 8px 0px #00000014;
}

/* ANIMATION */
.kabu-quiz__content_question-item {
    height: 0;
}
.kabu-quiz__content_question-item.active {
    display: block;
}
.kabu-quiz__content_question {

}
.kabu-quiz__content_question {
    display: grid;
    transition: height 0.3s ease;
}
.kabu-quiz__content_question-item {
    grid-area: 1 / 1;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}
.kabu-quiz__content_question-item.active {
    opacity: 1;
    pointer-events: auto;
    height: 100%;
}
/** QUIZ LOADER */
#kabu-quiz-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#kabu-quiz-loader.active {
    opacity: 1;
    visibility: visible;
}

#kabu-quiz-loader .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: kabu-quiz-spin 1s linear infinite;
}

@keyframes kabu-quiz-spin {
    to {
        transform: rotate(360deg);
    }
}
/** END LOADER */

/** FOOTER */
.kabu-quiz__footer {
    display: flex;
    justify-content: space-between;
}
.kabu-quiz__footer_copyright-text {
    color: #9B938B;
    font-size: 14px;
}
.kabu-quiz__footer_links {
    display: flex;
    gap: 56px;
}
.kabu-quiz__footer_links a {
    color: #9B938B;
    font-size: 12px;
}
.kabu-quiz__footer_link-split {
    display: none;
}
/** END FOOTER */
.kabu-quiz-wrapper-need-trigger {
    position: fixed;
    inset: 0;
    margin: auto;
    transform: translateY(-100%);
    transition: transform 0.6s ease;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.kabu-quiz-wrapper-need-trigger .kabu-quiz__header {
    margin-bottom: 32px;
}
.kabu-quiz-wrapper-need-trigger .kabu-quiz__footer {
    margin-top: 32px;
}
body.triggered-quiz div[data-elementor-type="wp-page"]>div:not(.kabu-quiz) {
    display: none;
}
body.triggered-quiz .kabu-quiz-wrapper-need-trigger {
    transform: translateY(0);
}

.kabu-quiz__header a:focus {
    outline-width: 0;
}

@media (max-width: 768px) {
    .kabu-quiz-wrapper {
        gap: 32px;
    }
    .kabu-quiz__content-progress_number {
        font-size: 14px;
    }
    .kabu-quiz__content_question-answer-item {
        font-size: 16px;
        padding: 24px 16px;
        width: 100%;
        flex-direction: row;
        justify-content: start;
        align-items: center;
        gap: 16px;
        min-height: unset;
    }
    .kabu-quiz__content_question-answers {
        gap: 20px;
    }
    .kabu-quiz__content_action {
        flex-direction: column-reverse;
    }
    .kabu-quiz__content_action>div {
        width: 100%;
    }
    .kabu-quiz__content_action-prev {
        max-width: 100%;
    }
    .kabu-quiz__footer {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding-bottom: 40px;
    }
    .kabu-quiz__footer_links {
        align-items: center;
        gap: 8px;
    }
    .kabu-quiz__footer_link-split {
        display: block;
        width: 2px;
        height: 2px;
        background-color: #9B938B;
        border-radius: 50%;
    }
}