@font-face {
  font-family: "Poppins-Regular";
  src: url(/assets/fonts/Poppins-Regular.ttf);
}

@font-face {
  font-family: "Poppins-SemiBold";
  src: url(/assets/fonts/Poppins-SemiBold.ttf);
}

.asthmaScreening-questionnaire h1,
.asthmaScreening-questionnaire h2,
.asthmaScreening-questionnaire h3,
.asthmaScreening-questionnaire h4,
.asthmaScreening-questionnaire h5,
.asthmaScreening-questionnaire h6,
.asthmaScreening-questionnaire p,
.asthmaScreening-questionnaire ul,
.asthmaScreening-questionnaire ol,
.asthmaScreening-questionnaire li,
.asthmaScreening-questionnaire a,
.asthmaScreening-questionnaire input {
  font-family: "Poppins-Regular";
}

.asthmaScreening-questionnaire input::placeholder {
  color: #282829 !important;
  opacity: 1 !important;
}

.asthmaScreening-questionnaire h1,
.asthmaScreening-questionnaire h2,
.asthmaScreening-questionnaire h3,
.asthmaScreening-questionnaire h4,
.asthmaScreening-questionnaire h5,
.asthmaScreening-questionnaire h6 {
  font-weight: 600 !important;
}

.asthmaScreening-questionnaire h1 strong,
.asthmaScreening-questionnaire h2 strong,
.asthmaScreening-questionnaire h3 strong,
.asthmaScreening-questionnaire h4 strong,
.asthmaScreening-questionnaire h5 strong,
.asthmaScreening-questionnaire h6 strong {
  font-family: "Poppins-SemiBold";
}

.asthmaScreening-questionnaire h2 {
  margin-bottom: 25px;
}

.asthmaScreening-questionnaire p {
  line-height: 1.1;
}

.small-text {
  font-size: 12px;
}

.asthmaScreening-questionnaire input,
.asthmaScreening-questionnaire select {
  text-align: center;
  line-height: 1.1;
}

.object-fit {
  object-fit: contain;
}

.t-12 {
  font-size: 12px;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.w-100 {
  width: 100%;
}

.w-50 {
  width: 50%;
}

.w-sm-100 {
  width: 100%;
}

.w-sm-70 {
  width: 70%;
}

.w-sm-50 {
  width: 50%;
}

.w-sm-30 {
  width: 30%;
}

.mt-sm-15 {
  margin-top: 15px;
}

.flex-sm-col {
  flex-direction: column;
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

#voucherEmail {
  width: 100%;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.slide-in-right {
  animation: slideInRight 0.5s forwards;
}
.slide-out-left {
  animation: slideOutLeft 0.5s forwards;
}
.slide-in-left {
  animation: slideInLeft 0.5s forwards;
}
.slide-out-right {
  animation: slideOutRight 0.5s forwards;
}

.asthmaScreening-container {
  background-color: #f5f9fd;
  padding: 40px 100px 50px;
}

.asthmaScreening-slider {
  position: relative;
  overflow: hidden;
}

/* Height follows visible slide content; JS animates height when changing slides */
.asthmaScreening-questionnaire .asthmaScreening-slider {
  height: fit-content;
  transition: height 0.4s ease;
}

/* Sections in flow so slider height: fit-content works; only visible one takes space */
.asthmaScreening-slider > .asthmaScreening-starting,
.asthmaScreening-slider > .asthmaScreening-section-container,
.asthmaScreening-slider > .asthmaScreening-quiz-end {
  width: 100%;
  box-sizing: border-box;
}

/* .asthmaScreening-slider > .asthmaScreening-starting {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
} */

/* Asthma Screening specific styles */
.asthmaScreening-slider {
  position: relative;
  overflow: hidden;
}

.RC-tool-nav {
  display: flex;
  justify-content: space-between;
}

.m-0 {
  margin: 0;
}

.my-25 {
  margin-top: 25px;
  margin-bottom: 25px;
}

.mt-25 {
  margin-top: 25px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-35 {
  margin-top: 35px;
}

.mt-50 {
  margin-top: 50px;
}

.mt-70 {
  margin-top: 70px;
}

.mt-75 {
  margin-top: 75px;
}

.mr-20 {
  margin-right: 20px;
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-25 {
  margin-bottom: 25px;
}

.mb-45 {
  margin-bottom: 45px;
}

.ml-15 {
  margin-left: 15px;
}

.p-10 {
  padding: 10px;
}

.text-center {
  text-align: center;
}

.asthmaScreening-container .button {
  padding: 5px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid;
  transition: 0.3s ease-in;
  max-width: 100%;
  /* width: auto; */
  box-sizing: border-box;
  overflow-wrap: break-word;
  white-space: normal;
}

.start-button, .next-button, .prev-button, .finish-button, .reset-button {
  padding: 15px 50px !important;
  border: 2px solid !important;
}

.button-right {
  float: right;
}

.blue-button {
  background-color: #29809B;
  color: #ffffff !important;
  border-color: #29809B;
}
.blue-button:hover {
  background-color: #ffffff !important;
  color: #29809B !important;
}

.blue-button-outline {
  background-color: #ffffff;
  color: #29809B !important;
  border-color: #29809B;
}
.blue-button-outline:hover {
  background-color: #29809B !important;
  color: #ffffff !important;
}

.white-button {
  background-color: #ffffff;
  color: #29809B !important;
  border: 1px solid #ffffff;
}
.white-button:hover {
  background-color: #e1e1e1 !important;
  color: #29809B !important;
}
.white-button:focus {
  background-color: #e1e1e1 !important;
  color: #29809B !important;
}

.red-button {
  background-color: #f53f2a;
  color: #ffffff !important;
  border-color: #f53f2a;
}

.grey-button {
  background-color: #ffffff;
  color: #7a7a7a !important;
  border-color: #7a7a7a;
}
.grey-button:hover {
  background-color: #7a7a7a !important;
  color: #ffffff !important;
}

.asthmaScreening-a.grey-button.selected {
  color: #ffffff !important;
}

.gold-button {
  background-color: #fcb01a;
  color: #ffffff !important;
  border-color: #fcb01a;
}
.gold-button:hover {
  background-color: #ffffff !important;
  color: #fcb01a !important;
}

.button-square {
  border-radius: 5px !important;
  padding: 7px 35px !important;
  font-weight: 600;
  transition: 0.3s ease-in;
  line-height: 1.1;
}

a.blue-link {
  color: #29809B;
}

.text-red,
a.red-link,
.w-note {
  /* color: #f53f2a; */
  color: #29809B;
}

a.gold-link {
  color: #fcb01a;
}

/* a.button.selected {
  background-color: #fcb01a;
} */

/* .asthmaScreening-questionnaire a.button.selected {
  background-color: #29809B;
} */

.text-teal {
  color: #29809B !important;
}

.text-seagreen {
  color: #0daca2 !important;
}

.text-grey {
  color: #848484;
}

.text-gold {
  color: #fcb01a;
}

.text-orange {
  color: #f37100;
}

.text-white {
  color: #ffffff;
}

.text-blue {
  color: #004d80;
}

.asthmaScreening-question-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.asthmaScreening-question {
  width: 75%;
  margin-bottom: 15px;
  font-size: 1.2rem;
  padding-right: 20px;
}

.asthmaScreening-answers-container {
  width: 25%;
  display: flex;
  justify-content: end;
  align-items: center;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.asthmaScreening-a-left, .asthmaScreening-a-right {
  width: 100%;
  text-align: center;
}

a.asthmaScreening-a-left.selected, a.asthmaScreening-a-right.invert-color.selected {
  background-color: #AED136;
}

a.asthmaScreening-a-right.selected, a.asthmaScreening-a-left.invert-color.selected {
  background-color: #29809B;
}

.asthmaScreening-a-right {
  margin-left: 10px;
}

.asthmaScreening-questionnaire select {
  background-color: #ffffff;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border: 1px solid #282829;
  border-radius: 50px;
  padding: 0 9px;
  font-size: 16px;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 300px;
  background-color: #c6c6c6;
  color: #000;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  font-size: 9px;

  /* Position the tooltip text above the tooltip element */
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Arrow for the tooltip */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Show the tooltip when hovering over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.d-none {
  display: none !important;
}

.results-block {
  width: 100%;
  border: 3px solid #f37100;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0px 0px 3px 2px #bdbdbd;
  flex-direction: column;
}

.redeem-block {
  width: 100%;
  background-color: #29809B;
  border-radius: 5px;
  padding: 25px;
  box-shadow: 0px 0px 3px 2px #bdbdbd;
}

/* Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1050;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Modal container */
.modal {
  background: #fff;
  border-radius: 0.3rem;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);

  /* start hidden / up */
  opacity: 0;
  transform: translateY(-25%);
  /* animate both opacity & position on show+hide */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-overlay.show .modal {
  opacity: 1;
  transform: translateY(0);
}

/* Header / Body / Footer */
.modal-header,
.modal-footer {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1rem;
}

.modal-footer {
  border-top: none;
  display: flex;
  justify-content: flex-end;
}

#pdf-download-link {
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* loading border “spinner” around the button */
@keyframes borderSpin {
  0% {
    border-color: #29809B transparent transparent transparent;
    background-color: #e1e1e1;
  }
  25% {
    border-color: transparent #29809B transparent transparent;
  }
  50% {
    border-color: transparent transparent #29809B transparent;
    background-color: #ffffff;
  }
  75% {
    border-color: transparent transparent transparent #29809B;
  }
  100% {
    border-color: #29809B transparent transparent transparent;
    background-color: #e1e1e1;
  }
}

button.loading {
  position: relative;
  /* make room for the animated border */
  /* padding: calc(0.5rem - 2px) calc(1rem - 2px) !important; */
  border: 2px solid transparent;
  animation: borderSpin 3s linear infinite;
}

/* alert container positioning */
.alert-container {
  /* position: fixed; */
  /* top: 1rem;
  right: 1rem; */
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1100;
}

/* base alert style */
.alert {
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

/* success vs error */
.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.testpassbtn {
  margin-top: 15px;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.px-25 {
  padding-left: 25px;
  padding-right: 25px;
}

.py-25 {
  padding-top: 25px;
  padding-bottom: 25px;
}

.max-w-150 {
  max-width: 150px !important;
}

.results-container {
  display: flex;
  border-radius: 21px;
  align-items: center;
  flex-direction: column;
  border: 2px solid #00A79E;
}

.results-img-container {
  border-radius: 17px;
  margin-bottom: 25px;
  width: 100%;
  background-color: #00A79E;
}

.results-img-container img {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media screen and (min-width: 600px) {
  .results-container {
    flex-direction: row;
  }
  .results-img-container {
    width: initial;
    margin-bottom: 0;
    display: flex;
    align-self: stretch;
  }
  .results-img-container img {
    align-self: center;
  }
  .md-text-center {
    text-align: center;
  }
  #pdf-download-link {
    width: inherit;
    text-align: inherit;
  }
  .testpassbtn {
    margin-top: 0px;
  }
  #voucherEmail {
    width: 40%;
  }
  h2 {
    margin-bottom: 45px;
  }

  .pr-md-15 {
    padding-right: 15px;
  }

  .mt-md-0 {
    margin-top: 0;
  }

  .mt-md-75 {
    margin-top: 75px !important;
  }

  .ml-md-15 {
    margin-left: 15px;
  }

  .flex-md-row {
    flex-direction: row;
  }

  .asthmaScreening-question {
    width: 75%;
    margin-bottom: inherit;
  }

  .asthmaScreening-answers-container {
    width: 25%;
    display: flex;
    justify-content: end;
    align-items: center;
  }

  .answer-options {
    width: 100%;
    /* flex-direction: column; */
  }

  .asthmaScreening-question-container {
    flex-wrap: nowrap;
  }

  .results-block {
    flex-direction: row;
  }

  .w-md-100 {
    width: 100%;
  }

  .w-md-80 {
    width: 80%;
  }

  .w-md-70 {
    width: 70%;
  }

  .w-md-50 {
    width: 50%;
  }

  .w-md-30 {
    width: 30%;
  }
  #sendVoucherBtn {
    margin-left: 15px;
  }
}

@media screen and (min-width: 1550px) {
  .flex-lg-row {
    flex-direction: row;
  }
  .w-lg-50 {
    width: 50%;
  }
  .mr-lg-20 {
    margin-right: 20px;
  }
}

/* Quiz Results Table Styles */
#quiz-results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
}

#quiz-results-table th {
  background-color: #29809B;
  color: #ffffff;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #29809B;
}

#quiz-results-table td {
  padding: 12px;
  border: 1px solid #e1e1e1;
  vertical-align: top;
}

#quiz-results-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

#quiz-results-table tr:hover {
  background-color: #f0f0f0;
}

#quiz-results-table .answer-cell {
  text-align: center;
  width: 80px;
}

.answer-tick {
  color: #AED136 !important;
  font-size: 24px !important;
  font-weight: bold !important;
}

.answer-cross {
  color: #29809B !important;
  font-size: 24px !important;
  font-weight: bold !important;
}

ul.ks-cboxtags {
    list-style: none;
    padding: 20px;
}
ul.ks-cboxtags li{
  display: inline;
}
ul.ks-cboxtags li label{
    display: inline-block;
    background-color: rgba(255, 255, 255, .9);
    border: 2px solid rgba(139, 139, 139, .3);
    color: #adadad;
    border-radius: 10px;
    white-space: nowrap;
    margin: 3px 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all .2s;
}

ul.ks-cboxtags li label {
    padding: 8px 12px;
    cursor: pointer;
}

ul.ks-cboxtags li label::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    padding: 2px 6px 2px 2px;
    content: "+";
    transition: transform .3s ease-in-out;
}

ul.ks-cboxtags li input[type="checkbox"]:checked + label::before {
    content: "✓";
    transform: rotate(-360deg);
    transition: transform .3s ease-in-out;
}

ul.ks-cboxtags li input[type="checkbox"]:checked + label {
    border: 2px solid #29809B;
    background-color: #29809B;
    color: #fff;
    transition: all .2s;
}

ul.ks-cboxtags li input[type="checkbox"] {
  display: absolute;
}
ul.ks-cboxtags li input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

/* Points text styling */
.points-text {
  color: #f53f2a;
  font-weight: 600;
}

/* Results section styling */
.result-section {
  margin-bottom: 25px;
}

.result-heading {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.reference-text {
  font-size: 0.9em;
  font-style: italic;
  color: #666;
}

.asthmaScreening-question-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

/* .asthmaScreening-question {
  width: 75%;
  margin-bottom: 15px;
}

.asthmaScreening-answers-container {
  width: 25%;
  display: flex;
  justify-content: end;
  align-items: center;
} */

.asthmaScreening-a, .asthmaScreening-a {
  width: 100%;
  text-align: center;
}

a.asthmaScreening-a.selected, a.asthmaScreening-a.invert-color.selected {
  background-color: #AED136;
}

a.asthmaScreening-a.selected, a.asthmaScreening-a.invert-color.selected {
  background-color: #29809B;
}

.asthmaScreening-a {
  margin-left: 10px;
}