/* ================= GLOBAL ================= */
body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    margin: 0;
    padding: 0;
    color: #374151;
}

/* ================= POLLS ================= */
.poll-section {
    padding: 60px 16px;
}

.poll-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start; /* padrão */
    max-width: 1200px;
    margin: 40px auto 0 auto; /* espaço superior e centralização */
}

/* ================= POLL CARD ================= */
.poll-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: calc(50% - 12px);
    min-width: 280px;
    flex: 1 1 300px;
}

.poll-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.poll-description {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-info input[type="checkbox"] {
    pointer-events: none;
}

.radio-circle {
    width: 14px;
    height: 14px;
    border: 2px solid #2563eb;
    border-radius: 50%;
}

.option-info span {
    font-weight: 500;
    font-size: 14px;
}

.option-votes {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.progress-bar {
    background: #e5e7eb;
    border-radius: 6px;
    height: 6px;
    width: 100%;
    overflow: hidden;
}

.progress-bar .progress {
    background: #2563eb;
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.poll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.poll-stats span {
    font-size: 12px;
    color: #6b7280;
    margin-right: 12px;
}

.vote-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.vote-btn:hover {
    background: #1d4ed8;
}

.voted-msg {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

/* ================= CENTRALIZA SE TIVER APENAS UM ================= */
.poll-wrapper:only-child,
.poll-wrapper > .poll-card:only-child {
    justify-content: center; /* centraliza o wrapper */
}

.poll-wrapper > .poll-card:only-child {
    width: 60%; /* aumenta tamanho do card único */
    margin: 0 auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .poll-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .poll-wrapper {
        justify-content: center;
    }

    .poll-card {
        width: 100%;
        padding: 16px;
    }

    .poll-header h3 {
        font-size: 16px;
    }

    .option-info span {
        font-size: 13px;
    }

    .vote-btn {
        width: 100%;
    }
}