.tax-risk-quiz {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    direction: rtl;
    font-family: inherit;
}


/* =========================
   Progress
========================= */

.tax-risk-quiz__progress {
    margin-bottom: 20px;
}

.tax-risk-quiz__progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.tax-risk-quiz__progress-current {
    color: #697386;
    font-weight: 600;
}

.tax-risk-quiz__progress-percent {
    color: #00897B;
    font-weight: 700;
}

.tax-risk-quiz__progress-track {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f4;
}

.tax-risk-quiz__progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #00897B;
    transition: width 0.3s ease;
}


/* =========================
   Form
========================= */

.tax-risk-quiz__form {
    width: 100%;
}


/* =========================
   Questions Viewport
========================= */

.tax-risk-quiz__questions {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
}


/* =========================
   Questions Track
========================= */

.tax-risk-quiz__questions-track {
    display: flex;
    width: 100%;
    direction: ltr;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =========================
   Question / Slide
========================= */

.tax-risk-quiz__question {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 28px;

    border: 1px solid #e7e9ee;
    border-radius: 18px;

    background: #ffffff;

    direction: rtl;
}


/* Remove default fieldset browser styling */

.tax-risk-quiz__question,
.tax-risk-quiz__question legend {
    max-width: none;
}


/* =========================
   Question Title
========================= */

.tax-risk-quiz__question legend {
    display: block;
    width: 100%;

    margin: 0 0 24px;
    padding: 0;

    color: #172033;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
}


/* =========================
   Options
========================= */

.tax-risk-quiz__option {
    margin-top: 10px;
}

.tax-risk-quiz__option:first-of-type {
    margin-top: 0;
}


/* Hide native radio */

.tax-risk-quiz__option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}


/* Option */

.tax-risk-quiz__option label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 56px;
    box-sizing: border-box;

    padding: 0 18px;

    border: 1px solid #e2e5eb;
    border-radius: 12px;

    background: #ffffff;
    color: #172033;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.tax-risk-quiz__option label:hover {
    border-color: #00897B;
    transform: translateY(-1px);
}

.tax-risk-quiz__option input:checked + label {
    border-color: #00897B;
    background: #00897B;
    color: #ffffff;
}


/* =========================
   Navigation
========================= */

.tax-risk-quiz__navigation {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 16px;
}


/* Shared navigation button */

.tax-risk-quiz__button,
.tax-risk-quiz__submit {
    min-height: 54px;

    padding: 0 22px;

    border: 0;
    border-radius: 13px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* Previous */

.tax-risk-quiz__button--previous {
    flex: 0 0 auto;

    border: 1px solid #e2e5eb;

    background: #ffffff;
    color: #172033;
}

.tax-risk-quiz__button--previous:hover:not(:disabled) {
    border-color: #00897B;
    color: #00897B;
    transform: translateY(-1px);
}


/* Next */

.tax-risk-quiz__button--next {
    flex: 1;

    background: #00897B;
    color: #ffffff;
}

.tax-risk-quiz__button--next:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 137, 123, 0.18);
}


/* Disabled */

.tax-risk-quiz__button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}


/* Submit */

.tax-risk-quiz__submit {
    flex: 1;

    background: #00897B;
    color: #ffffff;
}

.tax-risk-quiz__submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 137, 123, 0.18);
}


/* =========================
   Result
========================= */

.tax-risk-quiz__result {
    position: relative;

    overflow: hidden;

    margin-top: 32px;
    padding: 42px 32px;

    border: 1px solid #e5e8ed;
    border-radius: 28px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 18px 50px rgba(23, 32, 51, 0.08);

    animation:
        taxRiskResultIn 0.45s ease both;
}

.tax-risk-quiz__result::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 5px;

    background: #00897B;
}

.tax-risk-quiz__result-header {
    margin-bottom: 28px;
}

.tax-risk-quiz__result-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #7b8494;

    font-size: 13px;
    font-weight: 600;
}

.tax-risk-quiz__result-title {
    margin: 0;

    color: #172033;

    font-size: 26px;
    line-height: 1.5;
}

.tax-risk-quiz__result-score {
    display: flex;
    justify-content: center;

    margin-bottom: 18px;
}

.tax-risk-quiz__result-circle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 170px;
    height: 170px;

    border: 10px solid #edf0f4;
    border-radius: 50%;
}

.tax-risk-quiz__result-percentage {
    color: #00897B;

    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.tax-risk-quiz__result-status {
    margin-bottom: 14px;
}

.tax-risk-quiz__result-status-label {
    display: inline-flex;
    align-items: center;

    min-height: 38px;

    padding: 0 18px;

    border-radius: 999px;

    background: #edf0f4;
    color: #172033;

    font-size: 14px;
    font-weight: 700;
}

.tax-risk-quiz__result-message {
    max-width: 580px;

    margin: 0 auto;

    color: #697386;

    font-size: 15px;
    line-height: 2;
}

.tax-risk-quiz__result-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    max-width: 440px;

    margin: 28px auto;
}

.tax-risk-quiz__result-meta-item {
    padding: 16px;

    border: 1px solid #edf0f4;
    border-radius: 14px;

    background: #fafbfc;
}

.tax-risk-quiz__result-meta-item strong {
    display: block;

    margin-bottom: 5px;

    color: #172033;

    font-size: 22px;
}

.tax-risk-quiz__result-meta-item span {
    color: #7b8494;

    font-size: 12px;
}


/* =========================
   Consultation CTA
========================= */

.tax-risk-quiz__result-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;

    padding: 0 28px;

    border-radius: 13px;

    background: #00897B;
    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 15px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

.tax-risk-quiz__result-cta:hover {
    transform: translateY(-2px);

    opacity: 0.94;

    box-shadow:
        0 8px 20px rgba(0, 137, 123, 0.18);
}


/* =========================
   Risk States
========================= */

.tax-risk-quiz__result--low::before {
    background: #238b62;
}

.tax-risk-quiz__result--low
.tax-risk-quiz__result-status-label {
    background: #e8f6ef;
    color: #18704d;
}

.tax-risk-quiz__result--low
.tax-risk-quiz__result-percentage {
    color: #238b62;
}


.tax-risk-quiz__result--medium::before {
    background: #c88919;
}

.tax-risk-quiz__result--medium
.tax-risk-quiz__result-status-label {
    background: #fff5df;
    color: #8c5c08;
}

.tax-risk-quiz__result--medium
.tax-risk-quiz__result-percentage {
    color: #b8780d;
}


.tax-risk-quiz__result--high::before {
    background: #c94b4b;
}

.tax-risk-quiz__result--high
.tax-risk-quiz__result-status-label {
    background: #fceaea;
    color: #a73737;
}

.tax-risk-quiz__result--high
.tax-risk-quiz__result-percentage {
    color: #c94b4b;
}


/* =========================
   Animation
========================= */

@keyframes taxRiskResultIn {

    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

    .tax-risk-quiz__progress {
        margin-bottom: 16px;
    }

    .tax-risk-quiz__question {
        padding: 20px;
        border-radius: 15px;
    }

    .tax-risk-quiz__question legend {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.85;
    }

    .tax-risk-quiz__option label {
        min-height: 52px;
        padding: 0 15px;
    }

    .tax-risk-quiz__navigation {
        gap: 8px;
    }

    .tax-risk-quiz__button,
    .tax-risk-quiz__submit {
        min-height: 52px;
        padding: 0 16px;
        font-size: 14px;
    }

    .tax-risk-quiz__result {
        margin-top: 24px;
        padding: 32px 20px;
        border-radius: 22px;
    }

    .tax-risk-quiz__result-title {
        font-size: 22px;
    }

    .tax-risk-quiz__result-circle {
        width: 145px;
        height: 145px;
    }

    .tax-risk-quiz__result-percentage {
        font-size: 36px;
    }

    .tax-risk-quiz__result-meta {
        gap: 8px;
    }

    .tax-risk-quiz__result-meta-item {
        padding: 13px 8px;
    }

    .tax-risk-quiz__result-cta {
        width: 100%;
    }

}