:root {
  --faqPrimaryColor: #3a947e;
  --faqPrimaryRGB: 58, 148, 126;
}

.faq {
  margin: 0 auto;
  border: 1px solid var(--faqPrimaryColor);
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  -o-transition: 0.5s;
  -ms-transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .faq:first-of-type {
    margin-top: 0;
  }
}

.faq > a {
  color: inherit;
  text-decoration: none;
}

.faq.opened {
}

.faq.opened h3 {
  margin: 0;
}

.faq-h3 {
  border: 0 !important;
  padding: 15px 20px;
  font-size: 1.5rem;
}

.rich-content h3.faq-h3 {
  color: inherit;
  margin: 0 !important;
  font-weight: normal !important;
  position: relative;
}

.rich-content a:hover h3.faq-h3 {
  background: #f1f1f1;
  border-radius: 8px;
}

@media (max-width: 991px) {
  .rich-content h3.faq-h3 {
    font-size: 1.3rem;
  }
}

.rich-content .faq.opened h3.faq-h3 {
  color: var(--faqPrimaryColor) !important;
  background: rgba(var(--faqPrimaryRGB), 0.1);
  font-weight: bold !important;
  border-radius: 8px 8px 0 0;
}

.faq-h3:before {
  content: "\f128";
  font-family: "FontAwesome";
  padding-left: 0.5rem;
  background: #fff;
  padding: 0px;
  color: #ffffff;
  font-size: 20px;
  position: absolute;
  right: -12px;
  top: 17px;
  line-height: 40px;
  background: var(--faqPrimaryColor);
  border: 2px solid var(--faqPrimaryColor);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.faq.opened .faq-h3:before {
  content: "\f00c";
  font-size: 14px;
  background: #fff;
  border: 2px solid var(--faqPrimaryColor);
  color: var(--faqPrimaryColor);
  top: 0;
  bottom: 0;
  height: 100%;
  border-radius: 8px;
  padding-top: 17px;
  align-items: flex-start;
}

.faq .answer {
  display: none;
  padding: 30px;
}
/**/

.faq-search:after {
  content: "";
  display: block;
  clear: both;
}

.faq-search label {
  float: right;
  display: block;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background: #f1f1f1;
  font-size: 1.2rem;
  border-radius: 0 5px 5px 0;
}

.faq-search input {
  float: right;
  display: block;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 1.2rem;
  width: 250px;
  border-left: 0;
  border-radius: 0 5px 5px 0;
}

.faq-search button {
  float: right;
  display: block;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background: #3977ad;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 5px 0 0 5px;
}
