.vote-section {
    background-color: #fff9e6;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 2px solid var(--perigord-yellow);
}

.vote-section h4 {
    font-size: 1.3rem;
    color: var(--perigord-black);
    font-weight: 700;
    margin-bottom: 1rem;
}

.vote-error {
    color: #d32f2f;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0.75rem 1.25rem 0.75rem;
    background-color: transparent;
    border-radius: 4px;
}

.vote-error:empty {
    display: none;
    margin-bottom: 0;
    padding: 0;
}

.vote-form {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.vote-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.75rem;
    flex: 1;
}

.vote-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: var(--white);
    min-height: 50px;
}

.vote-option:hover:not(.disabled) {
    border-color: var(--perigord-yellow);
    background-color: rgba(254, 222, 123, 0.1);
}

.vote-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.vote-option:has(.vote-radio:checked) {
    border-color: var(--perigord-black);
    background-color: var(--perigord-yellow);
}

.vote-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.vote-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--perigord-black);
    text-align: center;
    line-height: 1;
}

.vote-label small {
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

.btn-delete-vote {
    padding: 0.75rem 1.5rem;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-delete-vote:hover {
    background-color: #b71c1c;
}

@media (max-width: 768px) {
    .vote-form {
        flex-direction: column;
    }

    .vote-options {
        width: 100%;
    }
}
