/* Onboarding Flow Chart Styles */
.onboarding-container {
    padding: 2rem 0;
}

.onboarding-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #4e73df;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.onboarding-progress {
    margin-bottom: 2rem;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

.progress-bar {
    background-color: #4e73df;
}

.onboarding-steps {
    position: relative;
}

/* Enhanced Vertical Flow Chart Styles */
.onboarding-steps:before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #4e73df, #1cc88a);
    z-index: -1;
    border-radius: 4px;
}

.step {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    transition: all 0.3s ease;
}

.step:after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: -2.5rem;
    left: 30px;
    transform: translateX(-50%);
    color: #4e73df;
    font-size: 1.5rem;
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.step:last-child:after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(78, 115, 223, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 4px solid white;
}

.step-content {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #4e73df;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.step-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4e73df, #224abe);
}

.step-content h3 {
    margin-bottom: 0.75rem;
    color: #4e73df;
    font-weight: 600;
}

.step-content p {
    margin-bottom: 1rem;
    color: #666;
}

.step-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    color: #666;
}

.step-content ul li:before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #4e73df;
    margin-right: 0.5rem;
    display: inline-block;
}

.step.completed .step-content ul li:before {
    color: #1cc88a;
}

/* Button Styles */
.step .btn {
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.step .btn-primary {
    background: linear-gradient(135deg, #4e73df, #224abe);
    border-color: #224abe;
}

.step .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #3a5fd9, #1a3ba0);
}

.step .btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #f8f9fa;
}

.step .btn-success {
    background: linear-gradient(135deg, #1cc88a, #13855d);
    border-color: #13855d;
}

.step .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #18ad76, #107048);
}

/* Button Pulse Animation */
.pulse {
    animation: button-pulse 0.5s;
}

@keyframes button-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Hover Effects */
.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(78, 115, 223, 0.4);
}

.step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Status Styles */
.step.completed .step-number {
    background: linear-gradient(135deg, #1cc88a, #13855d);
}

.step.completed .step-content {
    border-left-color: #1cc88a;
}

.step.completed .step-content:before {
    background: linear-gradient(90deg, #1cc88a, #13855d);
}

.step.completed:after {
    color: #1cc88a;
}

.step.active .step-number {
    box-shadow: 0 0 0 8px rgba(78, 115, 223, 0.25), 0 10px 20px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

.step.active .step-content {
    border-left-color: #4e73df;
    box-shadow: 0 15px 35px rgba(78, 115, 223, 0.15);
}

.step.active:after {
    animation: bounce 2s infinite;
    color: #4e73df;
    font-weight: 900;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 115, 223, 0.5), 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(78, 115, 223, 0), 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 115, 223, 0), 0 10px 20px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .onboarding-steps:before {
        left: 50%;
        transform: translateX(-50%);
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 5rem;
    }

    .step:after {
        left: 50%;
        bottom: -3.5rem;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .step-content {
        border-left: none;
        border-top: 5px solid #4e73df;
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .step-content:before {
        display: none;
    }

    .step.completed .step-content {
        border-top-color: #1cc88a;
    }

    .step-content ul {
        display: inline-block;
        text-align: left;
    }
}
