/* Ported from iprx-js-landing faq-categories-block, fast-search, faq-list-block,
   web-content-render and support. The hero is in style.css. */

.faq-main {
  background: #fff;
  padding-top: 45px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
.faq-topics,
.faq-search-results { list-style: none; }

/* === /faq/: intro and search === */
.faq-intro { text-align: center; color: #000; }
.faq-intro h2 { font-size: 42px; font-weight: 500; line-height: 51px; }
.faq-intro p { margin-top: 15px; font-size: 20px; line-height: 28px; }

.faq-search {
  max-width: 1000px;
  margin: 50px auto 0;
  border-radius: 10px;
  background: var(--surface-chip);
}
.faq-search-input {
  width: 100%;
  height: 83px;
  padding: 20px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 20px;
  color: #000;
}
.faq-search-input:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -2px; border-radius: 10px; }
.faq-search-results { padding: 0 20px 10px; }
.faq-search-results a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(36, 78, 179, .1);
  font-weight: 500;
}
.faq-search-empty { padding: 0 20px 20px; color: var(--text-muted); }

/* === Topic tiles === */
.faq-topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.faq-topic {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  min-height: 145px;
  padding: 30px;
  border-radius: 10px;
  background: var(--surface-chip);
  color: var(--brand-blue);
  font-weight: 700;
  line-height: 20px;
  transition: opacity .3s;
}
.faq-topic:hover { opacity: .7; text-decoration: none; }
.faq-topic img { flex: none; width: 50px; height: 50px; }

/* === Topic page: questions === */
.faq-questions { padding-top: 5px; }
.faq-question {
  margin-bottom: 20px;
  border-radius: 5px;
  background: var(--grad-footer);
  color: #fff;
  scroll-margin-top: 20px;
  position: relative;
}
/* A legacy anchor renders after the summary wherever it stands in <details>; pinned to the top,
   the browser's own fragment scroll lands on the question like an #<id> does. */
.faq-question > span { position: absolute; top: 0; scroll-margin-top: 20px; }
.faq-question[open] { background: var(--surface-chip); color: #000; }
.faq-question summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 25px 60px 25px 25px;
  list-style: none;
  cursor: pointer;
}
.faq-question summary::-webkit-details-marker { display: none; }
.faq-question summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq-question[open] summary::after {
  margin-top: -2px;
  border-color: var(--brand-blue);
  transform: rotate(-135deg);
}
.faq-question h2 { font-size: 20px; font-weight: 700; line-height: 24px; }

.faq-answer { padding: 25px; overflow-wrap: anywhere; }
.faq-answer p { margin: 16px 0; text-align: justify; }
.faq-answer ul,
.faq-answer ol { margin: 16px 0; padding-left: 25px; }
.faq-answer a { color: var(--brand-blue); }
.faq-answer img { width: 100%; max-width: 600px; margin: 20px auto; }
.faq-answer iframe {
  display: block;
  width: 100%;
  max-width: 711px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
  border: 0;
}

.faq-other {
  margin: 80px 0 27px;
  color: var(--brand-blue);
  font-size: 32px;
  font-weight: 500;
  line-height: 39px;
}
.faq-other + .faq-topics { margin-top: 0; }

/* === Support band === */
.faq-support {
  margin-top: 80px;
  padding: 80px 20px;
  background: linear-gradient(283.99deg, #536EFF 19.64%, #0007B5 104.42%);
  color: #fff;
  text-align: center;
}
.faq-support h2 { font-size: 42px; font-weight: 700; line-height: 1.2; }
.faq-support p { margin-top: 24px; }
.faq-support-button {
  display: inline-block;
  margin-top: 32px;
  padding: 15px 50px;
  border: 1px solid var(--brand-blue);
  border-radius: 84px;
  background: #fff;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  transition: opacity .3s;
}
.faq-support-button:hover { opacity: .8; text-decoration: none; }

@media (max-width: 1100px) {
  .faq-topics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .faq-topics { grid-template-columns: repeat(2, 1fr); }
  .faq-support { margin-top: 64px; padding: 64px 20px; }
  .faq-support h2 { font-size: 24px; }
  .faq-support p { font-size: 14px; }
  .faq-support-button { font-size: 12px; line-height: 15px; }
}
@media (max-width: 500px) {
  .faq-intro h2 { font-size: 26px; line-height: 32px; }
  .faq-intro p { font-size: 14px; line-height: 21px; }
  /* 16px keeps iOS from zooming in on focus. */
  .faq-search-input { height: 70px; font-size: 16px; }
  .faq-topics { grid-template-columns: 1fr; }
  .faq-topic { min-height: 125px; font-size: 14px; line-height: 21px; }
  .faq-topic img { width: 40px; height: 40px; }
  .faq-answer { font-size: 14px; line-height: 21px; }
  .faq-answer p { margin: 14px 0; }
}
