/* css/how-it-works.css */

/* --- General Section Styling --- */
.how-it-works-section {
    /* Ensures white background override */
    background-color: #ffffff !important; 
    color: var(--dark-gray);
}

.letter-spacing-2 { letter-spacing: 2px; }

/* --- Left Column: Car & Reflection --- */
.car-image-container {
    position: relative;
    z-index: 2;
}

/* Creating the reflection effect on white background */
.car-reflection {
    content: '';
    position: absolute;
    bottom: -20px; /* Adjust based on image */
    left: 10%;
    width: 80%;
    height: 40px;
    background: ellipse(at center, rgba(0,0,0,0.2) 0%, rgba(255,255,255,0) 70%);
    filter: blur(10px);
    z-index: 1;
    transform: rotateX(60deg);
}

/* --- Right Column: Timeline --- */
.timeline-container {
    padding-left: 20px; /* Space for the icons */
}

/* The vertical connecting line */
.timeline-line {
    position: absolute;
    top: 30px; /* Start below the first icon's top edge */
    left: 50px; /* Align center with icons (icon width 60 / 2 + padding left 20) */
    width: 2px;
    height: calc(100% - 60px); /* Stop before last icon */
    background-color: #e9ecef; /* Bootstrap light gray border color */
    z-index: 1;
}

.timeline-item {
    z-index: 2; /* Ensure items sit above the line */
}

/* The icon circles */
.timeline-icon {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa; /* Bootstrap light gray bg */
    border: 2px solid #e9ecef; /* Slightly darker border */
    position: relative;
    z-index: 3;
    transition: 0.3s all ease;
}

/* Hover effect for timeline items */
.timeline-item:hover .timeline-icon {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.timeline-item:hover .timeline-icon i {
    color: #ffffff !important;
}

/* ===========================
   MOBILE RESPONSIVE STYLES
   =========================== */

@media (max-width: 991px) {
    .how-it-works-section {
        padding: 40px 0 !important;
    }
    
    .how-it-works-section h2 {
        font-size: 2rem !important;
    }
    
    .car-image-container {
        margin-bottom: 30px;
        padding-right: 0 !important;
    }
    
    .how-it-works-section .col-lg-6 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .how-it-works-section .ps-lg-5 {
        padding-left: 0 !important;
    }
    
    .timeline-container {
        padding-left: 0;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    
    .timeline-icon i {
        font-size: 18px !important;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem !important;
    }
    
    .timeline-content p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .how-it-works-section {
        padding: 30px 0 !important;
    }
    
    .how-it-works-section h2 {
        font-size: 1.5rem !important;
    }
    
    .how-it-works-section .small {
        font-size: 11px !important;
    }
    
    .car-image-container img {
        max-width: 100%;
        height: auto;
    }
    
    .timeline-icon {
        width: 45px;
        height: 45px;
    }
    
    .timeline-icon i {
        font-size: 16px !important;
    }
    
    .timeline-line {
        left: 22px;
    }
    
    .timeline-content h4 {
        font-size: 1rem !important;
    }
    
    .timeline-content p {
        font-size: 13px;
    }
    
    .timeline-item {
        margin-bottom: 25px !important;
    }
}