* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --p: #1a5fa8;
    --a: #e8174a;
    --light: #f0f7ff;
    --text: #1a2333;
    --muted: #6b7a99;
    --r: 16px
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #deeeff 0%, #fff0f3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(26, 95, 168, .15);
    max-width: 660px;
    width: 100%;
    overflow: hidden
}

.hdr {
    /* background: linear-gradient(135deg, #1a5fa8, #0b3566); */
    background: #940d96;
    padding: 22px 28px 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px

}

.hdr-logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .5px
}

.hdr-logo span {
    color: #4db66d ;
}

.hdr-tag {
    font-size: 11px;
    background: rgba(255, 255, 255, .18);
    border-radius: 20px;
    padding: 3px 12px;
    margin-top: 5px;
    display: inline-block
}

.pg-wrap {
    padding: 0 28px;
    background: var(--light);
    border-bottom: 1px solid #dce9f7
}

.pg-bar {
    height: 4px;
    background: #d8e8f5;
    border-radius: 10px;
    margin: 10px 0
}

.pg-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--p), var(--a));
    border-radius: 10px;
    transition: width .45s ease
}

.pg-txt {
    font-size: 11px;
    color: var(--muted);
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    font-weight: 600
}

.body {
    padding: 26px 28px 30px
}

h2 {
    font-size: 19px;
    color: var(--text);
    margin-bottom: 5px;
    line-height: 1.4;
    font-weight: 700
}

.sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.5
}

.step {
    display: none
}

.step.active {
    display: block
}

.back-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    font-weight: 600;
    padding: 0
}

.back-btn:hover {
    color: var(--p)
}

.opts {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.opt {
    border: 2px solid #e0ecf7;
    border-radius: 12px;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: all .18s;
    font-size: 13.5px;
    color: var(--text)
}

.opt:hover {
    border-color: var(--p);
    background: var(--light)
}

.opt.sel {
    border-color: var(--p);
    background: var(--light);
    font-weight: 600
}

.opt .em {
    font-size: 18px;
    width: 26px;
    text-align: center;
    flex-shrink: 0
}

.opt .ck {
    margin-left: auto;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 2px solid #c5d5e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    transition: all .18s
}

.opt.sel .ck {
    background: var(--p);
    border-color: var(--p);
    color: #fff
}

.btn {
    background: linear-gradient(135deg, var(--p), #0e3d72);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 18px rgba(26, 95, 168, .28)
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(26, 95, 168, .38)
}

.btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none
}

/* Inputs */
.inp {
    border: 2px solid #e0ecf7;
    border-radius: 11px;
    padding: 12px 15px;
    font-size: 13.5px;
    width: 100%;
    outline: none;
    transition: border .2s;
    color: var(--text);
    background: #fff
}

.inp:focus {
    border-color: var(--p)
}

.inp.err {
    border-color: #e8174a;
    background: #fff8f8
}

.lbl {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .4px
}

.inp-g {
    margin-bottom: 13px
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px
}

.err-msg {
    font-size: 11px;
    color: #e8174a;
    margin-top: 4px;
    display: none;
    font-weight: 600
}

.err-msg.show {
    display: block
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px 20px
}

.dots span {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--p);
    animation: bnc 1.2s infinite;
    margin: 0 3px
}

.dots span:nth-child(2) {
    animation-delay: .2s
}

.dots span:nth-child(3) {
    animation-delay: .4s
}

@keyframes bnc {

    0%,
    80%,
    100% {
        transform: translateY(0)
    }

    40% {
        transform: translateY(-10px)
    }
}

.load-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto
}

.load-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    opacity: 0;
    transform: translateY(8px);
    transition: all .4s
}

.load-step.show {
    opacity: 1;
    transform: translateY(0)
}

.load-step .lsi {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--light);
    border: 2px solid var(--p);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0
}

.load-step.done .lsi {
    background: var(--p);
    color: #fff
}

/* Results */
.res-hero {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #eaf0f8;
    margin-bottom: 18px
}

.score-ring {
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;
    position: relative
}

.score-ring svg {
    transform: rotate(-90deg)
}

.score-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1
}

.score-num strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--p)
}

.score-num span {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700
}

.badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    margin: 6px 0
}

.badge.hi {
    background: #fef2f2;
    color: #c0392b
}

.badge.md {
    background: #fffbeb;
    color: #b7780a
}

.badge.lo {
    background: #ecfdf5;
    color: #027a48
}

.report-box {
    background: linear-gradient(135deg, #f4f8ff, #fff8f9);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #dde8f5;
    margin-bottom: 16px
}

.report-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5eef8
}

.report-hdr img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dde8f5
}

.report-hdr-info strong {
    font-size: 13.5px;
    color: var(--text);
    display: block
}

.report-hdr-info span {
    font-size: 11.5px;
    color: var(--muted)
}

.report-hdr .bdoc {
    font-size: 10px;
    background: var(--light);
    color: var(--p);
    border-radius: 10px;
    padding: 2px 9px;
    font-weight: 700;
    margin-top: 3px;
    display: inline-block
}

.report-body {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.85
}

.report-body p {
    margin-bottom: 10px
}

.report-body p:last-child {
    margin-bottom: 0
}

.rec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 4px
}

.pill {
    background: #e8f4fd;
    color: var(--p);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 2px solid #e0ecf7;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px
}

.doc-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--p)
}

.doc-card-info strong {
    font-size: 14px;
    color: var(--text);
    display: block
}

.doc-card-info span {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-top: 2px
}

.doc-card-info .star {
    color: #f59e0b;
    font-size: 11.5px;
    margin-top: 3px
}

.testi-section {
    margin-bottom: 16px
}

.testi-section h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 11px
}

.testi-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none
}

.testi-scroll::-webkit-scrollbar {
    display: none
}

.testi-card {
    min-width: 195px;
    max-width: 195px;
    background: #fff;
    border: 1px solid #e0ecf7;
    border-radius: 14px;
    padding: 14px;
    flex-shrink: 0
}

.testi-card img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8f4fd;
    margin-bottom: 8px
}

.testi-card .tn {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text)
}

.testi-card .ts {
    font-size: 11px;
    color: #f59e0b;
    margin: 2px 0 5px
}

.testi-card .tt {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.5
}

.cta-box {
    background: linear-gradient(135deg, #c0132e, #8b0e22);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    color: #fff
}

.cta-box h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px
}

.cta-box p {
    font-size: 13px;
    opacity: .9;
    margin-bottom: 16px;
    line-height: 1.5
}

.cta-btn {
    background: #fff;
    color: var(--a);
    border: none;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s;
    display: inline-block;
    text-decoration: none
}

.cta-btn:hover {
    transform: scale(1.03)
}

.trust {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap
}

.trust-item {
    font-size: 11px;
    color: rgba(255, 255, 255, .85);
    display: flex;
    align-items: center;
    gap: 4px
}

.restart-btn {
    background: none;
    border: 1.5px solid #d0dcea;
    color: var(--muted);
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px
}

.restart-btn:hover {
    border-color: var(--p);
    color: var(--p)
}

.divider {
    border: none;
    border-top: 1px dashed #e0ecf7;
    margin: 16px 0
}

@media(max-width:500px) {
    .body {
        padding: 18px 16px
    }

    .hdr {
        padding: 18px 16px
    }

    .pg-wrap {
        padding: 0 16px
    }

    .grid2 {
        grid-template-columns: 1fr
    }
}