:root {
    --brand-primary: #d86c97;
    /* LabradorFamily pink */
    --brand-accent: #f7dede;
    /* light accent */
    --brand-bg: #0b1620;
    /* deep navy */
    --brand-surface: #101a26;
    /* card surface */
    --brand-text: #e9f0ff;
    /* main text */
    --brand-muted: #aab4c0;
    /* muted text */
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
        Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(1200px 800px at 15% -10%,
            rgba(216, 108, 151, 0.08),
            transparent),
        radial-gradient(1200px 800px at 110% 120%,
            rgba(247, 222, 222, 0.12),
            transparent),
        var(--brand-bg);
    color: var(--brand-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wrap {
    max-width: 920px;
    margin: 40px auto;
    padding: 24px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.brand-logo {
    width: 40px;
    aspect-ratio: 1;
    border-radius: 12px;
    background: linear-gradient(135deg,
            var(--brand-primary),
            var(--brand-accent));
}

.brand-title {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.25px;
}

.card {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0)),
        var(--brand-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero {
    padding: 28px 28px 16px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.hero .title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.2px;
    color: white
}

.hero .subtitle {
    color: var(--brand-muted);
    margin-top: 6px;

}

/* Progress */
.progress {
    position: relative;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 28px;
    border-radius: 999px;
    overflow: hidden;
}

.progress .bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg,
            var(--brand-primary),
            var(--brand-accent));
    transition: width 0.35s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin: 6px 28px 14px;
    color: var(--brand-muted);
    font-size: 13px;
}

.step {
    padding: 14px 28px 24px;
}

.q-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.options {
    display: grid;
    gap: 10px;
}

.opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border 0.2s, transform 0.05s;
    color: white;
}

.opt:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.opt:active {
    transform: translateY(1px);
}

#resHeading {
    color: white;
}

.opt input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.opt .dot {
    width: 18px;
    height: 18px;
    border: 2px solid var(--brand-primary);
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
}

.opt .dot::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--brand-primary);
    transform: scale(0);
    transition: transform 0.18s ease;
}

.opt input:checked~.dot::after {
    transform: scale(1);
}

.nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 28px 28px;
}

.btn {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.05s, opacity 0.2s, box-shadow 0.2s;
}

.btn:active {
    transform: translateY(1px);
}

.btn.primary {
    background: linear-gradient(135deg,
            var(--brand-primary),
            var(--brand-accent));
    color: #081018;
    box-shadow: 0 8px 20px rgba(216, 108, 151, 0.35);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.result {
    padding: 24px 28px 28px;
    display: none;
}

.result h3 {
    font-size: 24px;
    margin: 0 0 6px 0;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(216, 108, 151, 0.18);
    color: #f7dede;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.res-summary {
    color: var(--brand-muted);
    margin: 10px 0 18px;
}

.res-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fine {
    color: var(--brand-muted);
    font-size: 12px;
    margin-top: 12px;
}

@media (max-width: 640px) {
    .hero .title {
        font-size: 24px;
    }

    .wrap {
        padding: 16px;
    }
}