/* ============================================
   Process Steps Component
   Vertical timeline for step-by-step explanations
   ============================================ */

.process-section {
    padding: 5rem 0;
}

.process-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 80px;
}

/* Vertical Line */
.process-steps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 2rem;
    bottom: 2rem;
    width: 3px;
    background: linear-gradient(
        to bottom,
        var(--luvex-primary, #0891B2),
        var(--luvex-accent, #06B6D4),
        var(--luvex-primary, #0891B2)
    );
    border-radius: 3px;
}

.process-step {
    position: relative;
    padding: 1.5rem 0;
    padding-left: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation when visible */
.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback when JS doesn't load */
.no-js .process-step,
html:not(.js-enabled) .process-step {
    opacity: 1;
    transform: none;
}

/* Connector dot on line */
.process-step::before {
    content: '';
    position: absolute;
    left: -52px;
    top: 2rem;
    width: 14px;
    height: 14px;
    background: var(--luvex-primary, #0891B2);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.2);
    transition: all 0.3s ease;
    z-index: 1;
}

.process-step:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(8, 145, 178, 0.3);
}

/* Step Marker (Number + Icon) */
.step-marker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--luvex-primary, #0891B2), var(--luvex-accent, #06B6D4));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.step-marker i {
    font-size: 1.5rem;
    color: var(--luvex-primary, #0891B2);
    opacity: 0.9;
}

/* Step Content */
.step-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--luvex-dark-blue, #1E3A5F);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.step-content p {
    color: var(--luvex-gray-700, #374151);
    line-height: 1.75;
    font-size: 1rem;
    margin: 0;
}

/* Hover Effect */
.process-step:hover {
    background: rgba(8, 145, 178, 0.05);
    border-radius: 12px;
    margin-left: -1rem;
    padding-left: 3rem;
}

/* Stagger Animation Delays */
.process-step:nth-child(1) { transition-delay: 0s; }
.process-step:nth-child(2) { transition-delay: 0.1s; }
.process-step:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(4) { transition-delay: 0.3s; }
.process-step:nth-child(5) { transition-delay: 0.4s; }
.process-step:nth-child(6) { transition-delay: 0.5s; }

/* Final CTA in last step */
.process-step .final-cta {
    margin-top: 1.5rem;
}

.process-step .final-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--luvex-primary, #0891B2), var(--luvex-accent, #06B6D4));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.process-step .final-cta a:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.4);
}

.process-step .final-cta a svg {
    width: 18px;
    height: 18px;
}

/* Benefits list for final step */
.process-step .benefits-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: grid;
    gap: 0.5rem;
}

.process-step .benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--luvex-gray-700, #374151);
    font-size: 0.95rem;
}

.process-step .benefits-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--luvex-accent, #06B6D4);
    font-size: 0.8rem;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .process-steps {
        padding-left: 50px;
    }

    .process-steps::before {
        left: 18px;
    }

    .process-step::before {
        left: -32px;
        width: 12px;
        height: 12px;
    }

    .process-step {
        padding-left: 1rem;
    }

    .process-step:hover {
        margin-left: 0;
        padding-left: 1rem;
    }

    .step-number {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-marker i {
        font-size: 1.25rem;
    }

    .step-content h3 {
        font-size: 1.15rem;
    }

    .step-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .process-section {
        padding: 3rem 0;
    }

    .process-steps {
        padding-left: 40px;
    }

    .process-steps::before {
        left: 12px;
        width: 2px;
    }

    .process-step::before {
        left: -28px;
        width: 10px;
        height: 10px;
    }

    .step-marker {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .step-content h3 {
        font-size: 1.05rem;
    }
}

/* ============================================
   Light Section Variant
   ============================================ */

.section--turquoise-light .process-steps::before {
    background: linear-gradient(
        to bottom,
        var(--luvex-primary-dark, #0E7490),
        var(--luvex-primary, #0891B2),
        var(--luvex-primary-dark, #0E7490)
    );
}

.section--turquoise-light .process-step::before {
    border-color: white;
}

.section--turquoise-light .step-content h3 {
    color: var(--luvex-gray-900, #111827);
}

.section--turquoise-light .step-content p {
    color: var(--luvex-gray-700, #374151);
}

.section--turquoise-light .process-step:hover {
    background: rgba(8, 145, 178, 0.08);
}
