/* ============================================================= */
/* Section: 14-faq */
/* ============================================================= */
/* ===== FAQ — Figma node 12183:1919 (1440 x 646) =====
   Partial: v2/services/auto-injury/14-faq.blade.php. Accordion: script-v2.js [data-bh-faq]. */
.ai-faq {
  position: relative;
  overflow: hidden;
  background: #eff2ff;
}

/* Background arcs (12183:1921), anchored to the section edges. */
.ai-faq-arcs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-v2 .ai-faq-arc {
  position: absolute;
  max-width: none;
  height: auto;
}

.ai-faq-arc--r1 { top: 0; right: 0; }
.ai-faq-arc--r2 { top: 32.3px; right: 0; }
.ai-faq-arc--r3 { top: 64.6px; right: 0; }
.ai-faq-arc--l1 { top: 17.1px; left: -5px; }
.ai-faq-arc--l2 { top: 0.2px; left: -5px; }
.ai-faq-arc--m { display: none; top: 0; left: 0; }

.ai-faq .ai-container {
  position: relative;
}

/* Side badges: 112px soft circles (12183:1928 at x 100 / y 77, 12183:2023 at right 100 / y 79). */
.ai-faq-badge {
  position: absolute;
  top: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px solid #e3f0ed;
  border-radius: 56px;
  background: radial-gradient(circle at 40% 35%, #fff 0%, #e8f4f1 88%);
  box-shadow: 0 0 7px rgba(52, 139, 127, 0.1);
}

.ai-faq-badge img {
  display: block;
  width: 46px;
  height: 46px;
}

.ai-faq-badge--left { left: 20px; }
.ai-faq-badge--right { top: 45px; right: 20px; }

.ai-faq-accent {
  color: var(--ai-orange);
}

.ai-faq-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.ai-faq-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 7px 11px;
  border: 1.09px solid rgba(255, 255, 255, 0.15);
  border-radius: 109px;
  background: #e8ebf7;
  -webkit-backdrop-filter: blur(4.36px);
  backdrop-filter: blur(4.36px);
  color: var(--ai-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}

.ai-faq-title {
  max-width: 832px;
  color: var(--ai-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
}

.ai-faq-lead {
  max-width: 832px;
  color: #17233d;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.ai-faq-bar {
  display: block;
  width: 66px;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--ai-orange);
}

/* Two independent columns; one item open across both ([data-bh-faq]). */
.ai-faq-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 26px;
  margin-top: 26px;
}

.ai-faq-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ai-faq-item {
  padding: 19px 21px;
  border: 1px solid #dcede9;
  border-radius: 18px;
  background: #fff;
  transition: box-shadow 0.35s var(--ai-ease), translate 0.3s var(--ai-ease), background-color 0.35s ease;
}

.ai-faq-item:hover {
  translate: 0 -3px;
  box-shadow: 0 10px 22px rgba(39, 55, 117, 0.1);
}

.ai-faq-item:not(.is-open):hover {
  translate: none;
  box-shadow: none;
}

.ai-faq-item.is-open {
  background: linear-gradient(159.97deg, #f6fbfa 0%, #fff 100%);
  box-shadow: 0 6px 10px 4px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.3);
}

.ai-faq-item.is-open:hover {
  translate: none;
}

.ai-faq .ai-faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: inherit;
}

.ai-faq-btn {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ai-blue);
  font-family: inherit;
  cursor: pointer;
}

.ai-faq-btn:hover { filter: none; }

.ai-faq-btn:focus-visible {
  outline: 2px solid var(--ai-blue);
  outline-offset: 6px;
  border-radius: 12px;
}

.ai-faq-num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dcede9;
  border-radius: 22px;
  background: #eff2ff;
  color: var(--ai-orange);
  font-size: 20px;
  font-weight: 700;
  line-height: 21px;
  transition: border-color 0.3s ease, scale 0.3s var(--ai-ease);
}

.ai-faq-q-text {
  flex: 1;
  min-width: 0;
  color: var(--ai-blue);
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
}

/* Plus (closed, 30px white) -> minus (open, 28px orange). */
.ai-faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid #dcede9;
  border-radius: 15px;
  background: #fff;
  transition: background-color 0.3s ease, border-color 0.3s ease, scale 0.3s var(--ai-ease), rotate 0.4s var(--ai-ease);
}

.ai-faq-toggle::before,
.ai-faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: var(--ai-orange);
  translate: -50% -50%;
  transition: background-color 0.3s ease, scale 0.3s var(--ai-ease);
}

.ai-faq-toggle::before { width: 12px; height: 2.19px; }
.ai-faq-toggle::after { width: 2.19px; height: 12px; }

.ai-faq-btn:hover .ai-faq-toggle {
  border-color: rgba(252, 93, 97, 0.4);
}

.ai-faq-item.is-open .ai-faq-toggle {
  border-color: var(--ai-orange);
  background: var(--ai-orange);
  scale: 0.933;
  rotate: 180deg;
}

.ai-faq-item.is-open .ai-faq-toggle::before { background: #fff; height: 2.39px; }
.ai-faq-item.is-open .ai-faq-toggle::after { background: #fff; scale: 1 0; }

/* Answer: height animates via grid rows 0fr -> 1fr. */
.ai-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ai-ease);
}

.ai-faq-item.is-open .ai-faq-a {
  grid-template-rows: 1fr;
}

.ai-faq-a-inner {
  min-height: 0;
  overflow: hidden;
}

.ai-faq .ai-faq-a-inner p {
  padding: 13.07px 4px 2.12px 0;
  color: #17233d;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0;
  translate: 0 -6px;
  transition: opacity 0.3s ease, translate 0.4s var(--ai-ease);
}

.ai-faq .ai-faq-item.is-open .ai-faq-a-inner p {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.1s;
}

.ai-faq .ai-faq-promise {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  color: #17233d;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

.ai-faq-promise strong {
  font-weight: 600;
}

.ai-faq-promise-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dcede9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 7px rgba(52, 139, 127, 0.1);
}

.ai-faq-promise-icon img {
  display: block;
  width: 15px;
  height: 15px;
}

/* ---------- Animation ---------- */
.ai-faq.is-armed:not(.is-in) :is(.ai-faq-head > *, .ai-faq-item, .ai-faq-badge, .ai-faq-promise, .ai-faq-arc) {
  opacity: 0;
}

.ai-faq.is-in .ai-faq-arc { animation: ai-fade 1.4s ease backwards; }
.ai-faq.is-in .ai-faq-arc--r2,
.ai-faq.is-in .ai-faq-arc--l2 { animation-delay: 0.2s; }
.ai-faq.is-in .ai-faq-arc--r3 { animation-delay: 0.4s; }

.ai-faq.is-in .ai-faq-head > * { animation: ai-rise 0.7s var(--ai-ease) backwards; }
.ai-faq.is-in .ai-faq-head > :nth-child(2) { animation-delay: 0.1s; }
.ai-faq.is-in .ai-faq-head > :nth-child(3) { animation-delay: 0.2s; }
.ai-faq.is-in .ai-faq-head > :nth-child(4) { animation: ai-faq-grow 0.6s var(--ai-ease) 0.35s backwards; }

.ai-faq.is-in .ai-faq-badge {
  animation: ai-pop 0.7s var(--ai-ease) 0.3s backwards, ai-float 5s ease-in-out 1.2s infinite;
}

.ai-faq.is-in .ai-faq-badge--right {
  animation: ai-pop 0.7s var(--ai-ease) 0.45s backwards, ai-float 5s ease-in-out 2.4s infinite;
}

.ai-faq.is-in .ai-faq-item { animation: ai-rise 0.6s var(--ai-ease) 0.35s backwards; }
.ai-faq.is-in .ai-faq-col:nth-child(2) .ai-faq-item { animation-delay: 0.43s; }
.ai-faq.is-in .ai-faq-item:nth-child(2) { animation-delay: 0.47s; }
.ai-faq.is-in .ai-faq-col:nth-child(2) .ai-faq-item:nth-child(2) { animation-delay: 0.55s; }
.ai-faq.is-in .ai-faq-col:nth-child(2) .ai-faq-item:nth-child(3) { animation-delay: 0.67s; }

.ai-faq.is-in .ai-faq-num { animation: ai-pop 0.5s var(--ai-ease) 0.6s backwards; }
.ai-faq.is-in .ai-faq-col:nth-child(2) .ai-faq-num { animation-delay: 0.75s; }

.ai-faq.is-in .ai-faq-promise { animation: ai-rise 0.7s var(--ai-ease) 0.9s backwards; }
.ai-faq.is-in .ai-faq-promise-icon { animation: ai-pop 0.6s var(--ai-ease) 1.1s backwards; }

@keyframes ai-faq-grow {
  from { opacity: 0; scale: 0 1; }
  to   { opacity: 1; scale: 1 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ai-faq-badge { width: 90px; height: 90px; }
  .ai-faq-badge img { width: 36px; height: 36px; }
  .ai-faq-title,
  .ai-faq-lead { max-width: 640px; }
  .ai-faq-grid { gap: 20px; }
}

@media (max-width: 991px) {
  .ai-faq-badge { display: none; }
  .ai-faq-title { font-size: 30px; line-height: 40px; }
  .ai-faq-grid { grid-template-columns: 1fr; gap: 12px; }
  .ai-faq-arc { opacity: 0.6; }
}

/* ---------- Mobile — Figma node 12183:4027 "mobile-section-two" (440 frame, 20px side padding,
   so a 400px column; section keeps the global 60/60 padding) ----------
   Left-aligned heading (12px gaps), one 10px-gap accordion stack, promise line, 32px apart.
   Background: one thin line (mobile/lines.svg) instead of the desktop arcs; one 64px stamp
   badge top-right (20px above the chip, 16px from the edge). */
@media (max-width: 767px) {
  .ai-faq-arc--r1,
  .ai-faq-arc--r2,
  .ai-faq-arc--r3,
  .ai-faq-arc--l1,
  .ai-faq-arc--l2 { display: none; }
  .ai-faq-arc--m { display: block; opacity: 1; }

  /* Stamp 12183:4030 */
  .ai-faq-badge--left { display: none; }

  .ai-faq-badge--right {
    display: flex;
    top: -20px;
    right: 16px;
    width: 64px;
    height: 64px;
    border-radius: 32px;
  }

  .ai-faq-badge img { width: 24px; height: 24px; }

  /* Heading 12183:4033 */
  .ai-faq-br { display: none; }
  .ai-faq-head { align-items: flex-start; gap: 12px; text-align: left; }

  .ai-faq-chip {
    height: auto;
    padding: 4px 10px;
    border-width: 1px;
    border-radius: 100px;
    font-size: 11px;
    line-height: normal;
  }

  .ai-faq-title { max-width: none; font-size: 24px; line-height: 35px; }
  .ai-faq-lead { max-width: none; font-size: 13px; line-height: 20px; }
  .ai-faq-bar { width: 50px; margin-top: 0; }

  /* Accordion 12183:4039: one stack, 10px apart. */
  .ai-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 32px; }
  .ai-faq-col { gap: 10px; }
  .ai-faq-item { padding: 19px 21px; border-radius: 18px; }
  .ai-faq-q-text { font-size: 14px; line-height: 21px; }
  .ai-faq .ai-faq-a-inner p { font-size: 12px; line-height: 24px; }

  /* Promise 12183:4113 */
  .ai-faq .ai-faq-promise {
    gap: 8px;
    margin-top: 32px;
    color: var(--ai-text);
    font-size: 12px;
    text-align: left;
  }

  .ai-faq .ai-faq-promise > span:last-child { flex: 1 1 0; min-width: 0; }
  .ai-faq-promise strong { font-weight: 700; }
  .ai-faq-promise-icon { width: 24px; height: 24px; border-radius: 12px; }
  .ai-faq-promise-icon img { width: 12px; height: 12px; }
}
