.statementPage,
.questionnaire {
  max-width: 980px;
  margin: 0 auto;
  color: #123d74;
}

.statementHero {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dbe3ef;
}

.statementHero img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.statementHero h1 {
  margin: 0;
  color: #7c2d83;
  font-size: 40px;
  line-height: 1.15;
}

.statementHero p {
  margin: 0;
  color: #334155;
  font-size: 18px;
  font-weight: 800;
}

#assessmentReadyPage .statementHero p {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
  max-width: 860px;
}

#assessmentReadyPage .statementHero img {
  width: 234px;
  height: 234px;
  max-width: 100%;
  object-fit: contain;
}

.sectionIntro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  color: #123d74;
  justify-items: center;
  text-align: center;
}

.sectionLabel {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #7c2d83;
}

.sectionTitle {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
  color: #123d74;
}

.sectionDescription {
  max-width: 760px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
  color: #334155;
}

.sectionImageWrap {
  max-width: 500px;
  border: 4px solid #7c2d83;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 12px 28px rgba(18, 61, 116, 0.14);
}

.sectionImageWrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.startBtn {
  border: none;
  background: #123d74;
  color: white;
  padding: 14px 34px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(18, 61, 116, 0.22);
}

.startBtn:hover {
  background: #1d4f8f;
}

.startBtn:focus {
  outline: 3px solid rgba(124, 45, 131, 0.35);
  outline-offset: 3px;
}

.sectionIntroActions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.questionHeader {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 18px;
  row-gap: 0;
  margin-bottom: 0;
}

.questionNumber {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  line-height: 1.05;
  color: #7c2d83;
}

.questionProgress {
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
}

.questionSectionThumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #c7d2fe;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: start;
}

.questionText {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  margin: -34px 0 10px 106px;
  color: #123d74;
}

.choiceHeader,
.choiceRow {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 56px;
  gap: 18px;
  align-items: center;
}

.choiceHeader {
  padding-bottom: 8px;
  color: #7c2d83;
  font-weight: 800;
  font-size: 18px;
}

.choiceRow {
  border-top: 1px solid #e2e8f0;
  padding: 9px 0;
  cursor: pointer;
}

.choiceRow:hover {
  background: #f8fafc;
}

.choiceRowSelected .choiceOption,
.choiceRowSelected .choiceText,
.choiceTextSelected {
  font-weight: 900;
  color: #123d74;
}

.choiceOption {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: #123d74;
}

.choiceText {
  font-size: 20px;
  font-weight: 700;
  color: #334155;
}

.choiceRadio {
  width: 24px;
  height: 24px;
  justify-self: center;
  accent-color: #7c2d83;
  cursor: pointer;
}

.commentRow,
.commentCounterRow {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.commentRow {
  margin: 26px 0 14px;
}

.commentCounterRow {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: -62px 0 18px; /* pulls 0/50 beside input, but keeps space below */
  min-height: 48px; /* added: keeps button spacing same even when no text */
  pointer-events: none;
}

.commentRow label {
  font-size: 22px;
  font-weight: 800;
  color: #123d74;
}

.commentCounterWrap {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px; /* added: reserves same height as clear button */
  pointer-events: none;
}

.commentClearBtn {
  pointer-events: auto; /* added: only the clear button remains clickable */
}

.commentClearBtn {
  border: 2px solid #cbd5e1;
  background: white;
  color: #64748b;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
}

.commentClearBtn:hover {
  border-color: #7c2d83;
  color: #7c2d83;
}

.commentCounter {
  text-align: right;
  white-space: nowrap; /* added */
}

#questionComment {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 18px;
  color: #123d74;
}

#questionComment:focus {
  outline: 3px solid rgba(124, 45, 131, 0.24);
  border-color: #7c2d83;
}

.answerProgress {
  display: grid;
  gap: 2px; /* changed from 10px */
  margin: -2px 0 0; /* changed from 12px 0 0 */
}

.answerProgressText {
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

.answerProgressTrack {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.answerProgressFill {
  height: 100%;
  background: linear-gradient(90deg, #7c2d83 0%, #4c51bf 100%);
  border-radius: 999px;
}

.questionActions {
  display: grid; /* changed from flex */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); /* added */
  align-items: start; /* changed */
  gap: 14px;
  margin-top: 6px;
  width: 100%; /* added */
}

.questionActions > .navBtn:first-child {
  grid-column: 1; /* left arrow */
  justify-self: start; /* push to far left */
}

.questionCenterActions {
  grid-column: 2; /* middle buttons */
  justify-self: center;
}

.questionActions > .navBtn:last-child {
  grid-column: 3; /* right arrow */
  justify-self: end; /* push to far right */
}

.navBtn {
  align-self: flex-start; /* keeps left/right arrows aligned with Section/List/Save & Quit */
}

.navBtn.isBusy {
  opacity: 0.65;
  position: relative;
}

.navBtn.isBusy::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  animation: navBtnSpin 0.9s linear infinite;
}

@keyframes navBtnSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.questionCenterActions {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.questionButtonRow {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.sectionBtn,
.homeBtn,
.listBtn {
  border: 2px solid #123d74;
  background: white;
  color: #123d74;
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.sectionBtn:hover,
.homeBtn:hover,
.listBtn:hover {
  background: #f1f5f9;
}

.homeBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.questionModal {
  width: min(680px, 100%);
  max-height: min(680px, 88vh);
  overflow: auto;
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 22px;
}

.questionModal.reportModalShell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(88vh, 760px);
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.reportModalShell .modalHeader {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.modalHeader h2 {
  margin: 0;
  color: #123d74;
  font-size: 24px;
}

.questionList {
  display: grid;
  gap: 10px;
}

.questionListBtn {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #123d74;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.questionListBtn:hover,
.questionListBtn:focus {
  background: #eef2ff;
  border-color: #7c2d83;
  outline: none;
}

.questionListBtn__text {
  flex: 1 1 auto;
  min-width: 0;
}

.questionListBtn__statusDot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  flex: 0 0 18px;
  background: #f2b705;
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.14);
}

.questionListEmpty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  color: #64748b;
  font-weight: 700;
  text-align: center;
  background: #f8fafc;
}

.reportModalBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.reportModalBody .reportDetailCard:first-child {
  margin-top: 0;
}

.reportCollapseAllBtn {
  font-size: 20px;
}

.reportDetailCard {
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.reportSectionDetails {
  margin: 0 0 10px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
}

.reportSectionDetails summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  background: #eef4ff;
  font-weight: 900;
  color: #123d74;
  font-size: 18px;
  line-height: 1.35;
  width: 100%;
  list-style: none;
}

.reportSectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  border: 0;
  width: 100%;
  padding: 12px 14px;
  background: #eef4ff;
  font-weight: 900;
  color: #123d74;
  font-size: 18px;
  line-height: 1.35;
  text-align: left;
  appearance: none;
  list-style: none;
  border-radius: 12px 12px 0 0;
}

.reportSectionHeader:hover,
.reportSectionHeader:focus {
  background: #e4ecff;
  outline: none;
}

.reportSectionDetails summary::-webkit-details-marker {
  display: none;
}

.reportSectionDetails > summary::-webkit-details-marker {
  display: none;
}

.reportSectionSummaryLeft {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  color: inherit;
}

.reportSectionSummaryRight {
  flex: 0 0 auto;
  margin-left: auto;
  color: #c08f00;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
  display: block;
}

.reportSectionBody {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
}

.reportSectionBody[hidden] {
  display: none;
}

.reportQuestionCard {
  background: #f8fafc;
  font-size: 19px;
  line-height: 1.5;
}

.reportQuestionCard strong {
  font-size: 20px;
  line-height: 1.45;
}

.pdaClientHeaderBtn {
  padding: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 17px;
  font-weight: 800;
  color: #123d74;
  cursor: pointer;
  appearance: none;
}

.pdaClientHeaderText {
  color: #123d74;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.pdaClientHeaderBtn:hover,
.pdaClientHeaderBtn:focus,
.pdaClientHeaderBtn:active {
  background: transparent;
  box-shadow: none;
  border: 0;
  outline: none;
  color: #7c2d83;
}

.reportQaViewPage {
  padding-top: 0;
}

.reportQaViewPanel {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 61, 116, 0.08);
  overflow: visible;
}

.reportQaViewHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 22px 28px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.reportQaViewHeader h1 {
  margin: 0;
  color: #7c2d83;
  font-size: 30px;
  line-height: 1.1;
}

.reportQaViewMeta {
  flex: 0 0 auto;
  padding: 10px 28px 0;
  color: #334155;
  font-weight: 800;
}

.reportQaViewBody {
  flex: 0 0 auto;
  padding: 18px 28px 24px;
  display: grid;
  gap: 12px;
  overflow: visible;
}

.reportQaViewBody .questionListEmpty,
.reportQaViewBody .adminMessage {
  margin: 0;
}

.modalHeaderActions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.questionListFilterBtn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 2px solid #123d74;
  background: #fff;
  color: #123d74;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(18, 61, 116, 0.08);
}

.questionListFilterBtn svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.questionListFilterBtn:hover,
.questionListFilterBtn:focus {
  background: #eef2ff;
  border-color: #7c2d83;
  color: #7c2d83;
  outline: none;
}

.questionListFilterBtn.active {
  background: linear-gradient(180deg, #8d36a1 0%, #6f2780 100%);
  border-color: #6f2780;
  color: #fff;
  box-shadow: 0 14px 28px rgba(124, 45, 131, 0.34);
}

.questionListFilterBtn__badge {
  position: absolute;
  right: -6px;
  top: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f2b705;
  color: #123d74;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(242, 183, 5, 0.3);
}

.questionStatus {
  min-height: 22px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.reviewIntro,
.reviewRemain {
  color: #334155;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.reviewModal .reviewIntro {
  margin-left: auto;
  margin-right: auto;
  max-width: 92%;
}

.reviewActions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.reviewStatus {
  text-align: center;
  color: #334155;
  font-weight: 900;
  margin: 8px 0 2px;
}

.reviewModal .modalHeader {
  position: relative;
  justify-content: center;
}

.reviewModal .modalHeader h2 {
  text-align: center;
  width: 100%;
}

.reviewModal .modalCloseBtn {
  position: absolute;
  right: 0;
  top: 0;
}

.reviewModal .questionListBtn.unanswered {
  border-color: #dc2626;
  background: #fff7f7;
}

@media (max-width: 768px) {
  .sectionIntro {
    grid-template-columns: minmax(0, 1fr);
  }

  .sectionLabel {
    font-size: 21px;
  }

  .sectionTitle {
    font-size: 32px;
  }

  .sectionDescription {
    font-size: 21px;
  }

  .startBtn {
    width: 100%;
  }

  .sectionIntroActions {
    flex-direction: column;
  }

  .questionHeader {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .questionText {
    margin-left: 0;
    font-size: 24px;
  }

  .choiceHeader,
  .choiceRow {
    grid-template-columns: 70px minmax(0, 1fr) 42px;
    gap: 10px;
  }

  .choiceOption {
    font-size: 20px;
  }

  .choiceText {
    font-size: 17px;
  }

  .commentRow {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .commentCounterRow {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .answerProgress {
    margin-top: 12px;
    margin-left: 0;
  }

  .questionActions {
    gap: 8px;
  }

  .questionCenterActions {
    min-width: 0;
    width: 100%;
  }

  .sectionBtn,
  .homeBtn,
  .listBtn {
    padding: 10px 18px;
    font-size: 16px;
  }

  .questionListFilterBtn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .questionListFilterBtn svg {
    width: 24px;
    height: 24px;
  }

  .questionSectionThumb {
    display: none;
  }

  .questionModal.reportModalShell {
    max-height: 88vh;
  }

  .reportQaViewBody {
    padding: 16px 18px 22px;
  }

  .reportSectionHeader {
    font-size: 16px;
    padding: 10px 12px;
  }

  .reportQuestionCard {
    font-size: 16px;
  }

  .reportQuestionCard strong {
    font-size: 17px;
  }
}
