/* FAQ AV+ — Figma node 1283:2149 (1440 × 1520) */

.avp-faq {
  --avp-light: #ecf8ff;
  --avp-lighter-metal: #d0dce6;
  --avp-light-metal: #607080;
  --avp-dark-metal: #2c3340;
  --avp-dark: #0c1218;
  --avp-patch: #18a4b4;
  --avp-pad-x: clamp(24px, 5.6vw, 80px);

  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, var(--avp-light-metal) 0%, var(--avp-light) 100%);
}

.avp-faq *,
.avp-faq *::before,
.avp-faq *::after {
  box-sizing: border-box;
}

.avp-faq__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4.2vw, 60px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 4.2vw, 60px) var(--avp-pad-x) clamp(56px, 7vw, 100px);
}

.avp-faq__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.avp-faq__header > * {
  margin: 0 !important;
}

.avp-faq .avp-faq__header h1,
.avp-faq .avp-faq__header h2,
.avp-faq .avp-faq__header h3,
.avp-faq .avp-faq__header .wp-block-heading {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  color: var(--avp-light) !important;
  font-family: "Poppins", sans-serif !important;
  font-style: normal;
  font-weight: 800 !important;
  font-size: clamp(30px, 3.34vw, 48px) !important;
  line-height: 1.167 !important;
  text-align: center;
}

.avp-faq .avp-faq__header .wp-block-heading em,
.avp-faq .avp-faq__header .wp-block-heading i {
  font-style: normal;
  font-weight: 200;
}

.avp-faq .avp-faq__header > p,
.avp-faq .avp-faq__header p.wp-block-paragraph {
  margin: 0 !important;
  width: 100%;
  color: var(--avp-light) !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(16px, 1.4vw, 20px) !important;
  line-height: 1.5 !important;
  text-align: center;
}

/* Accordion */
.avp-faq__list {
  width: 100%;
  max-width: 980px;
  border-radius: 8px;
  overflow: hidden;
}

.avp-faq__item + .avp-faq__item {
  border-top: 1px solid rgba(44, 51, 64, 0.12);
}

.avp-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 100px;
  margin: 0;
  padding: 20px clamp(20px, 3.98vw, 39px) 20px clamp(20px, 4.39vw, 43px);
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, var(--avp-light) 0%, var(--avp-lighter-metal) 100%);
  color: var(--avp-dark);
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: clamp(17px, 1.67vw, 24px);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: filter 0.2s ease;
}

.avp-faq__question:hover,
.avp-faq__question:focus-visible {
  filter: brightness(1.03);
}

.avp-faq .avp-faq__question-text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--avp-dark);
}

.avp-faq__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--avp-patch);
}

.avp-faq__icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

/* "+" turns into "×" */
.avp-faq__icon svg {
  transition: transform 0.25s ease;
}

.avp-faq__item.is-open .avp-faq__icon svg {
  transform: rotate(45deg);
}

.avp-faq__answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  background: var(--avp-dark-metal);
  transition: grid-template-rows 0.28s ease;
}

.avp-faq__item.is-open .avp-faq__answer-wrap {
  grid-template-rows: 1fr;
}

.avp-faq__answer {
  overflow: hidden;
  min-height: 0;
  padding: 0 clamp(20px, 10.2vw, 100px) 0 clamp(20px, 4.39vw, 43px);
  color: var(--avp-light);
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  transition: padding 0.28s ease;
}

.avp-faq__item.is-open .avp-faq__answer {
  padding-top: 24px;
  padding-bottom: 28px;
}

.avp-faq .avp-faq__answer p {
  margin: 0 0 12px !important;
  color: var(--avp-light) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.avp-faq .avp-faq__answer p:last-child {
  margin-bottom: 0 !important;
}

.avp-faq .avp-faq__answer a {
  color: var(--avp-light);
  text-decoration: underline;
}

/* Editor canvas */
.avp-faq--edit {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.avp-faq--edit .block-editor-block-list__layout {
  width: 100%;
}

/* In the editor every answer stays visible so it can be edited. */
.avp-faq--edit .avp-faq__answer-wrap {
  grid-template-rows: 1fr;
}

.avp-faq--edit .avp-faq__answer {
  padding-top: 24px;
  padding-bottom: 28px;
}

.avp-faq--edit .avp-faq__question {
  cursor: text;
}
