/* --- FAQ Page Styles --- */

.faq-header {
  background: var(--bg-color); /* Green background */
  color: var(--bg-secondary);
  padding: 100px 0 60px 0;
  text-align: center;
}

.faq-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.faq-header p {
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 1.25rem;
  opacity: 0.8;
}

.faq-page-container {
  background-color: var(--bg-secondary); /* Beige background */
  color: var(--bg-color);
  padding: 80px 0 0 0; /* Remove bottom padding to let CTA margins handle spacing */
}

.faq-list {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(17, 48, 37, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(17, 48, 37, 0.06);
  border-color: rgba(17, 48, 37, 0.15);
}

/* FAQ Accordion Question Trigger */
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 24px 30px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bg-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(17, 48, 37, 0.02);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, transform 0.4s ease;
}

/* Plus sign styling */
.faq-icon::before {
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  top: 2px;
  left: 9px;
  width: 2px;
  height: 16px;
}

/* Open State rotation and color */
.faq-item.active .faq-icon {
  transform: rotate(135deg);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  background-color: #c5a367; /* Shift icon to gold when open */
}

.faq-item.active .faq-question {
  color: #c5a367;
  border-bottom: 1px solid rgba(17, 48, 37, 0.05);
}

/* FAQ Accordion Answer Panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  opacity: 1;
}

.faq-answer-inner {
  padding: 30px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(17, 48, 37, 0.85);
  border-top: 1px solid rgba(17, 48, 37, 0.05);
}

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

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

/* Satisfied/Helpfulness feedback Widget */
.faq-feedback {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed rgba(17, 48, 37, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.faq-feedback-prompt {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(17, 48, 37, 0.6);
}

.faq-feedback-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.faq-feedback-btn {
  background: transparent;
  border: 1px solid rgba(17, 48, 37, 0.15);
  color: var(--bg-color);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-feedback-btn:hover {
  background: var(--bg-color);
  color: var(--bg-secondary) !important;
  border-color: var(--bg-color);
}

/* Feedback Responses */
.faq-feedback-response {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c5a367;
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease;
}

.faq-feedback-response.visible {
  display: block;
  opacity: 1;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .faq-header {
    padding: 80px 0 40px 0;
  }
  
  .faq-header h1 {
    font-size: 2.2rem;
  }
  
  .faq-header p {
    font-size: 1.05rem;
  }
  
  .faq-page-container {
    padding: 40px 0 0 0; /* Remove bottom padding on mobile */
  }
  
  .faq-question {
    padding: 20px;
    font-size: 0.95rem;
  }
  
  .faq-answer-inner {
    padding: 20px;
    font-size: 0.9rem;
  }
  
  .faq-feedback {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- FAQ Contact CTA Section --- */
.faq-contact-cta {
  background: var(--bg-color); /* Luxury deep green brand color */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(17, 48, 37, 0.15);
  padding: 26px 35px;
  margin: 50px 0; /* Symmetric 50px top and bottom spacing */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.faq-contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(17, 48, 37, 0.25);
}

.faq-contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.faq-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white tint */
  color: var(--bg-secondary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--bg-secondary); /* Brand cream icon */
}

.faq-contact-text {
  text-align: left;
}

.faq-contact-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #ffffff; /* White title for high contrast */
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.faq-contact-text p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(230, 221, 212, 0.75); /* Soft cream body text */
  margin: 0;
}

.btn-faq-contact {
  background: var(--bg-secondary) !important; /* Brand cream background button */
  border-color: var(--bg-secondary) !important;
  color: var(--bg-color) !important; /* Dark green text */
  padding: 10px 24px !important; /* Elegant compact padding */
  font-size: 0.8rem !important; /* Smaller, refined text */
  border-radius: 50px !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-faq-contact:hover {
  background: transparent !important;
  color: var(--bg-secondary) !important;
  border-color: var(--bg-secondary) !important;
}

/* Mobile Responsiveness for FAQ Contact CTA */
@media (max-width: 900px) {
  .faq-contact-cta {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 20px;
    margin: 30px 0; /* Symmetric 30px top and bottom spacing on mobile */
  }
  
  .faq-contact-info {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .faq-contact-text {
    text-align: center;
  }
  
  .faq-contact-text h3 {
    font-size: 1.2rem;
  }
  
  .faq-contact-text p {
    font-size: 0.85rem;
  }
}
