/* FAQ Section - Accordion Style */
.insurance-faq {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.insurance-faq__container {
  text-align: center;
}

.insurance-faq__title {
  font-size: 34px;
  font-weight: 700;
  color: #2e2e2e;
  margin-bottom: 32px;
}

/* Search Box */
.faq-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
}

.faq-search-input {
  width: 100%;
  padding: 16px 50px 16px 52px;
  font-size: 16px;
  color: #2e2e2e;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.faq-search-input:focus {
  border-color: #22aea1;
  box-shadow: 0 0 0 3px rgba(34, 174, 161, 0.1);
}

.faq-search-input::placeholder {
  color: #999;
}

@supports not (backdrop-filter: blur(10px)) {
  .faq-search-input {
    background: rgba(255, 255, 255, 0.95);
  }
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #22aea1;
  font-size: 24px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(79, 195, 207, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.search-clear-btn:hover {
  background: rgba(79, 195, 207, 0.2);
}

.search-clear-btn:focus {
  outline: 2px solid #22aea1;
  outline-offset: 2px;
}

.search-clear-btn .material-icons {
  font-size: 20px;
  color: #666;
}

/* No Results State */
.faq-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.faq-no-results .material-icons {
  font-size: 64px;
  color: #ccc;
  margin-bottom: 16px;
}

.faq-no-results p {
  font-size: 20px;
  font-weight: 600;
  color: #2e2e2e;
  margin-bottom: 8px;
}

.faq-no-results small {
  font-size: 14px;
  color: #999;
}

.insurance-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insurance-faq-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 2px solid #4fc3cf;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1;
}

.insurance-faq-item.hidden {
  display: none;
  opacity: 0;
}

.insurance-faq-item:hover {
  border-color: #22aea1;
  box-shadow: 0 4px 16px rgba(79, 195, 207, 0.15);
}

@supports not (backdrop-filter: blur(10px)) {
  .insurance-faq-item {
    background: rgba(255, 255, 255, 0.95);
  }
}

.insurance-faq-item__question {
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  transition: background 0.2s ease;
}

.insurance-faq-item__question:hover {
  background: rgba(79, 195, 207, 0.05);
}

.insurance-faq-item__question:focus {
  outline: none;
  background: rgba(79, 195, 207, 0.1);
}

.insurance-faq-item__question-text {
  font-size: 18px;
  font-weight: 600;
  color: #2e2e2e;
  flex: 1;
}

.insurance-faq-item__icon {
  color: #22aea1;
  font-size: 28px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Expanded state */
.insurance-faq-item__question[aria-expanded="true"] .insurance-faq-item__icon {
  transform: rotate(180deg);
}

.insurance-faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.insurance-faq-item__answer-content {
  padding: 0 24px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #2e2e2e;
  text-align: left;
}

/* When expanded */
.insurance-faq-item__answer.expanded {
  max-height: 500px; /* Fallback for browsers without JS */
}

/* Mobile */
@media (max-width: 768px) {
  .insurance-faq {
    margin: 40px auto;
    padding: 0 16px;
  }

  .insurance-faq__title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .faq-search {
    margin-bottom: 24px;
  }

  .faq-search-input {
    padding: 14px 46px 14px 48px;
    font-size: 15px;
  }

  .search-icon {
    font-size: 22px;
    left: 16px;
  }

  .search-clear-btn {
    width: 30px;
    height: 30px;
  }

  .search-clear-btn .material-icons {
    font-size: 18px;
  }

  .faq-no-results {
    padding: 40px 20px;
  }

  .faq-no-results .material-icons {
    font-size: 48px;
  }

  .faq-no-results p {
    font-size: 18px;
  }

  .insurance-faq-list {
    gap: 12px;
  }

  .insurance-faq-item__question {
    min-height: 56px;
    padding: 16px 20px;
  }

  .insurance-faq-item__question-text {
    font-size: 16px;
  }

  .insurance-faq-item__icon {
    font-size: 24px;
  }

  .insurance-faq-item__answer-content {
    padding: 0 20px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .insurance-faq__title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .faq-search {
    margin-bottom: 20px;
  }

  .faq-search-input {
    padding: 12px 42px 12px 44px;
    font-size: 14px;
  }

  .search-icon {
    font-size: 20px;
    left: 14px;
  }

  .insurance-faq-item__question {
    min-height: 56px;
    padding: 14px 16px;
  }

  .insurance-faq-item__question-text {
    font-size: 15px;
  }

  .insurance-faq-item__answer-content {
    padding: 0 16px 16px;
    font-size: 13px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .insurance-faq-item,
  .insurance-faq-item__icon,
  .insurance-faq-item__answer,
  .faq-search-input,
  .search-clear-btn {
    transition: none;
  }

  .insurance-faq-item__question[aria-expanded="true"] .insurance-faq-item__icon {
    transform: none;
  }
}
