.vsp-login-form {
    max-width: 400px;
    margin: 30px auto;
    text-align: center;
}

.vsp-login-form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
}

.vsp-success {
    background: #e5ffe5;
    border: 1px solid #b2ffb2;
    padding: 10px;
    margin-bottom: 15px;
}

.vsp-error {
    background: #ffe5e5;
    border: 1px solid #ffb2b2;
    padding: 10px;
    margin-bottom: 15px;
}

.vsp-info {
    background: #e5f1ff;
    border: 1px solid #b2d4ff;
    padding: 10px;
    margin-bottom: 15px;
}

.vsp-ballot {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: background-color 0.4s ease;
}

/* Overall background = secondary color */
.vsp-frontend-wrapper {
    background-color: var(--vsp-secondary);
    padding: 20px;
}

/* Thin bar at page top in primary color */
.vsp-frontend-wrapper .vsp-primary-bar {
    height: 6px;
    width: 100%;
    background-color: var(--vsp-primary);
    margin-bottom: 20px;
}

/* Voter name / headers in primary color */
.vsp-frontend-wrapper .vsp-voter-name,
.vsp-frontend-wrapper .vsp-header {
    color: var(--vsp-primary);
    margin: 0 0 16px;
    font-size: 1.5em;
}

.vsp-ballot-unsubmitted {
    background-color: #ffe5e5;
    border: 1px solid #ffcccc;
}

.vsp-ballot-submitted {
    background-color: #e5ffe5;
    border: 1px solid #ccffcc;
}

/* Optional: ensure ballots still get their default padding & radius */
.vsp-frontend-wrapper .vsp-ballot {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.vsp-voter-info {
    margin-bottom: 20px;
}

.vsp-voter-info form {
    display: inline;
}

/* hide write-in text until the box is checked */
.vsp-write-in-field {
    display: none;
    margin-top: 0.5em;
}

/* target the block wrapper + your header */
.wp-block-vsp-event-ballots .vsp-event-header {
    display: flex;
    align-items: center;
    gap: 0.5em; /* space between logo & title */
    margin-bottom: 1.5em;
}

.wp-block-vsp-event-ballots .vsp-event-logo {
    flex-shrink: 0; /* don’t let it compress oddly */
    height: 3em; /* roughly matches your heading font-size */
    width: auto;
}

.wp-block-vsp-event-ballots .vsp-event-name {
    font-size: 3em;
    margin: 0;
    color: var(--vsp-primary);
}

/* ─── VSP Voter Tabs Styling ─────────────────────────────────────────── */
.vsp-tabs {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
    display: flex;
    border-bottom: 1px solid #ccc;
}

.vsp-tabs .vsp-tab {
    margin-right: 0.5em;
    padding: 0.5em 1em;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.vsp-tabs .vsp-tab.active {
    background: #fff;
    font-weight: bold;
}

.vsp-tab-content {
    display: none;
    padding: 1em;
    border: 1px solid #ccc;
}

.vsp-tab-content.active {
    display: block;
}
/* ───────────────────────────────────────────────────────────────────── */
