:root {
    --mz-action: #03A9F4;
    --mz-action-hover: #0298dc;
    --mz-action-soft: rgba(3, 169, 244, 0.10);
    --mz-action-soft-2: rgba(3, 169, 244, 0.16);

    --mz-text: #18212f;
    --mz-muted: #697386;
    --mz-border: #e7edf5;
    --mz-bg: #f7fbff;
    --mz-card: #ffffff;

    --mz-success: #12b76a;
    --mz-warning: #f79009;
    --mz-danger: #f04438;

    --mz-radius: 15px;
}

@font-face {
    font-family: "Dana";
    src: url("./DanaFaNum-Light.woff2") format("woff2"),
        url("./DanaFaNum-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Dana";
    src: url("./DanaFaNum-ExtraBold.woff2") format("woff2"),
        url("./DanaFaNum-ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Dana;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, #B2EBF2, transparent 32%),
        linear-gradient(180deg, #E8F5E9 0%, #ECEFF1 100%);
    color: var(--mz-text);
}

button {
    font-family: Dana;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.mz-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 14px;
}

.mz-result-actions svg path {
    fill: #fff;
}

.mz-quiz-wrapper {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    color: var(--mz-text);
}

.mz-quiz-card {
    width: 100%;
    background: var(--mz-card);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    overflow: hidden;
}

.mz-quiz-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 26px 20px;
    background: radial-gradient(circle at top right, #03A9F4, #03A9F4 34%), linear-gradient(180deg, #ffffff 0%, #03A9F4 100%);
    border-bottom: 10px solid #ffffff;
}

.mz-quiz-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 11px;
    border-radius: 12px;
    background: #FFC107;
    color: #0a2632;
    font-size: 15px;
    line-height: 1.7;
}

.mz-quiz-title {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.55;
    font-weight: 800;
}

.mz-quiz-subtitle {
    margin: 8px 0 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.9;
}

.mz-quiz-counter {
    flex: 0 0 auto;
    min-width: 84px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    background: #fff;
    color: var(--mz-text);
    font-size: 15px;
    font-weight: 800;
}

.mz-progress-wrap {
    width: 100%;
    height: 7px;
    background: #eef5fb;
    overflow: hidden;
}

.mz-progress-bar {
    width: 10%;
    height: 100%;
    background: var(--mz-action);
    border-radius: 999px 0 0 999px;
    transition: width 420ms ease;
}

.mz-quiz-body {
    padding: 30px 26px 24px;
    background: #fff;
}

.mz-question-area {
    animation: mzFadeSlideIn 360ms ease both;
}

.mz-question-area.is-leaving {
    animation: mzFadeSlideOut 220ms ease both;
}

.mz-question-label {
    margin: 0 0 10px;
    color: #242424;
    font-size: 18px;
    line-height: 1.8;
    background: #F5F5F5;
    display: inline-flex;
    padding: 0px 10px;
    border-radius: 8px;
}

.mz-question-text {
    margin: 0 0 26px;
    color: var(--mz-text);
    font-size: 22px;
    font-weight: normal;
    line-height: 1.9;
}

.mz-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    touch-action: manipulation;
}

.mz-option-btn {
    appearance: none;
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    background: #fff;
    color: var(--mz-text);
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    transition:
        border-color 220ms ease,
        background-color 220ms ease,
        color 220ms ease,
        transform 220ms ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.mz-option-btn:hover {
    border-color: var(--mz-action);
    background: var(--mz-action-soft);
    color: #015f91;
    transform: translateY(-2px);
}

.mz-option-btn.is-selected {
    border-color: var(--mz-action);
    background: var(--mz-action-soft);
    color: #015f91;
}

.mz-option-btn:disabled {
    cursor: wait;
    opacity: 0.75;
}
p#mzResultMessage h4 {
    margin: 0;
    border-top: 3px dashed #ddd;
    padding-top: 10px;
}
.mz-option-dot {
    width: 15px;
    height: 15px;
    border: 2px solid var(--mz-action);
    border-radius: 999px;
    background: #fff;
    transition: background-color 220ms ease;
}

.mz-option-btn:hover .mz-option-dot,
.mz-option-btn.is-selected .mz-option-dot {
    background: var(--mz-action);
}

.mz-quiz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 26px 24px;
    background: #fff;
    border-top: 1px solid var(--mz-border);
}

.mz-back-btn,
.mz-restart-btn {
    appearance: none;
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);
    background: #fff;
    color: var(--mz-text);
    min-height: 46px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 15px;
    transition:
        border-color 220ms ease,
        background-color 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.mz-back-btn:hover,
.mz-restart-btn:hover {
    border-color: var(--mz-action);
    background: var(--mz-action-soft);
    color: #015f91;
    transform: translateY(-1px);
}

.mz-back-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.mz-back-btn:disabled:hover {
    border-color: var(--mz-border);
    background: #fff;
    color: var(--mz-text);
}

.mz-mini-status {
    color: var(--mz-muted);
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}

.mz-result-area {
    min-height: 290px;
}

.mz-result-loading {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--mz-muted);
    animation: mzFadeIn 260ms ease both;
}

.mz-loader {
    width: 44px;
    height: 44px;
    border: 4px solid #e7f5fd;
    border-top-color: var(--mz-action);
    border-radius: 999px;
    animation: mzSpin 850ms linear infinite;
}

.mz-result-content {
    animation: mzResultIn 480ms ease both;
}

.mz-result-badge {
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.mz-result-badge.good {
    background: rgba(18, 183, 106, 0.10);
    color: #087443;
    border: 1px solid rgba(18, 183, 106, 0.18);
}

.mz-result-badge.mid {
    background: rgba(247, 144, 9, 0.10);
    color: #b54708;
    border: 1px solid rgba(247, 144, 9, 0.18);
}

.mz-result-badge.high {
    color: #F44336;
    font-size: 20px;
    padding: 0;
    font-weight: 800;
}

.mz-result-title {
    margin: 0;
    color: var(--mz-text);
    font-size: 25px;
    font-weight: 850;
    line-height: 1.6;
}

.natije {
    display: flex;
    align-items: center;
    font-size: 25px;
    font-weight: 850;
    border-bottom: 3px dashed #dddddd;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

.mz-solution-label {
    display: block;
    color: #e53935;
    font-weight: 800;
    font-size: 20px;
    margin-top: 10px;
}

.mz-result-message {
    color: #344054;
    font-size: 17px;
    font-weight: 500;
    line-height: 2;
}

.mz-result-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.mz-result-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 10px;
    border-radius: var(--mz-radius);
    background: var(--mz-action);
    border: 1px solid var(--mz-action);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 850;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
    gap: 10px;
}

.mz-result-link:hover {
    background: var(--mz-action-hover);
    border-color: var(--mz-action-hover);
    color: #fff;
    transform: translateY(-2px);
}

.mz-restart-btn {
    display: none;
    align-items: center;
    justify-content: center;
}

.mz-option-btn:focus-visible,
.mz-back-btn:focus-visible,
.mz-restart-btn:focus-visible,
.mz-result-link:focus-visible {
    outline: 3px solid rgba(3, 169, 244, 0.22);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

@keyframes mzFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes mzFadeSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes mzFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mzResultIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

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

@keyframes mzSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .mz-result-image {
        max-width: 100%;
        border-radius: 15px;
    }

    .mz-page {
        align-items: center;
        padding: 18px 12px;
    }

    .mz-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mz-quiz-wrapper {
        max-width: 100%;
    }

    .mz-quiz-header {
        padding: 22px 18px 18px;
        gap: 14px;
    }

    .mz-quiz-title {
        font-size: 20px;
        line-height: 1.7;
    }

    .mz-quiz-subtitle {
        font-size: 15px;
    }

    .mz-quiz-eyebrow {
        font-size: 15px;
    }

    .mz-quiz-body {
        padding: 24px 18px 22px;
    }

    .mz-question-text {
        font-size: 18px;
        line-height: 1.95;
        margin-bottom: 22px;
    }

    .mz-option-btn {
        min-height: 58px;
        font-size: 16px;
    }

    .mz-quiz-footer {
        padding: 16px 18px 20px;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .mz-back-btn {
        width: 100%;
    }

    .mz-mini-status {
        text-align: center;
        font-size: 13px;
    }

    .mz-result-title {
        font-size: 21px;
        line-height: 1.7;
    }

    .mz-result-message {
        font-size: 18px;
        line-height: 2;
    }

    .mz-result-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 60%;
        margin: 0 auto;
    }

    .mz-result-link,
    .mz-restart-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {

    .mz-quiz-header {
        flex-direction: column;
        padding: 20px 15px 16px;
    }

    .mz-quiz-counter {
        height: 42px;
    }

    .mz-quiz-body {
        padding: 22px 15px 20px;
    }

    .mz-question-label {
        font-size: 13px;
    }

    .mz-option-btn {
        min-height: 56px;
        font-size: 15px;
    }

    .mz-result-badge {
        font-size: 12px;
    }

    .mz-result-title {
        font-size: 19px;
    }


}


.mz-result-visual {
    width: 100%;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mz-result-picture {
    width: 100%;
    display: block;
}

.mz-result-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
}

.mz-confetti-box {
    position: relative;
    width: 220px;
    height: 130px;
    overflow: hidden;
}

.mz-confetti-piece {
    position: absolute;
    top: -18px;
    width: 8px;
    height: 14px;
    border-radius: 3px;
    opacity: 0;
    animation-name: mzConfettiFall;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.mz-confetti-center {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(3, 169, 244, 0.10);
    border: 1px solid rgba(3, 169, 244, 0.18);
    color: #03A9F4;
    font-size: 34px;
    animation: mzPopIn 520ms ease both;
}

@keyframes mzConfettiFall {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(0deg) scale(0.8);
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateY(135px) rotate(280deg) scale(1);
    }
}

@keyframes mzPopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 520px) {


    .mz-confetti-box {
        width: 200px;
        height: 115px;
    }

    .mz-confetti-center {
        width: 64px;
        height: 64px;
        font-size: 30px;
    }
}


.mz-success-visual {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(3, 169, 244, 0.10);
    border: 1px solid rgba(3, 169, 244, 0.18);
    color: #03A9F4;
    font-size: 42px;
    animation: mzSuccessPop 520ms ease both;
}

@keyframes mzSuccessPop {
    0% {
        opacity: 0;
        transform: scale(0.65);
    }

    70% {
        opacity: 1;
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 520px) {
    .mz-success-visual {
        width: 72px;
        height: 72px;
        font-size: 34px;
        margin-bottom: 14px;
    }
}