/* Questionnaire pages (plugin-survey-page.js) and the plain screens around the feed. Light, high-contrast, works down to a phone. */
body { margin: 0; background: #f8fafc; color: #0f172a; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.jspsych-display-element { color: #0f172a; }          /* feed.css sets light text for the dark feed; the feed sets its own colours */
.jspsych-content-wrapper { background: transparent; }
.jspsych-content { max-width: none; width: 100%; }
.info-screen { max-width: 720px; margin: 0 auto; padding: 24px 20px; text-align: left; }
.info-screen h2 { margin: 0 0 12px; color: #0f172a; text-align: left; }
.info-screen .note { padding: 10px 14px; color: #92400e; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 8px; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; cursor: pointer; }
.consent-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }

.survey-wrap { max-width: 720px; margin: 0 auto; padding: 16px 20px 56px; text-align: left; }
.sp-title { margin: 8px 0 12px; font-size: 1.4rem; }
.sp-intro { margin: 0 0 12px; color: #334155; }
.q { margin: 0 0 26px; padding: 14px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.q.q-info { background: transparent; border: none; padding: 0 0 4px; margin-bottom: 12px; color: #334155; }
.q.q-info h3 { margin: 12px 0 0; font-size: 1.05rem; color: #0f172a; }
.q.bad { border-color: #dc2626; box-shadow: 0 0 0 1px #dc2626; }
.q-prompt { font-weight: 600; margin-bottom: 8px; }
.q-hint { color: #475569; font-size: 14px; margin: -4px 0 8px; }
.q-error { color: #b91c1c; font-size: 14px; min-height: 0; margin-top: 6px; }
.q-error:empty { display: none; }
fieldset { border: none; margin: 0; padding: 0; min-inline-size: 0; }

.q-slider { position: relative; padding: 14px 6px 4px; outline: none; touch-action: none; }
.q-track { position: relative; height: 34px; cursor: pointer; touch-action: none; }
.q-rail { position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 6px; background: #cbd5e1; }
.q-thumb { position: absolute; top: 5px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .4); }
.q-slider.untouched .q-thumb { display: none; }          /* no handle until the participant answers */
.q-slider:focus-visible .q-rail { outline: 2px solid #2563eb; outline-offset: 4px; }
.q-anchors { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #475569; margin-top: 2px; }
.q-anchors span { flex: 1; text-align: center; }
.q-anchors span:first-child { text-align: left; }
.q-anchors span:last-child { text-align: right; }
.q-anchors.two span { text-align: left; }
.q-anchors.two span:last-child { text-align: right; }
.q-readout { font-variant-numeric: tabular-nums; font-weight: 700; color: #1d4ed8; text-align: center; min-height: 1.4em; }

.q-row { display: flex; flex-wrap: wrap; gap: 6px; }
.q-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 38px; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; cursor: pointer; background: #f8fafc; }
.q-cell:has(input:checked) { background: #dbeafe; border-color: #2563eb; }
.q-labelled .q-row { flex-direction: column; }
.q-labelled .q-cell { flex-direction: row; align-items: center; gap: 10px; justify-content: flex-start; }
.q-option { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; cursor: pointer; }
.q-option input { margin-top: 5px; width: 17px; height: 17px; flex: none; }
.q-number { width: 7em; padding: 8px 10px; font: inherit; border: 1px solid #94a3b8; border-radius: 8px; }
.q-numberwrap { display: inline-flex; align-items: center; gap: 6px; }
.q-unit { color: #475569; }
.q-text { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; border: 1px solid #94a3b8; border-radius: 8px; resize: vertical; }
.q-counter { margin-top: 4px; font-size: 13px; color: #475569; }
.q-allocrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; }
.q-total { margin-top: 8px; font-weight: 600; color: #b45309; }
.q-total.ok { color: #15803d; }
.q-iosrow .q-row { justify-content: space-between; }
.q-ios { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border: 1px solid #cbd5e1; border-radius: 10px; cursor: pointer; background: #fff; }
.q-ios:has(input:checked) { background: #dbeafe; border-color: #2563eb; }
.q-ios svg { max-width: 100%; height: auto; }
.q-link { color: #1d4ed8; font-weight: 600; }

.sp-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.sp-submit { font-size: 1rem; padding: 10px 28px; }
.debrief-list { padding-left: 1.1em; }
.debrief-post { margin: 10px 0; }
.debrief-author { font-weight: 600; }
.debrief-correction { margin-top: 4px; padding: 6px 10px; background: #fef3c7; border-radius: 8px; }

@media (max-width: 560px) {
  .survey-wrap, .info-screen { padding-left: 14px; padding-right: 14px; }
  .q { padding: 12px; }
  .q-anchors { font-size: 12px; }
  .q-row { gap: 4px; }
  .q-cell { min-width: 32px; padding: 5px 6px; }
}
