
/* Funnelwidget Styles */
.funnelwidget-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.funnel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.funnel-step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin: 0 auto;
    padding: 15px 20px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
}

.funnel-step:first-child {
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 20px 100%);
}

.funnel-step:last-child {
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
}

.funnel-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.funnel-step-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
}

.funnel-step-text {
    flex: 1;
    text-align: left;
    padding-right: 20px;
}

.funnel-step-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.funnel-step-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.95;
}

.funnel-step-icon {
    flex-shrink: 0;
    font-size: 24px;
    opacity: 0.8;
}

.funnel-step-icon i {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .funnelwidget-container {
        padding: 15px 10px;
    }
    
    .funnel-step {
        padding: 12px 15px;
        min-height: 70px;
    }
    
    .funnel-step-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .funnel-step-text {
        padding-right: 0;
        text-align: center;
    }
    
    .funnel-step-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .funnel-step-description {
        font-size: 13px;
    }
    
    .funnel-step-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .funnel-step {
        padding: 10px 12px;
        min-height: 60px;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
    }
    
    .funnel-step:first-child {
        clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 10px 100%);
    }
    
    .funnel-step:last-child {
        clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
    }
    
    .funnel-step-title {
        font-size: 14px;
    }
    
    .funnel-step-description {
        font-size: 12px;
    }
    
    .funnel-step-icon {
        font-size: 18px;
    }
}

/* Alternative Trapezoid Style (more pronounced funnel effect) */
.funnelwidget-container.trapezoid-style .funnel-step {
    clip-path: polygon(10% 0, 90% 0, 85% 100%, 15% 100%);
}

.funnelwidget-container.trapezoid-style .funnel-step:first-child {
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.funnelwidget-container.trapezoid-style .funnel-step:last-child {
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

/* Color Variations */
.funnel-step.green-gradient {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.funnel-step.orange-gradient {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.funnel-step.red-gradient {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.funnel-step.blue-gradient {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Animation Effects */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.funnel-step {
    animation: slideInFromTop 0.6s ease-out;
}

.funnel-step:nth-child(1) { animation-delay: 0.1s; }
.funnel-step:nth-child(2) { animation-delay: 0.2s; }
.funnel-step:nth-child(3) { animation-delay: 0.3s; }
.funnel-step:nth-child(4) { animation-delay: 0.4s; }
.funnel-step:nth-child(5) { animation-delay: 0.5s; }
