/* ==========================================================================
   Q-DASH INTERACTIVE FAQ EXPERIENCE STYLING
   Visual Identity: Clean Light Neutral Background, Deep Navy (#0F2034 / #1E2D3D),
   Vibrant Orange (#FF6A2A), 3D Digital Network Question Mark, Animated Connector
   ========================================================================== */

:root {
  --qd-faq-navy: #0F2034;
  --qd-faq-navy-light: #1E2D3D;
  --qd-faq-orange: #FF6A2A;
  --qd-faq-orange-soft: rgba(255, 106, 42, 0.12);
  --qd-faq-orange-glow: rgba(255, 106, 42, 0.35);
  --qd-faq-border: #E8EDF3;
  --qd-faq-border-soft: #F1F5F9;
  --qd-faq-tx-title: #0F2034;
  --qd-faq-tx-body: #475569;
  --qd-faq-tx-muted: #64748B;
  --qd-faq-bg-card: #FFFFFF;
  --qd-faq-bg-active: #FFFBF7;
  --qd-faq-radius-lg: 24px;
  --qd-faq-radius-md: 16px;
  --qd-faq-radius-sm: 12px;
}

/* ── Full-Width Section Environment ────────────────────────────────── */
#faq-experience.qd-faq-section {
  width: 100% !important;
  max-width: 100% !important;
  background: radial-gradient(circle at 75% 45%, rgba(255, 106, 42, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 20% 70%, rgba(15, 32, 52, 0.02) 0%, transparent 50%),
              linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 50%, #FFFFFF 100%) !important;
  padding: 84px 3% 90px !important;
  position: relative !important;
  overflow: hidden !important;
  color: var(--qd-faq-tx-title) !important;
  box-sizing: border-box !important;
  border-top: 1px solid #E8EDF3 !important;
}

.qd-faq-container {
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Section Header ────────────────────────────────────────────────── */
.qd-faq-header {
  text-align: center;
  margin-bottom: 36px;
}

.qd-faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 106, 42, 0.1);
  border: 1px solid rgba(255, 106, 42, 0.25);
  color: var(--qd-faq-orange);
  font-size: 13px;
  font-weight: 850;
  padding: 5px 18px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.qd-faq-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--qd-faq-navy);
  margin: 0 0 10px;
  line-height: 1.25;
}

.qd-faq-title .hl-orange {
  color: var(--qd-faq-orange);
}

.qd-faq-subtitle {
  font-size: clamp(14.5px, 1.6vw, 17px);
  color: var(--qd-faq-tx-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── LARGE QUESTION / SEARCH BAR ───────────────────────────────────── */
.qd-faq-search-wrap {
  max-width: 820px;
  margin: 0 auto 52px;
  position: relative;
}

.qd-faq-search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid rgba(255, 106, 42, 0.35);
  border-radius: 60px;
  padding: 8px 14px 8px 24px;
  box-shadow: 0 10px 32px rgba(255, 106, 42, 0.08), 0 4px 16px rgba(15, 32, 52, 0.03);
  transition: all 0.35s ease;
  position: relative;
}

html[dir="ltr"] .qd-faq-search-box {
  padding: 8px 24px 8px 14px;
}

.qd-faq-search-box:focus-within {
  border-color: var(--qd-faq-orange);
  box-shadow: 0 14px 40px rgba(255, 106, 42, 0.18), 0 0 0 3px rgba(255, 106, 42, 0.15);
  transform: translateY(-2px);
}

/* Orbital Rotating Search Control */
.qd-faq-search-ctrl {
  width: 58px;
  height: 58px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qd-faq-orbit-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.qd-faq-orbit-ring-1 {
  transform-origin: 29px 29px;
  animation: qdOrbitRotate 14s linear infinite;
}

.qd-faq-orbit-ring-2 {
  transform-origin: 29px 29px;
  animation: qdOrbitRotateRev 20s linear infinite;
}

.qd-faq-search-btn-inner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFF7ED;
  border: 1.5px solid rgba(255, 106, 42, 0.3);
  color: var(--qd-faq-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all 0.25s ease;
}

.qd-faq-search-box:focus-within .qd-faq-search-btn-inner {
  background: var(--qd-faq-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 106, 42, 0.35);
}

.qd-faq-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  color: var(--qd-faq-navy);
  font-family: inherit;
  font-weight: 600;
  outline: none;
}

.qd-faq-search-input::placeholder {
  color: #94A3B8;
  font-weight: 500;
}

.qd-faq-search-icon-trail {
  color: #CBD5E1;
  font-size: 15px;
  padding-inline-end: 10px;
}

/* ── MAIN COMPOSITION LAYOUT (ACCORDION + DIGITAL QUESTION MARK) ───── */
.qd-faq-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 36px;
  align-items: center;
  position: relative;
  margin-bottom: 48px;
}

/* ── LEFT AREA: UNIFIED FAQ ACCORDION CONTAINER ────────────────────── */
.qd-faq-accordion-wrap {
  background: #FFFFFF;
  border: 1.5px solid var(--qd-faq-border);
  border-radius: var(--qd-faq-radius-lg);
  box-shadow: 0 16px 45px rgba(15, 32, 52, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.qd-faq-item {
  border-bottom: 1px solid var(--qd-faq-border-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.qd-faq-item:last-child {
  border-bottom: none;
}

.qd-faq-item.is-active {
  background: var(--qd-faq-bg-active);
  border-inline-start: 4px solid var(--qd-faq-orange);
}

.qd-faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: start;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.qd-faq-question-btn:focus-visible {
  background: rgba(255, 106, 42, 0.05);
}

.qd-faq-q-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

/* Category / Context Icon Badge */
.qd-faq-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--qd-faq-radius-sm);
  background: #FFF7ED;
  border: 1px solid rgba(255, 106, 42, 0.2);
  color: var(--qd-faq-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.qd-faq-item.is-active .qd-faq-icon-badge {
  background: var(--qd-faq-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 106, 42, 0.3);
  transform: scale(1.05);
}

.qd-faq-q-text {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 850;
  color: var(--qd-faq-navy);
  line-height: 1.45;
  transition: color 0.25s ease;
}

.qd-faq-item.is-active .qd-faq-q-text {
  color: #0F2034;
}

/* Plus / Minus Circular Toggle Control */
.qd-faq-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: var(--qd-faq-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.qd-faq-item.is-active .qd-faq-toggle-btn {
  background: #FFF7ED;
  border-color: rgba(255, 106, 42, 0.4);
  color: var(--qd-faq-orange);
  transform: rotate(180deg);
}

/* Smooth Accordion Answer Panel */
.qd-faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
}

.qd-faq-item.is-active .qd-faq-answer-panel {
  opacity: 1;
}

.qd-faq-answer-inner {
  padding: 0 28px 24px 88px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--qd-faq-tx-body);
}

html[dir="ltr"] .qd-faq-answer-inner {
  padding: 0 88px 24px 28px;
}

/* No Search Results Message */
.qd-faq-no-results {
  padding: 40px 24px;
  text-align: center;
  color: var(--qd-faq-tx-muted);
  display: none;
}

.qd-faq-no-results i {
  font-size: 32px;
  color: var(--qd-faq-orange);
  margin-bottom: 12px;
}

.qd-faq-no-results p {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

/* ── RIGHT AREA: 3D DIGITAL NETWORK QUESTION MARK ARTWORK ──────────── */
.qd-faq-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.qd-faq-qmark-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qd-faq-qmark-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 30px rgba(15, 32, 52, 0.08));
}

/* Question Mark Network Node Animations */
.qd-node-pulse-1 { animation: qdNodeBlink 2.2s ease-in-out infinite alternate; }
.qd-node-pulse-2 { animation: qdNodeBlink 1.7s ease-in-out infinite alternate 0.4s; }
.qd-node-pulse-3 { animation: qdNodeBlink 2.8s ease-in-out infinite alternate 0.8s; }
.qd-node-orange-glow { animation: qdOrangeGlow 2.0s ease-in-out infinite alternate; }

/* Lower Sphere & Ground Orbital Rings */
.qd-ground-ring-1 {
  transform-origin: 220px 410px;
  animation: qdOrbitRotate 24s linear infinite;
}
.qd-ground-ring-2 {
  transform-origin: 220px 410px;
  animation: qdOrbitRotateRev 32s linear infinite;
}
.qd-ground-ring-3 {
  transform-origin: 220px 410px;
  animation: qdOrbitRotate 40s linear infinite;
}

.qd-sphere-dot {
  transform-origin: 220px 365px;
  animation: qdSphereDrift 4s ease-in-out infinite alternate;
}

/* Ambient Floating Background Particles */
.qd-particle-drift-1 { animation: qdParticleFloat1 6s ease-in-out infinite alternate; }
.qd-particle-drift-2 { animation: qdParticleFloat2 7s ease-in-out infinite alternate; }
.qd-particle-drift-3 { animation: qdParticleFloat3 5s ease-in-out infinite alternate; }

/* ── ANIMATED FAQ → QUESTION MARK CONNECTOR PATH ───────────────────── */
.qd-faq-connector-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.qd-faq-connect-path {
  fill: none;
  stroke: var(--qd-faq-orange);
  stroke-width: 2;
  stroke-dasharray: 6 5;
  stroke-linecap: round;
  opacity: 0.85;
  transition: all 0.45s ease;
}

.qd-faq-connect-pulse-node {
  fill: var(--qd-faq-orange);
  filter: drop-shadow(0 0 8px rgba(255, 106, 42, 0.8));
  transition: all 0.45s ease;
}

/* ── HELP / CONTACT CTA STRIP ──────────────────────────────────────── */
.qd-faq-help-strip {
  background: linear-gradient(180deg, #FFFBF7 0%, #FFFFFF 100%);
  border: 1.5px solid rgba(255, 106, 42, 0.28);
  border-radius: var(--qd-faq-radius-lg);
  padding: 22px 34px;
  box-shadow: 0 10px 30px rgba(255, 106, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.qd-faq-help-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Support Headset SVG & Chat Bubble */
.qd-faq-support-art {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  position: relative;
}

.qd-faq-chat-dot-1 { animation: qdChatDot 1.4s infinite 0.0s; }
.qd-faq-chat-dot-2 { animation: qdChatDot 1.4s infinite 0.2s; }
.qd-faq-chat-dot-3 { animation: qdChatDot 1.4s infinite 0.4s; }

.qd-faq-help-info {
  display: flex;
  flex-direction: column;
}

.qd-faq-help-title {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 900;
  color: var(--qd-faq-navy);
  margin-bottom: 4px;
}

.qd-faq-help-desc {
  font-size: 14px;
  color: var(--qd-faq-tx-muted);
  line-height: 1.5;
  margin: 0;
}

.qd-faq-help-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Dotted Curved Arrow to CTA */
.qd-faq-arrow-svg {
  width: 65px;
  height: 30px;
  display: block;
}

.qd-faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--qd-faq-orange);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 850;
  padding: 13px 28px;
  border-radius: 40px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(255, 106, 42, 0.35);
  transition: all 0.3s ease;
  position: relative;
}

.qd-faq-cta-btn:hover {
  background: #E05318;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 106, 42, 0.45);
}

/* ── BOTTOM TRUST / FEATURES ROW (4 DISTINCT ELEVATED CARDS) ───────── */
.qd-faq-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.qd-faq-trust-item {
  border-radius: var(--qd-faq-radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(15, 32, 52, 0.04);
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
}

.qd-faq-trust-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15, 32, 52, 0.08);
}

/* 4 Distinct Identity Card Backgrounds */
.qd-faq-trust-item.card-blue {
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
  border-color: rgba(0, 180, 216, 0.25);
}

.qd-faq-trust-item.card-orange {
  background: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 100%);
  border-color: rgba(255, 106, 42, 0.25);
}

.qd-faq-trust-item.card-green {
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border-color: rgba(16, 185, 129, 0.25);
}

.qd-faq-trust-item.card-purple {
  background: linear-gradient(180deg, #FAF5FF 0%, #FFFFFF 100%);
  border-color: rgba(139, 92, 246, 0.25);
}

.qd-faq-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.qd-faq-trust-icon.blue { background: rgba(0, 180, 216, 0.15); color: #00B4D8; }
.qd-faq-trust-icon.orange { background: rgba(255, 106, 42, 0.15); color: #FF6A2A; }
.qd-faq-trust-icon.green { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.qd-faq-trust-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }

.qd-faq-trust-info {
  display: flex;
  flex-direction: column;
}

.qd-faq-trust-hd {
  font-size: 14px;
  font-weight: 850;
  color: var(--qd-faq-navy);
  margin-bottom: 2px;
}

.qd-faq-trust-sub {
  font-size: 12px;
  color: var(--qd-faq-tx-muted);
}

/* ── Keyframe Animations ───────────────────────────────────────────── */
@keyframes qdOrbitRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes qdOrbitRotateRev {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes qdNodeBlink {
  0% { opacity: 0.35; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.2); }
}

@keyframes qdOrangeGlow {
  0% { opacity: 0.5; filter: drop-shadow(0 0 4px rgba(255, 106, 42, 0.4)); }
  100% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 106, 42, 0.9)); }
}

@keyframes qdSphereDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes qdParticleFloat1 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(6px, -12px); }
}

@keyframes qdParticleFloat2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-8px, -10px); }
}

@keyframes qdParticleFloat3 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10px, 8px); }
}

@keyframes qdChatDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ── Responsive Adaptations ────────────────────────────────────────── */
@media (max-width: 1080px) {
  .qd-faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .qd-faq-visual-wrap {
    order: -1;
    min-height: 380px;
  }
  .qd-faq-qmark-stage {
    height: 380px;
    max-width: 360px;
  }
  .qd-faq-connector-svg {
    display: none;
  }
  .qd-faq-trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .qd-faq-trust-item:nth-child(2) {
    border-inline-end: none;
  }
}

@media (max-width: 768px) {
  #faq-experience.qd-faq-section {
    padding: 56px 4% 64px !important;
  }
  .qd-faq-search-wrap {
    margin-bottom: 36px;
  }
  .qd-faq-question-btn {
    padding: 18px 20px;
  }
  .qd-faq-answer-inner {
    padding: 0 20px 20px 20px;
  }
  html[dir="ltr"] .qd-faq-answer-inner {
    padding: 0 20px 20px 20px;
  }
  .qd-faq-help-strip {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .qd-faq-help-left {
    flex-direction: column;
    text-align: center;
  }
  .qd-faq-help-right {
    width: 100%;
    justify-content: center;
  }
  .qd-faq-arrow-svg {
    display: none;
  }
  .qd-faq-trust-strip {
    grid-template-columns: 1fr;
  }
  .qd-faq-trust-item {
    border-inline-end: none;
    border-bottom: 1px solid var(--qd-faq-border-soft);
    padding: 12px 10px;
  }
  .qd-faq-trust-item:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qd-faq-orbit-ring-1,
  .qd-faq-orbit-ring-2,
  .qd-node-pulse-1,
  .qd-node-pulse-2,
  .qd-node-pulse-3,
  .qd-node-orange-glow,
  .qd-ground-ring-1,
  .qd-ground-ring-2,
  .qd-ground-ring-3,
  .qd-sphere-dot,
  .qd-particle-drift-1,
  .qd-particle-drift-2,
  .qd-particle-drift-3,
  .qd-faq-chat-dot-1,
  .qd-faq-chat-dot-2,
  .qd-faq-chat-dot-3 {
    animation: none !important;
    transition: none !important;
  }
}
