/* -------------------------------------------------------------
 * NOERON FAQ DEDICATED STYLESHEET
 * Matches Slay Design System (Ultra-modern glassmorphism & responsive)
 * ----------------------------------------------------------- */

.faq-page-wrapper {
  padding-bottom: 60px;
}

/* FAQ Hero Section */
.faq-hero {
  text-align: center;
  max-width: 920px;
  margin: 32px auto 48px auto;
  padding: 0 16px;
}

.faq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue, #2563EB);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.faq-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark, #0F172A);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.faq-hero-title .text-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.faq-hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted, #64748B);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 36px auto;
}

/* FAQ Interactive Search Bar */
.faq-search-container {
  max-width: 680px;
  margin: 0 auto 36px auto;
  position: relative;
}

.faq-search-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-pill, 9999px);
  padding: 8px 14px 8px 22px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-search-wrapper:focus-within {
  border-color: var(--primary-blue, #2563EB);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.18), 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #FFFFFF;
}

.faq-search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted, #64748B);
  flex-shrink: 0;
  margin-right: 12px;
}

.faq-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text-dark, #0F172A);
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.faq-search-input::placeholder {
  color: var(--text-subtle, #94A3B8);
}

.faq-search-clear {
  background: rgba(100, 116, 139, 0.12);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted, #64748B);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.faq-search-clear:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.faq-search-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted, #64748B);
  margin-top: 10px;
  padding: 0 16px;
}

/* Category Filter Tabs */
.faq-categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 12px;
}

.faq-cat-btn {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #475569;
  padding: 9px 18px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
}

.faq-cat-btn:hover {
  color: var(--primary-blue, #2563EB);
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.faq-cat-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.faq-cat-btn .badge-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.faq-cat-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Accordion Container */
.faq-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
}

/* Individual Accordion Item (<details>) */
.faq-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-card, 20px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.faq-item[open] {
  background: #FFFFFF;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Accordion Summary / Header */
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-question-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.faq-item-category {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-blue, #2563EB);
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 10px;
  border-radius: 9999px;
  width: fit-content;
}

.faq-question-title {
  font-size: clamp(16px, 1.8vw, 18.5px);
  font-weight: 700;
  color: var(--text-dark, #0F172A);
  line-height: 1.38;
  margin: 0;
  transition: color 0.15s ease;
}

.faq-item:hover .faq-question-title {
  color: var(--primary-blue, #2563EB);
}

.faq-chevron-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #64748B);
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover .faq-chevron-icon {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue, #2563EB);
}

.faq-item[open] .faq-chevron-icon {
  background: #2563EB;
  color: #FFFFFF;
  transform: rotate(180deg);
}

/* Accordion Answer Content */
.faq-answer {
  padding: 4px 26px 26px 26px;
  color: #334155;
  font-size: 15.5px;
  line-height: 1.72;
  border-top: 1px solid rgba(241, 245, 249, 0.8);
  margin-top: -2px;
  animation: faqFadeSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  margin-bottom: 14px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--text-dark, #0F172A);
  font-weight: 700;
}

.faq-answer ul, .faq-answer ol {
  margin: 12px 0 16px 20px;
  padding-left: 4px;
}

.faq-answer li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.faq-answer li::marker {
  color: var(--primary-blue, #2563EB);
}

/* Alert / Policy Box inside Answers */
.faq-callout-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-left: 4px solid #2563EB;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  border-right: 1px solid rgba(37, 99, 235, 0.1);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.faq-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: #1E3A8A;
  margin-bottom: 6px;
}

.faq-callout-desc {
  font-size: 14px;
  color: #334155;
  margin: 0 !important;
  line-height: 1.6;
}

/* Question tags strip */
.faq-tags-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(226, 232, 240, 0.8);
}

.faq-tag {
  font-size: 11.5px;
  background: rgba(241, 245, 249, 0.9);
  color: #64748B;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* Empty search state */
.faq-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-card, 20px);
  border: 1px dashed #CBD5E1;
  display: none;
}

.faq-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.faq-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark, #0F172A);
  margin-bottom: 6px;
}

.faq-empty-desc {
  font-size: 14px;
  color: var(--text-muted, #64748B);
  margin-bottom: 20px;
}

/* Still have questions CTA Banner */
.faq-contact-card {
  margin: 64px auto 0 auto;
  max-width: 960px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-banner, 28px);
  padding: 48px 40px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.faq-contact-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.faq-contact-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.faq-contact-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #93C5FD;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.faq-contact-h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.faq-contact-p {
  color: #94A3B8;
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

.faq-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.faq-btn-demo {
  background: #2563EB;
  color: #FFFFFF;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill, 9999px);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  white-space: nowrap;
}

.faq-btn-demo:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.faq-btn-email {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill, 9999px);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  white-space: nowrap;
}

.faq-btn-email:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-summary {
    padding: 18px 20px;
  }
  .faq-answer {
    padding: 2px 20px 20px 20px;
    font-size: 15px;
  }
  .faq-contact-card {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  .faq-contact-p {
    margin: 0 auto;
  }
  .faq-contact-actions {
    width: 100%;
  }
  .faq-btn-demo, .faq-btn-email {
    width: 100%;
  }
}
