/* =============================
   FAQ PAGE - UNIQUE STYLE
   ============================= */

:root {
  --faq-accent: #ff9800;
  --faq-blue: #3476d1;
  --faq-bg: #f6f8fb;
  --faq-glass: rgba(255,255,255,0.75);
  --faq-glass-blur: blur(12px);
  --faq-border: #e0e7ef;
}

body {
  background: var(--faq-bg);
}

/* --- HERO SECTION --- */
.faq-hero {
  min-height: 60vh !important;
  width: 100vw !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--faq-blue) 0%, #2563eb 50%, var(--faq-accent) 100%) !important;
}

.faq-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, rgba(41,80,135,0.2) 0%, rgba(52,118,209,0.1) 100%) !important;
  z-index: 1;
}

.faq-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 300px;
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

.faq-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 22px;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 6px 32px rgba(0,0,0,0.28), 0 1px 2px rgba(0,0,0,0.12);
}

.faq-hero .hero-subtitle {
  font-size: 1.35rem;
  color: #ffffff !important;
  font-weight: 400;
  margin-bottom: 38px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.faq-hero .btn-primary {
  background: var(--faq-accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 16px rgba(255,152,0,0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.faq-hero .btn-primary:hover {
  background: #e68900;
  transform: translateY(-2px) scale(1.04);
}

/* --- SEARCH SECTION --- */
.faq-search-section {
  background: #fff;
  padding: 60px 0 40px 0;
}

.faq-search-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--faq-border);
  border-radius: 12px;
  padding: 4px;
  margin-top: 24px;
  box-shadow: 0 4px 16px rgba(52,118,209,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
  border-color: var(--faq-blue);
  box-shadow: 0 4px 24px rgba(52,118,209,0.15);
}

#faq-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 1.1rem;
  background: transparent;
  color: #333;
}

#faq-search-input::placeholder {
  color: #888;
}

.search-btn {
  background: var(--faq-blue);
  color: #fff;
  border: none;
  padding: 16px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.1rem;
}

.search-btn:hover {
  background: #2563eb;
}

/* --- FAQ CONTENT --- */
.faq-content-section {
  background: #fff;
}

.faq-category {
  margin-bottom: 48px;
}

.faq-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--faq-blue);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--faq-accent);
  display: inline-block;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s, transform 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(52,118,209,0.08);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s, color 0.2s;
}

.faq-question:hover {
  background-color: #f8fafc;
  color: var(--faq-blue);
}

.faq-question i {
  color: var(--faq-accent);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  background-color: #f0f6ff;
  color: var(--faq-blue);
  border-bottom: 1px solid var(--faq-border);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fafbfc;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 24px 28px;
}

.faq-answer p {
  color: #555;
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* --- FAQ CONTACT SECTION --- */
.faq-contact-section {
  background: linear-gradient(135deg, var(--faq-blue) 0%, #2563eb 100%);
  color: #fff;
  text-align: center;
  padding: 48px 32px;
  border-radius: 16px;
  margin-top: 64px;
}

.faq-contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.faq-contact-text {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.faq-contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.faq-contact-buttons .btn {
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.faq-contact-buttons .btn-primary {
  background: var(--faq-accent);
  color: #fff;
  border: none;
}

.faq-contact-buttons .btn-primary:hover {
  background: #e68900;
  transform: translateY(-2px);
}

.faq-contact-buttons .btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.faq-contact-buttons .btn-outline:hover {
  background: #fff;
  color: var(--faq-blue);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .faq-category-title {
    font-size: 1.5rem;
  }
  
  .faq-question {
    padding: 20px 24px;
    font-size: 1rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 20px 24px;
  }
  
  .faq-contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .faq-contact-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 700px) {
  .faq-hero-title { 
    font-size: 2.4rem; 
  }
  
  .faq-hero-content { 
    min-height: 200px; 
    padding: 0 16px; 
  }
  
  .faq-hero .hero-subtitle { 
    font-size: 1.1rem; 
  }
  
  .search-box {
    flex-direction: column;
    gap: 12px;
  }
  
  #faq-search-input {
    padding: 14px 16px;
  }
  
  .search-btn {
    align-self: stretch;
    padding: 14px;
  }
  
  .faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 16px 20px;
  }
  
  .faq-contact-section {
    padding: 32px 20px;
  }
  
  .faq-contact-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .faq-hero-title { 
    font-size: 1.8rem; 
  }
  
  .faq-hero .hero-subtitle { 
    font-size: 1rem; 
    margin-bottom: 24px; 
  }
  
  .faq-hero-content { 
    padding: 0 12px; 
    min-height: 180px; 
  }
  
  .faq-category-title {
    font-size: 1.3rem;
  }
  
  .faq-question {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 14px 16px;
  }
}

/* --- SEARCH FUNCTIONALITY --- */
.faq-item.hidden {
  display: none;
}

.faq-category.empty {
  display: none;
}

.no-results {
  text-align: center;
  padding: 48px 20px;
  color: #666;
}

.no-results h3 {
  color: var(--faq-blue);
  margin-bottom: 16px;
}

/* --- ANIMATION CLASSES --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

.animate-on-load {
  animation: fadeInUp 0.8s ease forwards;
} 