/* h305_LS_Survey_Layout.css */
/* Layout reset for LimeSurvey 5 question containers */

.question-container {
  margin: 0 !important;
  /* padding: 0 !important; */  /* Keep if needed later */
  border: none !important;
  /* height: auto !important; */
  /* min-height: 0 !important; */
  /* overflow: hidden !important; */
}

/* === Layout override: side-by-side question/answer format === */
@media screen and (min-width: 768px) {
  .question-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ccc; /* visual aid for testing */
  }

  .question-container .question-title-container {
    flex: 0 0 35%;
    max-width: 35%;
    padding-right: 1rem;
  }

  .question-container .answer-container {
    flex: 1 1 65%;
    max-width: 65%;
  }

  /* Prevent long question text from crowding */
  .question-title-container .question-text {
    font-weight: bold;
  }

  /* Adjust labels or inputs inside answers */
  .answer-container input,
  .answer-container label {
    width: 100%;
  }
}

/* === Typography and spacing improvements for side-by-side layout === */

/* Question number (e.g., "1") */
.question-number {
  font-size: 1rem;
  font-weight: bold;
  color: #555;
  margin-right: 0.5rem;
}

/* Main question text */
.question-title-container .question-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}

/* Help text below the question — force stack */
.question-title-container {
  display: block !important;
}

.question-help-container {
  display: block !important;
  width: 100%;
  margin-top: 0.25rem;
  margin-left: 1.5rem; /* align with question text */
}

.question-help-container .ls-questionhelp {
  font-size: 0.95rem;
  color: #666;
}

/* Validation message area */
.question-valid-container {
  font-size: 0.9rem;
  color: #c00;
  margin-top: 0.25rem;
}

/* Answer input area */
.answer-container {
  font-size: 1rem;
}

/* Input boxes (text, number, etc.) */
.answer-container input[type="text"],
.answer-container input[type="email"],
.answer-container input[type="number"],
.answer-container input[type="tel"] {
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

/* Radio and checkbox label text */
.answer-container label.radio-label,
.answer-container label.checkbox-label {
  font-size: 1rem;
  font-weight: normal;
  margin-left: 0.5rem;
}

/* Suffix/prefix spans (if used) */
.ls-input-group-extra.prefix-text,
.ls-input-group-extra.suffix-text {
  font-size: 0.95rem;
  color: #888;
}

/* Optional: tighten up space between stacked questions on mobile */
@media screen and (max-width: 767px) {
  .question-container {
    padding: 0.5rem 0;
  }

  .question-title-container .question-text {
    font-size: 1rem;
  }

  .answer-container {
    font-size: 1rem;
  }
}

.ls-input-group input[type="text"],
.ls-input-group input[type="number"],
.ls-input-group input[type="email"] {
  text-align: left !important;
}

/* === DEBUG STYLES: IDENTIFY KEY CONTAINERS === */

/* Top-level question container */
/* .question-container {
  outline: 2px dashed red;
  background-color: rgba(255, 0, 0, 0.05); /* light red */
}*/

/* Title container (question number + text + help) */
/* .question-title-container {
  outline: 5px dashed orange;
  background-color: rgba(255, 165, 0, 0.08); /* light orange */
} */

/* Question number (e.g., "1") */
/* .question-number {
  outline: 1px dashed brown;
  background-color: rgba(165, 42, 42, 0.1); /* light brown */
} */

/* Main question text */
/* .question-title-container .question-text {
  outline: 5px dashed green;
  background-color: rgba(0, 128, 0, 0.08); /* light green */
} */

/* Help container block (below question text) */
/* .question-help-container {
  outline: 5px dashed teal;
  background-color: rgba(0, 128, 128, 0.08); /* light teal */
} */

/* Help text content itself */
/* .question-help-container .ls-questionhelp {
  outline: 1px dashed darkcyan;
  background-color: rgba(0, 139, 139, 0.06);
} */

/* Validation container */
/* .question-valid-container {
  outline: 2px dashed maroon;
  background-color: rgba(128, 0, 0, 0.08);
} */

/* Answer area container */
/* .answer-container {
  outline: 2px dashed blue;
  background-color: rgba(0, 0, 255, 0.04); /* light blue */
} */

/* Input blocks inside answer area */
/* .answer-container input,
.answer-container label {
  outline: 1px dashed navy;
  background-color: rgba(0, 0, 128, 0.05);
} */

/* Suffix/prefix text */
/* .ls-input-group-extra.prefix-text,
.ls-input-group-extra.suffix-text {
  outline: 1px dashed gray;
  background-color: rgba(128, 128, 128, 0.05);
} */

/*  === DEBUG MARKERS === *
.ls-input-group {
  border: 2px dashed red !important;
  background-color: #fff5f5 !important;
}

.ls-input-group input {
  border: 2px solid blue !important;
  background-color: #f0f8ff !important;
  color: black !important;
  text-align: left !important;
}

.ls-input-group label {
  background-color: yellow !important;
  color: black !important;
}
 */
