/* FAQ Page Styles */

.faq-page {
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Hero Section */
.faq-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: '?';
  position: absolute;
  top: 10%;
  left: 5%;
  font-size: 120px;
  font-weight: 800;
  color: rgba(10, 144, 234, 0.05);
  transform: rotate(-15deg);
}

.faq-hero__badge {
  display: inline-block;
  background: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #1e293b;
  margin-bottom: var(--space-4);
}

.faq-hero__subtitle {
  font-size: var(--text-lg);
  color: #64748b;
  max-width: 600px;
  margin: 0 auto var(--space-10);
}

/* Search Bar */
.faq-search {
  max-width: 700px;
  margin: 0 auto;
}

.faq-search__wrapper {
  display: flex;
  background: #fff;
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  align-items: center;
}

.faq-search__icon {
  margin: 0 16px;
  color: #94a3b8;
}

.faq-search__input {
  flex: 1;
  border: none;
  padding: 12px 0;
  font-size: var(--text-base);
  outline: none;
}

.faq-search__btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-search__btn:hover {
  background: #087bc9;
  transform: translateY(-1px);
}

/* ===== Product Tabs Navigation ===== */
.faq-tabs-section {
  padding: var(--space-8) 0 var(--space-6);
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

/* Outer flex row: [<] [tabs scroll] [>] */
.faq-tabs-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Navigation arrow buttons */
.faq-nav-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-nav-arrow:hover:not(:disabled) {
  background: var(--color-primary, #0a90ea);
  border-color: var(--color-primary, #0a90ea);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 144, 234, 0.35);
  transform: scale(1.05);
}

.faq-nav-arrow:active:not(:disabled) {
  transform: scale(0.95);
}

.faq-nav-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Scrollable tabs wrapper - hides overflow */
.faq-tabs-scroll-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Left/right fade masks */
.faq-tabs-scroll-wrapper::before,
.faq-tabs-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
  opacity: 0;
}
.faq-tabs-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255,255,255,0));
}
.faq-tabs-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255,255,255,0));
}
.faq-tabs-scroll-wrapper.has-left::before  { opacity: 1; }
.faq-tabs-scroll-wrapper.has-right::after  { opacity: 1; }

/* The actual scrollable row */
.faq-tabs {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.faq-tabs::-webkit-scrollbar { display: none; }

/* Individual tab */
.faq-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 110px;
  flex-shrink: 0;
}

.faq-tab__icon {
  font-size: 22px;
  background: #f1f5f9;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s;
}

.faq-tab__name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.faq-tab--active {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.faq-tab--active .faq-tab__icon {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 144, 234, 0.3);
}
.faq-tab--active .faq-tab__name {
  color: var(--color-primary);
}
.faq-tab:hover:not(.faq-tab--active) {
  background: #f8fafc;
}

/* Dot indicator row */
.faq-tabs-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-4);
  min-height: 10px;
}

.faq-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.faq-indicator-dot:hover {
  background: #94a3b8;
  transform: scale(1.2);
}

.faq-indicator-dot--active {
  background: var(--color-primary, #0a90ea);
  width: 22px;
  border-radius: 4px;
}

/* Layout */
.faq-main {
  padding: var(--space-12) 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 320px 1fr;
  }
}

/* Sidebar */
.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.faq-category-card {
  background: #fff;
  padding: var(--space-6);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
}

.faq-sidebar__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: #1e293b;
}

.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748b;
  text-decoration: none;
}

.faq-category__left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.faq-category__count {
  font-size: 11px;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 20px;
  color: #94a3b8;
}

.faq-category--active {
  background: #f1f5f9;
  color: var(--color-primary);
}

.faq-category--active .faq-category__count {
  background: var(--color-primary);
  color: #fff;
}

.faq-category:hover:not(.faq-category--active) {
  background: #f8fafc;
  color: #1e293b;
}

.faq-contact-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: var(--space-6);
  border-radius: 20px;
  text-align: center;
}

.faq-contact-card h4 {
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.faq-contact-card p {
  font-size: var(--text-sm);
  color: #64748b;
  margin-bottom: var(--space-6);
}

.faq-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* FAQ Content */
.faq-content__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.faq-content__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #1e293b;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Accordion Item */
.faq-item {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item--active {
  border-color: #bfdbfe;
  box-shadow: 0 4px 20px rgba(10, 144, 234, 0.05);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
  font-size: var(--text-base);
  gap: 16px;
}

.faq-item__number {
  color: var(--color-primary);
  margin-right: 8px;
}

.faq-item__toggle {
  width: 24px;
  height: 24px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s;
  flex-shrink: 0;
}

.faq-item--active .faq-item__toggle {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #fcfdfe;
}

.faq-item--active .faq-item__answer {
  max-height: 500px;
  /* Large enough to fit content */
}

.faq-item__answer-inner {
  padding: 0 24px 24px 56px;
  color: #64748b;
  line-height: 1.7;
  font-size: var(--text-sm);
}

/* Pagination */
.faq-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-10);
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.page-btn:hover:not(.page-btn--active) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-btn:disabled:hover {
  background: #fff;
  border-color: #e2e8f0;
}

/* Premium FAQ CTA Section */
.faq-cta-premium {
  padding: var(--space-20) 0;
  background-color: #f8fafc;
}

.faq-cta-card-main {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-radius: 32px;
  padding: var(--space-12);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 144, 234, 0.08);
  border: 1px solid #e0f2fe;
}

@media (min-width: 1024px) {
  .faq-cta-card-main {
    grid-template-columns: 350px 1fr;
    padding: var(--space-16);
  }
}

.faq-cta-content-left {
  position: relative;
  z-index: 2;
}

.faq-cta-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #1e293b;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.faq-cta-subtitle {
  font-size: var(--text-lg);
  color: #64748b;
  margin-bottom: var(--space-8);
}

.faq-robot-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.faq-robot-img {
  width: 220px;
  filter: drop-shadow(0 20px 40px rgba(10, 144, 234, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.faq-cta-cards-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .faq-cta-cards-right {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cta-card {
  background: #fff;
  padding: var(--space-8) var(--space-6);
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border-color: var(--color-primary-light);
}

.cta-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.cta-card__icon svg {
  width: 32px;
  height: 32px;
}

.icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}

.icon--green {
  background: #f0fdf4;
  color: #10b981;
}

.icon--orange {
  background: #fff7ed;
  color: #f97316;
}

.cta-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: var(--space-3);
}

.cta-card__text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.cta-card__btn {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  font-size: 13px;
  padding: 10px;
}

/* Features Bar */
.faq-features-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding: 0 var(--space-4);
}

@media (min-width: 1024px) {
  .faq-features-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: var(--text-sm);
  color: #1e293b;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 12px;
  color: #94a3b8;
}

/* Loading & States */
.faq-loading {
  text-align: center;
  padding: var(--space-10);
  color: #94a3b8;
}