/* Enhanced Booking Process Section */
.booking-process {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e8f5ff 100%);
    position: relative;
    overflow: hidden;
}

.booking-process::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 80%, rgba(229, 45, 39, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 71, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(229, 45, 39, 0.02) 20%, transparent 60%);
    animation: floatingBackground 30s ease-in-out infinite;
    z-index: 0;
}

.booking-process::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(229, 45, 39, 0.05) 0%, transparent 40%);
    animation: shimmerEffect 20s linear infinite;
    z-index: 0;
}

@keyframes floatingBackground {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(-2%, -1%) rotate(1deg) scale(1.02); }
    50% { transform: translate(1%, 2%) rotate(-0.5deg) scale(0.98); }
    75% { transform: translate(-1%, 1%) rotate(0.8deg) scale(1.01); }
}

@keyframes shimmerEffect {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 35px 45px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e52d27, #ff6b47, #e52d27);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 3s ease-in-out infinite;
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(229, 45, 39, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.step:hover::before {
    transform: scaleX(1);
}

.step:hover::after {
    width: 200px;
    height: 200px;
}

.step:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(229, 45, 39, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(229, 45, 39, 0.2);
}

.step-icon {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.step-icon svg {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 8px 20px rgba(229, 45, 39, 0.15));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(-1deg); }
}

.step:hover .step-icon svg {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 12px 30px rgba(229, 45, 39, 0.25));
    animation-play-state: paused;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover h3 {
    color: #e52d27;
    transform: translateY(-2px);
}

.step p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
}

.step:hover p {
    color: #475569;
    transform: translateY(-1px);
}

/* Enhanced Process Flow Lines */
.process-steps::before {
    content: '';
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 8%, 
        rgba(229, 45, 39, 0.2) 15%, 
        rgba(229, 45, 39, 0.4) 25%,
        rgba(255, 107, 71, 0.4) 50%,
        rgba(229, 45, 39, 0.4) 75%,
        rgba(229, 45, 39, 0.2) 85%, 
        transparent 92%);
    z-index: 0;
    border-radius: 2px;
    animation: flowingLine 3s ease-in-out infinite;
}

@keyframes flowingLine {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

/* Staggered Animation on Load */
.step {
    opacity: 0;
    transform: translateY(50px);
    animation: stepEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(4) { animation-delay: 0.8s; }

@keyframes stepEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Icon Animations */
.step-icon svg g {
    animation: iconDetails 6s ease-in-out infinite;
}

.step:nth-child(1) .step-icon svg g { animation-delay: 0s; }
.step:nth-child(2) .step-icon svg g { animation-delay: 1.5s; }
.step:nth-child(3) .step-icon svg g { animation-delay: 3s; }
.step:nth-child(4) .step-icon svg g { animation-delay: 4.5s; }

@keyframes iconDetails {
    0%, 90%, 100% { transform: scale(1) rotate(0deg); }
    5%, 15% { transform: scale(1.1) rotate(2deg); }
    10% { transform: scale(1.05) rotate(-1deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .process-steps {
        gap: 30px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .step {
        padding: 40px 25px 35px;
    }
    
    .step-icon svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .booking-process {
        padding: 80px 0;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 60px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step {
        padding: 35px 25px 30px;
    }
    
    .step-icon svg {
        width: 75px;
        height: 75px;
    }
    
    .step h3 {
        font-size: 1.3rem;
    }
    
    .step p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .step {
        padding: 30px 20px 25px;
        border-radius: 20px;
    }
    
    .step-icon svg {
        width: 70px;
        height: 70px;
    }
    
    .step h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .step p {
        font-size: 0.95rem;
    }
    
    .step:hover {
        transform: translateY(-8px) scale(1.01);
    }
}
