/*
  Service page FAQs - styled to match /how-it-works.
  Loaded by views/layouts/page.php and views/pages/_service_faqs.php.
  Targets the shared Bootstrap accordion (#faqAccordion) on service pages,
  plus the details/summary FAQ on /services-and-prices.
*/

/* Partial wrapper: safe inside another .container or column */
.service-faqs.container { width: auto; max-width: 100%; }

/* Pink full-width band behind the heading + accordion */
:is(h2:has(+ #faqAccordion), h2:has(+ br + #faqAccordion)),
#faqAccordion {
  background: #FFF4F7;
  box-shadow: 0 0 0 100vmax #FFF4F7;
  clip-path: inset(0 -100vmax);
}

/* Heading - same as How it Works */
:is(h2:has(+ #faqAccordion), h2:has(+ br + #faqAccordion)) {
  max-width: 820px;
  margin: 48px auto 0 !important;
  padding: 64px 0 20px;
  font-family: Montserrat, sans-serif;
  font-size: 34px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-align: left !important;
  color: #1F2A44 !important;
}
h2:has(+ br + #faqAccordion) + br { display: none; }

/* Accordion container */
#faqAccordion.panel-group {
  max-width: 820px;
  margin: 0 auto 48px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: Montserrat, sans-serif;
}

/* Each question = white rounded card */
#faqAccordion .panel,
#faqAccordion .panel + .panel {
  margin: 0;
  background: #fff;
  border: 0;
  border-radius: 14px !important;
  box-shadow: none;
  overflow: hidden;
}
#faqAccordion .panel-heading {
  padding: 0;
  background: #fff;
  border: 0;
}
#faqAccordion .panel-title { margin: 0; }

/* Question text */
#faqAccordion .panel-title a {
  display: block;
  position: relative;
  padding: 18px 22px 18px 44px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
  color: #1F2A44 !important;
  text-decoration: none !important;
}

/* Swap the plus/minus icons for a disclosure arrow like <details> */
#faqAccordion .panel-title .glyphicon { display: none; }
#faqAccordion .panel-title a::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 25px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #1F2A44;
  transition: transform .2s ease;
}
#faqAccordion .panel:has(.panel-collapse.in) .panel-title a::before,
#faqAccordion .panel:has(.panel-collapse.collapsing) .panel-title a::before {
  transform: rotate(90deg);
}

/* Answer text */
#faqAccordion .panel-body,
#faqAccordion .panel-heading + .panel-collapse > .panel-body {
  padding: 0 22px 18px;
  border: 0 !important;
  font-size: 16px;
  line-height: 1.6;
  color: #3D4A66;
}
#faqAccordion .panel-body p:first-child { margin-top: 0; }
#faqAccordion .panel-body p:last-child,
#faqAccordion .panel-body ul:last-child { margin-bottom: 0; }
#faqAccordion .panel-body a { color: #FE4164; }
#faqAccordion .panel-body a:hover { color: #D92E4F; }

@media (max-width: 767px) {
  :is(h2:has(+ #faqAccordion), h2:has(+ br + #faqAccordion)) { font-size: 28px !important; padding-top: 48px; }
  #faqAccordion.panel-group { padding-bottom: 48px; }
  #faqAccordion .panel-title a { font-size: 17px; }
}

/* Services & Prices page FAQ (details/summary version) */
.pricing-faqs-section {
  background: #FFF4F7;
  box-shadow: 0 0 0 100vmax #FFF4F7;
  clip-path: inset(0 -100vmax);
  margin-top: 48px;
  padding: 64px 0;
  font-family: Montserrat, sans-serif;
}
.pricing-faqs { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.pricing-faqs h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.2; font-weight: 800; color: #1F2A44; }
.pricing-faqs details { background: #fff; border-radius: 14px; padding: 18px 22px; }
.pricing-faqs summary { cursor: pointer; font-size: 18px; font-weight: 800; color: #1F2A44; }
.pricing-faqs details p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: #3D4A66; }
@media (max-width: 767px) {
  .pricing-faqs-section { padding: 48px 0; }
  .pricing-faqs h2 { font-size: 28px; }
}
