/* Voting page: Start */

/* Prevent page scroll when modal opens - CRITICAL FIX */
body.modal-open {
    overflow: hidden !important;
    height: 100vh;
}

body.modal-open .voting-page,
body.modal-open .inner-page,
body.modal-open .contactuspg-wrap {
    overflow: hidden !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal {
    overflow-y: auto !important;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Hide default WordPress elements */
.entry-title, 
.page-title, 
h1.entry-title,
.single-title,
.wp-block-post-title,
.cpolicypg-title {
    display: none !important;
}

.widget-area,
#secondary,
.sidebar,
aside,
.stayconnected {
    display: none !important;
}

.cpolicypg-left-xxl,
.site-main,
.content-area,
main,
article {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
}

/* Banner */
.voting-page .vote-banner {
    border-radius: 20px;
    overflow: hidden;
}

.voting-page .vote-banner img {
    width: 100%;
}

/* Page Heading */
.voting-page h1 {
    font-size: 24px;
    font-weight: 400;
    color: #1b263a;
    margin: 0 0 40px 0;
}

/* Category Cards */
.voting-page .cell {
    padding: 25px;
    /* background: #ededed; */
    border-radius: 20px;
    border: 1px solid #d5d5d5;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

/* Updaed h2 also to fix large name issue */
.voting-page .cell h2 {
    font-size: 16px;
    color: #1b263a;
    font-weight: 400;
    position: relative;
    padding: 0 0 0 18px;
    margin: 0;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
    min-height: 20px;
}

.voting-page .cell h2::after {
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cc5200;
    content: '';
}

.voting-page .cell h2 sub {
    display: block;
    line-height: normal;
    font-size: 12px;
    bottom: auto;
    margin: 3px 0 0 0;
}

.voting-page .cell .btm {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

/* UPdated btm span as big brand names goes out of card area */
.voting-page .cell .btm span {
    font-size: 14px;
    color: #1b263a;
    font-weight: 700;
    display: block;
    max-width: 200px;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.3;
    flex: 1;
    margin-right: 10px;
}

.voting-page .cell .btm span sup {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 400;
    top: auto;
    line-height: normal;
    margin-bottom: 4px;
}

.voting-page .cell .btm .btn {
    min-width: 100px;
    height: 32px;
    border: 1px solid #212121;
    border-radius: 8px;
    font-size: 11px;
    text-transform: uppercase;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
}

.voting-page .cell .btm .btn:hover {
    background: #212121;
    color: #fff;
}

/* Submit Button */
.voting-page .submit {
    width: 100%;
    background: #000;
    font-size: 16px;
    height: 56px;
    border-radius: 12px;
    color: #fff;
    border: 0;
    transition: 0.3s;
}

.voting-page .submit:hover {
    background: #ff6600;
}

/* voted */
.voting-page .cell.voted .btm {
    justify-content: space-between;
}

.voting-page .cell.voted.inModal {
    border: 1px solid #000;
}

.voting-page .cell.voted.inModal h2 {
    padding-left: 35px;
}

.voting-page .cell.voted.inModal h2::after {
    top: -3px;
    width: 24px;
    height: 24px;
    background: url('../images/check-round-fill.png') center center no-repeat;
}

.voting-page .cell.inModal .btm {
    justify-content: flex-end;
}

/* .voting-page .cell.voted .btm .btn {
    cursor: not-allowed;
} */
.voting-page .cell.voted .btm .btn {
    background: #212121;
    color: #fff;
}

/* vote-modal1 */
.vote-modal1 .modal-dialog {
    max-width: 1170px;
}

.vote-modal1 .modal-body .container {
    max-width: 100% !important;
}

.vote-modal1 .modal-content,
.vote-modal2 .modal-content {
    border-radius: 20px;
}

.vote-modal1 .cell {
    background: #ededed;
    cursor: pointer;
}

.vote-modal1 .cell:hover {
    border: 1px solid #000;
}

.vote-modal1 .cell .btm .btn {
    background: #fff;
    border: 1px solid #fff;
}

.vote-modal1 .cell:hover .btm .btn {
    background: #000;
    color: #fff;
}

.vote-modal1 .modal-header {
    padding: 25px 30px;
}

.vote-modal1 .submit {
    height: 70px;
    border-radius: 35px;
}

.vote-modal2 .close {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
}

.vote-modal2 input {
    height: 56px;
    background: #ededed;
    padding: 0 20px;
    font-size: 16px;
}

/* Banner Description */
.voting-page .banner-description {
    background: #f5f7fa;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #cc5200;
    margin-bottom: 15px;
}

.voting-page .banner-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #1b263a;
    text-align: justify;
}

/* Privacy Notice in Modal */
.vote-modal2 .privacy-notice {
    background: #ededed;
    border-left: 4px solid #cc5200;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    margin-bottom: 30px;
}

.vote-modal2 .privacy-notice .privacy-text {
    margin: 0;
    font-size: 14px;
    color: #1b263a;
    line-height: 1.5;
}

.vote-modal2 .privacy-notice strong {
    color: #cc5200;
    font-size: 16px;
}


/* Contact Information */
.vote-modal2 .contact-info {
    background: #f5f7fa;
    padding: 20px;
    margin-top: 30px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    
}

.vote-modal2 .contact-info .contact-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #1b263a;
    text-align: center;
}

.vote-modal2 .contact-info a {
    color: #cc5200;
    text-decoration: none;
    font-weight: 500;
}

.vote-modal2 .contact-info a:hover {
    text-decoration: underline;
}

.voting-btn-wrap {
    width: 100%;
    height: auto;
    position: sticky;
    bottom: 0px;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 100px;
    padding: 20px 0;
    background: linear-gradient(to top, #ffffff 0%, #ffffff 85%, rgba(255,255,255,0) 100%);
}

.voting-btn-wrap .vbw-inner {
    position: relative;
    height: auto;
}

.voting-btn-wrap .vbw-inner > button {
    position: relative;
    bottom: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Force plugin section to full width */
.inner-page.contact-us-pg {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove parent column padding */
.col-xl-9.cpolicypg-left-xl {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* Responsive Design */
@media screen and (max-width:767px) {
    .voting-page .cell {
        padding: 25px 15px;
    }
}

/* Voting page: End */






