/*
|--------------------------------------------------------------------------
| VOTE MODAL
|--------------------------------------------------------------------------
*/
.vote-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.vote-modal.active {
    display: flex;
}

/*
|--------------------------------------------------------------------------
| OVERLAY
|--------------------------------------------------------------------------
*/
.vote-modal-overlay {
    position: absolute;
    inset: 0;
    background:
        rgba(0, 0, 0, 0.75);
    backdrop-filter:
        blur(8px);
}

/*
|--------------------------------------------------------------------------
| MODAL BOX
|--------------------------------------------------------------------------
*/
.vote-modal-dialog {
    position: relative;
    width: min(520px,
            92%);
    max-height: 90vh;
    overflow-y: auto;
    background:
        #ffffff;
    border-radius:
        24px;
    padding:
        35px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .35);
    animation:
        voteModalShow .35s ease;
}

/*
|--------------------------------------------------------------------------
| ANIMATION
|--------------------------------------------------------------------------
*/
@keyframes voteModalShow {
    from {
        opacity: 0;
        transform:
            translateY(30px) scale(.95);
    }

    to {
        opacity: 1;
        transform:
            translateY(0) scale(1);
    }
}

/*
|--------------------------------------------------------------------------
| CLOSE BUTTON
|--------------------------------------------------------------------------
*/
.vote-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background:
        #f3f3f3;
    font-size:
        25px;
    cursor: pointer;
    transition: .3s;
}

.vote-modal-close:hover {
    background:
        #C9A97A;
    color: white;
}

/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/
.vote-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.vote-modal-header .eyebrow {
    font-size:
        12px;
    letter-spacing:
        2px;
    color:
        #C9A97A;
    font-weight:
        700;
}

.vote-modal-header h2 {
    margin:
        10px 0 5px;
    color:
        #262626;
    font-size:
        28px;
}

.vote-modal-header p {
    color:
        #777;
}

/*
|--------------------------------------------------------------------------
| NOMINEE CARD
|--------------------------------------------------------------------------
*/
.vote-nominee-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background:
        #f8f8f8;
    padding:
        18px;
    border-radius:
        18px;
    margin-bottom: 25px;
}

.vote-nominee-card img,
.vote-placeholder {
    width:
        75px;
    height:
        75px;
    border-radius:
        50%;
    object-fit:
        cover;
}

.vote-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        #262626;
    color: white;
    font-size:
        30px;
    font-weight:
        700;
}

.vote-nominee-card h3 {
    margin:
        0 0 5px;
    font-size:
        18px;
}

.vote-nominee-card span {
    color: #777;
}

/*
|--------------------------------------------------------------------------
| INFORMATION BOXES
|--------------------------------------------------------------------------
*/
.vote-information {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.vote-info-box {
    padding:
        15px;
    background:
        #fafafa;
    border-radius:
        14px;
}

.vote-info-box span {
    display: block;
    font-size:
        11px;
    color:
        #888;
    margin-bottom:
        6px;
}

.vote-info-box strong {
    color:
        #262626;
}

/*
|--------------------------------------------------------------------------
| COUNTER
|--------------------------------------------------------------------------
*/
.vote-quantity-section {
    margin-bottom: 25px;
}

.vote-quantity-section label {
    display: block;
    font-weight:
        700;
    margin-bottom:
        12px;
}

.vote-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.vote-counter button {
    width:
        45px;
    height:
        45px;
    border: none;
    border-radius:
        12px;
    background:
        #262626;
    color: white;
    font-size:
        22px;
    cursor: pointer;
}

.vote-counter input {
    width:
        90px;
    height:
        45px;
    text-align: center;
    border:
        1px solid #ddd;
    border-radius:
        12px;
    font-size:
        18px;
}

/*
|--------------------------------------------------------------------------
| SUMMARY
|--------------------------------------------------------------------------
*/
.vote-summary {
    display: flex;
    justify-content: space-between;
    background:
        #262626;
    color: white;
    padding:
        20px;
    border-radius:
        18px;
    margin-bottom: 25px;
}

.vote-summary span {
    display: block;
    color:
        #bbb;
    font-size:
        12px;
}

.vote-summary strong {
    font-size:
        22px;
}

/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/
.confirm-vote-button {
    width:
        100%;
    padding:
        16px;
    border: none;
    border-radius:
        14px;
    background:
        linear-gradient(135deg,
            #C9A97A,
            #a77c42);
    color: white;
    font-size:
        16px;
    font-weight:
        700;
    cursor: pointer;
    transition: .3s;
}

.confirm-vote-button:hover {
    transform:
        translateY(-3px);
    box-shadow:
        0 15px 30px rgba(201, 169, 122, .35);
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/
@media(max-width:600px) {
    .vote-modal-dialog {
        padding:
            25px;
        border-radius:
            20px;
    }

    .vote-modal-header h2 {
        font-size:
            22px;
    }

    .vote-information {
        grid-template-columns:
            1fr;
    }

    .vote-summary {
        flex-direction:
            column;
        gap:
            15px;
    }
}