/* Election Vote Form Styles */

.election-vote-form {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Alert/Message Styles */
.election-vote-success-message,
.election-vote-error-message,
.election-vote-thankyou,
.election-vote-closed,
.election-vote-cantvote,
.election-vote-no-election,
.election-vote-no-roles {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.6;
}

.election-vote-success-message,
.election-vote-thankyou {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.election-vote-error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.election-vote-closed,
.election-vote-cantvote {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.election-vote-no-election,
.election-vote-no-roles {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Fieldset Styles */
.election-role-fieldset {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.election-role-fieldset legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 0 1rem;
    margin-bottom: 0;
}

/* Candidate Row */
.election-candidate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.election-candidate-row:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.election-candidate-info {
    flex: 1;
    margin-right: 1.5rem;
}

.election-candidate-name {
    display: block;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.election-candidate-bio {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Rank Selection */
.election-candidate-row label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    margin-right: 0.75rem;
    white-space: nowrap;
}

.election-rank-select {
    min-width: 140px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 1rem;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 16px 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.election-rank-select:hover {
    border-color: #adb5bd;
}

.election-rank-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.election-rank-select option:disabled {
    color: #adb5bd;
}

/* Submit Button */
.election-vote-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.election-vote-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.election-vote-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.election-vote-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .election-vote-form {
        margin: 1rem;
    }
    
    .election-role-fieldset {
        padding: 1.5rem;
    }
    
    .election-candidate-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .election-candidate-info {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .election-rank-select {
        width: 100%;
    }
    
    .election-vote-submit {
        max-width: 100%;
    }
}
