/* FAQ PAGE SPECIFIC STYLES */

/* Variables */
:root {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --secondary: #1e293b;
  --accent: #8b5cf6;
  --light: #f8fafc;
  --gray: #94a3b8;
  --dark: #0f172a;
  --success: #10b981;
  --danger: #ef4444;
}

/* UPDATED: FAQ Hero Section with Contact Page Background */
.contact-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 150px 40px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.contact-hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 25px;
  background: linear-gradient(to right, var(--light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  overflow: hidden;
}

.tagline {
  font-size: 14px;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 30px;
  animation: fadeIn 1s ease;
}

.description {
  color: var(--gray);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1.5s ease;
}

/* UPDATED: Search Box - Matches Help Center */
.faq-search.help-center-search {
  max-width: 600px;
  margin: 40px auto 0;
  position: relative;
}

.faq-search .search-form {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.faq-search .search-form:focus-within {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.faq-search .search-input {
  width: 100%;
  padding: 18px 25px;
  background: transparent;
  border: none;
  border-radius: 50px 0 0 50px;
  color: var(--light);
  font-size: 16px;
  transition: all 0.3s ease;
}

.faq-search .search-input:focus {
  outline: none;
}

.faq-search .search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.faq-search .search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 30px;
  border-radius: 0 50px 50px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 100px;
}

.faq-search .search-btn:hover {
  background: var(--primary-light);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* FAQ Categories */
.faq-categories {
  padding: 80px 40px;
  background: white;
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
}

.categories-container h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  color: var(--dark);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.category-card {
  background: var(--light);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  background: rgba(59, 130, 246, 0.2);
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark);
}

.category-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* Main FAQ Section */
.main-faq-section {
  padding: 80px 40px;
  background: #ffffff;
}

.faq-main-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-title p {
  color: #666;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ Category Groups */
.faq-category-group {
  margin-bottom: 60px;
}

.category-title {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.faq-question:hover {
  background: rgba(59, 130, 246, 0.05);
}

.faq-question span {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  flex: 1;
  margin-right: 20px;
}

.faq-toggle {
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #666;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 30px 25px;
  max-height: 1000px;
}

.faq-answer p {
  margin-bottom: 15px;
}

.faq-answer ul,
.faq-answer ol {
  margin: 15px 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
}

/* UPDATED: CTA Section - EXACT COPY FROM INDUSTRIES PAGE (same width and styling) */
.cta-section.white-theme {
  padding: 100px 40px !important;
  position: relative;
  overflow: hidden;
  background: white !important;
  margin: 0;
  width: 100%;
}

.cta-section.white-theme .cta-container {
  max-width: 800px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  text-align: center;
  width: 100%;
}

.cta-section.white-theme h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #333 !important;
  line-height: 1.2;
  font-weight: 700;
}

.cta-section.white-theme p {
  font-size: 20px;
  margin-bottom: 40px;
  color: #666 !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-section.white-theme .cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cta-section.white-theme .cta-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important;
  color: white !important;
  text-decoration: none;
  border: none !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.cta-section.white-theme .cta-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5) !important;
  background: linear-gradient(90deg, var(--primary-light), var(--primary)) !important;
  color: white !important;
}

.cta-section.white-theme .cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-section.white-theme .cta-button:hover::before {
  left: 100%;
}

/* CTA Background */
.cta-bg {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 40%
    ),
    linear-gradient(90deg, rgba(15, 23, 42, 0.7) 0%, transparent 50%);
  background-size: 180% 180%;
  animation: gradientFlow 25s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cta-section.white-theme h2 {
    font-size: 38px;
  }
}

@media (max-width: 992px) {
  .contact-hero h1 {
    font-size: 42px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-section.white-theme {
    padding: 80px 40px !important;
  }
  
  .cta-section.white-theme h2 {
    font-size: 34px;
  }
  
  .cta-section.white-theme p {
    font-size: 18px;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .contact-hero,
  .faq-categories,
  .main-faq-section {
    padding: 60px 20px;
  }

  .contact-hero {
    padding: 130px 20px 60px;
  }

  .contact-hero h1 {
    font-size: 36px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question span {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
  }

  .cta-section.white-theme {
    padding: 80px 20px !important;
  }

  .cta-section.white-theme h2 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .cta-section.white-theme p {
    font-size: 17px;
    margin-bottom: 35px;
  }

  .cta-section.white-theme .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .cta-section.white-theme .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 16px 30px !important;
  }
}

@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 32px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .category-title {
    font-size: 24px;
  }

  .cta-section.white-theme h2 {
    font-size: 28px;
  }

  .cta-section.white-theme p {
    font-size: 16px;
    margin-bottom: 30px;
  }
}