/* css */
/* style.css - fixed imports and media query braces */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

/* style.css */
:root {
    --font-family: "Inter", Arial, sans-serif;
    --bg-start: #d9f1ff;
    --bg-end: #a2d6f9;
    --primary: #072ac8;
    --accent: #fcf300;
    --muted: #6b7280;
    --card-bg: #ffffff;
    --radius: 10px;
    --shadow: 0 6px 18px rgba(7, 42, 200, 0.08);
    --glass: rgba(255, 255, 255, 0.6);
    --max-width: 1200px;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font-family);
    line-height: 1.5;
    color: #1f2937;
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 2rem;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 1.5rem auto;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
    border-radius: calc(var(--radius) - 2px);
    box-shadow: var(--shadow);
}

/* Header / Hero */
header {
    background: linear-gradient(90deg, rgba(7, 42, 200, 0.95), rgba(3, 34, 170, 0.9));
    color: white;
    padding: 2rem 1rem;
    border-bottom: 6px solid var(--accent);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}
.title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.subtitle {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Navbar */
nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 2;
}
nav ul {
    justify-content: center;
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}
nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 180ms, transform 180ms;
}
nav a:hover, nav a:focus {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    outline: none;
}
/* Hero announcement */
.hero-announcement {
    /* Gebruik Westerlo-kleuren: zachte blauwe naar zacht geel gradient */
    background: linear-gradient(135deg, rgba(7,42,200,0.06) 0%, rgba(252,243,0,0.08) 100%);
    color: #1f2937;
    padding: 1.6rem 1rem;
    text-align: center;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    border: 2px solid rgba(7,42,200,0.06);
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-announcement h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
.hero-dates { font-weight: 700; color: var(--primary); margin: .1rem 0 .6rem; font-size: 1.05rem; }
.hero-text { margin: .2rem 0 .8rem; color: #374151; }
.hero-actions { display: inline-flex; gap: .6rem; flex-wrap:wrap; justify-content:center; }
/* Buttons */
.btn { display: inline-block; padding: .5rem .9rem; border-radius:6px; text-decoration:none; color:#1f2937; border:1px solid rgba(0,0,0,0.06); background:transparent; font-weight:600; }
.btn-primary { background: var(--primary); color: #fff; border:none; box-shadow: 0 2px 6px rgba(7,42,200,0.18); }
@media (min-width: 720px) {
    .hero-announcement h1 { font-size: 2rem; }
    .hero-dates { font-size: 1.15rem; }
}

/* Inschrijf CTA boven de deelnemerslijst */
.inschrijf-cta { text-align: center; margin: 1rem 0; }
.inschrijf-cta .deadline-note { display: block; margin-top: 0.4rem; color: var(--primary); font-weight: 600; }

/* Hero banner content */
.hero {
    text-align: center;
    padding: 2rem 1rem;
}
.hero h1 {
    color: white;
    margin: 0 0 0.5rem;
    font-size: 2rem;
}
.hero p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

/* Kaart en deelnemerslijst layout */
#map {
    height: 400px;
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

/* Controls (filter en knoppen) */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
    align-items: center;
}
.controls select {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    background: white;
    font-family: var(--font-family);
    min-width: 200px;
}

/* Deelnemerslijst */
#deelnemerslijst {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.deelnemer {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 180ms, box-shadow 180ms;
}
.deelnemer:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(7, 42, 200, 0.12);
}
.deelnemer p {
    margin: 0.3rem 0;
    color: var(--muted);
}
.deelnemer strong {
    color: var(--primary);
}

/* Checkbox-group styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: auto;
}

/* Buttons */
button, .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto 0;
    padding: 0.75rem;
    background: linear-gradient(180deg, var(--accent), #f6c400);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 140ms, box-shadow 140ms;
    text-align: center;
}
button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252, 243, 0, 0.12);
}
button:focus, .btn:focus {
    outline: 3px solid rgba(7, 42, 200, 0.12);
}

/* Forms / inputs */
input, textarea, select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    background: #fff;
    font-size: 0.95rem;
    font-family: var(--font-family);
}
label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--primary);
}

/* Formulier container */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Footer */
footer {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(90deg, rgba(7, 42, 200, 0.98), rgba(3, 34, 170, 0.95));
    color: #ffffff;
    text-align: center;
    border-top: 6px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

/* Wrapper for contact row (icon + email) */
.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
}

/* Link style for email / contact */
footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.35rem;
    border-radius: 8px;
    transition: background-color 160ms, transform 160ms;
}
footer a:hover,
footer a:focus {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-3px);
    outline: none;
}

/* Small icon sizing if using an icon element */
.footer-contact i,
footer a .icon {
    font-size: 1rem;
    line-height: 1;
    color: inherit;
}

/* Privacy-melding styling */
.privacy-notice {
    background-color: rgba(255, 255, 204, 0.8);
    border: 1px solid #ffcc00;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.privacy-notice strong {
    color: var(--primary);
}

/* Utilities */
.text-muted { color: var(--muted); }
.center { text-align: center; }

/* Responsive tweaks */
@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .hero h1 { font-size: 1.5rem; }
    .container { margin: 0.75rem; padding: 0.9rem; }
    footer { padding: 1rem; }
    .footer-contact { padding: 0.3rem 0.45rem; }
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .controls select, .controls button {
        width: 100%;
    }
    #map { height: 300px; }
    .checkbox-group {
        flex-direction: row;
        gap: 1.5rem;
    }
    nav {
        position: static;
        transform: none;
        left: auto;
    }
}

/* Downloadknop styling */
.download-section {
    margin-top: 2rem;
    text-align: center;
}

.download-section button {
    display: inline-block;
    background: linear-gradient(180deg, var(--accent), #f6c400);
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 140ms, box-shadow 140ms;
}

.download-section button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252, 243, 0, 0.12);
}


/* Accordion-stijl voor deelgemeentes */
.deelgemeente-accordion {
    margin-bottom: 1rem;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    overflow: hidden;
}

.deelgemeente-title {
    margin: 0;
    padding: 0.75rem;
    background: var(--bg-start);
    color: var(--primary);
    cursor: pointer;
    font-weight: normal;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e6e9ef;
}

.deelgemeente-title:hover {
    background: var(--bg-end);
}

.deelgemeente-content {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e6e9ef;
}

.deelgemeente-content h4 {
    margin-top: 1rem;
    color: var(--primary);
    border-bottom: 1px solid #e6e9ef;
    padding-bottom: 0.25rem;
    font-size: 1.1rem;
}

.deelgemeente-content .deelnemer {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.deelgemeente-content .deelnemer:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* css - additions for deelnemers page (append to) */

/* Controls above the list */
.list-controls {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    align-items: center;
    width: 100%;
}
#filterInput {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    background: #fff;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: #1f2937;
}
.control-buttons {
    display: inline-flex;
    gap: 0.5rem;
}
.control-buttons button {
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}
.control-buttons button:focus {
    outline: 3px solid rgba(7,42,200,0.08);
}

/* Count badge used inside the accordion title */
.count-badge {
    display: inline-block;
    min-width: 32px;
    text-align: center;
    background: rgba(11,113,208,0.12);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0.6rem;
}

/* Make the accordion title layout nicer and accessible */
.deelgemeente-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Scrollable content area (keeps lists compact when many items) */
.deelgemeente-content {
    padding: 1rem;
    background: var(--card-bg);
    max-height: 420px; /* adjust as needed */
    overflow-y: auto;
    transition: max-height 220ms ease, padding 180ms ease;
    box-shadow: none;
}

/* Compact participant entries inside the accordion content */
.deelgemeente-content .deelnemer {
    background: transparent;
    padding: 0.6rem 0;
    margin: 0 0 1rem 0;
    border-radius: 6px;
    box-shadow: none;
}
.deelgemeente-content .deelnemer p {
    margin: 0.25rem 0;
    color: var(--muted);
}

/* When search returns no matches hide the accordion gracefully (script sets display:none) */
.deelgemeente-accordion[hidden],
.deelgemeente-accordion[aria-hidden="true"] {
    display: none !important;
}

/* Small responsive tweaks for controls */
@media (max-width: 720px) {
    .list-controls { flex-direction: column; align-items: stretch; }
    .control-buttons { justify-content: flex-end; }
    #filterInput { width: 100%; }
    .hero-announcement h1 { font-size: 2rem; }
    .hero-dates { font-size: 1.15rem; }
}

/* Countdown styling */
.countdown {
    margin-top: 0.6rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}
@media (max-width:720px) {
    .countdown { font-size: 0.95rem; }
}
