* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.poll-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.poll-header {
    background: linear-gradient(135deg, #1a73e8 0%, #9334e6 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.poll-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.poll-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.poll-body {
    padding: 30px;
}

.candidate-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.candidate-card:hover {
    border-color: #1a73e8;
    background: #f8f9fa;
}

.candidate-card.selected {
    border-color: #1a73e8;
    background: #e8f0fe;
}

.candidate-card input[type="radio"] {
    display: none;
}

.candidate-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.candidate-party {
    font-size: 0.9rem;
    color: #666;
}

.vote-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.results-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.results-link a {
    color: #1a73e8;
    text-decoration: none;
}

.results-link a:hover {
    text-decoration: underline;
}

.total-votes {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.candidate-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #1a73e8;
}

.candidate-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon {
    display: none;
}

.candidate-card.selected .check-icon {
    display: block;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.voted-message {
    text-align: center;
    padding: 40px 20px;
}

.voted-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.voted-message h3 {
    color: #28a745;
    margin-bottom: 10px;
}

.voted-message p {
    color: #666;
}

.location-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.location-section h5 {
    color: #1a73e8;
    font-weight: 600;
}

.location-section .form-label {
    font-weight: 500;
    color: #333;
}

.location-section hr {
    margin: 20px 0;
}

#locationRequiredNote {
    color: #dc3545;
}

.hidden {
    display: none;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 45px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #1a73e8;
}

.location-section .select2-selection {
    background: white;
}