/* vote.css - Contextual Styles for the Voting Hub Component Layouts */
.vote-container-wrapper { 
    padding: 8rem 1.5rem 4rem 1.5rem; 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%; 
}

.category-block { margin-bottom: 4rem; }
.category-header { border-left: 4px solid var(--accent); padding-left: 1rem; margin-bottom: 1.5rem; }
.category-header h2 { font-size: 1.75rem; font-weight: 800; color: #FFF; }
.category-header p { color: var(--muted-text); font-size: 0.9rem; }

.nominee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.nominee-card { background: var(--panel-glass); backdrop-filter: blur(12px); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: all 0.3s ease; }
.nominee-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.nominee-profile { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.nominee-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); background: #111; }
.nominee-details h3 { font-size: 1.15rem; font-weight: 700; color: #FFF; margin-bottom: 0.25rem; }
.nominee-details span { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.nominee-bio { font-size: 0.88rem; color: var(--muted-text); margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Modal Architecture */
.vote-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(4, 8, 20, 0.85); backdrop-filter: blur(16px); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.vote-modal.active { opacity: 1; pointer-events: auto; }

/* 🛠️ FIXED: Added position relative and overflow hidden rules directly to this class block container */
.modal-content { 
    background: #070c1e; 
    border: 1px solid var(--accent); 
    padding: 2.5rem 2rem; 
    border-radius: var(--radius); 
    max-width: 400px; 
    width: 90%; 
    text-align: center; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.6); 
    position: relative; 
    overflow: hidden; 
}

.close-modal { position: absolute; top: 1rem; right: 1.25rem; font-size: 1.5rem; color: var(--muted-text); cursor: pointer; background: transparent; border: none; z-index: 10060; } /* Ensured close button sits on top if needed */
.close-modal:hover { color: #FFF; }

.form-group { text-align: left; margin: 1.5rem 0; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--muted-text); text-transform: uppercase; }
.form-input { width: 100%; padding: 0.85rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,122,0,0.2); border-radius: 6px; color: #FFF; font-size: 1rem; font-weight: 600; outline: none; transition: border 0.25s; }
.form-input:focus { border-color: var(--accent); }
.btn-submit-vote { width: 100%; padding: 0.85rem; background: var(--accent); border: none; border-radius: 6px; color: #FFF; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; cursor: pointer; transition: background 0.25s; }
.btn-submit-vote:hover { background: var(--accent-hover); }
.btn-submit-vote:disabled { background: #3a506b; color: var(--muted-text); cursor: not-allowed; }

/* API Realtime Notification Layout Box */
.msg-box { padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem; text-align: left; display: none; }
.success-msg { background: rgba(46, 204, 113, 0.15); border: 1px solid #2ecc71; color: #2ecc71; }
.error-msg { background: rgba(231, 76, 60, 0.15); border: 1px solid #e74c3c; color: #e74c3c; }

/* Glassmorphic Processing Spinner Overlay Mechanics */
.payment-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #070c1e; /* 🛠️ FIXED: Swapped transparency for solid theme base to fully obscure disappearing inputs */
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 10050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.payment-processing-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.stk-spinner-ring {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 122, 0, 0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: rotateSTKSpinner 1s linear infinite;
}

@keyframes rotateSTKSpinner {
    to { transform: rotate(360deg); }
}

.processing-status-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.processing-status-sub {
    font-size: 0.88rem;
    color: var(--muted-text);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.6;
}