/* ===================================
   FAQ PAGE STYLES
   =================================== */

/* CSS Variables for easy customization */
:root {
  --faq-primary: #2c3e50;
  --faq-secondary: #3498db;
  --faq-accent: #e74c3c;
  --faq-success: #27ae60;
  --faq-warning: #f39c12;
  --faq-light: #ecf0f1;
  --faq-dark: #34495e;
  --faq-text: #2c3e50;
  --faq-muted: #7f8c8d;
  --faq-border: #bdc3c7;
  --faq-shadow: rgba(0, 0, 0, 0.1);
  --faq-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* FAQ Section */
.faq-section {
  padding: 20px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  opacity: 0.3;
}

/* FAQ Header */
.faq-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.faq-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--faq-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--faq-gradient);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.intro-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--faq-secondary);
  margin-bottom: 15px;
}

.intro-subtitle {
  font-size: 18px;
  color: var(--faq-muted);
  margin-bottom: 30px;
}

.intro-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--faq-text);
  margin-bottom: 40px;
}

/* Option Highlight */
.option-highlight {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 2px solid var(--faq-border);
  border-radius: 12px;
  padding: 20px 30px;
  margin: 15px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--faq-shadow);
}

.option-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--faq-secondary);
}

.option-number {
  background: var(--faq-gradient);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.option-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--faq-primary);
}

/* FAQ Sections */
.faq-section {
  margin-bottom: 10px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--faq-shadow);
  border: 1px solid var(--faq-border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--faq-gradient);
  opacity: 0.8;
}

.section-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--faq-primary);
  margin-bottom: 10px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.section-header i {
  color: var(--faq-secondary);
  font-size: 28px;
  transition: transform 0.3s ease;
}

.section-header:hover i {
  transform: scale(1.1);
}

.section-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--faq-accent);
  margin-bottom: 15px;
}

.section-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--faq-muted);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ Items */
.faq-items {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--faq-shadow);
  border: 1px solid var(--faq-border);
  transition: all 0.3s ease;
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--faq-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: var(--faq-secondary);
}

.faq-item:hover::before {
  opacity: 1;
}

/* FAQ Question */
.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  user-select: none;
  position: relative;
  z-index: 1;
}

.faq-question::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--faq-border), transparent);
  opacity: 0.5;
}

.faq-question:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

.faq-question h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--faq-primary);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  position: relative;
  z-index: 1;
}

.faq-question i {
  color: var(--faq-muted);
  font-size: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
  border-top: 1px solid var(--faq-border);
  position: relative;
}

.faq-answer.open {
  max-height: 500px;
  padding: 25px 30px;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--faq-text);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.faq-answer p:first-child::before {
  content: '"';
  font-size: 24px;
  color: var(--faq-secondary);
  opacity: 0.3;
  position: absolute;
  left: -10px;
  top: -5px;
}

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

.faq-answer ul {
  margin: 15px 0;
  padding-left: 25px;
  position: relative;
}

.faq-answer li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--faq-text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
  transition: transform 0.2s ease;
}

.faq-answer li:hover {
  transform: translateX(5px);
  color: var(--faq-primary);
}

.faq-answer li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--faq-secondary);
  font-weight: bold;
  font-size: 18px;
  transition: color 0.2s ease;
}

.faq-answer li:hover::before {
  color: var(--faq-primary);
}

/* Contact CTA */
.contact-cta {
  margin-top: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-card {
  background: var(--faq-gradient);
  color: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  animation: float 4s ease-in-out infinite;
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.cta-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.cta-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: white;
  color: var(--faq-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.cta-button:hover::before {
  width: 100%;
  height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-header h1 {
    font-size: 32px;
  }
  
  .option-highlight {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .option-highlight:not(:last-child) {
    margin-bottom: 20px;
  }
  
  .section-header {
    padding: 25px 20px;
  }
  
  .section-header h2 {
    font-size: 24px;
    flex-direction: column;
    gap: 10px;
  }
  
  .section-header i {
    font-size: 24px;
  }
  
  .faq-question {
    padding: 20px;
  }
  
  .faq-question h3 {
    font-size: 16px;
  }
  
  .faq-answer.open {
    max-height: 400px;
    padding: 20px;
  }
  
  .cta-card {
    padding: 30px 25px;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 40px 0;
  }
  
  .faq-header {
    margin-bottom: 40px;
  }
  
  .section-header {
    padding: 20px 15px;
  }
  
  .faq-question {
    padding: 15px;
  }
  
  .faq-answer.open {
    padding: 15px;
  }
  
  .cta-card {
    padding: 30px 20px;
  }
}

/* Print Styles */
@media print {
  .faq-section {
    background: white;
    padding: 20px 0;
  }
  
  .faq-header {
    margin-bottom: 30px;
  }
  
  .section-header,
  .cta-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .faq-item {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
    margin-bottom: 15px;
  }
  
  .faq-question {
    background: #f5f5f5;
  }
  
  .faq-answer {
    background: white;
    border-color: #ddd;
  }
  
  .faq-answer.open {
    max-height: none;
  }
  
  .cta-card {
    display: none;
  }
}

/* Animation for FAQ toggle */
.faq-question i.fa-chevron-up {
  transform: rotate(180deg);
  color: var(--faq-secondary);
}

/* Focus states for accessibility */
.faq-question:focus {
  outline: 3px solid var(--faq-secondary);
  outline-offset: 2px;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}
