/* ==========================================================
   Quiz Plugin – Frontend Styles
   ========================================================== */

.tx-quiz {
    --quiz-navy:  #1B3A6B;
    --quiz-blue:  #3A72B8;
    --quiz-beige: #F5DFA0;
    --quiz-cream: #FDF8F0;
    --quiz-card:  #FAFAF7;
    --quiz-border:#E0D4C4;
    --quiz-text:  #2C2C2C;

    --quiz-slice-bg: var(--quiz-cream);

    max-width: 1095px;
    margin: 0 auto;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--quiz-text);
}

/* ---- Shared buttons ---- */
/* .tx-quiz .quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s;
    line-height: 1.2;
    font-family: inherit;
} */
.tx-quiz .quiz-btn:hover { 
    opacity: 0.87; 
    transform: translateY(-1px); 
}

.tx-quiz .quiz-btn--primary   { 
    background: var(--quiz-navy); 
    color: #fff; 
}

.tx-quiz .quiz-btn--secondary { 
    background: var(--quiz-navy); 
    color: #fff; 
}

/* ============================================================
   INTRO
   ============================================================ */
.quiz-intro .slice-9-content{
    background-color: var(--quiz-slice-bg);
    text-align: center;
    padding: 0 40px 24px;
}

.tx-quiz .quiz-intro__title {

    font-weight: 400;
    margin-bottom: 8px;

}

.tx-quiz .quiz-intro__subtext {
    font-size: 0.97rem;
    margin: 0 auto 1rem;
    max-width: 480px;
    line-height: 1.65;
}

.tx-quiz .quiz-intro__text {
    margin: 0 auto;
    line-height: 1.65;
    padding-bottom: 30px;
    font-weight: 400;
}

.tx-quiz .quiz-intro__text strong{
    font-weight: 700;
}


.tx-quiz .quiz-intro__text p { margin: 0; }

/* ============================================================
   QUESTION STEPS
   ============================================================ */
.tx-quiz .quiz-step {
    background: var(--quiz-card);
    border-radius: 16px;
    padding: 60px 60px 72px;
}

.tx-quiz .quiz-step__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.tx-quiz .quiz-step__icon img { height: 44px; width: auto; }

.tx-quiz .quiz-step__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tx-quiz .quiz-step__counter {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--quiz-navy);
}

.tx-quiz .quiz-step__subtitle {
    color: var(--quiz-blue);
}

.tx-quiz .quiz-step__question {
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.25em;
    padding-bottom: 20px;
}

/* ---- Answer options ---- */
.tx-quiz .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tx-quiz .quiz-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1.5px solid #E8E8E8;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(var(--bs-primary-rgb)) !important;
    transition: background 0.12s, border-color 0.12s, transform 200ms ease;
    line-height: 1.45;
    font-family: inherit;
}
.tx-quiz .quiz-option:hover, .tx-quiz .quiz-option:focus{
    background: #fce3b4;
    border-color: #b8a898;
}

.tx-quiz .quiz-option:active{
    transform: scale(0.98);
    transition: transform 200ms ease;
}

.tx-quiz .quiz-option--selected {
    background: #fce3b4;
}

/* ---- Multiselect checkbox indicator ---- */
.tx-quiz .quiz-option[data-type="selectMultiple"] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tx-quiz .quiz-option__checkbox {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: 1.5px solid var(--quiz-border);
    border-radius: 4px;
    position: relative;
    transition: background 0.12s, border-color 0.12s;
}

.tx-quiz .quiz-option--selected .quiz-option__checkbox {
    background: var(--quiz-navy);
    border-color: var(--quiz-navy);
}

.tx-quiz .quiz-option--selected .quiz-option__checkbox::after {
    content: "";
    position: absolute;
    left: 38%;
    top: 0.18rem;
    width: 0.3rem;
    height: 0.6rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tx-quiz .quiz-option__label {
    flex: 1;
}

.tx-quiz .quiz-step__actions { 
    margin-top: 1.25rem; 
    text-align: center;
}

/* ---- Free-text inline option ---- */
.tx-quiz .quiz-option--freetext {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.tx-quiz .quiz-option--freetext .quiz-option__label {
    white-space: nowrap;
    flex-shrink: 0;
}

.tx-quiz .quiz-freetext-input {
    flex: 1;
    min-width: 0;
    border: none;
    border-bottom: 1.5px solid var(--quiz-border);
    border-radius: 0;
    background: transparent;
    padding: 0.1rem 0.2rem;
    font-size: 0.93rem;
    font-family: inherit;
    color: var(--quiz-text);
    outline: none;
    transition: border-color 0.12s;
}

.tx-quiz .quiz-freetext-input:focus,
.tx-quiz .quiz-option--selected .quiz-freetext-input {
    border-bottom-color: var(--quiz-navy);
}



/* ============================================================
   RESULT
   ============================================================ */
 .tx-quiz .slice-9-row.slice-9-row-middle .slice-9-x svg{
    left: 0;
}

.tx-quiz .quiz-result .slice-9-content{
    text-align: center;
    padding: 40px 20px;
}

.tx-quiz .quiz-result { 
    padding: 100px 60px; 
    background-color: #FDF8F4;
    border-radius: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */

.tx-quiz .quiz-result__header {
    text-align: center;
}

.tx-quiz .quiz-result__icon {
    margin-bottom: 1rem;
}

.tx-quiz .quiz-result__icon img { 
    height: auto;
    width: auto; 
}

.tx-quiz .quiz-result__title {
    color: var(--quiz-navy);
    font-weight: 700;
    margin: 0 0 0.75rem;
        font-size: calc(1.4375rem + 2.25vw);
    line-height: 1.25;
    text-align: center;
}

.tx-quiz .quiz-result__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--quiz-text);
    max-width: calc(100% - 80px);
    text-align: center;
    margin: 0 auto;
    line-height: 1.55;

    padding-bottom: 60px;
}

/* Score / category section */
.tx-quiz .quiz-result__score-section {
    text-align: center;
    margin-bottom: 2rem;
}

.tx-quiz .quiz-result__score-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--quiz-navy);
    margin: 0 0 1.5rem;
}


.tx-quiz .quiz-result__category-name {
    font-size: 1.3rem;
    color: var(--quiz-navy);
    margin: 0 0 1rem;
    font-size: 800;
    line-height: 1.4;
}

.tx-quiz .quiz-result__category-description {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 440px;
    margin: 0 auto;
}
.tx-quiz .quiz-result__category-description p { margin: 0; }

/* General result text */
.tx-quiz .quiz-result__text {
    font-size: 0.97rem;
    line-height: 1.7;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}
.tx-quiz .quiz-result__text p { margin: 0 0 0.5em; }

/* Multiple-select topics list */
.tx-quiz .quiz-result__topics-intro {
    text-align: center;
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.tx-quiz .quiz-result__topics {
    list-style: none;
    padding: 0;
    max-width: 480px;
    margin: 0 auto 2rem;
}
.tx-quiz .quiz-result__topics li {
    padding: 0.45rem 0.9rem 0.45rem 1rem;
    background: rgba(245, 223, 160, 0.4);
    border-left: 3px solid var(--quiz-navy);
    border-radius: 3px;
    margin-bottom: 0.4rem;
    font-size: 0.93rem;
}

/* Impulse / PDF section */
.tx-quiz .quiz-result__impulse {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tx-quiz .quiz-result__impulse-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--quiz-navy);
    max-width: 540px;
    margin: 0 auto 1rem;
    line-height: 1.4;
}

.tx-quiz .quiz-result__impulse-content {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto;
}
.tx-quiz .quiz-result__impulse-content p { margin: 0 0 0.75em; }

.tx-quiz .quiz-result__impulse-content ul {
    list-style: disc;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 1.5rem;
    margin: 0.4rem 0 1rem;
}
.tx-quiz .quiz-result__impulse-content li {
    font-weight: 700;
    color: var(--quiz-navy);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.tx-quiz .quiz-result__pdf-btn {
    margin: 1.5rem 0 2rem;
    text-align: center;
}

.tx-quiz .quiz-result__newsletter-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tx-quiz .quiz-result__newsletter-content { flex: 1; }

.tx-quiz .quiz-result__newsletter-deco {
    flex-shrink: 0;
}
.quiz-result__newsletter-inner .quiz-result__newsletter-content{
    text-align: left;
}

.quiz-result__newsletter-inner .slice-9-content{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.quiz-result__newsletter-inner .slice-9-content .quiz-result__newsletter-content{
    width: 100%;
    max-width: 500px;
}

.quiz-result__newsletter-inner .slice-9-content .quiz-result__newsletter-deco{
            width: 30%;
    height: 100%;
        position: absolute;
        top: -100px;
        right: 40px;
        z-index: 10;

        display: flex;
        justify-content: end;
        flex-direction: column;
}

/* .tx-quiz .quiz-result__newsletter-title {
        font-size: calc(1.4375rem + 2.25vw);
    color: var(--quiz-navy);
    margin: 0 0 0.65rem;
} */

.tx-quiz .quiz-result__newsletter-text {
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

/* Empty state */
.tx-quiz .quiz-empty {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
    .tx-quiz{
        padding: 0;
    }

    .tx-quiz .quiz-result{
        padding: 40px 20px;
    }

    .tx-quiz .quiz-intro__blob,
    .tx-quiz .quiz-result__category-blob,
    .tx-quiz .quiz-result__newsletter-blob {
        border-radius: 20px;
        padding: 0;
    }

    .tx-quiz .quiz-intro__title,
    .tx-quiz .quiz-result__title { font-size: 1.45rem; }

    .tx-quiz .quiz-step {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .tx-quiz .quiz-result__newsletter-inner {
        flex-direction: column-reverse;
        text-align: center;
    }
    .quiz-result__newsletter-inner .slice-9-content .quiz-result__newsletter-deco{ display: none; }
}
