html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #feec89 0%, #ffed4e 50%, #ffd700 100%);
    margin-bottom: 60px;
}

.vote-container {
    background: white;
    border-radius: 20px;
    padding: 25px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.vote-container h1 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #718096;
    font-size: 1.1em;
}

.candidates {
    display: grid;
    gap: 20px;
    margin-bottom: 15px;
}

.candidate {
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.candidate:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.candidate.selected {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.15) 100%);
}

.candidate-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.candidate-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    flex-shrink: 0;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .candidate-photo img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

.candidate.selected .candidate-photo {
    border-color: #ffd700;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.candidate.selected .radio-custom {
    border-color: #ffd700;
}

    .candidate.selected .radio-custom::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 12px;
        height: 12px;
        background: #ffd700;
        border-radius: 50%;
    }

.candidate-info {
    flex: 1;
}

.candidate-name {
    font-size: 1.5em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.candidate-desc {
    color: #718096;
    font-size: 0.95em;
}

.vote-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2d3748;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    pointer-events: none;
}

.vote-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.vote-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.success-message {
    text-align: center;
    padding: 15px;
}

.success-message.show {
    display: block;
}

.success-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.success-text {
    font-size: 1.5em;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-subtext {
    color: #718096;
    font-size: 1.1em;
}

input[type="radio"] {
    display: none;
}

.logo-container {
    position: relative;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 2px solid #e2e8f0;
    color: #718096;
    font-size: 0.95em;
    font-family: 'Nunito', sans-serif;
}

.company-footer a {
    text-decoration: none;
    color: inherit;
    transition-duration: 0.3s;
}

.company-footer a:hover {
    color: #444444;
}

.company-footer-company {
    font-weight: 600;
    color: #b23c3c;
    margin-bottom: 5px;
}

.company-footer-tagline {
    font-size: 0.85em;
    color: #718096;
}

.fw-bold {
    font-weight: bold;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    .candidate {
        padding: 10px;
    }

    .candidate-photo {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }

    .candidate-name {
        font-size: 1.2em;
    }

    .logo {
        width: 50px;
        height: 50px;
    }
}

.results-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
}

.result-item {
    margin-bottom: 20px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-name {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-percentage {
    font-weight: 700;
    color: #ffd700;
    font-size: 1.1em;
}

.result-bar-container {
    width: 100%;
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.result-bar {
    height: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 15px;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.9em;
}

.privacy-policy {
    background: white;
    border-radius: 20px;
    padding: 50px;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.disclaimer {
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}