:root {
    --euprint-primary: #2b3a67;
    --euprint-accent: #c9a227;
    --euprint-bg: #f7f5f0;
    --euprint-text: #1f1f1f;
    --euprint-error: #b3261e;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    background: var(--euprint-bg);
    color: var(--euprint-text);
    font-family: "Segoe UI", Roboto, system-ui, sans-serif;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
}

.kiosk {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.kiosk-header {
    padding: 1.2rem 2rem;
    background: var(--euprint-primary);
    color: white;
    text-align: center;
}

.brand {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.kiosk-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.kiosk-footer {
    text-align: center;
    padding: 0.5rem;
}


.start-screen, .form-screen, .thanks-screen {
    max-width: 640px;
    width: 100%;
    text-align: center;
}

.form-screen { text-align: left; }

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: var(--euprint-primary);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--euprint-accent);
    font-weight: 600;
    margin: 0 0 1.2rem 0;
}

.intro {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.big-button {
    display: block;
    padding: 1.6rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.big-button.primary {
    background: var(--euprint-primary);
    color: white;
}

.big-button.secondary {
    background: white;
    color: var(--euprint-primary);
    border: 2px solid var(--euprint-primary);
}

.form-field {
    margin-bottom: 1.3rem;
}

.form-field label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1.15rem;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
}

.form-field textarea { resize: vertical; }

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.checkbox-field label { margin-bottom: 0; order: 2; }
.checkbox-field input[type="checkbox"] {
    order: 1;
    width: 1.6rem;
    height: 1.6rem;
}

.field-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.2rem;
}

.field-error {
    color: var(--euprint-error);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.has-error input, .has-error textarea {
    border-color: var(--euprint-error);
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--euprint-primary);
    text-decoration: none;
    font-size: 1rem;
}

.thanks-screen .checkmark {
    font-size: 4rem;
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.countdown-note {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

button.big-button { margin-top: 0.5rem; }

/* --- Toegevoegd: toestemming, privacy, QR-verwijzing -------------------- */

.form-intro {
    font-size: 1rem;
    color: #555;
    margin: 0 0 1.5rem 0;
}

.optional {
    font-weight: 400;
    font-size: 0.85rem;
    color: #888;
    margin-left: 0.4rem;
}

/* Honeypot: onzichtbaar voor mensen, wel invulbaar voor bots. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Toestemmingsvinkje: groot aanraakvlak, hele regel klikbaar. */
.checkbox-field {
    display: block;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.3rem;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-row input[type="checkbox"] {
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    margin: 0;
}

.checkbox-label {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.fineprint {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.45;
    margin-top: 0.6rem;
}

.checkbox-field.has-error {
    border-color: var(--euprint-error);
}

.qr-note {
    margin-top: 2.5rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.kiosk-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.privacy-link {
    color: #99a0b0;
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 0.7;
}

.privacy-screen {
    max-height: 100%;
    overflow-y: auto;
    -webkit-user-select: text;
    user-select: text;
}

.privacy-screen h2 {
    font-size: 1.1rem;
    color: var(--euprint-primary);
    margin: 1.4rem 0 0.3rem 0;
}

.privacy-screen p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 0.6rem 0;
}

/* --- Taalkeuze ---------------------------------------------------------- */

.kiosk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    text-align: left;
}

.lang-switch {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Ruime raakvlakken: dit wordt met een vinger bediend, niet met een muis. */
.lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.9rem;
    min-height: 2.6rem;
    padding: 0 0.5rem;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.lang-option.is-current {
    background: var(--euprint-accent);
    color: #1f1f1f;
}

@media (max-width: 420px) {
    .brand { font-size: 1.1rem; }
    .lang-option { min-width: 2.5rem; font-size: 0.8rem; }
}

/* --- Terugknop ---------------------------------------------------------- */
/* De tablet staat in kiosk-modus (app gepind), dus er is geen systeem-terug
   en geen swipe-gebaar. Navigatie moet volledig in de pagina zitten. */

.kiosk-header {
    /* Drie vakken: terug | titel | talen. Links en rechts even breed, zodat
       de titel echt in het midden blijft staan. */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.header-slot {
    justify-self: start;
    min-width: 1px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    /* Ruim boven de 44px die je minimaal wil voor een vingerdoel. */
    min-height: 2.9rem;
    padding: 0 1rem 0 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.back-button:active {
    background: rgba(255, 255, 255, 0.3);
}

.back-arrow {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-switch { justify-self: end; }

/* Volwaardige terugknop onderaan het formulier, waar de duim al zit. */
.big-button.tertiary {
    background: transparent;
    color: var(--euprint-primary);
    border: 2px solid #c3c7d1;
    margin-top: 0.9rem;
    font-size: 1.2rem;
    padding: 1.1rem 1.5rem;
}

.big-button.tertiary:active {
    background: #ececf1;
}

/* Op smalle schermen enkel de pijl, zodat de titel niet verdrukt raakt. */
@media (max-width: 560px) {
    .back-label { display: none; }
    .back-button { padding: 0 0.85rem; }
}
