/* FAQ Component Styles */

.faq-section {
    background: transparent;
    padding-top: 2.75rem;
    padding-bottom: 2rem;
    margin-top: 1rem;
}

.faq-content {
    width: 100%;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

/* FAQ Item */
.faq-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.875rem;
    background: #ffffff;
    overflow: hidden;
    transition: all 200ms ease;
}

.faq-item:hover {
    border-color: rgba(15, 118, 110, 0.16);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.15);
}

.faq-item[open] {
    border-color: rgba(15, 118, 110, 0.2);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.15);
}

/* FAQ Question (Summary) */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.faq-question:hover {
    background: rgba(16, 185, 129, 0.02);
}

.faq-question::-webkit-details-marker {
    display: none;
}

/* FAQ Question Text */
.faq-question-text {
    display: block;
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
    word-break: break-word;
    margin-right: 1rem;
}

/* FAQ Icon */
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    color: #10b981;
    transition: transform 200ms ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    background: rgba(248, 250, 252, 0.5);
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    animation: slideDown 200ms ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #475569;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

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

.faq-answer a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* FAQ CTA */
.faq-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 0.875rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.faq-cta-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.faq-cta p {
    margin: 0.5rem 0 0 0;
}

.faq-cta-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.faq-cta-link:hover {
    text-decoration: underline;
}

/* FAQ Image */
.faq-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0.875rem;
    background: #f1f5f9;
}

.faq-image-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* FAQ Stats */
.faq-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-stat-card {
    padding: 1.5rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, rgba(232, 248, 240, 0.6), rgba(246, 252, 249, 0.6));
    transition: all 200ms ease;
}

.faq-stat-card:hover {
    border-color: rgba(15, 118, 110, 0.16);
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}

.faq-stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.faq-stat-label {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.faq-stat-description {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
}

/* Tablet & Mobile Responsive */
@media (max-width: 1023px) {
    .faq-list {
        gap: 0.875rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
    }

    .faq-question-text {
        font-size: 0.95rem;
        margin-right: 0.75rem;
    }

    .faq-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 767px) {
    .faq-list {
        gap: 0.75rem;
    }

    .faq-question {
        padding: 0.875rem 1rem;
    }

    .faq-answer {
        padding: 0 1rem 0.875rem 1rem;
    }

    .faq-question-text {
        font-size: 0.9rem;
        font-weight: 600;
        margin-right: 0.5rem;
    }

    .faq-answer {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .faq-icon {
        width: 18px;
        height: 18px;
    }

    .faq-cta {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }
}

/* Homepage FAQ Styles */
.faq-section__intro {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-section__lead {
    margin: 0.75rem auto 0;
    max-width: 50rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #64748b;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

@media (min-width: 768px) {
    .faq-grid {
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .faq-grid {
        gap: 1.5rem;
    }
}

/* FAQ Card */
.faq-card {
    background: transparent;
    padding: 0;
}

.faq-details {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.875rem;
    background: #ffffff;
    overflow: hidden;
    transition: all 200ms ease;
}

.faq-details:hover {
    border-color: rgba(15, 118, 110, 0.16);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.15);
}

.faq-details[open] {
    border-color: rgba(15, 118, 110, 0.2);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.15);
}

/* FAQ Toggle (Summary) */
.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    background: inherit;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    transition: background-color 200ms ease;
}

.faq-toggle:hover {
    background: rgba(16, 185, 129, 0.02);
}

.faq-details[open] .faq-toggle {
    background: rgba(16, 185, 129, 0.04);
}

.faq-toggle::-webkit-details-marker {
    display: none;
}

.faq-toggle__text {
    display: block;
    flex: 1;
    line-height: 1.5;
    word-break: break-word;
    margin-right: 1rem;
}

/* FAQ Chevron */
.faq-toggle__chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #10b981;
    transition: transform 200ms ease;
}

.faq-chevron svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.8;
}

.faq-details[open] .faq-toggle__chevron {
    transform: rotate(180deg);
}

/* FAQ Answer (for homepage FAQ) */
.faq-card .faq-answer {
    padding: 1.25rem 1.5rem;
    background: rgba(248, 250, 252, 0.5);
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    animation: slideDown 200ms ease;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #475569;
}

.faq-card .faq-answer p {
    margin: 0;
}

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

/* Responsive adjustments for homepage FAQ */
@media (max-width: 767px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .faq-column {
        display: block;
    }

    .faq-toggle {
        padding: 1rem 1.25rem;
    }

    .faq-card .faq-answer {
        padding: 1rem 1.25rem;
    }

    .faq-toggle__text {
        font-size: 0.95rem;
        margin-right: 0.5rem;
    }

    .faq-toggle__chevron {
        width: 18px;
        height: 18px;
    }

    .faq-section__intro {
        margin-bottom: 2rem;
    }

    .faq-section__lead {
        font-size: 0.95rem;
    }
}
