/* How Fixa Work Section Styles */
.how-fixa-work {
    padding: 70px 0 50px;
    background: linear-gradient(135deg, var(--light-gray, #f8fafc) 0%, var(--white, #ffffff) 100%);
    position: relative;
    overflow: hidden;
}

.how-fixa-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e0e0e0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.how-fixa-work .container {
    position: relative;
    z-index: 2;
}

/* Header Styles */
.how-fixa-work-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.how-fixa-work-header .section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--primary-color, #5682B1);
    margin-bottom: 0.5rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.title-divider {
    width: 60px;
    height: 3.5px;
    background: linear-gradient(135deg, var(--primary-color, #5682B1), var(--accent-color, #3b82f6));
    margin: 0.5rem auto 0;
    border-radius: 2px;
    animation: slideInWidth 1s ease-out 0.3s both;
}

/* Content Layout */
.how-fixa-work-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white, #ffffff);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(86, 130, 177, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInLeft 0.8s ease-out;
    border: 1px solid rgba(86, 130, 177, 0.08);
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color, #5682B1), var(--accent-color, #3b82f6));
    transition: width 0.3s ease;
}

.step-item:hover {
    transform: translateX(6px);
    box-shadow: 0 15px 35px rgba(86, 130, 177, 0.16);
}

.step-item:hover::before {
    width: 6px;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }

/* Step Number */
.step-number {
    position: relative;
    flex-shrink: 0;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color, #5682B1), var(--accent-color, #3b82f6));
    color: var(--white, #ffffff);
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(86, 130, 177, 0.25);
    transition: all 0.3s ease;
}

.step-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    background: var(--white, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-icon i {
    color: var(--primary-color, #5682B1);
    font-size: 0.8rem;
}

.step-item:hover .step-num {
    transform: scale(1.08);
}

/* Step Content */
.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color, #1e293b);
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
}

.step-description {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.step-item:hover .step-title {
    color: var(--primary-color, #5682B1);
}

/* Step Arrow */
.step-arrow {
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-arrow i {
    font-size: 1.1rem;
    color: var(--primary-color, #5682B1);
}

.step-item:hover .step-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Illustration Container */
.illustration-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.main-illustration {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(86, 130, 177, 0.15);
    transition: all 0.3s ease;
    display: block;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--white, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(86, 130, 177, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-icon i {
    color: var(--primary-color, #5682B1);
    font-size: 1.05rem;
}

.icon-1 { top: 8%; left: 8%; animation-delay: 0s; }
.icon-2 { top: 14%; right: 10%; animation-delay: 0.5s; }
.icon-3 { bottom: 20%; left: 6%; animation-delay: 1s; }
.icon-4 { bottom: 10%; right: 8%; animation-delay: 1.5s; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes slideInWidth {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .how-fixa-work-content {
        gap: 2.5rem;
    }
    
    .step-item {
        padding: 1.25rem;
    }
    
    .step-num {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .how-fixa-work {
        padding: 40px 0 25px;
    }
    
    .how-fixa-work-header {
        margin-bottom: 2rem;
    }

    .how-fixa-work-header .section-title {
        font-size: 1.6rem;
    }

    .title-divider {
        width: 50px;
        height: 3px;
    }
    
    .how-fixa-work-content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .illustration-container {
        order: 1;
        max-width: 360px;
        margin: 0 auto;
    }

    .main-illustration {
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(86, 130, 177, 0.12);
    }
    
    .floating-icon {
        width: 34px;
        height: 34px;
    }
    
    .floating-icon i {
        font-size: 0.85rem;
    }
    
    .steps-container {
        order: 2;
        gap: 0.85rem;
    }
    
    .step-item {
        padding: 1.1rem 1rem;
        gap: 0.9rem;
        border-radius: 14px;
        text-align: left;
        flex-direction: row;
        align-items: center;
    }
    
    .step-num {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .step-icon {
        width: 20px;
        height: 20px;
        top: -3px;
        right: -3px;
    }

    .step-icon i {
        font-size: 0.65rem;
    }
    
    .step-title {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .step-description {
        font-size: 0.82rem;
        line-height: 1.4;
    }
    
    .step-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .how-fixa-work {
        padding: 30px 0 15px;
    }
    
    .how-fixa-work-header {
        margin-bottom: 1.5rem;
    }
    
    .how-fixa-work-header .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }
    
    .title-divider {
        width: 45px;
        height: 2.5px;
    }

    .how-fixa-work-content {
        gap: 1.25rem;
    }
    
    .illustration-container {
        max-width: 290px;
    }

    .floating-icon {
        width: 28px;
        height: 28px;
    }
    
    .floating-icon i {
        font-size: 0.72rem;
    }

    .steps-container {
        gap: 0.65rem;
    }
    
    .step-item {
        padding: 0.85rem 0.8rem;
        gap: 0.75rem;
        border-radius: 12px;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .step-num {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    
    .step-icon {
        width: 17px;
        height: 17px;
        top: -2px;
        right: -2px;
    }
    
    .step-icon i {
        font-size: 0.55rem;
    }
    
    .step-title {
        font-size: 0.92rem;
        margin-bottom: 0.15rem;
    }
    
    .step-description {
        font-size: 0.78rem;
        line-height: 1.35;
    }
}

@media (max-width: 360px) {
    .how-fixa-work-header .section-title {
        font-size: 1.3rem;
    }
    
    .illustration-container {
        max-width: 260px;
    }

    .step-item {
        padding: 0.75rem 0.65rem;
    }
    
    .step-num {
        width: 30px;
        height: 30px;
        font-size: 0.88rem;
    }
    
    .step-title {
        font-size: 0.88rem;
    }
    
    .step-description {
        font-size: 0.74rem;
    }
}
