/* ================================
   Wrapper & headings
   ================================ */
.vp-faq {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 16px;
}

.vp-faq-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.vp-faq-intro {
  margin-bottom: 28px;
  color: #4b5563;
  font-size: 0.975rem;
}

/* List of groups */
.vp-faq-group-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ================================
   GROUP CARD (outer container)
   ================================ */
.vp-faq-group-accordion {
  border-radius: 26px;
  background: linear-gradient(135deg, #f0f5fc 0%, #e6eef9 100%);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(48, 87, 164, 0.12);
  overflow: hidden;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Hover effect when closed */
.vp-faq-group-accordion:not(.is-open):hover {
  background: linear-gradient(135deg, #e8f0fb 0%, #dfe8f8 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  border-color: rgba(48, 87, 164, 0.20);
}

/* Open state – clean white panel */
.vp-faq-group-accordion.is-open {
  background: #ffffff;
  border-color: rgba(48, 87, 164, 0.10);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

/* ================================
   GROUP HEADER (dark blue bar)
   ================================ */
.vp-faq-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  background: linear-gradient(135deg, #3057a4 0%, #1f3f6d 100%);
  border: none;
  cursor: pointer;
  text-align: left;
}

.vp-faq-group-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Group +/- icon */
.vp-faq-group-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.vp-faq-group-icon::before,
.vp-faq-group-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background-color: #ffffff;
  border-radius: 999px;
  transition: transform 0.22s ease;
}

.vp-faq-group-icon::before {
  width: 12px;
  height: 2px;
}

.vp-faq-group-icon::after {
  width: 2px;
  height: 12px;
}

/* When open, turn + into – */
.vp-faq-group-accordion.is-open .vp-faq-group-icon::after {
  transform: scaleY(0);
}

/* Group body (where questions live) */
.vp-faq-group-body {
  max-height: 0;
  overflow: hidden;
  background: transparent;
  transition: max-height 0.26s ease;
  border-top: 1px solid #e5e7eb;
}

.vp-faq-group-accordion.is-open .vp-faq-group-body {
  max-height: 2000px; /* large enough for contents */
}

/* ================================
   INNER QUESTIONS
   ================================ */
.vp-faq-group {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* We only use the pill + answer bubble; no extra box around Q&A */
.vp-faq-item {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

/* Question pill – light blue */
.vp-faq-question {
  width: 100%;
  text-align: left;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f0f5fc;
  color: #1f2933;
  border: 1px solid rgba(48, 87, 164, 0.25);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

.vp-faq-question-text {
  display: inline-block;
  padding-right: 8px;
}

.vp-faq-question:hover,
.vp-faq-question:focus-visible {
  outline: none;
  background: #e8effb;
}

/* Question plus/minus icon */
.vp-faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.vp-faq-icon::before,
.vp-faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background-color: #3057a4;
  border-radius: 999px;
  transition: transform 0.18s ease;
}

.vp-faq-icon::before {
  width: 10px;
  height: 2px;
}

.vp-faq-icon::after {
  width: 2px;
  height: 10px;
}

/* When open, turn + into – */
.vp-faq-item.is-open .vp-faq-icon::after {
  transform: scaleY(0);
}

/* ================================
   ANSWER BUBBLE
   ================================ */
.vp-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 6px;
  transition: max-height 0.24s ease,
              padding-top 0.24s ease,
              padding-bottom 0.24s ease;
}

.vp-faq-answer-inner {
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 18px;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.vp-faq-answer-inner p {
  margin: 0 0 8px;
}

/* Open state for inner item */
.vp-faq-item.is-open .vp-faq-answer {
  max-height: 450px;
  padding-top: 6px;
  padding-bottom: 4px;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 640px) {
  .vp-faq {
    margin-bottom: 44px;
  }

  .vp-faq-title {
    font-size: 1.6rem;
  }

  .vp-faq-group {
    padding: 10px 14px 14px;
  }

  .vp-faq-question {
    font-size: 0.95rem;
    padding: 10px 16px;
  }
}
