/* How It Works Section - AutoAff Style */
.how-it-works-section {
    padding: 20px 20px;
    background: rgba(63, 177, 198, 0.5) !important;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hiw-header {
    text-align: center;
    margin-bottom: 40px;
}

.hiw-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hiw-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Steps Grid */
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

/* Connecting Line */
.hiw-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e0 50%, #e2e8f0 100%);
    z-index: 0;
    border-radius: 2px;
}

/* Step Card */
.hiw-step-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.03);
    cursor: default;
}

.hiw-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

/* Number Badge */
.hiw-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: white;
    border-radius: 50%;
    font-weight: 800;
    color: #764ba2;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.2);
    border: 2px solid #f7fafc;
    z-index: 2;
    transition: all 0.3s ease;
}

.hiw-step-card:hover .hiw-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

/* Icons */
.hiw-icon-wrapper {
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Content */
.hiw-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.hiw-card-desc {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    .hiw-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .hiw-steps::before {
        display: none; /* Hide line on tablet/mobile */
    }
}

@media (max-width: 576px) {
    .hiw-steps {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hiw-step-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.hiw-step-card:nth-child(1) { animation-delay: 0.1s; }
.hiw-step-card:nth-child(2) { animation-delay: 0.2s; }
.hiw-step-card:nth-child(3) { animation-delay: 0.3s; }
.hiw-step-card:nth-child(4) { animation-delay: 0.4s; }
