@media (min-width: 1200px) {
  .col-lg-12 {
    width: 100%;
    position: static !important;
  }
}

#surveyWrapper {
  position: static;
  padding-top: 40px;
}

#langSwitcher {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
}

/* For Read aloud UI spacing */
.sd-root-modern .sd-container-modern__title
{
  padding-top: 0px !important;
  padding-bottom: 8px !important;
}

/* TOP HORIZONTAL GREEN LINE ON CONTAINER */
#surveyContainer {
  width: 100% !important;
  border-top: 4px solid #28a745 !important;
  box-sizing: border-box;
  margin-top: 10px !important;
}

/* Navigation buttons styling - center with orange text on white backround */
input.sd-btn.sd-navigation__next-btn,
input.sd-btn.sd-navigation__start-btn,
input.sd-btn.sd-btn--action.sd-navigation__complete-btn {
  color: #ef6400 !important;
  background-color: #ffffff !important;
  border: 2px solid #ef6400 !important;
  padding: 12px 24px !important;
  font-size: 22px !important;
  font-weight: bold !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: block !important;
  margin: 20px auto !important;
  min-width: 150px !important;
}

/* Hover state - white text on green background */
input.sd-btn.sd-navigation__next-btn:hover,
input.sd-btn.sd-navigation__start-btn:hover,
input.sd-btn.sd-btn--action.sd-navigation__complete-btn:hover {
  color: #ffffff !important;
  background-color: #4A8D29 !important;
  border-color: #4A8D29 !important;
}

/* Buttons to be centered */
/*Updated 03/2/26 to remove top and button padding */
.sd-action-bar.sd-footer.sd-body__navigation.sd-clearfix {
  margin: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.logo-section {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 20px !important;
  background-color: #ffffff !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 10 !important;
  width: auto !important;
}

.logo-section img {
  height: 90px;
}

.sd-body.sd-body--static {
  padding: 0px !important;
}

.sd-page.sd-body__page {
  margin-top: -50px;
}

.sd-input.sd-input--readonly {
  color: blue !important;
  font-size: 19.5px !important;
  font-weight: 500 !important;

  border: 1px solid #d9d9d9 !important;
  border-radius: 4px;
  background: #fff !important;
  padding: 10px 14px;
  box-sizing: border-box;
}

/* Apply to entire survey root */
.sd-root-modern,
.sd-root-modern *,
.sd-question__title,
.sd-page__title,
.sd-navigation,
.sd-btn,
.sd-item__control-label,
h1, h2, h3 {
  font-family: Jost, "Jost Fallback", sans-serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
}

h1 {
  font-size: 28px !important;
  font-weight: 600 !important;
}

h2 {
  font-size: 24px !important;
  font-weight: 600 !important;
}

html body strong {
  font-weight: bold !important;
}

/* Responsive radio button layout */
/* Force vertical layout on small screens */
@media (max-width: 768px) {
  .sd-selectbase .sd-selectbase__items-container {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .sd-selectbase__item {
    width: 100% !important;
    margin-bottom: 10px !important;
    margin-right: 0 !important;
  }
  
  .sd-item {
    width: 100% !important;
    display: block !important;
  }
  
  /* Ensure radio buttons stack vertically */
  .sd-radiogroup .sd-selectbase__items-container,
  .sd-checkbox .sd-selectbase__items-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .sd-radiogroup__item,
  .sd-checkbox__item {
    width: 100% !important;
    margin-bottom: 8px !important;
  }
  
  /* Fix radio/checkbox label alignment on small screens */
  .sd-selectbase__item,
  .sd-item.sd-radio,
  .sd-item.sd-checkbox {
    /*Issue with Wrapping of Checkboxes fixed on 11/24/2025 - RAM V*/
    /*display: inline-flex !important;*/
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }
}

/* On larger screens, allow horizontal layout */
@media (min-width: 769px) {
  .sd-selectbase .sd-selectbase__items-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px 20px !important;
  }
  
  .sd-selectbase__item {
    flex: 0 0 auto !important;
    margin-right: 20px !important;
    margin-bottom: 10px !important;
  }
}

/* Additional mobile improvements */
@media (max-width: 480px) {

  input.sd-btn.sd-navigation__start-btn {
    width: 92% !important;
    box-sizing: border-box !important;
    font-size: 18px !important;
    font-weight: bold !important;
    white-space: pre-line !important;
  }
  
  .sd-question__title {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
  }
  
  .sd-item__control-label {
    font-size: 16px !important;
    /*padding: 8px 12px !important;*/
    word-wrap: break-word !important;
  }
  
  /* Make sure radio buttons are touch-friendly */
  .sd-visuallyhidden {
    position: absolute !important;
    left: -9999px !important;
  }
  
  .sd-item__decorator {
    min-width: 20px !important;
    min-height: 20px !important;
  }
}

/* LOGO FIX FOR ALL SCREENS */
/* Mobile screens - logo centered */
@media (max-width: 1099px) {
  /* Remove absolute positioning on smaller screens */
  .logo-section {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 15px !important;
    height: auto !important;
  }
  
  /* Smaller logo on tablets and mobile */
  .logo-section img {
    height: 70px !important;
  }
  
  /* Remove negative margin that causes overlap */
  .sd-page.sd-body__page {
    margin-top: 0px !important;
  }
  
  /* Add proper spacing to titles */
  #gshsTitle {
    margin-top: 20px !important;
    padding: 0 15px !important;
  }
  
  #gshsSchoolYear {
    padding: 0 15px !important;
  }
}

/* Large screens - logo positioned left */
@media (min-width: 1100px) {
  .logo-section {
    position: absolute !important;
    height: 130px;
  }
  
  /* Add top padding to first title to clear logo */
  #gshsTitle {
    padding-top: 20px !important;
  }
}

/* Very small mobile screens */
@media (max-width: 480px) {
  .logo-section img {
    height: 60px !important;
  }
  
  #gshsTitle {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  
  #gshsSchoolYear {
    font-size: 16px !important;
  }
}

/* Title spacing */
#gshsTitle {
  margin-bottom: 5px !important;
  margin-top: 20px !important;
}

#gshsSchoolYear {
  margin-top: 0px !important;
  margin-bottom: 5px !important;
}

/* Target the school name h3 that comes after gshsSchoolYear */
#gshsSchoolYear + h3 {
  margin-top: 0px !important;
  margin-bottom: 20px !important;
}

/* Alternative: Target all h3 elements with center alignment and #333 color */
h3[style*="text-align:center"][style*="color:#333"] {
  margin-top: 0px !important;
  margin-bottom: 20px !important;
}

/* Mobile responsive spacing */
@media (max-width: 1099px) {
  #gshsTitle {
    margin-bottom: 3px !important;
    margin-top: 15px !important;
  }
  
  #gshsSchoolYear {
    margin-bottom: 3px !important;
  }
  
  #gshsSchoolYear + h3 {
    margin-bottom: 15px !important;
  }
  
  #surveyContainer {
    margin-top: 8px !important;
  }
}

/* Adjust font sizes on smaller tablets */
@media (max-width: 768px) {
  #gshsTitle {
    font-size: 20px !important;
  }
  
  #gshsSchoolYear {
    font-size: 16px !important;
  }
  
  #gshsSchoolYear + h3 {
    font-size: 14px !important;
  }
}

div#sq_105 {
  display: none;
}

.sd-progress-buttons__button-content {
  border-color: #4a8d29 !important;
  color: #4a8d29 !important;
}

.sd-progress-buttons__connector {
  background-color: #4a8d29 !important;
}

.sd-item--checked .sd-item__decorator {
  background: #4a8d29 !important;
}

/* Make all question titles bold */
.sd-question__title,
.sd-question__title span,
.sd-panel__title {
  font-weight: bold !important;
}

/* Make all choice labels bold (radio buttons, checkboxes, dropdowns) */
.sd-item__control-label,
.sd-selectbase__item-text,
.sd-item__label,
.sd-radiogroup__item-text,
.sd-checkbox__item-text,
.sd-dropdown__item-text {
  font-weight: bold !important;
}

/* Make section headings in HTML elements bold */
.sd-html h1,
.sd-html h2,
.sd-html h3,
.sd-html h4,
.sd-html h5,
.sd-html h6,
.sd-html strong {
  font-weight: bold !important;
}

/* Make dropdown choices bold */
.sd-dropdown__option,
.sd-selectbase__option,
select option {
  font-weight: bold !important;
}

/* Make panel content bold */
.sd-panel__content .sd-question__title {
  font-weight: bold !important;
}

/* Make sure text areas and comment labels are bold */
.sd-comment__title,
.sd-text__title {
  font-weight: bold !important;
}

/* Additional specificity for any missed elements */
.sd-root-modern .sd-question__title,
.sd-root-modern .sd-item__control-label,
.sd-root-modern .sd-selectbase__item-text {
  font-weight: bold !important;
}

/* Make sure HTML content in questions is bold */
.sd-question__content strong,
.sd-html strong {
  font-weight: bold !important;
}

span.sd-item__decorator.sd-radio__decorator {
  border: solid 1px rgba(0, 0, 0, 0.5);
}

span.sd-item__decorator.sd-checkbox__decorator {
  border: solid 1px rgba(0, 0, 0, 0.5);
}

.sd-progress-buttons {
  pointer-events: none;
}

.sv-dropdown_select-wrapper {
  border: 1px solid #ababab;
}

.sd-input {
  box-shadow: 1px solid #ababab !important;
}

/* ============================================ */
/* LANGUAGE SLIDER - COMPLETE RESPONSIVE SOLUTION */
/* ============================================ */

/* Reset and base styles */
#dvLanguageSelection {
  position: static !important;
  text-align: center !important;
  margin: 20px auto !important;
  padding: 0 15px !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100%;
  z-index: 10;
  box-sizing: border-box;
  clear: both;
  display: block;
}

/* Switch container - responsive width */
.switch {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 280px;
  height: 45px;
  margin: 0 auto !important;
  box-sizing: border-box;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider button */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0 !important;
  background-color: #f26300;
  color: #fff;
  transition: .4s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  font-family: Jost, "Jost Fallback", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  border-radius: 34px;
}

.slider .on {
  display: none;
}

.switch input:checked + .slider .on {
  display: inline;
}

.switch input:checked + .slider .off {
  display: none;
}

/* Title spacing - prevent overlap */
#gshsTitle {
  margin: 20px auto 5px auto !important;
  padding: 0 20px !important;
  text-align: center !important;
  width: 100%;
  box-sizing: border-box;
}

#gshsSchoolYear {
  margin: 0 auto 10px auto !important;
  padding: 0 20px !important;
  text-align: center !important;
  width: 100%;
  box-sizing: border-box;
}

/* School name */
#gshsSchoolYear + h3 {
  margin: 0 auto 15px auto !important;
  padding: 0 20px !important;
  text-align: center !important;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================ */
/* RESPONSIVE BREAKPOINTS */
/* ============================================ */

/* Large screens - absolute positioning on the right */
@media (min-width: 1400px) {
  #dvLanguageSelection {
    position: absolute !important;
    top: 50px !important;
    right: 20px !important;
    margin: 0 !important;
    text-align: right !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: none !important;
    z-index: 1000;
  }
  
  .switch {
    margin: 0 !important;
     width: 280px !important;
    max-width: 280px !important;
    display: block !important;
  }
  
  .slider {
    width: 100% !important;
    font-size: 16px !important;
  }
  
  /* Keep titles centered on large screens */
  #gshsTitle {
    padding: 0 20px !important;
    text-align: center !important;
  }
  
  #gshsSchoolYear {
    padding: 0 20px !important;
    text-align: center !important;
  }
}

/* Medium-large desktops (1200-1399px) - CENTERED */
@media (min-width: 1200px) and (max-width: 1399px) {
  #dvLanguageSelection {
    margin: 25px auto 20px auto !important;
  }
  
  .switch {
    max-width: 320px;
  }
  
  .slider {
    font-size: 15px;
  }
}

/* Medium screens (992-1199px) - CENTERED */
@media (min-width: 992px) and (max-width: 1199px) {
  #dvLanguageSelection {
    margin: 20px auto 18px auto !important;
  }
  
  .switch {
    max-width: 300px;
  }
  
  .slider {
    font-size: 15px;
    padding: 0 12px;
  }
  
  #gshsTitle {
    font-size: 26px !important;
  }
  
  #gshsSchoolYear {
    font-size: 22px !important;
  }
}

/* Tablets (768-991px) - CENTERED */
@media (min-width: 768px) and (max-width: 991px) {
  #dvLanguageSelection {
    margin: 18px auto 15px auto !important;
  }
  
  .switch {
    max-width: 280px;
    height: 42px;
  }
  
  .slider {
    font-size: 14px;
    padding: 0 10px;
  }
  
  #gshsTitle {
    font-size: 24px !important;
    padding: 0 15px !important;
  }
  
  #gshsSchoolYear {
    font-size: 20px !important;
    padding: 0 15px !important;
  }
}

/* Small tablets (600-767px) */
@media (min-width: 600px) and (max-width: 767px) {
  #dvLanguageSelection {
    margin: 15px auto !important;
  }
  
  .switch {
    max-width: 260px;
    height: 40px;
  }
  
  .slider {
    font-size: 13px;
    padding: 0 10px;
  }
  
  #gshsTitle {
    font-size: 22px !important;
    padding: 0 15px !important;
  }
  
  #gshsSchoolYear {
    font-size: 18px !important;
    padding: 0 15px !important;
  }
}

/* Mobile (481-599px) */
@media (min-width: 481px) and (max-width: 599px) {
  .switch {
    max-width: 240px;
    height: 38px;
  }
  
  .slider {
    font-size: 12px;
    padding: 0 8px;
  }
  
  #gshsTitle {
    font-size: 20px !important;
    padding: 0 12px !important;
  }
  
  #gshsSchoolYear {
    font-size: 16px !important;
    padding: 0 12px !important;
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .switch {
    max-width: 220px;
    height: 36px;
  }
  
  .slider {
    font-size: 11px;
    padding: 0 6px;
  }
  
  #gshsTitle {
    font-size: 18px !important;
    padding: 0 10px !important;
    line-height: 1.3 !important;
  }
  
  #gshsSchoolYear {
    font-size: 14px !important;
    padding: 0 10px !important;
    line-height: 1.3 !important;
  }
}

/* Very small screens (≤360px) */
@media (max-width: 360px) {
  .switch {
    max-width: 200px;
    height: 34px;
  }
  
  .slider {
    font-size: 10px;
    padding: 0 5px;
  }
  
  #gshsTitle {
    font-size: 16px !important;
  }
  
  #gshsSchoolYear {
    font-size: 13px !important;
  }
}

/* ============================================ */
/* SPECIAL CASES */
/* ============================================ */

/* Always centered in portrait mode (unless very wide) */
@media (orientation: portrait) and (max-width: 1499px) {
  #dvLanguageSelection {
    position: static !important;
    text-align: center !important;
  }
  
  #gshsTitle,
  #gshsSchoolYear {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Short screens - always centered */
@media (max-height: 700px) and (max-width: 1499px) {
  #dvLanguageSelection {
    position: static !important;
    text-align: center !important;
    margin: 15px auto !important;
  }
}

/*Completed message font style */
.sd-body.sd-completedpage, .sd-body.sd-completedpage * {
    font-size: 28px !important;
    font-weight: 600 !important;
}

/* Grade question dropdown arrow fix */
.sd-dropdown_chevron-button{pointer-events:none !important;}

/*Matrix question Allignment fix */
@media (max-width: 768px) {
    .sd-item.sd-radio {
        display: flex !important;
    }
}

/*Grade Question Dropdown Darker */
.sd-dropdown_chevron-button {
    stroke: #555 !important;
}

/* clickable arrow look */
.sv-dropdown_select-wrapper .sd-dropdown_chevron-button {
    background-color: #e0e0e0;
    border-radius: 0 4px 4px 0;
    padding: 4px 8px;
    pointer-events: none;
}

/* hover effect */
.sv-dropdown_select-wrapper:hover .sd-dropdown_chevron-button {
    background-color: #c8c8c8 !important;
    cursor: pointer !important;
}

/* ============================================ */
/* TIMER - RESPONSIVE POSITIONING, Look and Feel */
/* ============================================ */
 
.sd-timer.sd-timer--top {
  border: none !important;
  background: #f26300  !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  z-index: 1001 !important; /* Above other elements */
  position: fixed !important; /* Fixed positioning */
  box-shadow: 0 0 12px rgba(47, 59, 116, 0.55), 0 6px 12px rgba(0,0,0,0.25) !important;
}
 
.sd-timer__text--major {
color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 28px !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.35), 0 0 2px rgba(0,0,0,0.25);
}
 
.sd-timer__text--minor {
  color: #999 !important;
}
 
.sd-timer__progress circle {
  stroke: rgba(47,59,116,0.7) !important;
  stroke-width: 4px !important;
}
.sd-timer__progress{
   stroke: #ffffff !important;
  stroke-width: 5px !important;
}

/*This CSS line will make sure the survey frame is full-width after live timer is shown on the screen */
.sd-body.sd-body--responsive.sd-body--with-timer {
      max-width: initial !important ;
}
/* ============================================ */
/* TIMER - RESPONSIVE POSITIONING, Look and Feel */
/* ============================================ */

/* New CSS to update the Progressbar, buttons etc - 03/02/2026 */

/* Make COMPLETE button solid and attention-grabbing */
input.sd-btn.sd-btn--action.sd-navigation__complete-btn {
  background-color: #ef6400 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2) !important;
  transform: scale(1.05);
}

/* Add subtle pulse */
@keyframes submitPulse {
  0% { box-shadow: 0 0 0 0 rgba(239,100,0,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(239,100,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,100,0,0); }
}

input.sd-btn.sd-btn--action.sd-navigation__complete-btn {
  animation: submitPulse 2.5s infinite;
}

.sd-body__navigation {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

input.sd-btn.sd-btn--action.sd-navigation__complete-btn {
  min-width: 260px !important;
}

/*Make The Progress Footer Label Bold & Noticeable*/
.sd-progress-buttons__page-title {
  font-weight: 800 !important;
  font-size: 19px !important;
  color: #ef6400 !important;
  letter-spacing: 0.5px;
}

/* Add arrow indicator under final step label */
.sd-progress-buttons__page-title::after {
  content: " ↓";
  font-size: 20px;
  font-weight: 900;
  margin-left: 6px;
}

/* ===================================== */
/* FINAL PAGE – CHANGE ONLY CONNECTOR */
/* ===================================== */

/* Make connector before last step orange */
.sd-progress-buttons__list
> li:last-child.sd-progress-buttons__list-element--current
.sd-progress-buttons__connector {
  background-color: #ef6400 !important;
}

/* Last step circle orange (filled) */
.sd-progress-buttons__list
> li:last-child.sd-progress-buttons__list-element--current
.sd-progress-buttons__button-content {
  background-color: #ef6400 !important;
  border-color: #ef6400 !important;
  color: #ffffff !important;
}

/* Make number inside final circle clearly visible */
.sd-progress-buttons__list
> li:last-child.sd-progress-buttons__list-element--current
span {
  color: #ffffff !important;
  font-weight: 700 !important;
  z-index: 2;
  position: relative;
}
/* New CSS to update the Progressbar, buttons etc - 03/02/2026 */

#gadoeFooter {
    text-align: center;
    font-family: Jost, "Jost Fallback", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgb(72, 75, 78);
    padding: 40px 0;
    margin-top: 20px;
}

#gadoeFooter a {
    color: rgb(72, 75, 78);
    text-decoration: none;
}

#gadoeFooter a:hover {
    text-decoration: underline;
}

/* ===================================== */
/* SURVEY HEADER STYLING */
/* Matches old gshsTitle / gshsSchoolYear */
/* ===================================== */

/* Wide screens: take the logo out of flex flow and pin it left so the
   title/description can center across the full header width, with enough
   reserved space on each side that text never sits under the logo */
@media (min-width: 1100px) {
    .sd-root-modern:not(.sd-root-modern--mobile) .sd-title.sd-container-modern__title {
        position: relative !important;
        min-height: 90px !important;
        padding: 24px 24px 8px 24px !important;
    }

    .sd-root-modern:not(.sd-root-modern--mobile) .sd-title.sd-container-modern__title > .sd-logo {
        position: absolute !important;
        left: 24px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }

    .sd-root-modern:not(.sd-root-modern--mobile) .sd-header__text {
        width: 100% !important;
        flex-grow: 0 !important;
        box-sizing: border-box !important;
        padding: 0 210px !important;
    }
}

/* Narrower screens: stack the logo above the title/description instead of
   squeezing it beside the text, which would force heavy wrapping */
@media (max-width: 1099px) {
    .sd-title.sd-container-modern__title {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        padding-top: 0px !important;
    }

    .sd-title.sd-container-modern__title > .sd-logo {
        position: static !important;
        margin: 0 !important;
    }

    .sd-title.sd-container-modern__title > .sd-logo .sd-logo__image {
        margin-top: 0 !important;
    }

    .sd-header__text {
        width: 100% !important;
        flex-grow: 0 !important;
        padding: 0 !important;
    }
}

.sd-header__text {
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
}

/* Survey Title */
.sd-header__text > .sd-title {
    text-align: center !important;
    color: #ef6400 !important;
    font-family: Jost, "Jost Fallback", sans-serif !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

/* Survey Title Text */
.sd-header__text > .sd-title .sv-string-viewer {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* Survey Description */
.sd-header__text > .sd-description {
    text-align: center !important;
    color: #4A8D29 !important;
    font-family: Jost, "Jost Fallback", sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    margin-bottom: 0px !important;
}

/* Survey Description Text */
.sd-header__text > .sd-description .sv-string-viewer {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* District/school line. It is created empty at render and filled once the async school lookup
   returns, so it must hold one line of height while still empty - otherwise the header grows
   mid-load, shifting the Read-aloud toggle and re-triggering the title centering.
   em-based so it tracks whatever font-size the ".sd-root-modern *" rule ends up applying. */
#schoolHeaderLine {
    min-height: 1.4em;
    line-height: 1.4;
}

/* Tablet */
@media (max-width: 768px) {
    .sd-header__text > .sd-title {
        font-size: 28px !important;
    }

    .sd-header__text > .sd-description {
        font-size: 20px !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .sd-header__text > .sd-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        padding: 0 10px !important;
    }

    .sd-header__text > .sd-description {
        font-size: 18px !important;
        line-height: 1.3 !important;
        padding: 0 10px !important;
    }
}

/* saving-survey-overlay */

.saving-survey-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
}

.saving-survey-overlay--visible {
  display: flex;
}

.saving-survey-message {
  max-width: min(90vw, 420px);
  padding: 18px 24px;
  border: 1px solid #4A8D29;
  border-radius: 6px;
  background: #ffffff;
  color: #222222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.saving-survey-spinner {
  width: 24px;
  height: 24px;
  margin: 0 auto 12px auto;
  border: 3px solid #d9e8cf;
  border-top: 3px solid #4A8D29;
  border-radius: 50%;
  animation: survey-spinner-spin 0.8s linear infinite;
}

@keyframes survey-spinner-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.system-unavailable-popup {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(0.5px);
}

/* Upto this css code it is from elementary survey as is */

/* Family survey specific CSS */
/*matrix type question */

.sd-table.sd-table--columnsautowidth .sd-table__cell:not(.sd-table__cell--actions):not(.sd-table__cell--action):not(.sd-table__cell--empty.sd-table__cell--error) {
    width:unset !important;
    max-width: 270px;
}

div#sq_104_ariaDescription {
   font-size: 20px !important;
  font-weight: bold !important;
  color: rgb(22, 22, 22) !important;
} 


/*Completed message font style */
.sd-body.sd-completedpage, .sd-body.sd-completedpage * {
    font-size: 28px !important;
    font-weight: 600 !important;
}

/*Matrix question Allignment fix */
@media (max-width: 768px) {
    .sd-item.sd-radio {
        display: flex !important;
    }
}
/* Family survey specific CSS */

/* ==================================================================
 READ ALOUD - Feature Test  - START
 ================================================================== */
    /* !important on every property: a more specific ambient button rule (".sd-root-modern *"
       style resets) was otherwise winning over this plain class selector for size/shape. */
    .tts-q-btn{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  padding:5px 12px !important;
  border-radius:999px !important;
  border:1px solid #cfcfcf !important;
  background:#fff !important;
  font-size:15px !important;
  font-family: Jost, "Jost Fallback", sans-serif !important;
  color:#000 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
  line-height:1.4 !important;
}

/* Icon (speaker/stop) rendered slightly larger than the label for visibility */
.tts-q-btn span[aria-hidden="true"]{
  font-size:17px !important;
}

/* Label text ("Listen"/"Stop") slightly bold, same Jost font as the rest of the survey */
.tts-q-btn span:not([aria-hidden="true"]){
  font-weight:600 !important;
  font-size:14px !important;
}

.tts-q-btn:hover{
  background:#f4f4f4;
}

/* Stop icon only (aria-pressed="true" = reading/Stop state); Listen icon stays default color */
.tts-q-btn[aria-pressed="true"] span[aria-hidden="true"]{
  color:#d32f2f;
}

.tts-q-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}

/* Pins the intro's own text sizing so it can never change look before/after Listen is clicked.
   Sized to match how the intro rendered under the site-wide ".sd-root-modern *" font-size:20px
   !important reset (elsewhere in this file), instead of the much smaller inline defaults, so
   turning Listen on/off never makes the text jump between two different sizes. */
#introReadableContent{
  font-size:20px !important;
  line-height:1.4 !important;
  font-weight:400 !important;
}
#introReadableContent h4,
#introReadableContent h4 strong{
  font-size:24px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
}
#introReadableContent{
  font-size:20px !important;
  line-height:1.4 !important;
  font-weight:400 !important;
  padding-top:22px;          /* gap below the teal divider */
}

#introReadableContent h4{
  margin:0 0 8px 0 !important;
}
#introReadableContent h5{
  font-size:20px !important;
  font-weight:600 !important;
  line-height:1.3 !important;
}
#introReadableContent p{
  font-size:20px !important;
  font-weight:400 !important;
  line-height:1.4 !important;
}
#introReadableContent p strong{
  font-weight:700 !important;
}

/* Global Read-Aloud ON/OFF control, moved into .sd-logo (JS) to sit under the GaDOE logo instead
   of crowding the survey title/language toggle */
.sd-logo{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
}

#ttsBar{
  display:flex;
  margin:8px 0 18px 0;
}

/* Read-aloud has nothing left to read once the survey is submitted */
body.tts-survey-complete #ttsBar{
  display:none !important;
}

/* Compact pill switch: icon + label + track, styled to sit quietly under the header logo.
   !important needed because ".sd-root-modern *" forces font-size:20px/weight:400 on everything. */
.tts-global-btn,
.tts-global-btn *{
  font-family:"Jost", "Jost Fallback", sans-serif !important;
  font-size:17px !important;
  font-weight:500 !important;
  line-height:1 !important;
}

.tts-global-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px 8px 14px;
  background:#fff;
  border:1.5px solid #9a9a9a;
  border-radius:999px;
  cursor:pointer;
  color:#3a3a3a;
  white-space:nowrap;
  box-shadow:0 1px 4px rgba(0,0,0,0.15);
  transition:border-color .2s, box-shadow .2s;
}

.tts-global-btn:hover{
  border-color:#f26a0a;
  box-shadow:0 1px 6px rgba(0,0,0,0.22);
}

.tts-global-btn:focus-visible{
  outline:2px solid #1aa39a;
  outline-offset:2px;
}

.tts-global-icon{
  width:26px;
  height:26px;
  color:#5a5a5a;
}

.tts-global-waves{
  opacity:.35;
}

/* Track/thumb draw the on-off switch; ::after is the sliding thumb, ::before is the ON/OFF label */
.tts-global-track{
  position:relative;
  width:54px;
  height:22px;
  border-radius:999px;
  background:#9a9a9a;
  transition:background .2s;
}

/* "OFF"/"ON" text sits in whichever side of the track the thumb isn't covering; the actual
   wording is locale-aware, set via data-off-label/data-on-label by applyGlobalReadAloudLabel() */
.tts-global-track::before{
  content: attr(data-off-label);
  position:absolute;
  top:50%;
  right:5px;
  transform:translateY(-50%);
  font-size:9px !important;
  font-weight:800 !important;
  letter-spacing:.3px;
  color:#fff;
}

.tts-global-track::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  transition:transform .2s;
}

.tts-global-btn[aria-checked="true"] .tts-global-icon{
  color:#f26a0a;
}

.tts-global-btn[aria-checked="true"] .tts-global-waves{
  opacity:1;
}

.tts-global-btn[aria-checked="true"] .tts-global-track{
  background:#f26a0a;
}

.tts-global-btn[aria-checked="true"] .tts-global-track::before{
  content: attr(data-on-label);
  right:auto;
  left:6px;
}

.tts-global-btn[aria-checked="true"] .tts-global-track::after{
  transform:translateX(32px);
}

/* Read-Aloud OFF: per-question Listen buttons are hidden (and removed from tab order) on every page.
   visibility (not display) keeps the button's layout space reserved so toggling doesn't reflow/shift
   question rows or the survey container. */
body.tts-global-off .tts-q-btn{
  visibility:hidden;
}

/* ------------------------------------------------------------------
   SENTENCE/LINE HIGHLIGHTING - START
   Paired with the block of the same name in index.js. To revert to plain read-aloud set
   INTRO_SENTENCE_HIGHLIGHT = false there - these rules then simply never match anything -
   or delete both blocks to remove the feature completely.
   ------------------------------------------------------------------ */

/* The sentence wrappers must be typographically invisible. The site-wide ".sd-root-modern *"
   reset near the top of this file forces font-family/font-size/weight on EVERY descendant, so
   an inserted <span> would otherwise drop h5 headings from 600 to 400 weight and h4 > strong
   from 24px to 20px the moment read-aloud wrapped them. The #id + class selector outranks that
   reset, so the text renders exactly as it does with read-aloud switched off. */
#introReadableContent .tts-sentence{
  font:inherit !important;
  color:inherit !important;
  letter-spacing:inherit !important;
  text-transform:inherit !important;
}

/* The sentence currently being spoken. box-shadow (not padding) widens the tint, so moving the
   highlight from sentence to sentence can never reflow the intro text. Kept to a pale wash so
   the green headings and dark body text keep effectively the contrast they have on white. */
#introReadableContent .tts-sentence-active{
  background:#FFF0A8 !important;
  box-shadow:0 0 0 2px #FFF0A8 !important;
  border-radius:3px;
}

/* Question pages: the title element itself is highlighted while it is read (no wrapper spans
   are inserted, so the "font:inherit" guard above isn't needed here). .tts-title-content is a
   flex child of .tts-q-row, so it already shrink-wraps the title text rather than stretching
   across the question panel. Choices are deliberately never highlighted - a tinted choice label
   reads as "this one is selected" to a Grade 3-5 student. */
.tts-title-content.tts-sentence-active{
  background:#FFF0A8 !important;
  box-shadow:0 0 0 2px #FFF0A8 !important;
  border-radius:3px;
}

/* Question description (e.g. "SelectGrade"'s second line): highlighted the same way as the
   title while it's read. Paired with descriptionEl in index.js. */
.sd-question__description.tts-sentence-active{
  background:#FFF0A8 !important;
  box-shadow:0 0 0 2px #FFF0A8 !important;
  border-radius:3px;
}

/* Matrix question rows: the row-text cell is highlighted while its own row is read, same
   treatment as the question title. Paired with matrixRowEls in index.js. */
.sd-table__cell--row-text.tts-sentence-active,
td.tts-sentence-active,
th.tts-sentence-active{
  background:#FFF0A8 !important;
  border-radius:3px;
}

/* Standalone notes (opt-in via class "tts-readable" in json.js). The Listen button sits inline
   at the end of the note's last line, so it is scaled down from the standard question button to
   sit comfortably within the note's smaller text without stretching the box.
   Kept at 28px tall - above the 24x24 CSS px minimum for pointer targets (WCAG 2.5.8) - rather
   than shrinking purely to taste. */
.tts-readable .tts-note-btn{
  margin-left:8px;
  vertical-align:middle;
  padding:2px 9px !important;
  gap:5px !important;
  min-height:28px !important;
  line-height:1.2 !important;
}

.tts-readable .tts-note-btn span[aria-hidden="true"]{
  font-size:14px !important;
}

.tts-readable .tts-note-btn span:not([aria-hidden="true"]){
  font-size:12.5px !important;
}

/* Sentence wrappers inside a note must stay typographically invisible, same reasoning as the
   intro: the site-wide ".sd-root-modern *" reset would otherwise restyle the inserted spans. */
.tts-readable .tts-sentence{
  font:inherit !important;
  color:inherit !important;
  letter-spacing:inherit !important;
  text-transform:inherit !important;
}

/* The note's text is red (#dc3545) on white; the same pale yellow wash keeps that text well
   above the 4.5:1 contrast minimum while matching the highlight used everywhere else. */
.tts-readable .tts-sentence-active{
  background:#FFF0A8 !important;
  box-shadow:0 0 0 2px #FFF0A8 !important;
  border-radius:3px;
}

/* Windows High Contrast / forced-colors mode honours only the system highlight colours */
@media (forced-colors: active){
  #introReadableContent .tts-sentence-active,
  .tts-readable .tts-sentence-active,
  .tts-title-content.tts-sentence-active,
  .sd-question__description.tts-sentence-active,
  .sd-table__cell--row-text.tts-sentence-active,
  td.tts-sentence-active,
  th.tts-sentence-active{
    background:Highlight !important;
    color:HighlightText !important;
    forced-color-adjust:none;
  }
}

/* ------------------------------------------------------------------
   SENTENCE/LINE HIGHLIGHTING - END
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   NAVIGATION BUTTON READ-ALOUD - START
   Paired with the block of the same name in index.js. To revert, set
   NAV_BUTTON_READ_ALOUD = false there - this rule then never matches - or delete both blocks.
   ------------------------------------------------------------------ */

/* Ring shown while a nav button's label is being spoken. outline (not border/padding) is used
   so the ring never changes the button's size or nudges the footer layout.
   Deliberately a dark neutral rather than the feature's orange/yellow: the Begin and Submit
   buttons are themselves orange (#ef6400), so an orange ring vanished into them. The 2px offset
   leaves a light gap between button and ring, keeping it legible on orange and white alike. */
.sd-btn.tts-nav-active{
  outline:3px solid #1a1a1a !important;
  outline-offset:2px !important;
}

@media (forced-colors: active){
  .sd-btn.tts-nav-active{
    outline-color:Highlight !important;
  }
}

/* ------------------------------------------------------------------
   NAVIGATION BUTTON READ-ALOUD - END
   ------------------------------------------------------------------ */

/* ==================================================================
 READ ALOUD - Feature Test  - END
 ================================================================== */