/* Import Google Font: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Gradient Button */
.gradient-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.gradient-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.3), 0 4px 6px -1px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.gradient-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.2);
}

/* Header and Navigation */
.mobile-menu {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu.menu-open {
    opacity: 1;
    transform: translateY(0);
    max-height: 400px;
}

/* Smooth hover transitions */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Form step transitions */
.form-step {
    transition: all 0.3s ease-in-out;
}

.form-step.hidden {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Option selection styling */
.volume-option.selected div,
.business-option.selected div,
.lead-type-option.selected div,
.purpose-option.selected div {
    border-color: #2563eb;
    background-color: #eff6ff;
}

/* Form transitions */
#multiStepForm, #thankYouMessage, .form-step {
    transition: all 0.3s ease-in-out;
}

/* Ensure confetti appears above content */
#contact {
    position: relative;
    z-index: 1;
}

/* Celebration animation */
.animate-celebrate {
    animation: celebrate 0.6s cubic-bezier(0.36, 0, 0.66, -0.56) alternate infinite;
}

@keyframes celebrate {
    0% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0); }
}

/* Enhanced shimmer effect */
.animate-shimmer {
    position: relative;
    overflow: hidden;
}

.animate-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

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

/* Form elements focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button hover effects */
button.bg-blue-600:hover {
    background-color: #1d4ed8;
}

/* Progress bar animation */
#progressBar {
    transition: width 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .form-step {
        padding: 1rem;
    }
    
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .mobile-menu:not(.hidden) {
        max-height: 400px;
    }
}
