/*
  LastPick - FAQ Section
  This file contains styles for the FAQ accordion.
*/

.faq-accordion-section {
  background: var(--cream);
}

.faq-accordion-inner {
  max-width: 920px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.faq-accordion-header {
  text-align: left;
  margin-bottom: clamp(1.75rem, 5vw, 3rem); /* REFINEMENT: Adjusted space between heading and accordion. */
  width: 100%; /* REFINEMENT: Ensure header takes full width for centering. */
}

.faq-accordion-header h2 {
  margin: 0;
  color: #0F5B3C;
  font-weight: 700; /* REFINEMENT: Kept at 700 for a strong but not overpowering heading. */
  font-size: clamp(2rem, 5vw, 2.75rem); /* REFINEMENT: Reduced font size for a more modern, less overpowering heading. */
  line-height: 1.05;
  text-align: center;
}

.faq-accordion-header h2::after {
  display: none; /* REMOVED: The underline below the heading is no longer needed. */
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px; /* REFINEMENT: Set gap to 12px for compact spacing between cards. */
  width: 100%;
}
.accordion-item {
  cursor: pointer;
  border: 1px solid transparent; /* Make border transparent by default */
  border-radius: 16px;
  background: var(--warm-cream);
  box-shadow: var(--shadow-sm); /* REFINEMENT: Use a softer, standardized shadow. */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative; /* For pseudo-element border */
}

/* Inner border effect */
.accordion-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit; /* REFINEMENT: Softer inner border for a subtle definition. */
  border: 1px solid rgba(15, 91, 60, 0.07);
  pointer-events: none;
}

.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md); /* REFINEMENT: Subtle lift and shadow change on hover. */
}

.accordion-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.accordion-trigger {
  display: flex;
  align-items: center; /* FIX: Ensures vertical centering of all items in the trigger. */
  justify-content: space-between;
  gap: var(--space-md); /* REFINEMENT: Reduced gap inside the trigger from 24px to 16px. */
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px var(--space-lg); /* REFINEMENT: Further reduced padding for a more compact card height. */
  text-align: left;
  cursor: pointer;
}

.accordion-title {
  display: flex;
  align-items: center; /* FIX: Center align number and text vertically. */
  gap: var(--space-md); /* REFINEMENT: Reduced gap between number and title from 24px to 16px. */
  color: var(--dark-green);
  font-weight: 600; /* REFINEMENT: Kept at 600 for clear, readable questions. */
  font-size: clamp(1rem, 2vw, 1.125rem); /* REFINEMENT: Reduced font size for a more refined look. */
}

.accordion-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px; /* REFINEMENT: Slightly smaller badge for a more subtle feel. */
  height: 32px;
  border-radius: 999px;
  background: var(--leaf-green);
  color: var(--dark-green);
  font-size: 0.9rem;
  font-weight: 700;
}

.accordion-icon {
  width: 12px;
  height: 12px;
  border-style: solid;
  border-color: var(--dark-green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform var(--transition-base);
}
.accordion-item.open .accordion-trigger .accordion-icon {
  transform: rotate(-135deg);
}
.accordion-item.open .accordion-content {
  opacity: 1;
}

.accordion-panel {
  /* Changed to grid for smooth animation */
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
}

.accordion-content {
  /* Padding adjusted for better alignment and breathing room */
  padding: 0 var(--space-lg) 18px calc(var(--space-md) + 32px + var(--space-md)); /* REFINEMENT: Adjusted padding to align with the smaller number badge. */
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.accordion-content p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem; /* 16px */
  line-height: 1.65; /* FIX: Set line-height for better readability. */
}