:root {
    --poll-navy: #153a5b;
    --poll-blue: #28678f;
    --poll-light: #eef5f8;
    --poll-border: #cbd9e2;
    --poll-text: #1f2933;
    --poll-muted: #62727f;
    --poll-danger: #a52828;
}

.poll-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 18px 48px;
    color: var(--poll-text);
}

.poll-shell--compact {
    padding: 8px;
}

.poll-card {
    background: #fff;
    border: 1px solid var(--poll-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(21, 58, 91, .09);
    padding: 28px;
}

.poll-card--compact {
    border-radius: 9px;
    box-shadow: none;
    padding: 16px;
}

.poll-question {
    color: var(--poll-navy);
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    line-height: 1.3;
    margin: 0 0 22px;
}

.poll-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.poll-option {
    align-items: flex-start;
    border: 1px solid var(--poll-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 11px;
    margin: 10px 0;
    padding: 12px 14px;
    transition: border-color .15s, background .15s;
}

.poll-option:hover,
.poll-option:has(input:checked) {
    background: var(--poll-light);
    border-color: var(--poll-blue);
}

.poll-option input {
    margin-top: 3px;
}

.poll-button {
    background: var(--poll-navy);
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 700;
    margin-top: 14px;
    padding: 11px 18px;
    text-decoration: none;
}

.poll-button:hover { background: var(--poll-blue); color: #fff; }
.poll-button--secondary { background: var(--poll-blue); }

.poll-message {
    background: var(--poll-light);
    border-left: 4px solid var(--poll-blue);
    margin: 14px 0;
    padding: 11px 14px;
}

.poll-message--error {
    border-color: var(--poll-danger);
    color: var(--poll-danger);
}

.poll-result { margin: 16px 0; }
.poll-result__label { display: flex; gap: 16px; justify-content: space-between; }
.poll-result__label strong { white-space: nowrap; }
.poll-result__track { background: #e4ebef; border-radius: 999px; height: 10px; margin: 7px 0 4px; overflow: hidden; }
.poll-result__track span { background: linear-gradient(90deg, var(--poll-blue), #55a3bb); display: block; height: 100%; }
.poll-result__count, .poll-total { color: var(--poll-muted); font-size: .9rem; }
.poll-total { border-top: 1px solid var(--poll-border); margin-top: 22px; padding-top: 12px; }

.poll-list { display: grid; gap: 12px; margin: 22px 0; }
.poll-list__item { background: #fff; border: 1px solid var(--poll-border); border-radius: 9px; display: block; padding: 16px 18px; text-decoration: none; }
.poll-list__item:hover { border-color: var(--poll-blue); box-shadow: 0 5px 15px rgba(21, 58, 91, .08); }
.poll-list__question { color: var(--poll-navy); display: block; font-weight: 700; margin-bottom: 5px; }
.poll-list__meta { color: var(--poll-muted); font-size: .88rem; }
.poll-sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

@media (max-width: 600px) {
    .poll-card { padding: 18px; }
    .poll-shell { padding-inline: 10px; }
}
