/* Keien tegen Kanker — Happy Stone huisstijl. Mobile-first. */

:root {
    --koraal: #F54C55;
    --koraal-dark: #d83b44;
    --geel: #FED555;
    --blauw: #2BB3F0;
    --creme: #FFF8EE;
    --inkt: #2c2420;
    --grijs: #7a6f68;
    --wit: #ffffff;
    --radius: 18px;
    --schaduw: 0 8px 28px rgba(58, 47, 42, .12);
    --schaduw-lg: 0 18px 50px rgba(58, 47, 42, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--inkt);
    background: var(--creme);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, .choice input:focus-visible {
    outline: 3px solid var(--koraal);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ============ TOPNAV ============ */
.topnav { position: sticky; top: 0; z-index: 40;
    background: rgba(255,248,238,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid #f0e6d8; }
.topnav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.topnav-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
    color: var(--inkt); font-weight: 900; font-size: 1rem; }
.topnav-brand img { border-radius: 50%; }
.topnav-brand span { white-space: nowrap; }
.topnav-links { display: flex; gap: 6px; }
.topnav-links a { text-decoration: none; color: var(--grijs); font-weight: 800;
    font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.topnav-links a:hover { background: #fff; color: var(--inkt); }
.topnav-links a.active { background: var(--koraal); color: #fff; }
@media (max-width: 420px) {
    .topnav-brand span { display: none; }
}

/* ============ PERSPAGINA ============ */
.pers-hero { padding: 36px 0 18px; }
.pers-hero .kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
    font-size: .8rem; color: var(--koraal); margin: 0 0 6px; }
.pers-hero h1 { font-size: 2.1rem; margin: 0 0 12px; }
.pers-hero .lead { font-size: 1.1rem; color: var(--inkt); max-width: 640px; margin: 0; }

.pers-main { padding: 18px 0 30px; max-width: 760px; }
.pers-block { margin-bottom: 38px; }
.pers-block h2 { font-size: 1.4rem; margin: 0 0 16px; }

.download-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.download-card { display: flex; align-items: center; gap: 14px; text-decoration: none;
    background: var(--wit); border: 2px solid #efe4d4; border-radius: 16px;
    padding: 16px 18px; color: var(--inkt); transition: border-color .15s ease, transform .08s ease, box-shadow .2s ease; }
.download-card:hover { border-color: var(--koraal); transform: translateY(-2px); box-shadow: var(--schaduw); }
.dl-icon { font-size: 1.7rem; flex: none; }
.dl-text { display: flex; flex-direction: column; }
.dl-text strong { font-weight: 800; }
.dl-text small { color: var(--grijs); font-size: .88rem; }
.pers-note { color: var(--grijs); font-size: .92rem; margin: 14px 0 0; }

.persbericht { background: var(--wit); border-radius: 18px; box-shadow: var(--schaduw); padding: 26px 26px 10px; }
.pb-meta { color: var(--koraal); font-weight: 800; font-size: .8rem; letter-spacing: .05em; margin: 0 0 8px; }
.persbericht h3 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 16px; }
.persbericht p { margin: 0 0 14px; }

.facts { margin: 0; }
.facts dt { font-weight: 800; color: var(--koraal); font-size: .82rem; text-transform: uppercase;
    letter-spacing: .04em; margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 4px 0 0; }
.facts a { color: var(--koraal-dark); }

.pers-contact { background: var(--wit); border-radius: 16px; box-shadow: var(--schaduw); padding: 20px 22px; }
.pers-contact p { margin: 0 0 12px; }
.pers-contact p:last-child { margin-bottom: 0; }
.pers-contact a { color: var(--koraal-dark); }

.pers-back { margin: 0; }
.pers-back a { color: var(--koraal-dark); font-weight: 800; text-decoration: none; }

@media (min-width: 560px) {
    .download-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding: 26px 0 56px; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(254,213,85,.55), transparent 42%),
        radial-gradient(circle at 88% 18%, rgba(43,179,240,.20), transparent 45%),
        radial-gradient(circle at 75% 95%, rgba(245,76,85,.22), transparent 50%),
        var(--creme);
}
.hero-inner { position: relative; z-index: 1; }

.ths-badge {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--grijs); font-weight: 800;
    font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
    background: rgba(255,255,255,.7); padding: 6px 14px 6px 6px;
    border-radius: 999px; box-shadow: var(--schaduw); margin-bottom: 22px;
}
.ths-badge img { border-radius: 50%; display: block; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }

.hero-logo { margin: 0 0 18px; }
.hero-logo img { width: 100%; max-width: 520px; height: auto; display: block;
    filter: drop-shadow(0 10px 22px rgba(58,47,42,.18)); }

.lead { font-size: 1.15rem; margin: 0 0 22px; max-width: 520px; color: var(--inkt); }

.usps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 22px; }
.usps li { background: var(--wit); color: var(--inkt); padding: 9px 16px;
    border-radius: 999px; font-weight: 800; font-size: .95rem; box-shadow: var(--schaduw); }
.usps span { margin-right: 4px; }

.event-meta { font-size: 1.02rem; margin: 0 0 20px; line-height: 1.5; }
.counter { display: inline-block; background: var(--geel); color: var(--inkt);
    font-weight: 800; padding: 9px 18px; border-radius: 999px; margin: 0 0 24px; box-shadow: var(--schaduw); }

/* ---- Video ---- */
.hero-video { display: flex; justify-content: center; }
.video-frame {
    width: 100%; max-width: 300px; aspect-ratio: 9 / 16;
    border-radius: 26px; overflow: hidden; position: relative;
    background: linear-gradient(160deg, #2c2420, #4a3d36);
    box-shadow: var(--schaduw-lg); border: 5px solid var(--wit);
}
.video-embed { position: absolute; inset: 0; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background:
        radial-gradient(circle at 50% 38%, rgba(245,76,85,.35), transparent 60%),
        linear-gradient(160deg, #332b26, #5b4b43);
    border: 0; cursor: pointer; color: var(--wit);
    font-family: inherit; font-weight: 800; font-size: 1rem;
    transition: transform .15s ease;
}
.video-play:hover { transform: scale(1.02); }
.play-icon {
    width: 68px; height: 68px; border-radius: 50%; background: var(--koraal);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; padding-left: 5px; box-shadow: 0 8px 22px rgba(245,76,85,.5);
}
.play-text { background: rgba(0,0,0,.35); padding: 6px 14px; border-radius: 999px; font-size: .9rem; }

/* ---- Knoppen ---- */
.btn {
    display: inline-block; border: none; cursor: pointer;
    font-family: inherit; font-weight: 800; font-size: 1.05rem;
    padding: 15px 28px; border-radius: var(--radius); text-decoration: none;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--schaduw-lg); }
.btn:active { transform: translateY(0); }
.btn-scroll { background: var(--koraal); color: var(--wit); box-shadow: var(--schaduw); }
.btn-scroll:hover { background: var(--koraal-dark); }

/* ============ FORM CARD ============ */
main { padding: 0 0 30px; margin-top: -20px; }
.form-card {
    background: var(--wit); border-radius: 24px; box-shadow: var(--schaduw-lg);
    padding: 34px 28px 30px; max-width: 600px; margin: 0 auto;
}
.form-card h2 { font-size: 1.7rem; margin: 0 0 4px; }
.intro { color: var(--grijs); margin: 0 0 22px; }

/* ---- Voortgang (alleen in JS-wizardmodus) ---- */
.progress { display: none; align-items: center; gap: 12px; margin-bottom: 24px; }
.js .progress { display: flex; }
.progress-track { flex: 1; height: 8px; background: #f0e6d8; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--geel), var(--koraal));
    border-radius: 999px; transition: width .35s ease; }
.progress-label { font-size: .82rem; font-weight: 800; color: var(--grijs); white-space: nowrap; }

/* ---- Stappen ---- */
.js .step { display: none; }
.js .step.active { display: block; animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 4px; }
.field + .field { margin-top: 18px; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; margin-top: 0; }

label, legend { display: block; font-weight: 800; margin-bottom: 8px; font-size: 1.08rem; }
legend { padding: 0; }
.req { color: var(--koraal); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], select {
    width: 100%; padding: 14px 15px; font-family: inherit; font-size: 1.05rem;
    border: 2px solid #e8ddcf; border-radius: 12px; background: var(--wit); color: var(--inkt);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus { outline: none; border-color: var(--koraal); box-shadow: 0 0 0 4px rgba(245,76,85,.12); }
.is-invalid { border-color: var(--koraal) !important; background: #fff5f5; }

.hint { display: block; color: var(--grijs); font-size: .88rem; margin-top: 6px; }
.err { display: block; color: var(--koraal-dark); font-size: .88rem; font-weight: 800; margin-top: 6px; }
.err:empty { margin: 0; }

fieldset { border: none; padding: 0; margin: 0; }

.choice { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; margin-bottom: 12px; cursor: pointer; }
.choice input { width: auto; margin-top: 3px; flex-shrink: 0; transform: scale(1.25); accent-color: var(--koraal); }
.choice-card { background: var(--creme); border: 2px solid #efe4d4; border-radius: 14px;
    padding: 14px 16px; margin-bottom: 12px; transition: border-color .15s ease, background .15s ease; }
.choice-card:hover { border-color: var(--geel); }
.choice-card:has(input:checked) { border-color: var(--koraal); background: #fff3f3; }

.conditional { background: #fffaf0; border: 2px dashed var(--geel); border-radius: var(--radius); padding: 18px 18px 6px; }
.cond-intro { margin: 0 0 14px; font-weight: 800; color: var(--inkt); }

.consents .choice { font-weight: 500; }

/* ---- Navigatie ---- */
.form-nav { display: flex; gap: 12px; margin-top: 26px; }
.btn-prev, .btn-next { display: none; }
.js .btn-prev, .js .btn-next { display: inline-block; }
.btn-prev { background: #efe7da; color: var(--inkt); }
.btn-next { background: var(--koraal); color: var(--wit); flex: 1; }
.btn-next:hover { background: var(--koraal-dark); }
.btn-submit { background: var(--koraal); color: var(--wit); width: 100%; box-shadow: var(--schaduw); }
.btn-submit:hover { background: var(--koraal-dark); }
.js .btn-submit { display: none; }
.js .btn-submit.show { display: block; }
.js .form-nav:has(.btn-submit.show) .btn-next { display: none; }

.reassure { text-align: center; color: var(--grijs); font-weight: 800; font-size: .9rem; margin: 16px 0 0; }

.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-weight: 800; }
.alert-error { background: #fdecec; color: var(--koraal-dark); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */
.site-footer { text-align: center; padding: 34px 0 40px; color: var(--grijs); font-size: .9rem; }
.footer-logo { opacity: .5; margin-bottom: 8px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--koraal-dark); }

/* ============ BEDANKT ============ */
.bedankt { padding: 48px 0; }
.bedankt-card { background: var(--wit); border-radius: var(--radius); box-shadow: var(--schaduw); padding: 36px 26px; text-align: center; max-width: 560px; margin: 0 auto; }
.bedankt-emoji { font-size: 3rem; line-height: 1; }
.bedankt h1 { font-size: 1.9rem; margin: 12px 0 6px; }
.lead-dark { color: var(--grijs); font-size: 1.1rem; margin: 0 0 20px; }
.badge-first30 { background: var(--geel); color: var(--inkt); border-radius: 12px; padding: 14px 16px; font-weight: 800; margin: 0 0 20px; }
.bedankt-info { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.bedankt-info li { padding: 11px 0; border-bottom: 1px solid #f0e6d8; }
.bedankt-info li:last-child { border-bottom: none; }
.bedankt-note { color: var(--grijs); font-size: .95rem; margin: 0 0 24px; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    max-width: 760px; margin: 0 auto; background: var(--wit); color: var(--inkt);
    border-radius: var(--radius); box-shadow: 0 10px 30px rgba(58,47,42,.22);
    padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
/* Het hidden-attribuut moet de banner echt verbergen (anders overschrijft
   de class-regel hierboven 'display:none' en blijft de banner altijd staan). */
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; flex: 1 1 240px; font-size: .92rem; line-height: 1.5; }
.cookie-text a { color: var(--koraal-dark); }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-actions button { font-family: inherit; font-weight: 800; border: none; cursor: pointer; padding: 11px 18px; border-radius: 12px; }
.btn-accept { background: var(--koraal); color: #fff; }
.btn-decline { background: #efe7da; color: var(--inkt); }

/* ============ ADMIN ============ */
body.admin { background: #f3eee6; }
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 18px 60px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.admin-head h1 { margin: 0; }
.admin-logout { color: var(--koraal-dark); font-weight: 700; text-decoration: none; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.stat { background: var(--wit); border-radius: 12px; padding: 12px 16px; box-shadow: var(--schaduw); font-weight: 600; color: var(--grijs); }
.stat span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--inkt); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filters a { display: inline-block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--grijs); font-weight: 700; }
.filters a.active { background: var(--koraal); color: #fff; }
.btn-csv { background: var(--inkt); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 800; }
.table-scroll { overflow-x: auto; background: var(--wit); border-radius: var(--radius); box-shadow: var(--schaduw); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0e6d8; }
table.data th { background: #faf4ea; font-weight: 800; position: sticky; top: 0; }
table.data tr.is-first { background: #fffaf0; }
table.data .empty { text-align: center; color: var(--grijs); padding: 30px; white-space: normal; }
table.data a { color: var(--koraal-dark); }

/* ============ DESKTOP ============ */
@media (min-width: 820px) {
    .hero { padding: 32px 0 70px; }
    .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 44px; }
    .video-frame { max-width: 320px; }
    .form-card { padding: 40px 44px 34px; }
}
