/* Custom CSS for Ping Planner Landing Page */

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Custom scrollbar for modal */
#checkout-modal .bg-white {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

#checkout-modal .bg-white::-webkit-scrollbar {
    width: 8px;
}

#checkout-modal .bg-white::-webkit-scrollbar-track {
    background: #f7fafc;
}

#checkout-modal .bg-white::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#checkout-modal .bg-white::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Form validation styles */
input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10b981;
}

/* Card hover effect */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-out;
}

#mobile-menu.hidden {
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}
