/* ============================================================
   Gesprekstrainer Oudervriendelijkheid — stijl
   Geldt grotendeels voor zowel de professionals-app als de ouder-app (maar zijn wel los gewijzigd).
   Gebaseerd op de huisstijl van ishetoudervriendelijk.nl
   ============================================================ */

@font-face {
    font-family: 'Crimson Pro';
    src: url('fonts/crimsonpro-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Crimson Pro';
    src: url('fonts/crimsonpro-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ---- Variabelen ---- */
:root {
    --oranje: #d4710a;
    --oranje-dark: #b85e08;
    --groen: #4a9e1a;
    --oranje-stoplicht: #ff8800;
    --rood: #E24B4A;
    --grijs: #f6f3f0;
    --grijs-rand: #e0e0e0;
    --tekst: #444;
    --tekst-licht: #999;
    --wit: #ffffff;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.07);
}

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

body {
    font-family: 'Crimson Pro', serif;
    font-size: 20px;
    color: var(--tekst);
    line-height: 1.4;
    background: var(--wit);
    hyphens: auto;
    font-variant-numeric: oldstyle-nums;
    font-feature-settings: "onum" 1;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { color: var(--oranje); text-decoration: none; }
a:hover { color: var(--oranje-dark); }

/* ---- Container ---- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.2em 20px 3rem;
}

.site-logo {
    display: block;
    margin-bottom: 0;
}
.site-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* ---- Header ---- */
.site-header {
    background: #f0eee4;
    border-bottom: 1px solid #9d8b50;
    padding: 20px 0;
    margin-bottom: 0.3rem;
    width: 100%;
}
.site-header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.header {
    padding: 0.8rem 0 0.6rem;
    margin-bottom: 1.2rem;
}
.header h1 {
    font-family: 'Hind', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--tekst);
}
.header p {
    font-size: 20px;
    font-style: italic;
    line-height: 1.4;
    color: var(--tekst);
}
.session-counter {
    display: inline-block;
    background: #e4e4e4;
    color: var(--tekst-licht);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-style: italic;
    margin-top: -4px;
    margin-bottom: 4px;
}
.session-counter.vol {
    background: #fdf0ed;
    color: #c0392b;
}

/* ---- Schermen ---- */
.screen { display: none; }
.screen.active { display: block; }


/* ---- Intro tekst ---- */
.intro-tekst {
    font-size: 20px;
    font-family: 'Crimson Pro', serif;
    line-height: 1.6;
    color: var(--tekst);
    margin-bottom: 40px;
    border: 1.5px solid #c0c0c0;
    border-radius: var(--radius);
    padding: 24px 36px;
}
.intro-tekst p {
    margin-bottom: 0.8em;
}
.intro-tekst p:last-child {
    margin-bottom: 0;
}
.intro-tekst a { color: var(--oranje); }
.intro-tekst a:hover { color: var(--oranje-dark); }

/* ---- Snel starten ---- */
.quick-start {
    background: var(--grijs);
    border-radius: var(--radius);
    padding: 36px 36px 36px 48px;
    margin-bottom: 20px;
}
.quick-start h2 {
    font-family: 'Hind', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}
.quick-start > p {
    font-size: 18px;
    font-style: italic;
    color: var(--tekst-licht);
    margin-top: 2px;
    margin-bottom: 32px;
}
.quick-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.quick-card {
    background: var(--wit);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    padding: 16px 24px;
    cursor: pointer;
    transition: border-color 0.2s;
}

/* ---- Gele balk links op kaders ---- */
.quick-start,
.scenario-builder {
    position: relative;
}
.quick-start::before,
.scenario-builder::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 12px;
    background: #ffcd57;
    border-radius: var(--radius) 0 0 var(--radius);
    z-index: 1;
}
.quick-card:hover {
    border-color: var(--oranje);
}
.quick-card h3 {
    font-family: 'Hind', sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 0;
}
.quick-card p {
    font-size: 17px;
    font-style: italic;
    color: var(--tekst-licht);
    margin: 0;
}

/* ---- Scheider ---- */
.divider {
    text-align: center;
    color: var(--tekst-licht);
    font-size: 17px;
    font-style: italic;
    margin: 36px 0 24px;
    position: relative;
}
.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--grijs-rand);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* ---- Custom dropdowns ---- */
.custom-select {
    position: relative;
    width: 100%;
    font-family: 'Crimson Pro', serif;
    font-size: 19px;
    color: var(--tekst);
    cursor: pointer;
    user-select: none;
}
.custom-select-selected.placeholder {
    color: var(--tekst-licht);
}
.custom-select-selected {
    background: var(--wit);
    border-radius: 8px;
    padding: 10px 44px 10px 14px;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23444444'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='40' viewBox='0 0 32 40'%3E%3Crect width='32' height='40' fill='%23ffcd57'/%3E%3C/svg%3E");
    background-repeat: no-repeat, repeat-y;
    background-position: right 11px center, right 0 top;
    background-size: 10px 6px, 32px auto;
    outline: 1.5px solid transparent;
    transition: outline 0.2s;
}
.custom-select.open .custom-select-selected,
.custom-select-selected:hover {
    outline: 1.5px solid var(--oranje);
}
.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wit);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100;
    overflow: hidden;
}
.custom-select.open .custom-select-options {
    display: block;
}
.custom-select-option {
    padding: 3px 14px;
    font-family: 'Crimson Pro', serif;
    font-size: 19px;
    color: var(--tekst);
    cursor: pointer;
    transition: background 0.15s;
}
.custom-select-option:hover {
    background: var(--grijs);
}
.custom-select-option.selected {
    background: var(--grijs);
    color: var(--oranje);
}

/* ---- Scenario-bouwer (vervolg) ---- */
.scenario-builder {
    background: var(--grijs);
    border-radius: var(--radius);
    padding: 36px 36px 36px 48px;
    margin-bottom: 20px;
}
.scenario-builder h2 {
    font-family: 'Hind', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}
.scenario-builder > p,
.scenario-builder .quick-start-subtitel {
    font-size: 18px;
    font-style: italic;
    color: var(--tekst-licht);
    margin-top: 4px;
    margin-bottom: 24px;
}
.field-group {
    margin-bottom: 32px;
}
.field-group label {
    display: block;
    font-family: 'Hind', sans-serif;
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 0;
}
.field-group .sublabel {
    display: block;
    font-size: 17px;
    font-style: italic;
    color: var(--tekst-licht);
    margin-bottom: 8px;
}
.field-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 19px;
    font-family: 'Crimson Pro', serif;
    background: var(--wit);
    color: var(--tekst);
    transition: outline 0.2s;
    outline: 1.5px solid transparent;
}
.field-group textarea:focus {
    outline: 1.5px solid var(--oranje);
}
.field-group textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.4;
}

/* ---- Knoppen ---- */
button.primary,
.btn-primary {
    display: inline-block;
    width: auto;
    background: var(--oranje);
    color: var(--wit);
    border: none;
    border-radius: var(--radius);
    padding: 8px 20px 5px;
    font-family: 'Hind', sans-serif;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
}
button.primary:hover,
button.primary:active,
.btn-primary:hover,
.btn-primary:active { background: var(--oranje); }
button.primary:disabled,
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-hint {
    background: #eaf4e0;
    color: #4a9e1a;
    border: 1px solid #4a9e1a;
    border-radius: var(--radius);
    padding: 10px 18px;
    font-family: 'Hind', sans-serif;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-end;
    white-space: nowrap;
}
.btn-hint:hover { background: #d5ecbf; }
.btn-hint:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-stop {
    background: var(--oranje);
    color: var(--wit);
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'Hind', sans-serif;
    font-size: 17px;
    cursor: pointer;
    align-self: flex-end;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-stop:hover { background: var(--oranje-dark); }

/* ---- Chat-scherm ---- */
.chat-header {
    background: var(--wit);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header h2 {
    font-family: 'Hind', sans-serif;
    font-size: 20px;
    font-weight: 600;
}
.chat-actions {
    display: flex;
    gap: 8px;
}

.chat-messages {
    background: var(--grijs);
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    padding: 28px 32px;
    scroll-behavior: smooth;
    border-radius: var(--radius) var(--radius) 0 0;
}

.message {
    margin-bottom: 16px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.ouder { margin-right: auto; }
.message.professional { margin-left: auto; }

/* ---- Ouder-app: uitlijning omdraaien (ouder = rechts, professional = links) ---- */
.ouder-app .message.ouder { margin-right: 0; margin-left: auto; }
.ouder-app .message.professional { margin-left: 0; margin-right: auto; }

.message .role {
    font-family: 'Hind', sans-serif;
    font-size: 16px;
    color: var(--oranje);
    margin-bottom: 4px;
    font-weight: 600;
}
.message.ouder .role { text-align: left; margin-left: 16px; }
.message.professional .role { text-align: right; margin-right: 16px; }

.ouder-app .message.ouder .role { text-align: right; margin-left: 0; margin-right: 16px; }
.ouder-app .message.professional .role { text-align: left; margin-right: 0; margin-left: 16px; }

.message .bubble {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 20px;
    font-family: 'Crimson Pro', serif;
    font-variant-numeric: oldstyle-nums;
    font-feature-settings: "onum" 1;
    line-height: 1.4;
}
.message.ouder .bubble {
    background: #e8d5cb;
    border-top-left-radius: 4px;
}
.message.professional .bubble {
    background: #c8d4e3;
    border-top-right-radius: 4px;
}

.ouder-app .message.ouder .bubble { border-top-left-radius: var(--radius); border-top-right-radius: 4px; }
.ouder-app .message.professional .bubble { border-top-right-radius: var(--radius); border-top-left-radius: 4px; }

/* ---- Coach/hint bericht: label én tekst in het groene kader ---- */
.message.hint { width: 85%; max-width: 85%; margin: 12px 0 12px auto; }
.message.hint .bubble {
    background: #eaf4e0;
    border-radius: var(--radius);
    border: none;
    font-size: 20px;
    font-style: italic;
    padding: 16px 20px;
}
.message.hint .bubble .role {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #5a8a3a;
    margin-bottom: 8px;
    font-style: normal;
    margin-right: 16px;
    text-align: right;
}

/* Ouder intro en non-verbaal */
.ouder-intro {
    font-size: 20px;
    font-style: normal;
    color: var(--tekst);
    margin-bottom: 20px;
    line-height: 1.4;
}
.nonverbaal {
    font-size: 20px;
    color: var(--tekst);
    margin-bottom: 12px;
    line-height: 1.4;
}
.message.ouder .nonverbaal { text-align: left; }
.message.professional .nonverbaal { text-align: right; }

.ouder-app .message.ouder .nonverbaal { text-align: right; }
.ouder-app .message.professional .nonverbaal { text-align: left; }

/* Schrijfindicator */
.typing { display: none; padding: 12px 0 12px 16px; margin-bottom: 8px; }
.typing.active { display: block; }
.typing.rechts { text-align: right; padding-left: 0; padding-right: 16px; }
.typing .dots { display: inline-flex; gap: 4px; }
.typing .dot {
    width: 8px; height: 8px;
    background: var(--grijs-rand);
    border-radius: 50%;
    animation: tik 1.2s infinite;
}
.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes tik {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

.chat-input {
    background: var(--grijs);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 16px 32px;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
}
.chat-input-right {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex: 1;
    margin-left: 16px;
}
.chat-input textarea {
    flex: 1;
    min-width: 0;
    padding: 6px 14px 8px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-family: 'Crimson Pro', serif;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    line-height: 1.4;
    background: var(--wit);
    color: var(--tekst);
    outline: 1.5px solid transparent;
}
.chat-input textarea:focus {
    outline: 1.5px solid var(--oranje);
}
#fieldDrempel, #fieldGewensteUitkomst { min-height: 115px; }
.btn-test {
    background: var(--wit);
    color: var(--tekst-licht);
    border: 1px dashed var(--tekst-licht);
    border-radius: var(--radius);
    padding: 6px 16px 4px;
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    cursor: pointer;
}
.btn-test:hover { background: var(--grijs); }
.btn-send {
    background: var(--oranje);
    color: var(--wit);
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'Hind', sans-serif;
    font-size: 17px;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: -1px;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.btn-send:hover { background: var(--oranje-dark); }
.btn-send:disabled { background: var(--grijs-rand); cursor: not-allowed; }

/* ---- Feedbackscherm ---- */
.feedback-container {
    background: var(--wit);
    border-radius: var(--radius);
    padding: 0;
}

.feedback-container h2 {
    font-family: 'Hind', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

/* Totaalscore */
.score-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--grijs);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}
.score-cirkel {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--grijs-rand);
}
.score-cirkel span {
    font-family: 'Hind', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--wit);
    margin-top: 2px;
    margin-left: 2px;
}
.score-cirkel.groen { background: var(--groen); }
.score-cirkel.oranje { background: var(--oranje-stoplicht); }
.score-cirkel.rood { background: var(--rood); }

.score-label {
    font-family: 'Hind', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}
.score-label.groen { color: var(--groen); }
.score-label.oranje { color: var(--oranje-stoplicht); }
.score-label.rood { color: var(--rood); }

.summary {
    font-size: 20px;
    line-height: 1.4;
}

/* Criteria */
.criteria-titel {
    font-family: 'Hind', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin: 2.5em 0 1em;
    color: var(--oranje);
}
.criteria-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 2rem;
}
.criterion {
    position: relative;
    background: var(--grijs);
    border-radius: var(--radius);
    padding: 24px 28px 24px 40px;
    overflow: hidden;
}
.criterion::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 12px;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--grijs-rand);
}
.criterion.groen::before { background: var(--groen); }
.criterion.oranje::before { background: var(--oranje-stoplicht); }
.criterion.rood::before { background: var(--rood); }

.criterion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.criterion-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0px;
}
.criterion-dot.groen { background: var(--groen); }
.criterion-dot.oranje { background: var(--oranje-stoplicht); }
.criterion-dot.rood { background: var(--rood); }

.criterion-name {
    font-family: 'Hind', sans-serif;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}
.criterion-text {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4px;
}
.criterion-bg {
    font-size: 18px;
    color: var(--tekst-licht);
    font-style: italic;
    margin-top: 6px;
}

/* Momenten */
.moments-section { margin-bottom: 2rem; }
.moments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 0;
}
.moments-section h3 {
    font-family: 'Hind', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}
.moment {
    position: relative;
    background: var(--grijs);
    border-radius: var(--radius);
    padding: 20px 28px 20px 28px;
    margin-bottom: 24px;
}
.moment.goed {
    position: relative;
    background: var(--grijs);
    border-radius: var(--radius);
    padding: 20px 28px;
    margin-bottom: 24px;
    overflow: hidden;
}
.moment-quote {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.4;
}
.moment-effect {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 6px;
}
.moment-suggestion {
    font-size: 20px;
    background: #eaeaea;
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-top: 16px;
    line-height: 1.4;
}

/* Tips */
.tips-section {
    background: var(--grijs);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 2rem;
}
.tips-section h3 {
    font-family: 'Hind', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.tips-section ul { list-style: none; padding: 0; }
.tips-section li {
    font-size: 20px;
    line-height: 1.4;
    padding: 6px 0 6px 38px;
    position: relative;
}
.tips-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 24px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcd57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 1 7 7c0 2.3-1.1 4.2-2.5 5.5-.8.8-1.3 1.5-1.5 2.5H9c-.2-1-.7-1.7-1.5-2.5A7 7 0 0 1 12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.new-session-btn { margin-top: 20px; }

/* ---- Laadindicator ---- */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250, 248, 245, 0.85);
    z-index: 100;
    justify-content: center;
    align-items: center;
}
.loading-overlay.active { display: flex; }
.loading-text {
    font-size: 20px;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    color: var(--tekst);
}
.loading-balk {
    width: 100%;
    background: var(--grijs-rand);
    border-radius: var(--radius);
    height: 6px;
    overflow: hidden;
}
.loading-balk-inner {
    height: 100%;
    width: 30%;
    background: var(--oranje);
    border-radius: var(--radius);
    animation: laden 2s ease-in-out infinite;
}
@keyframes laden {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ---- Footer ---- */
.footer {
    background: #f0eee4;
    margin-top: 3rem;
    padding: 0;
    width: 100%;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer-links a {
    font-size: 16px;
    color: var(--oranje);
    font-family: 'Hind', sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
}
.footer-links a:hover { color: var(--oranje-dark); }
.footer-tekst {
    font-size: 16px;
    font-family: 'Hind', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--tekst);
    hyphens: auto;
}
.footer-tekst a { color: var(--oranje); }
.footer-tekst a:hover { color: var(--oranje-dark); }

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


.message.hint .bubble p {
    margin-bottom: 0.6em;
}
.message.hint .bubble p:last-child {
    margin-bottom: 0;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 8px;
}

.chat-input {
    background: var(--grijs);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 16px 32px;
    display: flex;
    gap: 16px;
    align-items: flex-end;
}
.chat-input-onder {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.chat-input-onder {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 32px;
}

/* ---- Ouder-app: professional-intro (alias voor ouder-intro) ---- */
.professional-intro {
    font-size: 20px;
    font-style: normal;
    color: var(--tekst);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* ---- Ouder-app: feedback-lagen ---- */
.feedback-laag { margin-top: 2.5rem; margin-bottom: 1rem; text-align: center; }
.laag-label {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--oranje);
    margin-bottom: 2px;
}
.laag-subtitel { font-family: 'Crimson Pro', serif; font-size: 20px; font-style: italic; color: var(--tekst); }

/* ---- Ouder-app: zelfinzicht ---- */
.zelfinzicht-section {
    background: var(--grijs);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 1.5rem;
}
.zelfinzicht-item {
    font-size: 20px;
    line-height: 1.4;
    padding: 10px 0;
}
.zelfinzicht-item.goed { position: relative; }

/* ---- Ouder-app: terugkoppeling ---- */
.terugkoppeling-section {
    background: var(--grijs);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.terugkoppeling-section h3 { font-family: 'Hind', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.terugkoppeling-intro { font-size: 20px; font-style: italic; margin-bottom: 12px; line-height: 1.4; }
.terugkoppeling-zin {
    font-size: 20px;
    line-height: 1.4;
    padding: 8px 0 8px 20px;
    position: relative;
}
.terugkoppeling-zin::before {
    content: '';
    position: absolute;
    left: 0; top: 0.5em;
    width: 20px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcd57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 1 7 7c0 2.3-1.1 4.2-2.5 5.5-.8.8-1.3 1.5-1.5 2.5H9c-.2-1-.7-1.7-1.5-2.5A7 7 0 0 1 12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ---- Ouder-app: moment-why ---- */
.moment-why { font-size: 18px; color: var(--tekst-licht); font-style: italic; margin-top: 8px; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .container { padding: 1.5em 14px; }
    .quick-cards { grid-template-columns: 1fr; }
    .criteria-list { grid-template-columns: 1fr; }
    .moments-grid { grid-template-columns: 1fr; }
    .chat-messages { min-height: 200px; max-height: calc(100vh - 280px); }
    .header h1 { font-size: 20px; }
    .score-badge { flex-direction: column; text-align: center; }
    .quick-start           { padding: 16px 16px 16px 32px; }
    .scenario-builder      { padding: 16px 16px 16px 32px; }
    .chat-header           { padding: 12px 16px; }
    .chat-messages         { padding: 16px; }
    .chat-input            { padding: 12px 16px; }
    .chat-input-onder      { padding: 0 16px; }
    .intro-tekst           { padding: 16px; }
    .criterion             { padding: 16px 16px 16px 28px; }
    .moment                { padding: 14px 16px; }
    .moment.goed           { padding: 14px 16px; }
    .zelfinzicht-section   { padding: 16px; }
    .terugkoppeling-section { padding: 16px; }
    .score-badge           { padding: 16px; }
}
@media (min-width: 700px) {
    .feedback-container { min-height: 80vh; }
}

.feedback-container { min-height: 1000px; }
}
/* ---- PDF-knop ---- */
.pdf-knop-wrap {
    margin-top: 32px;
    text-align: center;
}


/* ---- Feedback progress bar ---- */
#feedback-progress-wrap { margin-bottom: 32px; }
.feedback-progress-tekst {
    font-family: 'Hind', sans-serif;
    font-size: 16px;
    color: var(--tekst);
    margin-bottom: 12px;
}
.feedback-progress-balk {
    background: #e8e8e8;
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
}
#feedback-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--oranje);
    border-radius: 4px;
    transition: width 0.4s ease;
}
#feedback-progress-label { display: none; }
.feedback-progress-disclaimer { margin-top: 24px; }
/* ---- PDF-knop ---- */
.pdf-knop-wrap {
    margin-top: 24px;
    text-align: center;
}
#btnVerstuurPdf {
    transition: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    filter: none !important;
}

/* ---- Herkans-knop ---- */
.herkans-knop-wrap {
    margin-top: 16px;
    text-align: center;
}
.herkans-knop-wrap button.primary.btn-slot {
    background: var(--grijs-rand);
    color: var(--tekst);
}
.herkans-knop-wrap button.primary.btn-slot:hover {
    background: var(--grijs-rand);
}
#btnVerstuurPdf:hover,
#btnVerstuurPdf:active,
#btnVerstuurPdf:focus {
    background: #d4710a !important;
    filter: none !important;
    outline: none !important;
    opacity: 1 !important;
}