﻿/* FAQ accordion component styles shared by pages that render FAQ accordions. */

.dw-faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.dw-faq-item {
  --dw-faq-open-progress: 0;
  position: relative;
  z-index: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  transition: transform 380ms ease;
  isolation: isolate;
}

.dw-faq-item::before,
.dw-faq-item::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition: opacity 380ms ease, box-shadow 380ms ease;
}

.dw-faq-item::before {
  inset: 0;
  border-radius: inherit;
  background: #ffffff;
  border: 1px solid #e7edf7;
  box-shadow:
    0 16px 38px rgba(16, 26, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  z-index: 0;
}

.dw-faq-item::after {
  inset: -10px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(65, 209, 255, 0.42) 0%, transparent 55%),
    radial-gradient(circle at bottom right, rgba(110, 70, 255, 0.44) 0%, transparent 58%),
    linear-gradient(135deg, rgba(69, 216, 255, 0.38) 0%, rgba(47, 116, 255, 0.34) 45%, rgba(110, 70, 255, 0.42) 100%);
  filter: blur(18px);
  opacity: calc(var(--dw-faq-open-progress) * 0.56);
  z-index: -1;
}

.dw-faq-item.active::before {
  box-shadow:
    0 24px 52px rgba(16, 26, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.dw-faq-question,
.dw-faq-answer {
  position: relative;
  z-index: 1;
}

.dw-faq-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  min-height: 0;
  padding: 15px 1.45rem;
  border: 0;
  background: none;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.42;
  text-align: left;
  cursor: pointer;
}

.dw-faq-question__label {
  display: flex;
  align-items: center;
  min-height: 1.5em;
}

.dw-faq-question::after {
  content: "";
  width: 0.92rem;
  height: 0.92rem;
  border-right: 3px solid rgba(17, 26, 51, 0.76);
  border-bottom: 3px solid rgba(17, 26, 51, 0.76);
  justify-self: end;
  align-self: center;
  transform: rotate(45deg);
  transition: transform 380ms ease, border-color 380ms ease;
}

.dw-faq-item.active .dw-faq-question::after {
  transform: rotate(-135deg);
  border-color: rgba(17, 26, 51, 0.76);
}

.dw-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.45rem calc(1.35rem * var(--dw-faq-open-progress));
  opacity: var(--dw-faq-open-progress);
  transition: max-height 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dw-faq-answer p,
.dw-faq-answer ul,
.dw-faq-answer ol {
  margin: 0.08rem 0 0.9rem;
  color: var(--color-text-light);
  line-height: 1.72;
}

.dw-faq-answer > :last-child {
  margin-bottom: 0;
}

.dw-section--home-faq {
  overflow: visible;
}

.dw-home-faq {
  max-width: 920px;
  margin: 0 auto;
}

.dw-home-faq__more {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  text-align: center;
}

.dw-home-faq__more a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.dw-home-faq__more a:hover,
.dw-home-faq__more a:focus-visible {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.dw-home-faq__cta {
  margin-top: var(--space-3xl);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(47, 116, 255, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(65, 209, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(47, 116, 255, 0.08) 0%, rgba(255, 255, 255, 0.96) 42%, rgba(245, 249, 255, 0.98) 100%);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.dw-home-faq__cta h2,
.dw-home-faq__cta h3 {
  max-width: 22ch;
  margin: 0 auto;
  color: var(--color-primary);
}

.dw-home-faq__cta > p {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--color-text-light);
}

.dw-home-faq__cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.dw-section--home-faq .dw-home-faq__cta-actions .dw-btn {
  margin: 10px 0;
}

.dw-home-faq__cta-actions--balanced {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.dw-home-faq__cta-actions--balanced .dw-btn {
  flex: 1 1 250px;
  max-width: 320px;
}

.dw-home-faq__cta--faq-page {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.dw-home-faq__cta--faq-page h2,
.dw-home-faq__cta--faq-page h3 {
  max-width: 28ch;
}

.dw-home-faq__cta-note {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.dw-home-faq__cta-note a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.dw-home-faq__cta-note a:hover,
.dw-home-faq__cta-note a:focus-visible {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

