#openFormBtn,
#save-pdf-button {
  border: none;
  margin: 0;
}

#openFormBtn {
  margin: 15px 0;
}

.popup {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  padding-top: 50px;
}

.popup-content {
  background-color: white;
  margin: 0 auto;
  /*     padding: 20px; */
  border: 1px solid #888;
  width: 75%;
  position: relative;
  top: -100%;
  /* Initially positioned above the screen */
  transition: top 0.5s ease;
  /* Smooth transition for sliding effect */
  height: 83vh;
  /* Fixed height of 70% of the viewport height */
  max-height: 83vh;
  /* Maximum height of 70% of the viewport height */
  /*     overflow: hidden; */
  /*     overflow-y: auto; */
}

.popup-scrollable {
  height: calc(100% - 4em);
  /* Make room for close button */
  overflow-y: auto;
  /* Make the content scrollable if needed */
  padding: 2em;
}

.close-btn {
  color: #aaa;
  position: absolute;
  top: 0em;
  right: 0.8em;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}


body.no-scroll {
  overflow: hidden;
}

/* form radio */

/* Reset some default styles */
/* Styling the container for the radio buttons */
.form-radios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Two columns on desktop */
  /*   gap: 20px; /* Space between the radio button groups */
  */ padding: 20px 10px 20px;
}

/* Style for individual radio button items */
.form-radios .form-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Label and input styling */
.form-radios input.form-radio {
  margin-right: 10px;
}

.form-radios label.option {
  font-size: 16px;
}

.questionnaire-container {
  border-bottom: 1px solid #d9d9d9;
}

.questionnaire-container .fieldset-wrapper {
  margin: 24px 0 16px;
}

.question-submit {
  border: none;
  background-color: unset;
  margin-top: 3em;
}

.popup-content p {
  margin: 2em 0;
}

/* Media query for mobile - one column */
@media (max-width: 768px) {
  .form-radios {
    grid-template-columns: 1fr;
    /* One column on mobile */
  }

  .popup-content {
    width: 95%;
  }

  .popup-content p {
    margin: 1em 0;
  }

  .question-submit {
    margin-top: 1em;
  }
}

.question-submit {
  cursor: not-allowed;
}

/* .error label {
    color: red;
} */

.hidden {
  display: none !important;
}

#no-match-funds-msg,
#popup-message {
  background-color: #F0F4F5;
}

/* Apply padding to #no-match-funds-msg only if it has content */
#no-match-funds-msg:not(:empty) {
  padding: 15px;
}

/* Apply padding to #popup-message only if it has content */
#popup-message:not(:empty) {
  padding: 0 15px 15px;
}

/* Hide the element if it's empty (optional, to make sure they don't take up space) */
#no-match-funds-msg:empty,
#popup-message:empty {
  display: none;
}

.js-form-type-radio {
  display: inline-block;
}

.answer-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 0 10px;
  border-bottom: none;
}

.tooltip-box {
  display: none;
  position: absolute;
  top: 50%;
  left: calc(100% + 10px); 
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 999;
  width: 300px;
  white-space: normal;
  padding-top: 30px;
  font-size: 14px;
  line-height: 1.4;
}

.tooltip-box::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%; 
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

.tooltip-box:after {
    content: "X";
    top: 10px;
    right: 10px;
    position: absolute;
    font-size: 11px;
    padding: 2px;
    border: 1px solid #FFFFFF;
    border-radius: 100%;
    width: 15px;
    height: 15px;
    font-weight: normal;
    text-align: center;
    line-height: 15px;
    font-family: arial;
}
.tooltip-definition {
  border-bottom: 1px solid #383838;
}

@media (max-width:1440px) {
    .tooltip-box {
        position: absolute;
        bottom: 24px;
        left: 0;
        width: 200px;
        top: auto;
        transform: none;
    }
    .tooltip-box::before {
        bottom: -22px;
        left: 12px;
        border-width: 8px;
        border-style: solid;
        border-color: black transparent transparent transparent;
        top: auto;
    }
}
@media (max-width:767px) {
    .answer-tooltip {
        display:block;
        margin:2px 0px;
    }
}