/* World Physiotherapy Day 2026 - public poll styles */

:root {
    --navy: #1c2a6b;
    --navy-deep: #141f52;
    --blue: #2452c4;
    --blue-soft: #eaf0ff;
    --cyan: #16b0c4;
    --pink: #e0457b;
    --green: #17915a;
    --ink: #1f2740;
    --muted: #6b7492;
    --line: #dde3f2;
    --bg: #eef2fb;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(20, 35, 90, .10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", "SolaimanLipi", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

.wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 18px 14px 60px;
}

/* --- Banner --- */
.banner {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--card);
    margin-bottom: 18px;
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Page heading --- */
.page-head {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px 20px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.page-head h1 {
    margin: 0 0 6px;
    font-size: 23px;
    line-height: 1.5;
    font-weight: 700;
}

.page-head p {
    margin: 0;
    opacity: .9;
    font-size: 15px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.chip {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: 4px 13px;
    font-size: 14px;
}

/* --- Cards --- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.card-title {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 4px;
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.55;
}

.q-number {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 16px;
    margin-top: 2px;
}

.card-note {
    margin: 0 0 14px 42px;
    color: var(--muted);
    font-size: 14px;
}

/* --- Option list --- */
.options {
    display: grid;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 13px 15px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fbfcff;
}

.option:hover { border-color: #b9c6ec; }

.option input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 2px solid #b6bfd8;
    border-radius: 50%;
    margin: 0;
    display: grid;
    place-items: center;
    transition: border-color .15s;
}

.option input::after {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--blue);
    transform: scale(0);
    transition: transform .15s;
}

.option input:checked { border-color: var(--blue); }
.option input:checked::after { transform: scale(1); }

.option:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.option span { flex: 1; }

/* --- Form fields --- */
.field { margin-bottom: 14px; }

.field label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
}

.field input {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    background: #fbfcff;
    color: var(--ink);
}

.field input:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
}

.optional {
    font-weight: 400;
    color: var(--muted);
    font-size: 13px;
}

/* --- Button --- */
.btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 16px 20px;
    font: inherit;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(36, 82, 196, .3);
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-plain {
    display: inline-block;
    width: auto;
    background: #fff;
    color: var(--blue);
    border: 2px solid var(--line);
    box-shadow: none;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 22px;
}

/* --- Alerts --- */
.alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 16px;
}

.alert-error {
    background: #fdecea;
    border: 1px solid #f3b6b0;
    color: #a3231a;
}

.alert-info {
    background: #e9f6ff;
    border: 1px solid #a9d7f3;
    color: #12557a;
}

/* --- Thank-you state --- */
.done {
    text-align: center;
    padding: 34px 22px;
}

.done-mark {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #e4f7ec;
    color: var(--green);
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    font-size: 44px;
    line-height: 1;
}

.done h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 24px;
}

.done p {
    margin: 0 0 6px;
    color: var(--muted);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-top: 22px;
    line-height: 1.8;
}

.site-footer strong { color: var(--navy); }

/* --- Result bars (shared with the admin summary) --- */
.bar-row { margin-bottom: 14px; }

.bar-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    margin-bottom: 5px;
}

.bar-value {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--navy);
}

.bar-track {
    height: 14px;
    border-radius: 999px;
    background: #eef1f8;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--blue);
    transition: width .5s ease;
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .wrap { padding: 12px 11px 48px; }
    .page-head h1 { font-size: 20px; }
    .card { padding: 16px; }
    .card-title { font-size: 17px; }
    .card-note { margin-left: 0; }
}
