:root {
    --fazea-navy: #071120;
    --fazea-navy-soft: #14213d;
    --fazea-gold: #b88a35;
    --fazea-gold-light: #e3bd70;
    --fazea-gold-dark: #8f6723;
    --fazea-ivory: #fbfaf7;
    --fazea-surface: #ffffff;
    --fazea-text: #263247;
    --fazea-muted: #626a76;
    --fazea-border: rgba(7, 17, 32, 0.10);
    --fazea-border-strong: rgba(7, 17, 32, 0.17);
    --fazea-danger: #a40000;
    --fazea-shadow: 0 22px 70px rgba(7, 17, 32, 0.11);
}

.diagnostic-page {
    min-height: 100vh;
    padding: 46px 0 70px;
    color: var(--fazea-navy);
    background:
        radial-gradient(circle at 16% 8%, rgba(184, 138, 53, 0.11), transparent 29%),
        radial-gradient(circle at 86% 88%, rgba(20, 33, 61, 0.08), transparent 30%),
        linear-gradient(135deg, #fbfaf7 0%, #ffffff 52%, #f1eee7 100%);
}

.diagnostic-shell {
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
}

.diagnostic-top-label {
    width: fit-content;
    margin: 0 auto 22px;
    padding: 10px 18px;
    border: 1px solid rgba(184, 138, 53, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--fazea-navy);
    box-shadow: 0 10px 30px rgba(7, 17, 32, 0.05);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.diagnostic-card,
.diagnostic-result-card {
    position: relative;
    overflow: hidden;
    padding: 34px 42px 40px;
    border: 1px solid var(--fazea-border);
    border-radius: 18px;
    background: var(--fazea-surface);
    box-shadow: var(--fazea-shadow);
}

.diagnostic-card::before,
.diagnostic-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--fazea-gold-dark), var(--fazea-gold), var(--fazea-gold-light));
}

.diagnostic-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.diagnostic-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.diagnostic-header strong {
    color: var(--fazea-navy);
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.34em;
}

.diagnostic-header span {
    color: var(--fazea-gold-dark);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.diagnostic-quit {
    flex: 0 0 auto;
    padding: 8px 0;
    color: var(--fazea-muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.diagnostic-quit:hover {
    color: var(--fazea-navy);
    transform: translateY(-1px);
}

.diagnostic-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 9px;
    color: var(--fazea-muted);
    font-size: 12px;
    font-weight: 800;
}

.diagnostic-progress {
    height: 6px;
    margin-bottom: 56px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece8df;
}

.diagnostic-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fazea-gold-dark), var(--fazea-gold), var(--fazea-gold-light));
    box-shadow: 0 0 18px rgba(184, 138, 53, 0.30);
    transition: width 0.3s ease;
}

.diagnostic-step {
    display: none;
    animation: diagnosticFadeIn 0.25s ease;
}

.diagnostic-step[hidden] {
    display: none !important;
}

.diagnostic-step.active {
    display: block;
}

@keyframes diagnosticFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.diagnostic-step.shake {
    animation: diagnosticShake 0.3s ease;
}

@keyframes diagnosticShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.diagnostic-step h2 {
    max-width: 540px;
    margin: 0 auto 28px;
    color: var(--fazea-navy);
    font-size: clamp(23px, 3vw, 29px);
    font-weight: 950;
    line-height: 1.22;
    text-align: center;
    letter-spacing: -0.035em;
}

.diagnostic-options {
    width: min(500px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.diagnostic-option {
    position: relative;
    min-height: 62px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 24px;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--fazea-border-strong);
    border-radius: 9px;
    background: var(--fazea-surface);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 8px 25px rgba(7, 17, 32, 0.025);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.diagnostic-option::after {
    content: "→";
    justify-self: end;
    color: rgba(7, 17, 32, 0.34);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.diagnostic-option:hover {
    border-color: var(--fazea-gold);
    background: var(--fazea-ivory);
    box-shadow: 0 12px 28px rgba(7, 17, 32, 0.07);
    transform: translateY(-1px);
}

.diagnostic-option:hover::after {
    color: var(--fazea-gold-dark);
    transform: translateX(2px);
}

.diagnostic-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.diagnostic-check {
    width: 20px;
    height: 20px;
    display: block;
    border: 2px solid #b8c4d4;
    border-radius: 999px;
    background: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.diagnostic-option input:checked + .diagnostic-check {
    border-color: var(--fazea-gold);
    background: var(--fazea-gold);
    box-shadow: inset 0 0 0 5px #ffffff, 0 0 0 3px rgba(184, 138, 53, 0.12);
}

.diagnostic-option:has(input:checked) {
    border-color: var(--fazea-gold);
    background: linear-gradient(90deg, rgba(184, 138, 53, 0.075), rgba(255, 255, 255, 0.98));
    box-shadow: 0 0 0 1px rgba(184, 138, 53, 0.25), 0 12px 30px rgba(7, 17, 32, 0.07);
}

.diagnostic-option:has(input:checked)::after {
    color: var(--fazea-gold-dark);
}

.diagnostic-option strong {
    min-width: 0;
    color: var(--fazea-navy);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.42;
}

.diagnostic-actions {
    width: min(500px, 100%);
    margin: 34px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.diagnostic-back,
.diagnostic-next,
.diagnostic-submit,
.diagnostic-result-button,
.diagnostic-restart {
    min-height: 52px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.diagnostic-back {
    flex: 0 0 auto;
    border: 1px solid var(--fazea-border-strong);
    background: #ffffff;
    color: var(--fazea-navy);
    cursor: pointer;
}

.diagnostic-back:hover {
    border-color: var(--fazea-navy);
    background: var(--fazea-ivory);
    transform: translateY(-1px);
}

.diagnostic-next,
.diagnostic-submit,
.diagnostic-result-button {
    flex: 1;
    border: 0;
    background: linear-gradient(135deg, var(--fazea-navy), var(--fazea-navy-soft));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(7, 17, 32, 0.18);
    cursor: pointer;
}

.diagnostic-next::after,
.diagnostic-submit::after,
.diagnostic-result-button::after {
    content: "→";
    margin-left: auto;
    padding-left: 18px;
    font-size: 19px;
    line-height: 1;
}

.diagnostic-next:hover,
.diagnostic-submit:hover,
.diagnostic-result-button:hover {
    background: linear-gradient(135deg, var(--fazea-navy-soft), var(--fazea-navy));
    box-shadow: 0 17px 34px rgba(7, 17, 32, 0.23);
    transform: translateY(-1px);
}

.diagnostic-submit {
    display: none;
}

.diagnostic-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #ffd1d1;
    border-radius: 9px;
    background: #fff1f1;
    color: var(--fazea-danger);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.diagnostic-result-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.diagnostic-result-card .diagnostic-kicker {
    width: fit-content;
    margin: 0 0 10px;
    display: inline-flex;
    color: var(--fazea-gold-dark);
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.diagnostic-result-card h1 {
    margin: 0 0 28px;
    color: var(--fazea-navy);
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.diagnostic-result-products {
    display: grid;
    gap: 11px;
    margin-bottom: 24px;
}

.diagnostic-result-product {
    padding: 16px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--fazea-border);
    border-radius: 10px;
    background: var(--fazea-ivory);
}

.diagnostic-result-product-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diagnostic-result-product-content strong {
    color: var(--fazea-navy);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.35;
}

.diagnostic-result-product-content span {
    color: var(--fazea-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.diagnostic-result-product-price {
    flex: 0 0 auto;
    color: var(--fazea-navy);
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

.diagnostic-result-summary {
    margin-bottom: 24px;
    padding-top: 18px;
    border-top: 2px solid var(--fazea-navy);
}

.diagnostic-result-summary-line,
.diagnostic-result-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.diagnostic-result-summary-line {
    margin-bottom: 10px;
    color: var(--fazea-muted);
    font-size: 14px;
    line-height: 1.4;
}

.diagnostic-result-summary-line strong {
    flex: 0 0 auto;
    color: var(--fazea-navy);
    font-weight: 850;
    white-space: nowrap;
}

.diagnostic-result-tax-note {
    margin: 4px 0 16px;
    color: var(--fazea-muted);
    font-size: 11px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.5;
}

.diagnostic-result-total {
    margin-top: 14px;
    padding-top: 15px;
    border-top: 1px solid var(--fazea-border);
    color: var(--fazea-navy);
    font-size: 18px;
    font-weight: 950;
}

.diagnostic-result-total strong {
    color: var(--fazea-gold-dark);
    font-size: 20px;
    white-space: nowrap;
}

.diagnostic-result-button {
    width: 100%;
}

.diagnostic-restart {
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--fazea-border-strong);
    background: transparent;
    color: var(--fazea-muted);
}

.diagnostic-restart:hover {
    border-color: var(--fazea-navy);
    background: var(--fazea-ivory);
    color: var(--fazea-navy);
    transform: translateY(-1px);
}

.diagnostic-result-card h2 {
    margin: -16px 0 18px;
    color: var(--fazea-gold-dark);
    font-size: 20px;
    font-weight: 900;
}

.diagnostic-result-card > p {
    margin: 0 0 26px;
    color: var(--fazea-muted);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
}

.diagnostic-result-disabled {
    width: 100%;
    min-height: 52px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ece8df;
    color: var(--fazea-muted);
    font-size: 14px;
    font-weight: 900;
}

.diagnostic-option:focus-within,
.diagnostic-back:focus-visible,
.diagnostic-next:focus-visible,
.diagnostic-submit:focus-visible,
.diagnostic-result-button:focus-visible,
.diagnostic-restart:focus-visible,
.diagnostic-quit:focus-visible {
    outline: 3px solid rgba(184, 138, 53, 0.35);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .diagnostic-page {
        padding: 28px 0 48px;
    }

    .diagnostic-shell {
        width: min(100% - 26px, 720px);
    }

    .diagnostic-card,
    .diagnostic-result-card {
        padding: 28px 22px 30px;
        border-radius: 14px;
    }

    .diagnostic-header {
        margin-bottom: 26px;
    }

    .diagnostic-header strong {
        font-size: 16px;
    }

    .diagnostic-progress {
        margin-bottom: 44px;
    }

    .diagnostic-step h2 {
        margin-bottom: 24px;
        font-size: 23px;
    }

    .diagnostic-option {
        min-height: 58px;
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .diagnostic-option::after {
        display: none;
    }

    .diagnostic-actions {
        display: grid;
    }

    .diagnostic-back,
    .diagnostic-next,
    .diagnostic-submit {
        width: 100%;
    }

    .diagnostic-next,
    .diagnostic-submit {
        grid-row: 1;
    }

    .diagnostic-back {
        grid-row: 2;
    }

    .diagnostic-result-product {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .diagnostic-page {
        padding-top: 20px;
    }

    .diagnostic-shell {
        width: min(100% - 18px, 720px);
    }

    .diagnostic-top-label {
        margin-bottom: 15px;
        padding: 9px 14px;
        font-size: 11px;
    }

    .diagnostic-card,
    .diagnostic-result-card {
        padding: 24px 16px 26px;
    }

    .diagnostic-header {
        gap: 16px;
    }

    .diagnostic-header span {
        max-width: 200px;
    }

    .diagnostic-progress-info {
        font-size: 11px;
    }

    .diagnostic-progress {
        margin-bottom: 38px;
    }

    .diagnostic-step h2 {
        font-size: 21px;
    }

    .diagnostic-option {
        padding: 0 15px;
        gap: 12px;
    }

    .diagnostic-option strong {
        font-size: 13px;
    }

    .diagnostic-result-card h1 {
        font-size: 31px;
    }

    .diagnostic-result-product {
        padding: 14px;
        flex-direction: column;
        gap: 10px;
    }

    .diagnostic-result-product-price {
        white-space: normal;
    }

    .diagnostic-result-summary-line,
    .diagnostic-result-total {
        align-items: flex-start;
        gap: 14px;
    }

    .diagnostic-result-summary-line {
        font-size: 13px;
    }

    .diagnostic-result-total {
        font-size: 16px;
    }

    .diagnostic-result-total strong {
        font-size: 18px;
    }
}