    .mega-menu {
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
    }
    
    .mega-menu.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    
    .chevron {
      transition: transform 0.3s ease;
    }
    
    .chevron.rotate {
      transform: rotate(180deg);
    }


       .step-content {
        transition: max-height 0.3s ease-out;
        overflow: hidden;
    }
    
    .step-icon {
        transition: transform 0.3s ease-out;
    }
    
    .step-toggle {
        transition: all 0.3s ease-out;
    }

            button {
  cursor: pointer;
}



/* Page Transitions CSS */

/* Smooth page transitions */
@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

/* Subtle scale animation for buttons */
@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

/* Progress bar smooth transition */
.progress-fill {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Button interactions */
button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button:active {
    animation: buttonPress 0.2s ease;
}

/* Add ripple effect for buttons */
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:focus::after {
    width: 300px;
    height: 300px;
}

/* Input focus animations */
input:focus,
select:focus,
textarea:focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Smooth hover effects for selection buttons */
.hover\:bg-gray-50:hover {
    transition: background-color 0.2s ease;
}

/* Page content animation on load */
.page-content-animate {
    animation: fadeInFromRight 0.4s ease-out;
}

.page-content-animate-back {
    animation: fadeInFromLeft 0.4s ease-out;
}

/* Stagger animation for list items */
.stagger-animation > * {
    opacity: 0;
    animation: fadeInFromRight 0.4s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.25s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.35s; }

/* Loading states */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #234da9;
    animation: spin 1s linear infinite;
}

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

/* Smooth checkbox and radio animations */
input[type="checkbox"],
input[type="radio"] {
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    animation: checkboxBounce 0.3s ease;
}

@keyframes checkboxBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Error state animations */
.border-red-500 {
    animation: errorShake 0.3s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Smooth mobile menu transitions */
@media (max-width: 768px) {
    .mobile-transition {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
}
