/* Custom styles can be added here if needed, but Tailwind handles most of it. */

/* FAQ Accordion Styles */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    opacity: 0;
}

.faq-item.open .faq-answer {
    /* Remove fixed max-height - let JavaScript handle this dynamically */
    padding-top: 1rem;
    opacity: 1;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, opacity 0.2s ease-in-out 0.1s;
}

.faq-item .faq-icon {
    transition: transform 0.3s ease-in-out;
}

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

/* Loading state styles */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form enhancement styles */
.form-field:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.form-field.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-field.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Success/Error message styles */
.message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    font-weight: 500;
}

.message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Button hover enhancements */
.btn-primary {
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.open {
    max-height: 300px;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for better keyboard navigation */
.focus-visible:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Disclaimer banner scrolling animation */
.disclaimer-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.disclaimer-scroll {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .disclaimer-scroll {
        animation: none !important;
    }
}

/* Hide scrollbar for carousel */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}