:root {
    --ink: #263238;
    --muted: #667085;
    --paper: #fff;
    --bg: #f7f8fc;
    --accent: #5b5bd6;
    --accent2: #ffca3a;
    --danger: #d9534f;
    --radius: 22px
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

.topbar {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid #e8e9ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    position: sticky;
    top: 0;
    z-index: 10
}

.brand {
    font-weight: 800;
    text-decoration: none;
    color: var(--ink);
    font-size: 20px
}

.topbar nav {
    display: flex;
    gap: 18px;
    align-items: center
}

.topbar a {
    color: var(--ink);
    text-decoration: none
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px 80px
}

.hero {
    min-height: 70vh;
    display: grid;
    place-items: center
}

    .hero > div {
        background: #fff;
        border-radius: 32px;
        padding: 60px;
        max-width: 760px;
        box-shadow: 0 18px 60px #2221
    }

    .hero h1 {
        font-size: clamp(42px,7vw,72px);
        line-height: .98;
        margin: 18px 0
    }

    .hero p {
        font-size: 20px;
        color: var(--muted)
    }

.pill {
    display: inline-block;
    background: #eef0ff;
    color: var(--accent);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700
}

.button {
    display: inline-block;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    margin: 5px 3px
}

    .button.secondary {
        background: #eef0ff;
        color: var(--accent)
    }

    .button.danger {
        background: #fff0ef;
        color: var(--danger)
    }

    .button.full {
        width: 100%
    }

.card {
    background: var(--paper);
    border: 1px solid #e9eaf0;
    border-radius: var(--radius);
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 8px 28px #1f29370a
}

.narrow {
    max-width: 520px;
    margin: 50px auto
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 18px
}

.subject-icon {
    font-size: 36px
}

.link-card {
    color: inherit;
    text-decoration: none
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center
}

.inline {
    display: inline
}

label {
    display: block;
    font-weight: 700;
    margin: 14px 0 7px
}

/* 1. Standard text fields and select inputs */
input:not([type="radio"]):not([type="checkbox"]),
select {
    width: 100%; /* Or your preferred full width */
    padding: 12px;
    border: 1px solid #dfe1e8;
    border-radius: 12px;
    font: inherit;
    box-sizing: border-box;
}

/* 2. Specific styles for Radio Buttons */
input[type="radio"] {
    width: 1.25rem; /* Fixed clean sizing instead of percentage */
    height: 1.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
    vertical-align: middle;
}
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe1e8;
    border-radius: 12px;
    background: #fff;
    font: inherit
}

.question {
    position: relative
}

.question-number {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px
}

.answers {
    display: grid;
    gap: 10px;
    margin: 20px 0
}

    .answers label {
        margin: 0
    }

    .answers input {
        display: none
    }

    .answers span {
        display: block;
        padding: 16px;
        border: 2px solid #e8e9ef;
        border-radius: 15px;
        cursor: pointer
    }

    .answers input:checked + span {
        border-color: var(--accent);
        background: #f0f1ff
    }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 14px;
    margin: 20px 0
}

.stat {
    background: #fff;
    border: 1px solid #e9eaf0;
    border-radius: 20px;
    padding: 20px
}

    .stat strong {
        display: block;
        font-size: 32px
    }

    .stat span {
        color: var(--muted)
    }

.bar {
    display: inline-block;
    vertical-align: middle;
    width: 50%;
    height: 10px;
    background: #eee;
    border-radius: 99px;
    margin: 0 10px
}

    .bar i {
        display: block;
        height: 100%;
        background: var(--accent);
        border-radius: 99px
    }

.muted {
    color: var(--muted)
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0
}

@media(max-width:650px) {
    .hero > div {
        padding: 32px
    }

    .row {
        display: block
    }

    .topbar nav a {
        display: none
    }
}

.style-as-link {
    background: none !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    cursor: pointer;
    font: inherit;
}