body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f9;
    color: #34495e;
    margin: 0;
    padding: 0;
}
#formulier {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    padding: 30px 40px;
    box-sizing: border-box;
}
.rij {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e1e8ed;
    gap: 16px;
}
.nummer { width: 36px; font-weight: 700; font-size: 1.25rem; color: #2980b9; flex-shrink: 0; text-align: center; }
.beschrijving { flex: 1 1 320px; font-weight: 600; font-size: 1rem; color: #2c3e50; }
.btn-container { display: flex; gap: 12px; }
.button { font-size: 1.2rem; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: none; cursor: pointer; user-select: none; transition: background-color 0.3s ease; min-width: 40px; }
.button-o { background-color: #fce4e4; color: #e74c3c; box-shadow: 0 2px 6px rgba(231,76,60,0.3); }
.button-o:hover { background-color: #e74c3c; color: #fff; }
.button-g { background-color: #e8f6e8; color: #27ae60; box-shadow: 0 2px 6px rgba(39,174,96,0.3); }
.button-g:hover { background-color: #27ae60; color: #fff; }
.button:not(.button-o):not(.button-g) { background-color: #bdc3c7; color: #2c3e50; }
.button:not(.button-o):not(.button-g):hover { background-color: #95a5a6; color: #fff; }
.resultaat { flex: 1 1 320px; font-size: 1.1rem; font-weight: normal; color: #34495e; padding-left: 12px; }
input[type="text"] { flex: 1 1 300px; max-width: 320px; font-size: 1rem; padding: 8px 12px; border-radius: 8px; border: 1px solid #bdc3c7; transition: border-color 0.3s ease; }
input[type="text"]:focus { outline: none; border-color: #2980b9; box-shadow: 0 0 8px rgba(41,128,185,0.4); }
#naamKandidaat { width: 320px; font-weight: 700; border-radius: 12px; border: 2px solid #2980b9; padding: 12px 18px; font-size: 1.15rem; color: #2980b9; background: #ecf0f1; box-shadow: 0 2px 8px rgba(41,128,185,0.15); text-align: center; margin: 24px auto; display: block; }
#naamKandidaatContainer label { color: #2980b9; font-weight: 700; font-size: 1.3rem; display: block; text-align: center; margin-bottom: 12px; }
#uitslagContainer { max-width: 900px; margin: 32px auto; background: #ecf0f1; border-radius: 12px; box-shadow: 0 6px 15px rgba(0,0,0,0.07); padding: 24px; font-size: 2rem; font-weight: 700; color: #2980b9; text-align: center; }
#mailKnop { display: block; margin: 36px auto 60px auto; padding: 14px 48px; font-size: 1.3rem; font-weight: 700; color: white; background-color: #2980b9; border: none; border-radius: 12px; cursor: pointer; transition: background-color 0.3s ease; user-select: none; }
#mailKnop:hover { background-color: #1c5980; }
@media (max-width: 800px) {
    .rij { flex-direction: column; align-items: stretch; max-width: 100%; padding: 12px 0; gap: 8px; }
    .nummer { width: auto; text-align: left; margin-bottom: 4px; }
    .beschrijving { max-width: 100%; margin-bottom: 8px; }
    input[type="text"] { max-width: 100%; }
    #naamKandidaat { width: 100%; max-width: 100%; }
}
@media print {
    body, html { background: white !important; color: black !important; font-size: 12pt !important; }
    #formulier { box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box; }
    .rij { display: block !important; border-bottom: 1px solid #000 !important; padding: 5px 0 !important; page-break-inside: avoid; }
    .nummer, .beschrijving, .btn-container, .resultaat, input[type="text"] { display: block !important; width: 100% !important; margin: 3px 0 !important; float: none !important; }
    input[type="text"] { border: 1px solid #000 !important; background: #fff !important; color: #000 !important; padding: 4px !important; font-size: 12pt !important; box-shadow: none !important; max-width: 100% !important; }
    button, #mailKnop { display: none !important; }
    #uitslagContainer { max-width: 100% !important; font-size: 16pt !important; font-weight: normal !important; }
    input[type="text"] { display: none !important; }
    .feedback-print-span { display: inline !important; font-size: 12pt; color: black; padding-left: 12px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; border: 1px solid transparent; background: transparent; vertical-align: middle; }
}