/* General Poll Container */
.jta-poll-wrapper {
    margin: 20px 0;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    clear: both;
    position: relative;
    padding-bottom: 10px;
}

.wp-polls-archive .jta-poll-wrapper {
    margin-bottom: 0;
    padding-bottom: 0px;
}

.jta-poll-header {
    background-color: var(--dt-main-color);
    color: var(--dt-white-color);
    /* display: flex; */
    /* gap: 24px; */
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 10px 50px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 1.2em;
    line-height: 30px;
    font-weight: 600;
    background-image: url(../images/Just-CO-logo.png);
    background-position: 10px center;
    background-size: 30px 30px;
    background-repeat: no-repeat;
}

.jta-poll-wrapper .wp-polls {
    background-color: #f9f9f9;
    /* Rounded corners */
    border-radius: 0 0 8px 8px;
    padding: 15px;
}

/* Poll Title */
.wp-polls p {
    font-size: 1.2em;
    /* Larger font for the title */
    font-weight: bold;
    /* Bold text */
    text-align: center;
    /* Center align title */
    margin-bottom: 10px;
    /* Space below the title */
}



/* Poll Answers List */
.wp-polls-ul {
    list-style-type: none;
    /* Remove default list styling */
    padding: 0;
    /* Remove padding */
    margin: 10px !important;
}

/* Individual Poll Options */
.wp-polls-ul li {
    /* padding: 10px; */
    /* Padding for each option */
    border-bottom: 1px solid #eee;
    /* Divider between options */
    transition: background 0.3s;
    /* Smooth background transition */
}

/* On Hover Effect for Poll Options */
.wp-polls-ul li:hover {
    background-color: #eaeaea;
    /* Light grey on hover */
}

.wp-polls .Buttons {
    color: var(--dt-main-color);
    display: none;
}



/* Poll Bars */
.jta-poll-wrapper .wp-polls .pollbar {
    height: 10px;
    /* Height of the poll bar */
    background-color: var(--dt-main-color);
    background-image: none;
    /* Green color for votes */
    border-radius: 5px;
    /* Rounded corners for bars */
}

/* Total Voters Count */
.wp-polls p {
    font-size: 1em;
    /* Font size for the total voters */
    text-align: center;
    /* Center align total voters text */
    margin-top: 10px;
    /* Margin above the total voters */
}

/* Loading Spinner */
.wp-polls-loading {
    text-align: center;
    /* Center align loading spinner */
    display: none;
    position: absolute;
    width: 100%;
    top: 50%;
}


.wp-polls-form {
    /* background-color: #ffffff; */
    /* clear: both; */
    margin: 0 0 -10px;
}

/* Hide radio buttons */
.wp-polls-ul li input[type="radio"] {
    display: none;
}

/* Style the labels as buttons */
.wp-polls-ul li label {
    display: block;
    background-color: #f1f1f1;
    /* Light grey background for unselected */
    padding: 10px 15px;
    border: 1px solid #ccc;
    /* Border for the button-like appearance */
    border-radius: 5px;
    /* Rounded corners */
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Hover effect for label buttons */
.wp-polls-ul li label:hover {
    background-color: #e0e0e0;
    /* Slightly darker grey on hover */
}

/* When radio button is selected, change label's appearance */
.wp-polls-ul li input[type="radio"]:checked+label {
    background-color: var(--dt-main-color);
    /* Main color for selected */
    color: white;
    border-color: var(--dt-main-color);
}

/* Add some spacing between options */
.wp-polls-ul li {
    margin-bottom: 10px;
}

.wp-polls-ans ul li small {
    float: right;
}

.jta-poll-wrapper .powered {
    font-size: 12px;
    padding-right: 10px;
    text-align: right;
}

.wp-polls-paging {
    display: flex;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 20px;
    min-height: 43px;
    align-items: center;
}

.wp-polls-paging .pages,
.wp-polls-paging .current,
.wp-polls-paging a {
    position: relative;
    display: block;
    color: var(--dt-text-color);
    border-radius: 25px;
    font-size: 15px;
    text-decoration: none;
    border: solid 1px rgba(189, 189, 189, 0.4);
    height: 45px;
    line-height: 45px;
    text-align: center;
    padding: 0 10px !important;
    min-width: 45px;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;

}

.wp-polls-paging a:visited {
    border-color: var(--dt-main-color) !important;
    color: var(--dt-main-color) !important;
}

.wp-polls-paging .current {
    z-index: 3;
    color: #fff !important;
    text-decoration: none;
    border-color: transparent !important;
    background-color: var(--dt-main-color) !important;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .15);
    transition: all .2s ease-in-out;
}

.modal-watermark {
    position: absolute;
    background: transparent url("../images/aapki-khabar-with-justco.png") no-repeat center center;
    opacity: 0.2;
    background-size: contain;
    top: 0;
    bottom: 0;
    width: 90%;
    z-index: 1;
}

.modal-main-content {
    position: relative;
    z-index: 2;
}




/* Responsive Styles */
@media (max-width: 768px) {
    .jta-poll-wrapper .wp-polls {
        padding: 0;
        margin: 0 0 -10px;
    }

    .wp-polls p {
        font-size: 1em;
        /* Smaller title font on mobile */
    }

    .wp-polls-ul li label {
        font-size: 1em;
        padding: 8px;
    }

    .wp-polls-ans ul li {
        font-size: 0.8em;
    }

    .wp-polls .wp-polls-ans p:last-of-type {
        color: #aaa;
        background-color: #ddd;
        border-radius: 0 0 8px 8px;
        font-size: 12px;
        padding: 5px 10px 0 0;
        text-align: right !important;
        margin: 0;
    }

    .wp-polls .wp-polls-ans p>a {
        font-weight: normal;
        text-decoration: none;
        padding: 10px;
    }

    .jta-poll-wrapper .powered {
        position: absolute;
        margin-top: -12px;
        font-size: 12px;
        padding-left: 10px;
    }

    .wp-polls-archive p.archive-start-date {
        position: absolute;
        margin-top: -20px;
        font-weight: normal;
        font-size: 10px;
        padding-left: 10px;
    }

    .wp-polls-paging .pages,
    .wp-polls-paging .current,
    .wp-polls-paging a {
        border-radius: 25px;
        font-size: 12px;
        height: 30px;
        line-height: 30px;
        padding: 0 5px !important;
        min-width: 30px;

    }

    .modal-footer .powered-by {
        font-size: 10px;
    }

}