/**
 * @file
 * FAQ Accordion component.
 * Figma: FAQ (665:3575).
 */

.faq__title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.faq {
  max-width: 800px;
  margin-inline: auto;
}

.faq.faq--full {
  max-width: none;
}

/* ===== Accordion shortcode (faq--full with hp-faq-item markup) ===== */
.faq--full {
  display: flex;
  flex-direction: column;
}

.faq--full .hp-faq-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-height: 76px;
  padding: 16px 0 0;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(15, 101, 228, 0.2);
  text-align: left;
  font: inherit;
  color: inherit;
}

.faq--full .hp-faq-item:last-of-type {
  border-bottom: none;
}

.faq--full .hp-faq-item__question {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--color-black);
  line-height: normal;
  flex: 1;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.faq--full .hp-faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0.8px solid var(--color-blue);
  background: var(--color-blue-light);
  overflow: clip;
  flex-shrink: 0;
  color: var(--color-blue);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq--full .hp-faq-item.is-open .hp-faq-item__icon {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.faq--full .hp-faq-item.is-open .hp-faq-icon__vertical {
  display: none;
}

.faq--full .hp-faq-item__answer {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-black);
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.faq--full .hp-faq-item.is-open + .hp-faq-item__answer,
.faq--full .hp-faq-item.is-open .hp-faq-item__answer {
  max-height: initial;
  opacity: 1;
  padding: 16px 0;
}

.hub-accordion {
  padding-block: var(--space-xl);
}

.faq__item {
  border-bottom: 1px solid var(--color-blue-light);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-base);
}

.faq__question:hover {
  color: var(--color-blue);
}

.faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-blue);
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-bottom: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding-bottom 0.35s ease;
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: var(--space-md);
}

.faq__answer p {
  font-size: 16px;
  line-height: 1.6;
}
