/*
 * Leesbaarheid voor het publiek (senioren): grotere tekst, sterker contrast, grotere knoppen
 * en duidelijke bevestigingen. Wordt na styles.css geladen en overschrijft die.
 * Terugdraaien zonder git: de <link> naar dit bestand in index.html weghalen.
 */

:root {
  --muted: #3c444c;
  --focus: #1f4fd1;
}

body {
  font-size: 1.125rem;
  line-height: 1.55;
}

/* ── Koptekst ─────────────────────────────────────────────── */
.org-name { font-size: 1.45rem; }
.org-logo { height: 52px; }
.event-title { font-size: 1.1rem; }
.event-meta { font-size: 0.95rem; }
.pre-title { font-size: 0.95rem; }

/* ── Tekst ────────────────────────────────────────────────── */
.intro,
.questions-section-intro { font-size: 1.15rem; line-height: 1.55; }

.feedback-section-title,
.questions-section-title { font-size: clamp(1.55rem, 5vw, 1.95rem); }

.no-event-message { font-size: 1.1rem; }
.error-message { font-size: 1.05rem; }

/* ── Tabs ─────────────────────────────────────────────────── */
.mode-tab {
  min-height: 58px;
  font-size: 1.05rem;
}
.mode-tab:not(.mode-tab--active) { color: var(--muted); }

/* ── Formulieren ──────────────────────────────────────────── */
.score-fieldset legend,
.comment-label { font-size: 1.15rem; }

.score-option span {
  min-height: 60px;
  padding: 0;
  font-size: 1.35rem;
  color: var(--text);
  border-width: 2px;
  border-color: rgba(215, 63, 56, 0.45);
}

.comment-label textarea {
  min-height: 140px;
  font-size: 1.15rem;
  border-width: 2px;
  border-color: #c4c4cc;
}
.comment-label textarea::placeholder { color: #6b7280; }

.submit-button {
  font-family: inherit;
  width: 100%;
  min-height: 60px;
  font-size: 1.2rem;
}
.submit-button:disabled {
  opacity: 0.75;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.field-error {
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #fbe3e4;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Duidelijke focusrand voor wie met toetsenbord of hulpmiddel werkt */
.mode-tab:focus-visible,
.sort-btn:focus-visible,
.vote-btn:focus-visible,
.submit-button:focus-visible,
.next-event-program:focus-visible,
.comment-label textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.score-option input:focus-visible + span {
  outline: 3px solid var(--focus);
}

/* ── Vragenlijst ──────────────────────────────────────────── */
.questions-list-heading { font-size: 0.95rem; }
.sort-label { font-size: 0.85rem; }
.sort-hint { font-size: 0.9rem; }

.sort-btn {
  min-height: 52px;
  font-size: 1rem;
  color: #4a4a55;
}

.question-card-text { font-size: 1.25rem; }

.question-time {
  opacity: 1;
  font-size: 0.95rem;
  color: var(--muted);
}

.vote-btn {
  min-width: 58px;
  min-height: 58px;
  font-size: 1.05rem;
}

.questions-empty { font-size: 1.05rem; }

/* Eigen, net verstuurde vraag even markeren */
.question-card--mine {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.22);
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

/* ── Bevestiging na een vraag ─────────────────────────────── */
.success-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: #e8f5e9;
  border: 2px solid rgba(46, 125, 50, 0.35);
  color: #1b5e20;
}
.success-notice p { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.success-notice .success-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.15rem; }

.success-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
}

/* ── Vragen gesloten ──────────────────────────────────────── */
.closed-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: #fff7e6;
  border: 2px solid #f0c36d;
  color: #5c3d00;
}
.closed-notice p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.closed-notice .closed-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; color: #4a3100; }

.closed-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f6d48f;
  color: #5c3d00;
}

/* ── Bedankt na feedback ──────────────────────────────────── */
.thank-you-check { display: none; }
.thank-you--success .thank-you-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.3);
}
.thank-you-title { font-size: 1.4rem; line-height: 1.35; }
.next-event-program { min-height: 48px; font-size: 1.05rem; white-space: nowrap; }

/* ── Smalle schermen ──────────────────────────────────────── */
@media (max-width: 480px) {
  .score-option span { min-height: 56px; font-size: 1.25rem; }

  .mode-tab {
    font-size: 1rem;
    padding: 0.6rem 0.4rem;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
  .mode-tab svg { display: none; }

  .sort-btn { font-size: 0.95rem; }
  .question-card { grid-template-columns: 66px 1fr; }
  .question-card-text { font-size: 1.15rem; }
  .thank-you-title { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.success-notice:focus { outline: none; }
