/* -----------------------------------------------------------
   PAGE WRAPPER
----------------------------------------------------------- */
.thought-page {
    display: block;
}


/* -----------------------------------------------------------
   INTRO (uses frontpage-intro styling from frontpage-layout.css)
----------------------------------------------------------- */
.thought-page .thought-intro__banner-line {
    font-size: 1.35rem;
    line-height: 1.55;
    color: var(--color-primary);
    font-weight: 600;
    margin: 8px 0 18px;
}

.thought-page .thought-intro-logo {
    padding: 8px 24px 6px;
    background: #ffffff;
}

.thought-page .thought-intro-logo .frontpage-intro__inner {
    display: flex;
    justify-content: center;
}

.thought-page .thought-intro-logo img {
    display: block;
    width: min(460px, 100%);
    height: auto;
}


/* -----------------------------------------------------------
   TEXT BLOCKS (same rhythm as intro)
----------------------------------------------------------- */
.thought-page .thought-text-block {
    padding: 46px 24px 18px;
    background: #ffffff;
}

.thought-page .thought-intro + .thought-intro-logo + .thought-text-block {
    padding-top: 24px;
}

.thought-page .thought-text-block .frontpage-intro__inner {
    width: min(1120px, 100%);
}

.thought-page .thought-text-block .frontpage-intro__inner p {
    max-width: 78ch;
}


.thought-page .thought-text-block h2 {
    margin: 0 0 10px;
    font-size: clamp(1.52rem, 2.2vw, 2rem);
    line-height: 1.25;
    color: var(--color-primary);
}

.thought-page .thought-text-block h2 + p {
    margin-top: 8px;
}

.thought-page .thought-text-block h2:not(:first-child) {
    margin-top: 28px;
}

.thought-page .thought-text-block .frontpage-intro__divider {
    display: block;
}

.thought-page .thought-subtopics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

.thought-page section[aria-labelledby="missie-kernwaarden-title"] .thought-subtopics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thought-page .thought-subtopics article {
    margin: 0;
    padding: 20px 20px 18px;
    border: 1px solid rgba(16, 66, 75, 0.12);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 66, 75, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.thought-page section[aria-labelledby="missie-kernwaarden-title"] .thought-subtopics article:hover,
.thought-page section[aria-labelledby="missie-kernwaarden-title"] .thought-subtopics article:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(16, 66, 75, 0.13);
    border-color: rgba(253, 50, 27, 0.34);
}

.thought-page .thought-subtopics h3 {
    margin: 0 0 10px;
    font-size: 1.22rem;
    line-height: 1.35;
    color: var(--color-primary);
}

.thought-page .thought-subtopics p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.72;
}


/* -----------------------------------------------------------
   DOWNLOADS
----------------------------------------------------------- */
.thought-page .thought-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.thought-page .thought-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 64px;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: var(--color-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.thought-page .thought-download:hover,
.thought-page .thought-download:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    background: var(--color-primary-dark);
}

.thought-page .thought-downloads__empty {
    margin-top: 18px;
    position: relative;
    padding-left: 22px;
    color: #51636a;
}

.thought-page .thought-downloads__empty::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}


/* -----------------------------------------------------------
   REVEAL ANIMATIE
----------------------------------------------------------- */
.thought-page .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.thought-page .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 980px) {

    .thought-page .thought-intro__banner-line {
        font-size: 1.16rem;
    }

    .thought-page .thought-intro-logo {
        padding: 0 18px 2px;
    }

    .thought-page .thought-intro-logo img {
        width: min(340px, 100%);
    }

    .thought-page .thought-text-block {
        padding: 34px 18px 10px;
    }

    .thought-page .thought-intro + .thought-intro-logo + .thought-text-block {
        padding-top: 16px;
    }

    .thought-page .thought-text-block h2 {
        font-size: clamp(1.35rem, 5vw, 1.7rem);
    }

    .thought-page .thought-subtopics {
        margin-top: 10px;
        gap: 12px;
    }

    .thought-page section[aria-labelledby="missie-kernwaarden-title"] .thought-subtopics {
        grid-template-columns: 1fr;
    }

    .thought-page .thought-subtopics article {
        padding: 16px 14px 14px;
    }

    .thought-page .thought-download {
        width: 100%;
    }
}


/* -----------------------------------------------------------
   DOWNLOAD GATE – knop-reset (button gedraagt zich als de vorige <a>)
----------------------------------------------------------- */
.thought-page .thought-download {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}


/* -----------------------------------------------------------
   FAQ ACCORDION
----------------------------------------------------------- */
.thought-page .thought-faq {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.thought-page .thought-faq__item {
    border: 1px solid rgba(16, 66, 75, 0.14);
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.thought-page .thought-faq__question {
    margin: 0;
}

.thought-page .thought-faq__toggle {
    width: 100%;
    border: 0;
    background: #ffffff;
    color: #111111;
    text-align: left;
    padding: 16px 18px;
    cursor: pointer;
    font: inherit;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.thought-page .thought-faq__toggle::after {
    content: '+';
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-primary);
    flex: 0 0 auto;
}

.thought-page .thought-faq__toggle[aria-expanded='true']::after {
    content: '-';
}

.thought-page .thought-faq__toggle[aria-expanded='true'] {
    color: var(--color-primary);
    font-weight: 700;
    background: rgba(16, 66, 75, 0.08);
}

.thought-page .thought-faq__toggle:hover,
.thought-page .thought-faq__toggle:focus-visible {
    background: rgba(16, 66, 75, 0.04);
    outline: none;
}

.thought-page .thought-faq__toggle[aria-expanded='true']:hover,
.thought-page .thought-faq__toggle[aria-expanded='true']:focus-visible {
    background: rgba(16, 66, 75, 0.10);
}

.thought-page .thought-faq__answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: max-height 0.32s ease, opacity 0.22s ease, padding-bottom 0.22s ease;
}

.thought-page .thought-faq__answer p {
    margin: 0;
    white-space: pre-line;
}

.thought-page .thought-faq__item.is-open .thought-faq__answer {
    opacity: 1;
    padding-bottom: 16px;
}


/* -----------------------------------------------------------
   DOWNLOAD GATE – overlay & popup
----------------------------------------------------------- */
.cc-download-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 18, 28, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cc-download-overlay.is-open {
    display: flex;
}

.cc-download-popup {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(28px, 5vw, 48px);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 28px 56px rgba(10, 18, 28, 0.22);
    animation: ccPopupIn 0.22s ease;
}

@keyframes ccPopupIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cc-download-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: #888;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.cc-download-popup__close:hover {
    color: var(--color-primary);
    background: rgba(16, 66, 75, 0.07);
}

.cc-download-popup__title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: var(--color-primary);
}

.cc-download-popup__intro {
    margin: 0 0 24px;
    color: #555;
    line-height: 1.55;
}

.cc-download-form__documents {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 66, 75, 0.14);
    border-radius: 10px;
}

.cc-download-form__documents legend {
    padding: 0 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.cc-download-form__documents-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 0.93rem;
    color: #1a1a1a;
}

.cc-download-form__documents-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-primary);
}

.cc-download-form__documents--error {
    border-color: rgba(185, 28, 28, 0.45);
    background: rgba(185, 28, 28, 0.04);
}

/* Form */
.cc-download-form__row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.cc-download-form__row label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
}

.cc-download-form__row input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1.5px solid rgba(16, 66, 75, 0.22);
    border-radius: 9px;
    font-size: 1rem;
    font-family: inherit;
    color: #1a1a1a;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #fafafa;
}

.cc-download-form__row input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 66, 75, 0.12);
    background: #fff;
}

.cc-download-form__row input.cc-download-input--error {
    border-color: rgba(185, 28, 28, 0.7);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.16);
    background: #fff7f7;
}

/* Checkbox */
.cc-download-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.cc-download-form__checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.cc-download-form__checkbox label {
    margin: 0;
    font-size: 0.93rem;
    font-weight: 400;
    color: #1a1a1a;
    cursor: pointer;
    line-height: 1.4;
}

.cc-download-form__checkbox--error {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(185, 28, 28, 0.06);
    outline: 1px solid rgba(185, 28, 28, 0.4);
}

.cc-privacy-link {
    color: #1a56db;
    text-decoration: underline;
    font-weight: 500;
}

.cc-privacy-link:hover,
.cc-privacy-link:focus {
    color: #1039a0;
    text-decoration: underline;
}

/* Status */
.cc-download-status {
    margin: 0 0 14px;
    font-size: 0.93rem;
    line-height: 1.5;
    min-height: 0;
}

.cc-download-status--success {
    color: #1a6b3a;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(26, 107, 58, 0.25);
    background: rgba(26, 107, 58, 0.08);
    font-weight: 600;
}

.cc-download-status--error {
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(185, 28, 28, 0.35);
    background: rgba(185, 28, 28, 0.1);
    font-weight: 600;
}

.cc-download-status--loading {
    color: #555;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(16, 66, 75, 0.2);
    background: rgba(16, 66, 75, 0.07);
    font-weight: 600;
}

/* Submit button */
.cc-download-form__submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}

.cc-download-form__submit:hover:not(:disabled) {
    background: var(--color-primary-dark, #083840);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(10, 18, 28, 0.15);
}

.cc-download-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .cc-download-popup {
        border-radius: 16px;
        padding: 28px 20px 24px;
    }
}
