/* Layout on top of the SurveyJS 3.2.0 default theme: mobile-first, one column, vertical options, no horizontal scroll. */
:root {
  --gbq-stage-on: #19b394;
  --gbq-stage-off: #d9d9d9;
  --gbq-notice-bg: #fff8e1;
  --gbq-notice-border: #e0c060;
  --gbq-dev-bg: #fff1f0;
  --gbq-dev-border: #c0392b;
  --gbq-text: #161616;
}
html, body { margin: 0; background: #f3f3f3; color: var(--gbq-text); overflow-x: hidden; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
#gbq-survey { max-width: 760px; margin: 0 auto; }

/* Long labels wrap instead of widening the page. */
.sd-root-modern, .sd-root-modern * { overflow-wrap: anywhere; }
.sd-item__control-label, .sd-question__title { overflow-wrap: break-word; word-break: normal; }

/* Five-stage progress indicator (C2). */
#gbq-progress { display: flex; gap: 6px; max-width: 760px; margin: 0 auto; padding: 12px 16px 0; box-sizing: border-box; }
#gbq-progress[hidden] { display: none; }
#gbq-progress span { flex: 1; height: 8px; border-radius: 4px; background: var(--gbq-stage-off); }
#gbq-progress span.on { background: var(--gbq-stage-on); }

/* Survey title: smaller on phones so each page starts with the question, not the header. "GPT-4o" never splits. */
.gbq-nowrap { white-space: nowrap; }
@media (max-width: 680px) {
  .sv-header__title .sd-title, .sv-header__title .sd-title .sv-string-viewer { font-size: 1.3rem; line-height: 1.3; }
}

/* Q11a subheading shown as a small heading under the question text (IMP-18). */
[data-name="q11a"] .sd-question__description { font-weight: 600; font-size: 0.95em; color: #3a3a3a; margin-top: 12px; text-transform: none; }

/* Q03 note for the post-13-February periods (IMP-20): small explanatory text directly under Q03. */
.gbq-q03-note { font-size: 0.92em; color: #3a3a3a; line-height: 1.45; padding: 0 4px; }

/* Q10 soft prompt: a note, not an error. */
.gbq-notice { background: var(--gbq-notice-bg); border: 1px solid var(--gbq-notice-border); border-radius: 6px; padding: 12px 14px; line-height: 1.45; }

/* Send state, fixed at the bottom of the screen so it is visible wherever the respondent has scrolled. */
#gbq-notice { position: fixed; left: 0; right: 0; bottom: 0; max-width: 760px; margin: 0 auto; box-sizing: border-box; padding: 14px 16px;
  background: var(--gbq-notice-bg); border-top: 2px solid var(--gbq-notice-border); line-height: 1.45; z-index: 10; box-shadow: 0 -2px 8px rgba(0,0,0,0.08); }
body.gbq-notice-open { padding-bottom: 180px; }
#gbq-notice[hidden] { display: none; }
#gbq-notice p { margin: 0 0 8px; }
#gbq-retry { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 6px; border: 0; background: var(--gbq-stage-on); color: #fff; cursor: pointer; }
#gbq-retry[hidden] { display: none; }
#gbq-retry:disabled { opacity: 0.55; cursor: progress; }

/* Full-page system screens (closed, not open, pilot link, updated, no JavaScript). */
.gbq-screen { max-width: 640px; margin: 48px auto; padding: 24px 20px; background: #fff; border-radius: 8px; box-sizing: border-box; line-height: 1.5; font-size: 1.05rem; }
.gbq-screen[hidden] { display: none; }
@media (max-width: 680px) { .gbq-screen { margin: 16px; } }

/* Development-only placeholders (OQ-10): impossible to mistake for approved text. */
.gbq-devplaceholder { background: repeating-linear-gradient(-45deg, var(--gbq-dev-bg), var(--gbq-dev-bg) 12px, #ffe3e0 12px, #ffe3e0 24px);
  border: 2px dashed var(--gbq-dev-border); color: #7a1c12; font-weight: 600; padding: 14px; border-radius: 6px; line-height: 1.45; }
#gbq-testbanner { background: #253858; color: #fff; font-size: 13px; text-align: center; padding: 6px 12px; }
#gbq-testbanner[hidden] { display: none; }

/* Cognitive-pilot layer (cogpilot only; 15 §12): pilot pages, information screens, stop link, read-only views. */
#gbq-pilot { max-width: 760px; margin: 0 auto; }
#gbq-pilot[hidden], #gbq-stopwrap[hidden] { display: none; }
#gbq-stopwrap { max-width: 760px; margin: 0 auto 24px; padding: 0 16px; box-sizing: border-box; text-align: center; }
.gbq-linkbtn { background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 0.95rem; color: #2b5797; text-decoration: underline; cursor: pointer; }
.gbq-btn { font: inherit; font-weight: 600; padding: 10px 18px; margin: 8px 8px 0 0; border-radius: 6px; border: 0; background: var(--gbq-stage-on); color: #fff; cursor: pointer; }
.gbq-btn-secondary { background: #e8e8e8; color: var(--gbq-text); }
.gbq-linkfield { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.9rem; padding: 10px; border: 1px solid #bbb; border-radius: 6px; background: #fafafa; }
.gbq-pilot-p { margin: 0 0 8px; line-height: 1.5; }
.gbq-text { margin: 0 0 10px; line-height: 1.5; }
.gbq-strong { font-weight: 600; }
.gbq-devplaceholder.gbq-inline { display: inline; padding: 2px 6px; }
.gbq-readonly { background: #f7f7f7; border-left: 4px solid #c8c8c8; padding: 10px 14px; border-radius: 4px; }
.gbq-ro-q { margin: 0 0 10px; } .gbq-ro-title { font-weight: 600; margin: 0 0 4px; } .gbq-readonly ul { margin: 0; padding-left: 20px; }
.gbq-screen h2 { font-size: 1.2rem; margin: 0 0 12px; }
