/* Algemene styling voor de vragen-sectie */
.vragen-sectie {
    background: #F4F4F4;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container voor vraag + progress-indicator */
.vragen-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 70%;
}

/* Blok 1: Vraag + meerkeuze antwoorden */
.vraag-blok {
    width: 70%;
    background: #F4F4F4;
    padding: 30px;
}

/* Vraag titel en instructie */
.vraag-blok h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.vraag-blok p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

/* Algemene radiobutton styling */
.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #F4F4F4;
    padding: 15px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.radio-label input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #707070;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.radio-label input:checked {
    background-color: #707070;
    border: 6px solid white;
    box-shadow: 0 0 0 2px #707070;
}

/* A, B, C, D naast de hoofdtitel */
.radio-label .antwoord-keuze {
    font-weight: bold;
    margin-right: 5px;
}

/* Hoofdtitel (Conflict, Ruzie, etc.) blijft naast A, B, C, D */
.radio-label .antwoord-tekst {
    font-weight: bold;
    color: #333;
    display: inline-block;
}

/* Hulptekst (extra uitleg onder antwoord) */
.radio-label small {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Blok 2: Progress-indicator cirkel */
.progress-container {
    position: absolute;
    top: 210px;
    right: 420px;
    width: 126px;
    height: 126px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Progress cirkel styling */
.progress-circle {
    width: 100%; 
    height: auto;
    max-width: 126px;
}

/* Achtergrondcirkel */
.progress-background {
    fill: none;
    stroke: #ddd;
    stroke-width: 12;
}

/* Voortgangsbalk cirkel */
.progress-bar {
    fill: none;
    stroke: #55B4B3;
    stroke-width: 12;
    stroke-dasharray: 0 365;
    stroke-dashoffset: 0;
    transition: stroke-dasharray 0.5s ease-in-out;
}

/* Tekst in cirkel */
.progress-text {
    font-size: 14px;
    fill: #55B4B3;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* Zorgt ervoor dat de progress bar naast de vraag blijft */
.vragen-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 70%;
}

/* Medium schermen (kleinere laptops, tablets) */
@media (max-width: 1300px) {
    .progress-container {
        display: none;
        position: static;
        margin: 20px auto;
    }

    .vragen-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Kleinere schermen (mobiel) */
@media (max-width: 768px) {
    .progress-container {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .progress-container {
        width: 80px;
        height: 80px;
    }

    .progress-text {
        font-size: 12px;
    }
}

/* Blok 3: Volgende knop */
.navigation-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    width: 70%;
    margin-top: 30px;
}

.btn-primary {
    background: #55B4B3;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease-in-out;
}

.btn-primary:hover {
    background: #00796B;
}

.btn-secondary {
    display: inline-block;
    background: none;
    color: #55B4B3;
    padding: 15px 25px;
    border: 2px solid #55B4B3;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none; /* Voorkomt standaard onderstreping */
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-secondary:hover {
    background: #55B4B3;
    color: white;
}

/* Blok 4: Waarom deze vraag? */
.why-question {
    color: #55B4B3;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.why-question:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

#why-text {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    padding: 10px;
    background: #F4F4F4;
    border-radius: 5px;
    text-align: left;
    width: 70%;
}

/* ✅ Alleen voor Vraag 2 - Zorgt ervoor dat de antwoorden netjes uitgelijnd zijn */
.vraag-2 .antwoord-container {
    display: flex;
    flex-direction: column; /* Zet de hoofdtekst en hulptekst onder elkaar */
    align-items: flex-start;
    gap: 3px;
}

/* ✅ Alleen voor Vraag 2 - Hoofdtekst netjes uitlijnen */
.vraag-2 .antwoord-tekst {
    font-weight: bold;
    color: #333;
    display: block;
}

/* ✅ Alleen voor Vraag 2 - Hulptekst onder hoofdtekst plaatsen */
.vraag-2 .radio-label small {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 3px;
}

/* ✅ Alleen voor Vraag 2 - Radiobuttons en tekst correct uitlijnen */
.vraag-2 .radio-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #F4F4F4; /* Oorspronkelijke achtergrondkleur herstellen */
}

.antwoord-container {
    display: flex;
    flex-direction: column; /* ✅ Zet antwoord en uitleg netjes onder elkaar */
    align-items: flex-start;
    gap: 3px;
}

.radio-label {
    display: flex;
    align-items: flex-start; /* ✅ Zorgt ervoor dat alles goed uitgelijnd blijft */
    gap: 10px;
    padding: 15px;
    cursor: pointer;
    background: #F4F4F4;
    margin-bottom: 5px;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.antwoord-inhoud {
    display: flex;
    flex-direction: column; /* ✅ Zorgt ervoor dat antwoordtekst en uitleg onder elkaar staan */
}

.antwoord-tekst {
    font-weight: bold;
    color: #333;
    display: block;
}

.antwoord-explanation {
    font-size: 0.9em;
    color: #666;
    margin-top: 2px; /* ✅ Kleine ruimte tussen antwoord en uitleg */
    margin-bottom: 0px; /* ✅ Verminder de ruimte onder de helptekst */
    display: block; /* ✅ Zorgt ervoor dat de tekst natuurlijk doorloopt */
    max-width: 80ch; /* ✅ Simuleert een limiet van ongeveer 124 tekens */
    white-space: normal; /* ✅ Laat tekst normaal doorlopen */
    overflow-wrap: break-word; /* ✅ Breekt woorden correct af als ze te lang zijn */
    margin-left: 0px !important; /* ✅ Zorgt dat de helptekst perfect uitgelijnd blijft met de antwoordtekst */
}

/* ✅ Extra fix: Opsommingsletter en antwoordtekst in een aparte flexbox */
.antwoord-inhoud {
    display: flex;
    flex-direction: column; /* ✅ Zet antwoordtekst en uitleg onder elkaar */
}
