/* =============================================================================
 * Vitalum FAQ widget — tabs + accordion only.
 * Self-contained. Every rule scoped under .vfaq so no theme can leak in.
 * The widget renders with a TRANSPARENT background — drop it into any section
 * (Elementor column, black hero, whatever) and it will inherit that background.
 * ============================================================================= */

.vfaq,
.vfaq *,
.vfaq *::before,
.vfaq *::after { box-sizing: border-box; }
.vfaq ul { list-style: none; margin: 0; padding: 0; }
.vfaq a  { color: inherit; }

.vfaq {
  --vfaq-accent: #1ebf95;
  display: block;
  width: 100%;
  background: transparent;      /* no imposed background — inherit from parent */
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

/* -------- Tabs -------- */
.vfaq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.vfaq-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: rgba(255,255,255,0.55);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.vfaq-tab:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.vfaq-tab.is-active {
  color: #fff;
  background: var(--vfaq-accent);
  border-color: var(--vfaq-accent);
}

/* -------- Panels + accordion items -------- */
.vfaq-panel { display: none; }
.vfaq-panel.is-active { display: block; }

.vfaq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: box-shadow 0.25s;
}
.vfaq-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.35); }

.vfaq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: #0d1b2a;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

/* +/− icon */
.vfaq-ic {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.vfaq-ic::before,
.vfaq-ic::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s;
}
.vfaq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.vfaq-item.is-open .vfaq-ic::after { transform: translate(-50%, -50%) rotate(0); }
.vfaq-item.is-open .vfaq-q { color: var(--vfaq-accent); }

/* Answer collapse */
.vfaq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.vfaq-item.is-open .vfaq-a-wrap { grid-template-rows: 1fr; }
.vfaq-a-wrap > .vfaq-a {
  overflow: hidden;
  padding: 0 22px;
}
.vfaq-item.is-open .vfaq-a-wrap > .vfaq-a {
  padding: 0 22px 22px;
}
.vfaq-a {
  color: #333;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
}
.vfaq-a p { margin: 0 0 12px; }
.vfaq-a p:last-child { margin-bottom: 0; }

/* -------- Responsive tweaks -------- */
@media (max-width: 767px) {
  .vfaq-q                                     { padding: 16px 18px; font-size: 1rem; }
  .vfaq-a-wrap > .vfaq-a                      { padding: 0 18px; }
  .vfaq-item.is-open .vfaq-a-wrap > .vfaq-a   { padding: 0 18px 18px; }
  .vfaq-tab                                   { padding: 8px 16px; font-size: 0.8125rem; }
}
