/* ── WP Smart Poll v2 — Light Theme ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.wsp-poll-wrap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 500px;
    margin: 28px auto;
}

.wsp-inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    position: relative;
    border: 1.5px solid #e2e8f0;
    box-shadow:
        0 1px 3px rgba(0,0,0,.06),
        0 8px 32px rgba(99,102,241,.07);
}

/* Subtle accent strip at top */
.wsp-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
}

/* ── Header badge ── */
.wsp-header {
    margin-bottom: 16px;
}

.wsp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid #c7d2fe;
}

/* ── Question ── */
.wsp-question {
    color: #1e293b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 22px;
}

/* ── Options ── */
.wsp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.wsp-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 13px 15px;
    cursor: pointer;
    transition: border-color .18s, background .18s, transform .12s;
}

.wsp-option:hover {
    border-color: #a5b4fc;
    background: #f5f3ff;
    transform: translateX(2px);
}

.wsp-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wsp-radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    transition: border-color .18s;
    position: relative;
    background: #fff;
}

.wsp-radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}

.wsp-option.is-selected {
    border-color: #6366f1;
    background: #eef2ff;
}

.wsp-option.is-selected .wsp-radio-custom {
    border-color: #6366f1;
}

.wsp-option.is-selected .wsp-radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.wsp-option.is-selected .wsp-option-text {
    color: #4338ca;
    font-weight: 600;
}

.wsp-option-text {
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    transition: color .18s;
}

/* ── Error ── */
.wsp-error {
    color: #dc2626;
    font-size: 13px;
    margin: -6px 0 12px;
    font-weight: 500;
}

/* ── Submit button ── */
.wsp-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(99,102,241,.3);
}

.wsp-btn:hover   { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,.35); }
.wsp-btn:active  { transform: translateY(0); box-shadow: 0 2px 8px rgba(99,102,241,.25); }
.wsp-btn:disabled{ opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Results ── */
.wsp-results-view {
    animation: wsp-fadein .35s ease;
}

@keyframes wsp-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wsp-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.wsp-bar-item {}

.wsp-bar-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.wsp-bar-name {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.wsp-bar-name.winner { color: #16a34a; }

.wsp-bar-meta {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.wsp-bar-track {
    height: 10px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.wsp-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0%;
    transition: width 1s cubic-bezier(.22,.61,.36,1);
}

.wsp-bar-fill.winner {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.wsp-total-label {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    margin: 0 0 6px;
}

.wsp-voted-msg {
    color: #4338ca;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 14px;
    background: #eef2ff;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #c7d2fe;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .wsp-inner { padding: 24px 18px 20px; }
    .wsp-question { font-size: 15px; }
}
