body {
    padding: 5em;
    height: 100vh;
}

.datadonor-footer {
  display: flex;
  height: 6rem;
  flex-direction: row;
  justify-content: center;
  column-gap: 5rem;
  padding: 1.5rem;
  background-color: #f2f7f6;
  margin-top: 2rem;
}

.datadonor-footer > a > img {
  object-fit: contain;
  mix-blend-mode: luminosity;
}

.footer-img {
  height: 4rem;
}

.dsimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.simg {
  object-fit: contain;
  max-width: 180px;
}

.radio+.radio {
     margin-left: 0.0em;
}

.reflow {
  display: flex;
  flex-direction: row;
}

#modal-image-containers {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}


#landing {
  color:black;
  background-color: #F3F7F6;
}
.message-header{
  color:white;
  background-color: #19AA87;
}




.survey-question {
  font-weight: 600;
  font-size: 1.25rem; /* ~20px */
  margin-bottom: 0.5em;
  color: #222;
}

.survey-question-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: -1em;
  margin-bottom: 0.75em;
  font-style: italic;
}

.survey-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #363636;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.5rem;
}

.survey-question-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  /* overflow-wrap: break-word;
  word-wrap: break-word; */
}

.survey-question-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.survey-options {
  display: block;
  flex-wrap: wrap;
}

.survey-option {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  white-space: normal;
  margin-bottom: 0.5rem;
}

.survey-option input[type="radio"] {
  margin-right: 0.5em;
}

.survey-option input[type="checkbox"] {
  margin-top: 0.2rem; /* aligns checkbox vertically with first line of text */
}

.section-header {
  margin-bottom: 2rem;
}

.section-name {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 0.5rem;
}

.section-subtext {
  font-size: 1.1rem;
  color: #555;
}

.hidden {
  display: none;
}

/* section 1a */


.likert-scale-labels {
  display: flex;
  justify-content: space-between;
  color: #7a7a7a; /* Approx. Bulma's has-text-grey */
  font-size: 0.9rem;
  margin-bottom: 0rem;
  margin-top: -0.3rem;
}

.likert-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.likert-label {
  flex: 3;
  font-weight: 500;
  padding-right: 1rem;
  font-size: 1rem;
}

.likert-scale {
  flex: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.likert-note {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}


/* Responsive stacking */
@media (max-width: 1300px) {
  .likert-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .likert-label,
  .likert-scale,
  .likert-scale-labels {
    width: 100%;
  }

  .likert-scale-labels {
    justify-content: space-between;
  }
}


/* part 2 */


.condition-container {
  margin-top: 2rem;
  /* padding: 1.5rem 2rem; */
  /* background-color: #f5f8fa;  */
  border-radius: 6px;
  /* max-width: 900px; */
}

.condition-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 1rem;
}

.condition-subtext {
  font-size: 1.05rem;
  color: #555;
  /* max-width: 700px; */
}

.info-block {
  /* padding: 1rem 1.5rem; */
  margin-bottom: 2rem;
}


.info-intro {
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.progressive-item {
    max-width: 800px;
    margin-left: 1rem;
    margin-top: 2rem;
}

.item-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 0.5rem;
}


.attention-questions{
    font-weight: 500;
    font-size: 1rem;
    /* background-color: #f9f9f9; */
    border-radius: 6px;
    padding: 0rem 1rem;
    /* border-left: 3px solid #00d1b2 */
}



.next-info-button {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 1.5rem;
}

.prev-info-button {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    background-color: #7a7a7a;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 1.5rem;
}

.progressive-item {
    transition: background-color 0.5s ease, border-left 0.5s ease;
}

.progressive-item.current-item {
    /* background: linear-gradient(135deg, #fffbea 0%, #fef3c7 100%); */
    border-left: 4px solid hsl(171, 100%, 41%);
    position: relative;
}

.characteristics-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.characteristic-badge {
  background-color: #eff6ff;
  border: 1px solid hsl(0, 0%, 48%);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;

  display: flex;
  align-items: center;
  gap: 0.25rem;

  cursor: default;
}

.characteristic-badge img {
  width: 20px;
  height: 20px;
}

.characteristic-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  color: 	hsl(0, 0%, 29%);
}


/* .progressive-item.current-item::before {
    content: "📌 Current";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #eff6ff; 
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af
} */

/* Conversation container */
.conversation {
  max-width: 800px;
  margin: 1rem;
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 8px;
}

/* Message column width */
.message-column {
  max-width: 70%;
}

/* User message bubble */
.user-bubble {
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* AI message bubble */
.ai-bubble {
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.conversation .media-content {
    margin: 1rem 0;
}

.conversation .media {
    margin: 0.25rem 0;
    border: none;
}

.example-image-wrapper {
  max-width: 600px;
}

.example-image {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* part 3 */

.chatbox {
  height: 60vh;              /* Takes up 80% of the screen height */
  max-height: 80vh;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

.system-message {
    background-color: #f5f5f5;
    border-radius: 999px;
    text-align: center;
    font-weight: 500;
}


.chat-input-container {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.chat-input-container input {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.chat-input-container button {
  background: #19aa87;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.chat-input-container button:hover {
  background: #169d7a;
}

/* typing dots effect */
.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% { opacity: .2; transform: translateY(0px); }
    50% { opacity: 1; transform: translateY(-3px); }
    100% { opacity: .2; transform: translateY(0px); }
}

.user-options-container {
  max-width: 80%;
  margin: 0 auto;
}

.user-option-btn {
  display: block;
  width: 100%;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-option-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-option-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.survey-divider {
    height: 1px;
    background-color: #eee; /* very light gray */
    /* margin-bottom: 1rem; */
    margin: 1rem 0;
}


.main-form {
  margin-top: 1rem;
}

/* for ineligible page */
.dash-list li::before {
  content: "- ";
  margin-right: 0.5em;
}

/* Reflection timer disabled state */
.reflection-disabled {
  opacity: 0.5;
  pointer-events: none;
}

button:disabled {
  opacity: 0.5;
}
