.poll-body,
#trending-poll {
    /* background: #6236A8; */
    background: #6236A8;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px 11px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.poll-wrapper {
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.poll-header h3 {
    font-size: 20px;
    color: white;
    padding-bottom: 5px;
}

.poll-header p {
    font-size: 14px;
    margin-bottom: 15px;
    color: white;
}

.poll-container {
    background: white;
    color: black;
    border-radius: 10px;
    padding: 20px 30px;
    text-align: center;
    z-index: 10;
}

.question-title {
    color: #6236A8;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 21px;
    text-align: center;
}

.question-text {
    font-weight: 550;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 0.02em;
    color: #263044;
}

.border-bottom {
    height: 2px;
    width: 30%;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
    justify-content: center;
    display: flex;
    align-items: center;
    margin: auto;
    background: linear-gradient(90deg, #FEE6C2 0%, #E2E1F2 100%);
    border-radius: 2px;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.option {
    width: 100%;
    height: 50px;
    background: #F7F7F8;
    border-image-source: linear-gradient(90deg, #EFEFEF 0%, #DDE1FF 65.87%);
    box-shadow: 0px 2px 4px rgb(0 0 0 / 7%);
    padding-left: 39px;
    cursor: pointer;
    position: relative;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.option:hover {
    background: #f6f6f6;
    border-color: #6236A8;
}

.option::before {
    content: "";
    position: absolute;
    left: 15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-sizing: border-box;
    transition: border-color .2s, background .2s;
    background: #F7F7F8;
    border: 2px solid #F7F7F8;
    transform: rotate(-180deg);
}

.option::after {
    content: "";
    position: absolute;
    left: 15px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: transparent;
    transition: background .2s;
    transform: rotate(-180deg);
}

#news-poll .option.selected {
    border: 1px solid #6236A8;

}

#news-poll .option.selected::before {
    border: 2px solid #6236A8;
    background: #fff;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.poll-response-submit,
.trending-poll-btn {
    border-radius: 4px;
    width: 220px;
    height: 50px;
    font-size: 14px;
    line-height: 14px;
    display: inline-block;
    align-items: center;
    justify-content: center;
    background: #6236A8;
    color: white;
    padding: 10px 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.poll-response-submit:ho2pxver {
    background: #6236A8;
}

.see-others-btn {
    border-radius: 4px;
    font-size: 14px;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #6236A8;
    padding: 10px 15px;
    border: 1px solid #6236A8;
    font-weight: bold;
    cursor: pointer;
}

.live-votes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

/* Modal background */
.custom-modal {
    display: flex;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* Content box */
.custom-modal-content {
    background: white;
    border-radius: 8px;
    width: 570px;
    height: 235px;
    padding: 30px 12px;
    text-align: center;
    position: relative;
}

/* Close button */
.close-modal {
    position: absolute;
    right: 0px;
    top: -5px;
    font-size: 22px;
    cursor: pointer;
}

#thankYouModal .see-others-btn {
    width: 242px;
    height: 43px;
    background: #6236A8;
    color: white;
    display: inline-block;
    font-size: 12px;
    border-radius: 4px;
}

.small-text {
    margin-top: 10px;
    color: #5C5581;
    font-size: 12px;
    line-height: 14px;
}

#thankYouModal h2 {
    color: #6236A8;
    margin-top: 14px;
    font-size: 20px;
}

#thankYouModal p {
    padding: 15px;
    font-size: 12px;
    line-height: 14px;
    color: #5C5581;
}

#trending-poll {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0px;
    z-index: 9999;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.option-txt {
    display: flex;
    width: 100%;
    justify-content: space-between;
    z-index: 1;
}

.trending-poll .progress-bar {
    position: absolute;
    left: 0;
    height: 100%;
    background: #E3E3E3;
    border-radius: 2px;
}

.option.highest {
    background: linear-gradient(135deg, #fee6c3, #e3e1f1);
}

.progress-bar.highest {
    background: linear-gradient(135deg, #fee6c3, #e3e1f1);
}

#trending-poll .close-trending-poll {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: color 0.2s;
}

#trending-poll .close-trending-poll:hover {
    color: gainsboro;
}

/* Modal Overlay */
#trending-poll-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    height: 16px;
}

.percentage {
    font-size: 14px;
    margin-top: 4px;
    margin-right: 18px;
    color: #333;
}

#trending-poll .highest .tick-icon {
    display: block !important;
    width: 24px;
    height: 15px;
    margin-top: 16px;
    margin-left: 10px;
}

.see-others-btn:disabled {
    color: #A2A8C8;
    border-color: #A2A8C8;
}

#thankYouModal .see-others-btn:disabled,
.poll-response-submit:disabled {
    background-color: #A2A8C8;
}

.options.disabled .option {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}


@media(max-width:1023px) {

    .poll-container {
        padding: 20px 15px;
    }

    .poll-container .options {
        display: list-item;
    }

    .poll-container .option {
        margin-bottom: 12px;
        height: 34px;
        font-size: 13px !important;
        text-align: left;
    }

    .poll-container .buttons {
        display: list-item;
    }

    .poll-container .see-others-btn {
        display: inline-block;
        width: 100%;
    }

    .poll-response-submit {
        margin-bottom: 10px;
        width: 100%;
    }

    .poll-header p {
        font-size: 13px;
    }

    .options {
        margin-bottom: 15px;
        font-size: 13px;
    }

    .live-votes {
        font-size: 13px;
    }

    .poll-response-submit,
    .trending-poll-btn {
        height: 43px;
    }

    #trending-poll .highest .tick-icon {
        margin-top: 10px;
    }

    .percentage {
        font-size: 13px;
    }

    .poll-header p {
        font-size: 12px;
    }

    .border-bottom {
        width: 60%;
        margin-top: 8px !important;
    }

    #trending-poll {
        padding: 40px 8px;
        width: 95%;
        border-radius: 2px;
    }

    .trending-poll {
        position: relative;
    }

    .custom-modal-content {
        width: 355px;
    }
}