@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;
}

/* 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 background */
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 */
.sd-action-bar.sd-footer.sd-body__navigation.sd-clearfix {
  margin: auto;
}

.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;
}

/* 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) {
  .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;
}

.ms-rtestate-field TABLE, .ms-rtestate-write TABLE {
  border-collapse: initial !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: 330px;
  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 */
/* ============================================ */

/* Extra large screens - absolute positioning on the right (only for very wide screens) */
@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: 330px !important;
    max-width: 330px !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;
  }
}

/* Large desktops (1200-1599px) - 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;
  }
}
/*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;
}


/*Completed message font style */
.sd-body.sd-completedpage, .sd-body.sd-completedpage * {
    font-size: 28px !important;
    font-weight: 600 !important;
}