/* FAQ Block Styles */
.faq-block {
  padding: 80px 40px;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Main Heading - Outside columns */
.faq-heading-wrapper {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 15px;
  margin-bottom: 40px;
}

.faq-heading {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #f99c28;
  text-align: left;
}

/* Two Column Container */
.faq-container {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 60px;
}

/* Left Column - Content */
.faq-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 300px;
}

.faq-subheading {
  font-size: 28px;
  font-weight: 500;
  color: #3d5e44;
  margin: 0;
  flex: 1;
  max-width: 490px;
}

.faq-cta-desktop {
  margin-top: auto;
  padding-top: 40px;
}

.faq-cta-mobile {
  display: none;
}

/* Right Column - FAQ Items */
.faq-items {
  width: 100%;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid #3d5e44;
  transition: border-width 0.3s ease;
}

.faq-item:last-child {
  border-bottom: 1px solid #3d5e44;
}

.faq-item.faq-open {
  border-top: 2px solid #3d5e44;
}

.faq-question {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  outline: none;
  transition: all 0.3s ease;
}

.faq-question:hover {
  opacity: 0.8;
}

.faq-question:focus-visible {
  outline: 2px solid #3d5e44;
  outline-offset: 2px;
}

.faq-question:focus:not(:focus-visible) {
  outline: none;
}

.faq-question-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  color: #000;
  flex: 1;
  padding-right: 20px;
}

.faq-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.faq-icon-open {
  display: none;
}

.faq-item.faq-open .faq-icon-closed {
  display: none;
}

.faq-item.faq-open .faq-icon-open {
  display: block;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
    transform 0.3s ease;
}

.faq-item.faq-open .faq-answer {
  padding-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
}

.faq-answer-content {
  font-size: 16px;
  color: #3d5e44;
}

.faq-answer-content p {
  margin: 0 0 16px 0;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-block {
    padding: 40px 0;
  }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-content {
    min-height: auto;
  }

  /* Hide desktop CTA on mobile */
  .faq-cta-desktop {
    display: none;
  }

  /* Show mobile CTA as last element */
  .faq-cta-mobile {
    display: block;
    max-width: 1512px;
    margin: 40px auto 0;
    padding: 0 15px;
  }

  .faq-cta-mobile-wrapper {
    display: flex;
    justify-content: flex-start;
  }
}
