/* Section 6 — FAQ (Jun 5 mockup + Gio accordion pattern) */

.ev-faq {
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%);
  padding: 56px 0 64px;
  border-top: 1px solid #e8eef4;
}

.ev-faq > .ev-wrap {
  max-width: var(--ev-section-wrap-max, 1250px);
}

.ev-faq-eyebrow {
  display: table;
  margin: 0 auto 20px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a5fa8;
  background: #eef6fc;
  border: 1px solid #cfe3f5;
  border-radius: 999px;
}

.ev-faq-eyebrow:has(svg) {
  padding: 8px 18px 8px 14px;
}

.ev-faq-eyebrow-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ev-faq-eyebrow svg {
  flex-shrink: 0;
}

.ev-faq-title {
  margin: 0 auto 12px;
  max-width: var(--ev-section-title-max, 760px);
  text-align: center;
  font-family: var(--ev-section-title-font);
  font-size: var(--ev-section-title-size);
  font-weight: var(--ev-section-title-weight);
  line-height: var(--ev-section-title-line-height);
  letter-spacing: var(--ev-section-title-letter-spacing);
  color: var(--ev-section-title-color);
}

.ev-faq-title .ev-accent {
  color: #2f80ff;
}

.ev-faq-lead {
  margin: 0 auto 36px;
  max-width: var(--ev-section-lead-max, 760px);
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: #5c6b7a;
}

.ev-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 98%;
  max-width: 1060px;
  margin: 0 auto 28px;
}

.ev-faq-item {
  background: #fff;
  border: 1px solid #e8eef4;
  border-left: 4px solid transparent;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 22, 63, 0.05);
  overflow: hidden;
  transition:
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    background 0.32s ease;
}

.ev-faq-item:hover {
  box-shadow: 0 10px 28px rgba(11, 22, 63, 0.08);
}

.ev-faq-item.is-open {
  border-left-color: #2f80ff;
  box-shadow:
    0 10px 28px rgba(11, 22, 63, 0.08),
    0 0 0 1px rgba(47, 128, 255, 0.08);
}

.ev-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  color: #0b163f;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.25s ease;
}

.ev-faq-q:hover {
  background: #f8fbff;
}

.ev-faq-q-icon {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.ev-faq-q-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #0b163f;
}

.ev-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  border-radius: 50%;
  border: 1px solid rgba(47, 128, 255, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ev-faq-item.is-open .ev-faq-icon {
  border-color: rgba(47, 128, 255, 0.65);
  box-shadow: 0 0 10px rgba(47, 128, 255, 0.15);
}

.ev-faq-icon::before,
.ev-faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #2f80ff;
  transform: translate(-50%, -50%);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ev-faq-icon::before {
  width: 10px;
  height: 2px;
}

.ev-faq-icon::after {
  width: 2px;
  height: 10px;
}

.ev-faq-item.is-open .ev-faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.6);
}

.ev-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.ev-faq-a-inner {
  padding: 0 20px 20px 70px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.34s ease 0.06s,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

.ev-faq-item.is-open .ev-faq-a-inner {
  opacity: 1;
  transform: none;
}

.ev-faq-a-inner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #5c6b7a;
}

.ev-faq-a-inner a {
  color: #2f80ff;
  font-weight: 600;
  text-decoration: none;
}

.ev-faq-a-inner a:hover {
  text-decoration: underline;
}

.ev-faq-a-inner ul {
  margin: 10px 0 12px;
  padding-left: 1.25rem;
}

.ev-faq-a-inner li {
  margin-bottom: 4px;
  font-size: inherit;
  line-height: 1.55;
  color: inherit;
}

/* Bottom CTA */
.ev-faq-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 98%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #d9e8f5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 22, 63, 0.05);
}

.ev-faq-cta-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.ev-faq-cta-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.ev-faq-cta-copy h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #0b163f;
}

.ev-faq-cta-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #5c6b7a;
}

.ev-faq-cta-action {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 24px;
  border-left: 1px solid #d3dde7;
  text-align: center;
}

.ev-faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 12px;
}

.ev-faq-cta-btn:hover {
  color: #fff;
}

.ev-faq-cta-note {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .ev-faq-cta {
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 22px 20px;
  }

  .ev-faq-cta-action {
    align-self: auto;
    width: 100%;
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid #d3dde7;
  }

  .ev-faq-a-inner {
    padding-left: 20px;
  }
}

@media (max-width: 600px) {
  .ev-faq {
    padding: 44px 0 48px;
  }

  .ev-faq-lead {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .ev-faq-accordion {
    width: 100%;
  }

  .ev-faq-q {
    padding: 16px;
    gap: 12px;
  }

  .ev-faq-q-text {
    font-size: 15px;
  }

  .ev-faq-a-inner {
    padding: 0 16px 16px;
    font-size: 14px;
  }

  .ev-faq-a-inner p {
    font-size: 14px;
  }

  .ev-faq-cta-btn {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-faq-item,
  .ev-faq-a,
  .ev-faq-a-inner,
  .ev-faq-icon::before,
  .ev-faq-icon::after {
    transition: none;
  }

  .ev-faq-a-inner {
    opacity: 1;
    transform: none;
  }
}
