/* --- FAQ PRO MAX STYLES --- */

/* Background Blobs for Glass Effect */
.faq-bg-wrapper {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  margin-top: -4rem; /* Offset section padding */
}

.faq-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: float-blob 20s infinite ease-in-out;
}

.blob-1 {
  background: rgba(199, 168, 153, 0.4);
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
}

.blob-2 {
  background: rgba(226, 207, 199, 0.4);
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

.blob-3 {
  background: rgba(199, 168, 153, 0.3);
  width: 200px;
  height: 200px;
  top: 40%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Search Container */
.faq-search-container {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-full) !important; /* Force pill shape */
  border: 1px solid rgba(199, 168, 153, 0.3);
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(199, 168, 153, 0.1);
  transform: translateY(-2px);
}

.search-input-wrapper i {
  color: var(--primary);
  font-size: 1.25rem;
}

.search-input-wrapper input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark-text);
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: rgba(68, 68, 68, 0.5);
}

/* Details Element */
.faq-details {
  margin-bottom: 1rem;
  padding: 0 !important; /* Reset standard glass-card padding */
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-details:not([open]):hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.faq-details[open] {
  background: rgba(255, 255, 255, 0.95); /* More opaque when open */
  border-color: var(--primary);
}

.faq-summary {
  list-style: none; /* Remove default triangle */
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  position: relative;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(199, 168, 153, 0.1);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.faq-details[open] .faq-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(360deg);
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  flex-grow: 1;
  color: var(--dark-text);
}

.faq-toggle {
  color: var(--primary);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.faq-details[open] .faq-toggle {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem 4.5rem; /* Indented to align with title */
  color: var(--dark-text);
  opacity: 0.8;
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 0;
  padding-top: 1rem;
}

.faq-content ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  list-style-type: disc;
}

.faq-content li {
  margin-bottom: 0.25rem;
}

/* Animations */
details[open] summary ~ * {
  animation: sweep .3s ease-in-out;
}

@keyframes sweep {
  0%    {opacity: 0; transform: translateY(-10px);}
  100%  {opacity: 1; transform: translateY(0);}
}

/* Mobile Adjustments */
@media (max-width: 768px), (max-device-width: 768px) {
  .faq-summary {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .faq-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .faq-title {
    font-size: 1rem;
  }
  
  .faq-content {
    padding: 0 1rem 1.5rem 3.5rem;
  }
}
