@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

/* --- Variabelen (Moderne StudyGo Vibe) --- */
:root {
    --color-primary: #1a56db;
    --color-primary-dark: #2049cf;
    --color-bg: #f8fafc;
    --color-card-bg: #ffffff;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-accent: #f59e0b;
    --color-accent-hover: #f98c0e;
    --color-danger: #e62851;
    --color-success: #16c389;
    
    --font-main: 'Bricolage Grotesque', sans-serif;
    
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 20px rgba(26, 86, 219, 0.1);
    --transition: all 0.28s ease;
}

/* --- Base & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    color: var(--color-primary-dark);
    font-weight: 800;
}

.page-section h2 {
    margin-top: 2.5rem; 
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.page-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

p { margin-bottom: 1rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--color-primary-dark); }

.container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

/* --- Layout Structuur --- */
main {
    flex: 1;
    padding: 20px 0 100px; 
}

.page-section {
    display: none;
    padding-bottom: 40px; 
    animation: fadeSimple 0.28s ease; /* Minimale animatie aangepast */
}

.page-section.active { display: block; }

/* Minimalistische fade animatie */
@keyframes fadeSimple {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Header & Navigatie --- */
.main-header {
    background-color: var(--color-card-bg);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo h1::after { display: none; }
.logo span { color: var(--color-accent); }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-primary);
    background-color: rgba(26, 86, 219, 0.05);
}

.main-nav .btn-nav {
    background-color: var(--color-accent);
    color: white;
}

.main-nav .btn-nav:hover {
    background-color: var(--color-accent-hover);
    color: white;
}

/* --- UI Componenten --- */
.card {
    background: var(--color-card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-hover); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary { background-color: var(--color-primary); color: white; }
.btn-primary:hover { background-color: var(--color-primary-dark); transform: translateY(-2px); }
.btn-secondary { background-color: var(--color-bg); color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-secondary:hover { background-color: var(--color-primary); color: white; }

.icon-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

/* --- Footer Special Items --- */
.version-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-light);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

/* --- Home --- */
.hero { text-align: center; padding: 50px 0; }
.hero h2 { 
    font-size: 2.8rem; 
    margin-top: 0; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}
.hero h2::after { display: none; }
.hero-usps ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    font-weight: 600;
}
.hero-usps li { display: flex; align-items: center; gap: 5px; }
.icon-success { color: var(--color-success); font-size: 1.2rem; }
.hero p { padding: 0 11%; }

/* --- Tarieven --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.pricing-card {
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card.highlight { border: 2px solid var(--color-primary); }
.pricing-card.highlight-gold { border: 2px solid var(--color-accent); }

.ribbon {
    position: absolute;
    top: 22px;        
    right: -40px;     
    background: var(--color-primary);
    color: white;
    padding: 6px 0;   
    width: 170px;     
    text-align: center; 
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
.ribbon.gold { background: var(--color-accent); }

.price-container { margin: 20px 0; }
.price-old {
    text-decoration: line-through;
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: -5px;
}
.price-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}
.price-new span { font-size: 1.1rem; font-weight: 600; color: var(--color-text-light); }
.price-new.discount-red { color: var(--color-danger); }

.pricing-desc { font-weight: 600; color: var(--color-primary); margin-bottom: 20px;}
.pricing-card ul { list-style: none; flex-grow: 1; }
.pricing-card ul li { padding: 12px 0; border-top: 1px solid #e2e8f0; }

.exam-training-banner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    gap: 30px;
}
.exam-training-banner h3 { color: white; margin-top: 0; }
.exam-training-banner h3::after { display: none; }
.exam-training-banner p { color: rgba(255,255,255,0.9); }
.exam-training-banner .btn { 
    background-color: white; 
    color: var(--color-primary-dark); 
    white-space: nowrap;
    align-self: flex-end;
}
.exam-training-banner .btn:hover { background-color: var(--color-accent); color: white;}

/* FAQ Accordion */
.faq-section h3 { margin-bottom: 10px; }

.faq-item {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover { color: var(--color-primary); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px;
    opacity: 1;
}
.faq-icon { color: var(--color-primary); transition: transform 0.3s ease; }

/* --- Over Mij --- */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}
.placeholder-img {
    background-color: var(--color-bg);
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    border-radius: var(--radius);
    overflow: hidden; 
}

.placeholder-img img {max-width: 100%; height: auto; }

/* --- Recensies --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.review-card { position: relative; }
.review-card::before {
    font-family: Georgia, serif;
    font-size: 4rem;
    color: rgba(26, 86, 219, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
}
.review-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 5px;
}
.stars { color: #fbbf24; margin-bottom: 15px; display: flex; gap: 2px; }
.star-icon { font-size: 1.2rem; }
.star-icon.empty { color: #cbd5e1; }
.review-text { font-style: italic; color: var(--color-text-light); }
.review-author { font-weight: 700; margin-top: 15px; color: var(--color-text); }

/* --- Formulieren & Voorwaarden --- */
.pdf-container { border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; }
.pdf-fallback { padding: 15px; background: #f8fafc; text-align: center; margin: 0; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--color-text); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: white;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.feedback-msg { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.feedback-msg.success { background-color: #d1fae5; color: #065f46; border: 1px solid #34d399; }
.feedback-msg.hidden { display: none; }

/* --- Custom Notifications --- */
.custom-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    font-size: 0.95rem;
    border: 1px solid transparent;
}
.custom-notification .notification-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}
.notify-red { background-color: #fee2e2; color: #991b1b; border-color: #fecaca; }
.notify-green { background-color: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.notify-blue { background-color: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.notify-orange { background-color: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.notify-grey { background-color: #f1f5f9; color: #475569; border-color: #e2e8f0; }

/* --- Interactieve Quiz --- */
.quiz-container {
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.quiz-header h3 { margin: 0; font-size: 1.4rem; }
.quiz-subtitle { font-size: 0.9rem; color: var(--color-text-light); margin: 0; }
.quiz-progress-text { font-weight: 800; color: var(--color-primary); background: rgba(26, 86, 219, 0.1); padding: 4px 12px; border-radius: 20px; font-size: 0.9rem; }

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background-color: var(--color-primary);
    width: 16%; 
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.quiz-opt-btn {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-opt-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    background: rgba(26, 86, 219, 0.03);
    transform: translateX(4px);
}

.quiz-opt-btn.correct { background-color: #d1fae5; border-color: var(--color-success); color: #065f46; }
.quiz-opt-btn.incorrect { background-color: #fee2e2; border-color: var(--color-danger); color: #991b1b; }
.quiz-opt-btn.faded { opacity: 0.5; } 
.quiz-opt-btn:disabled { cursor: default; }

.quiz-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.btn-sm { padding: 8px 16px; font-size: 0.95rem; }
.quiz-footer .btn { opacity: 1; transition: opacity 0.3s ease; }
.quiz-footer .btn.invisible { opacity: 0; pointer-events: none; }

.quiz-result { text-align: center; padding: 20px 0; }
.quiz-result h3 { font-size: 1.8rem; margin-bottom: 10px; }
.quiz-result-actions { display: flex; justify-content: center; gap: 15px; margin-top: 25px; flex-wrap: wrap; }

/* --- Footer --- */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
    margin-bottom: 20px;
}
.footer-info h4, .footer-contact h4, .footer-links h4 { color: var(--color-primary-dark); margin-bottom: 15px; font-size: 1.3rem;}
.footer-contact p { display: flex; align-items: center; gap: 10px; }
.inline-icon { font-size: 1.2rem; color: var(--color-accent); }
.footer-bottom { text-align: center; font-size: 0.95rem; }
.copyright { font-size: 0.9rem; margin-top: 5px; color: var(--color-text-light); }

/* --- Responsiveness --- */
@media (max-width: 850px) {
    .exam-training-banner { flex-direction: column; text-align: center; }
    .exam-training-banner .btn { align-self: center; }
    .contact-grid { 
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .about-grid { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2.2rem; }
}

/* --- Bugfix voor elementen verbergen --- */
.hidden { display: none !important; }

/* --- Footer Voorwaarden Link --- */
.voorwaarden-link {
    color: var(--color-accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
}
.voorwaarden-link:hover { color: var(--color-accent-hover); }

/* --- Interactieve Kalender CSS --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 30px;
    align-items: start;
}

.calendar-card { padding: 20px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.btn-cal-nav { background: #f1f5f9; border: none; border-radius: 6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--color-text); transition: background-color 0.2s, color 0.2s; }
.btn-cal-nav:hover:not(:disabled) { background: var(--color-primary); color: white; }
.btn-cal-nav:disabled { opacity: 0.4; cursor: not-allowed; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 800; color: var(--color-text-light); font-size: 0.8rem; margin-bottom: 8px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.85rem; font-weight: 600; transition: background-color 0.2s, color 0.2s; user-select: none; }
.cal-day.default { background: #f8fafc; color: #cbd5e1; cursor: not-allowed; }
.cal-day.available { background: #d1fae5; color: #065f46; cursor: pointer; border: 1px solid transparent; }
.cal-day.available:hover { background: #a7f3d0; }
.cal-day.available.selected { background: var(--color-primary); color: white; }
.cal-day.unavailable { background: #fee2e2; color: #991b1b; cursor: pointer; }
.cal-day.unavailable:hover { background: #fecaca; }
.cal-day.out-of-bounds { opacity: 0.2; cursor: not-allowed; pointer-events: none; }
.cal-day.empty { background: transparent; cursor: default; }
.calendar-info { background: #f8fafc; padding: 12px; border-radius: 8px; font-size: 0.9rem; text-align: center; border: 1px solid #e2e8f0; min-height: 55px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.input-with-clear { position: relative; display: flex; align-items: center; }
.btn-clear { position: absolute; right: 10px; background: none; border: none; color: var(--color-text-light); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 4px; border-radius: 50%; transition: background-color 0.2s, color 0.2s; }
.btn-clear:hover { background-color: #e2e8f0; color: var(--color-danger); }
.cal-day.special { background: #dbeafe; color: #1e40af; }
.cal-day.special.selectable { cursor: pointer; border: 1px solid transparent; }
.cal-day.special.selectable:hover { background: #bfdbfe; }
.cal-day.special.selected { background: #2563eb; color: white; }
.cal-day.special.unselectable { cursor: pointer; }
.cal-day.special.unselectable:hover { background: #bfdbfe; }