/* survey-style.css */

/* Base page setup */
  
  body {
    padding: 30px;
    background-color: #f9f9f9;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
      
  /* Container and panel layout */
  .container, .panel {
    max-width: 85%;
    margin: 0 auto;
  }
  
  /* Panel heading styles */
  .panel-heading {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
  }

  h3.panel-title {
    font-size: 25px;
  }

  .panel-body {
    padding: 30px;
  }
  
  /* Panel body text */
  .panel-body p, li {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Eligibility Styles */

    .labelhead { margin-top:30px; }
    .toggle-card { border-radius: 5px; margin: 1rem 0; overflow: hidden; }
    .toggle-header { background-color: #337ab7; font-family: sans-serif; color: white; padding: 16px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
    .toggle-header:hover .open { background-color: #0e83ea; }
    .toggle-body { display: none; padding: 20px; border-top: 1px solid #d9d9d9; background-color: #faf4f4; color: #555; }
    .toggle-header.open + .toggle-body { display: block; }
    .toggle-header.open .icon { transform: rotate(45deg); }
    
    span.label {
      font-size: 15px;
  }
  
  /* Button styling */
  .btn-block {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    margin-top: 20px;
    background-color: #337ab7;
    color: white;
    margin-bottom: 5px;
  }

  .btn-block-exp {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    color: white;
    margin-bottom: 5px;
  }

  .btn-block:hover {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    margin-top: 20px;
    background-color: #215e93;
    color: white;
  }

  .btn-group-block .btn {
    flex: 1;
    margin: 0 5px; /* optional: spacing between buttons */
  }

  .btn-group-block {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }

    .btn-wrapper {
    margin-top: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    } 

  /* Table inside panels (Likert scale) */
  .table {
    margin-top: 15px;
    font-size: 15px;
  }

  td {
    text-align: left;
    padding: 20px !important;
  }

/* Likert Scale & Questions Styling */
  .question { 
    margin-bottom: 20px; 
    font-size: 18px;
  }

  .likert-scale label {
    display: block;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }

  .likert-scale input { 
    margin-right: 10px; 
  }

/* Center footer links if applicable */
  .footer {
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-size: 14px;
  }

  .removalForm {
    width: 80%;
    margin: 0 auto;
  }
  
  /* Responsive tweaks */
  @media (max-width: 768px) {
    body {
      padding: 15px;
    }
  
    .btn-block {
      font-size: 15px;
    }
  }

  /* Explicit survey item layout */
.explicit-option-group {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.explicit-option {
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-bottom: none;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s;
}

.explicit-option:last-child {
  border-bottom: 1px solid #ccc;
}

.explicit-option.selected {
  background-color: #337ab7;
  color: white;
}

.explicit-option input[type="radio"] {
  display: none;
}

/* Race IAT Instructions */
.lead { 
  padding: 5px 50px;
  font-size: 20px;
}

p#instructionText {
  margin-top: 20px;
}

img { 
  margin-right: 5px; 
}

.title-txt { 
  font-size: 14px; 
  font-weight: 600; 
  padding: 25px; 
}

.reg-txt { 
  font-size: 14px; 
  font-weight: normal; 
  padding: 10px; 
}

.flex-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  overflow: hidden;
  margin: 0 30px;
}

.flex-row {
  display: flex;
  border-bottom: 1px solid #999999a4; /* darker border */
}

.flex-row:last-child {
  border-bottom: 1px solid #999999a4; /* darker border */
}

.flex-row > div {
  padding: 10px;
  flex: 1;
}

.flex-row > div:first-child {
  flex: 1;
  font-weight: bold;
}

.row-borders {
  border-left: 1px solid #999999a4; /* darker border */
  border-right: 1px solid #999999a4; /* darker border */
  margin-top: -15px;
}

.row-border {
  border-right: 1px solid #999999a4; /* darker border */
  margin-top: -15px;
}

.flex-row > div:nth-child(2) {
  flex: 3;
}

.flex-container .header {
  background-color: #eee;
  font-weight: bold;
  font-size: 16px;
}


/* Race IAT */
.centered-text { text-align: center; font-size: 1.4em; padding: 20px; }

  #stimulus {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px; /* or whatever height fits your layout */
    margin-top: 80px;   /* push it further down from the labels */
  }

  .stim-word {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-top: 30px;
  }  

  .error-feedback { 
    color: red; 
    font-size: 2em; 
    text-align: center; 
    display: none; 
  }
  
  #start-btn, #next-btn { 
    margin-top: 20px; 
  }

    .container, .panel-iat {
      max-width: 65%;
      margin: 0 auto;
      height:auto;
    }
 
    .stim-text {
      font-size: 32px;
      text-align: center;
      display: inline-block;
      margin: 75px 0 0 0;
    }  

  #instructionsScreen, #iatScreen {
    position: relative;
    min-height: 200px;
  }
  

  h4#instructionTitle {
    text-align: center;
    text-decoration: underline;
    margin-top: 90px;
    font-size: 20px;
}

.iat-label {
  position: absolute;
  font-size: 1.2em;
  font-weight: bold;
  z-index: 10;
  text-align: center;
}

b.grn-corners {
  font-size: 24px;
  color: green;
  font-weight: bold;
}

b.blue-corners {
  font-size: 24px;
  color: blue;
  font-weight: bold;
}

small.sml-txt {
  font-size: 12px;
  font-weight: normal;
}

.top-left {
  top: 10px;
  left: 10px;
}

.top-right {
  top: 10px;
  right: 10px;
}

.jumbotron p {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: normal;
}

.jumbotron span {
  font-size: 16px;
  font-weight: 600;
}

/* Feedback Page Questions */
#feedbackQuestions .radio {
  margin-bottom: 8px;
}

#feedbackQuestions, label {
  display: inline;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 16px;
}

.btn-group, .btn-group-vertical {
    margin-top: 10px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}

.btn-group-vertical input[type="radio"] {
  display: none;
}

.btn-group-vertical label {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 15px;
  margin-bottom: 8px;
  cursor: pointer;
  display: block;
  transition: all 0.3s ease;
}

/* Selected (checked) option */
.btn-group-vertical label:has(input[type="radio"]:checked),
.btn-group-vertical label.active {
  background-color: #337ab7;
  color: white;
  border-color: #2e6da4;
}

/* Hover state */
.btn-group-vertical label:hover {
  background-color: #337ab7;
  color: white;
  border-color: #2e6da4;
}