/* Container for the poll form */
.poll-form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 820px;
    margin: auto;
}

/* Layout for the poll options */
.poll-form-container .row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* Space between columns */
}

/* 4-column layout for larger screens */
.poll-form-container .col-md-3 {
    flex: 1 1 calc(25% - 15px);
    /* 4 columns */
    box-sizing: border-box;
}
.form-check {
    display: flex !important;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.input.form-check-input {
    margin-right: 70px;
}


/* 2-column layout for smaller screens */
@media (max-width: 768px) {
    .poll-form-container .col-md-3 {
        flex: 1 1 calc(50% - 15px);
        /* 2 columns */
    }
}

/* Styling for form check items */
.poll-form .form-check {
    row-gap: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background-color 0.3s, border-color 0.3s;
    flex-direction: column-reverse;
    align-content: center;
    justify-content: space-evenly;
}

.poll-form .form-check:hover {
    background-color: #f0f8ff;
    border-color: #b0d4f1;
}

.poll-form .form-check .form-check-label {
    font-weight: bold;
   
    font-size: 17px;
}

.poll-form .form-check img {
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Styling for form groups */
.poll-form .form-group label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.poll-form .form-group input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.poll-form .form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
}

/* Styling for submit button */
.poll-form .btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.poll-form .btn:hover {
    background-color: #0056b3;
}

/* Styling for alerts */
.alert {
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
}

.alert-success {
    font-size: 24px;
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-warning {
    font-size: 24px;
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

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

/* General checkbox styling */
.form-check-input {
    margin: 5px;
    appearance: none;
    width: 25px;
    height: 25px;
    border: 2px solid #007bff;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Checkbox when checked */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Custom checkmark for checked state */
.form-check-input:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 0%;
    width: 10px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transform-origin: center;
}

/* Checkbox focus state */
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(38, 143, 255, 0.25);
}

/* Custom styling for checkbox container */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Text label styling */
.form-check-label {
    margin-left: 10px;
    font-size: 16px;
    color: #333;
}

h4 {
    color: red;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 800px;
    width: 100%;
}

.close-popup {
    cursor: pointer;
    font-size: 20px;
    float: right;
}
.voter-name.first {
    color: red;
}
