/* FAQ Plus — RW Reviews Pro */

/* ── Layout ── */
.faqp-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 66px;
  padding: 58px 44px;
  background-color: #eceef2;
  box-sizing: border-box;
  width: 100%;
}

.faqp-layout.faqp-no-intro {
  grid-template-columns: 1fr;
}

/* ── Intro ── */
.faqp-intro {
  min-width: 0;
}

.faqp-intro-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #1d1d1f;
  word-break: break-word;
}

.faqp-accent {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 18px;
}

.faqp-accent .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2b6df3;
  flex-shrink: 0;
}

.faqp-accent .line {
  width: 31px;
  height: 4px;
  border-radius: 4px;
  background: #2b6df3;
  flex-shrink: 0;
}

.faqp-intro-desc {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 28px);
  line-height: 1.5;
  color: #656a73;
  word-break: break-word;
}

/* ── Accordion ── */
.faqp-accordion {
  width: 100%;
  min-width: 0;
}

.faqp-item {
  margin-bottom: 16px;
}

.faqp-item:last-child {
  margin-bottom: 0 !important;
}

/* ── Trigger ── */
.faqp-trigger {
  width: 100%;
  border: 1px solid #d8dbe2;
  border-radius: 7px;
  background: #f8f8f9;
  padding: 18px 30px;
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: clamp(15px, 1.15vw, 24px);
  line-height: 1.4;
  font-weight: 700;
  color: #131416;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  gap: 12px;
}

/* Override Astra and similar themes button hover/focus */
.faqp-trigger:hover,
.faqp-trigger:active,
.faqp-trigger:focus {
  background-color: #f8f8f9;
  color: #131416;
  border-color: #d8dbe2;
  outline: none;
}

.faqp-item.is-open .faqp-trigger:hover,
.faqp-item.is-open .faqp-trigger:active,
.faqp-item.is-open .faqp-trigger:focus {
  color: #2b6df3;
}

.faqp-trigger:focus-visible {
  outline: 2px solid #2b6df3;
  outline-offset: -2px;
}

.faqp-q-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.faqp-item.is-open .faqp-trigger {
  color: #2b6df3;
}

/* ── Icon ── */
.faqp-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* CSS chevron arrow (default — shown when no custom icon is selected) */
.faqp-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -62%) rotate(45deg);
  transition: transform 0.3s ease;
}

.faqp-item.is-open .faqp-icon::before {
  transform: translate(-50%, -32%) rotate(-135deg);
}

/* Hide CSS arrow when a custom icon is used */
.faqp-icon--custom::before {
  display: none !important;
}

/* Custom icon closed/open states */
.faqp-icon-closed,
.faqp-icon-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.faqp-icon-closed svg,
.faqp-icon-open svg {
  width: 1em;
  height: 1em;
  display: block;
}

.faqp-item:not(.is-open) .faqp-icon-open   { display: none; }
.faqp-item.is-open       .faqp-icon-closed { display: none; }

/* Icon at start position */
.faqp-trigger--icon-start .faqp-icon {
  margin-left: 0;
  margin-right: 12px;
}

/* ── Content ── */
.faqp-content {
  height: 0 !important;
  overflow: hidden !important;
  transition: height 0.36s ease;
}

.faqp-content-inner {
  padding: 22px 64px 30px;
  color: #5e6369;
  font-size: clamp(14px, 1.1vw, 20px);
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: break-word;
}

.faqp-content-inner p {
  margin: 0 0 12px;
}

.faqp-content-inner p:last-child {
  margin-bottom: 0;
}

.faqp-content-inner ul,
.faqp-content-inner ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.faqp-content-inner li {
  margin-bottom: 6px;
}

/* ── Tablet (max 1200px) ── */
@media (max-width: 1200px) {
  .faqp-layout {
    display: block;
    grid-template-columns: 1fr !important;
    gap: 32px;
    align-items: start;
  }

  .faqp-intro-title {
    font-size: clamp(24px, 4vw, 38px);
  }

  .faqp-intro-desc {
    font-size: clamp(15px, 2.2vw, 22px);
    max-width: 100%;
  }
}

/* ── Mobile (max 767px) ── */
@media (max-width: 767px) {
  .faqp-layout {
    padding: 28px 16px;
    gap: 24px;
  }

  .faqp-intro-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .faqp-intro-desc {
    font-size: 15px;
    line-height: 1.55;
  }

  .faqp-accent {
    margin-bottom: 12px;
  }

  .faqp-item {
    margin-bottom: 10px;
  }

  .faqp-trigger {
    padding: 14px 16px;
    min-height: 52px;
    font-size: 15px;
    border-radius: 6px;
    gap: 10px;
  }

  .faqp-icon {
    width: 20px;
    height: 20px;
    margin-left: 0;
  }

  .faqp-icon::before {
    width: 8px;
    height: 8px;
  }

  .faqp-content-inner {
    padding: 12px 16px 18px;
    font-size: 14px;
    line-height: 1.6;
  }
}

/* ── Small Mobile (max 480px) ── */
@media (max-width: 480px) {
  .faqp-layout {
    padding: 20px 12px;
  }

  .faqp-trigger {
    padding: 13px 14px;
    font-size: 14px;
    min-height: 48px;
  }

  .faqp-intro-title {
    font-size: 20px;
  }

  .faqp-content-inner {
    padding: 10px 14px 16px;
    font-size: 14px;
  }
}
