/* RehAI/wwwroot/css/participant.css — mobile-first, plain controls, big targets */
/* site.css pins html/body to the viewport with overflow hidden (the staff layout scrolls inside
   its own pane), so this wrapper must be the scroll container for every participant-layout page —
   otherwise anything below the first viewport (a long questionnaire, the certificate's report) is
   clipped and the page cannot scroll at all. */
.participant-page { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #f4f6f8; color: #1d2430; font-family: "Segoe UI", system-ui, sans-serif; }
.participant-header { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; background: #1a5fb4; color: #fff; }
.participant-brand { font-weight: 600; font-size: 1.1rem; }
.participant-main { max-width: 720px; margin: 0 auto; padding: 1rem 16px 4rem; }
.participant-card { background: #fff; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.participant-title { font-size: 1.4rem; margin: 0 0 .5rem; }
.participant-lead { color: #4a5568; margin: 0 0 1rem; }
.participant-progress { position: sticky; top: 0; z-index: 5; background: #f4f6f8; padding: .5rem 0; font-size: .95rem; color: #334; }
.participant-progress-bar { height: 6px; background: #d9dee5; border-radius: 3px; overflow: hidden; margin-top: .3rem; }
.participant-progress-bar > div { height: 100%; background: #1a5fb4; transition: width .2s; }
.participant-chapter { font-weight: 600; font-size: 1.05rem; margin: 1.5rem 0 .5rem; color: #1a5fb4; }
.participant-question { margin-bottom: 1.25rem; }
.participant-question-text { font-weight: 600; margin-bottom: .5rem; line-height: 1.35; }
.participant-question-desc { color: #4a5568; font-size: .95rem; margin-bottom: .5rem; }
.participant-required { color: #c0392b; margin-left: .25rem; }
.participant-options { display: flex; flex-direction: column; gap: .5rem; }
.participant-option { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .6rem .9rem; border: 1px solid #cfd6df; border-radius: 10px; background: #fff; cursor: pointer; }
.participant-option input { width: 22px; height: 22px; flex: none; accent-color: #1a5fb4; }
.participant-option.selected { border-color: #1a5fb4; background: #eaf1fb; }
.participant-rating { display: flex; gap: .5rem; flex-wrap: wrap; }
.participant-rating button { min-width: 48px; min-height: 48px; border: 1px solid #cfd6df; border-radius: 10px; background: #fff; font-size: 1.05rem; }
.participant-rating button.selected { background: #1a5fb4; color: #fff; border-color: #1a5fb4; }
.participant-input, .participant-textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: .6rem .8rem; border: 1px solid #cfd6df; border-radius: 10px; font-size: 1rem; background: #fff; }
.participant-textarea { min-height: 110px; resize: vertical; }
.participant-other { margin-left: 2.4rem; }
.participant-saved { font-size: .85rem; color: #2e7d32; margin-top: .3rem; min-height: 1.1rem; }
.participant-error { font-size: .9rem; color: #c0392b; margin-top: .3rem; }
.participant-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.25rem; border-radius: 10px; border: none; background: #1a5fb4; color: #fff; font-size: 1.05rem; font-weight: 600; width: 100%; }
.participant-btn:disabled { opacity: .6; }
.participant-alert { background: #fdecea; color: #7a1f16; border: 1px solid #f5c2bd; border-radius: 10px; padding: .75rem 1rem; }
.participant-missing { margin: .5rem 0 0 1.2rem; }
.participant-thanks { text-align: center; padding: 3rem 1rem; }
.participant-thanks h1 { font-size: 1.6rem; }
.participant-reconnect { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; align-items: center; justify-content: center; }
.participant-reconnect.components-reconnect-show, .participant-reconnect.components-reconnect-failed { display: flex; }
.participant-reconnect-box { background: #fff; border-radius: 12px; padding: 1.25rem; max-width: 320px; margin: 16px; text-align: center; }
.components-reconnect-show .components-reconnect-failed-text, .components-reconnect-failed .components-reconnect-show-text { display: none; }
.participant-page * { max-width: 100%; }

/* Staff side (PatientSurvey.razor): the invitation block reads as one framed box. */
.participant-box { border: 1px solid #d9dee5; border-radius: 10px; padding: 1rem; background: #fff; }
.participant-box .card-body { padding: 0; }
.participant-box .card-title { font-weight: 600; margin-bottom: .5rem; }
.participant-qr { max-width: 180px; margin-top: .5rem; }
.participant-qr svg { width: 100%; height: auto; }
