.pac-container {
    z-index: 10000 !important;
}

/* css/custom-index.css */

/* -----------------------------------
   Hero Section Styling
----------------------------------- */

.index-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.index-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
}

.index-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 2;
}

.index-hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.index-hero__heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.index-hero__subheading {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.index-hero__buttons .btn {
    min-width: 150px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 25px; /* Rounded corners for a sleek look */
    padding: 0.6rem 1.2rem; /* Consistent padding */
    font-weight: 600; /* Bold text for prominence */
    display: inline-flex;
    align-items: center;
}

/* Responsive Adjustments for Hero Section */
@media (max-width: 768px) {
    .index-hero__heading {
        font-size: 2.5rem;
    }
    .index-hero__subheading {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .index-hero__heading {
        font-size: 2rem;
    }
    .index-hero__subheading {
        font-size: 1rem;
    }
    .index-hero__buttons .btn {
        min-width: 100%;
    }
}

/* -----------------------------------
   Services Section Styling
----------------------------------- */

.service-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* -----------------------------------
   Our Fleet Section Styling
----------------------------------- */

.index-fleet-image-container {
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center;    /* Vertically center */
    height: 200px;          /* Fixed height for consistency */
    background-color: #f8f9fa; /* Light background for contrast */
    border-radius: 8px;     /* Rounded corners */
    overflow: hidden;       /* Hide any overflow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin: 0 auto;         /* Center the container */
}

/* Fleet images: fill container */
.index-fleet-image-container img.fleet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Fill container fully, may crop */
    object-position: center;
}

/* Example: If you add a custom class (e.g. "eclass2022") to shift the E-Class 2022 image */
.index-fleet-image-container.eclass2022 img.fleet-image {
    object-position: 50% 20%;
}

/* Alternatively, if you don't want to change HTML, you can target the alt:
.index-fleet-image-container img[alt="Mercedes E-Class 2022"] {
    object-position: 50% 20%;
}
*/

/* Responsive Adjustments for Fleet Images */
@media (max-width: 992px) {
    .index-fleet-image-container {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .index-fleet-image-container {
        height: 150px;
    }
}

/* -----------------------------------
   Our Drivers Section Styling
----------------------------------- */

.driver-photo-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px auto; /* Center horizontally and add bottom margin */
    border-radius: 50%; /* Circular shape */
    overflow: hidden; /* Hide any overflow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    border: 4px solid #ffffff; /* White border for separation */
    background-color: #ffffff; /* Optional: background color */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Driver photos: fill circle, shift downward so heads don't get cut off */
.driver-photo-container img.driver-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%; /* Move image so top is more visible */
}

@media (max-width: 576px) {
    .driver-photo-container {
        width: 120px;
        height: 120px;
    }
}

/* -----------------------------------
   Book Now Section Styling
----------------------------------- */

/* Buttons in Fare Estimation Tool */
#index-book-now .card-body a.btn {
    min-width: 150px;
    margin-bottom: 10px;
}

#index-book-now .card-body .btn {
    /* Remove conflicting styles from custom.css if needed */
}

#fare-form .d-flex {
    flex-direction: column; /* Stack vertically by default */
}

#fare-form .d-flex.align-items-center {
    flex-direction: column; /* Ensure vertical stacking on small screens */
}

#fare-form .d-flex.flex-md-row {
    flex-direction: row; /* Row direction on medium and larger screens */
}

#fare-form .btn-outline-secondary,
#fare-form .btn-outline-primary,
#fare-form .btn-success,
#fare-form .btn-info {
    width: 100%; /* Full width on small screens */
    margin-bottom: 10px; /* Space between buttons */
}

@media (min-width: 768px) {
    #fare-form .btn-outline-secondary,
    #fare-form .btn-outline-primary,
    #fare-form .btn-success,
    #fare-form .btn-info {
        width: auto; /* Auto width on medium and larger screens */
        margin-bottom: 0; /* Remove bottom margin */
    }
}

/* Ensure buttons stack correctly on small screens */
@media (max-width: 576px) {
    #fare-form .btn-outline-secondary,
    #fare-form .btn-outline-primary,
    #fare-form .btn-success,
    #fare-form .btn-info {
        width: 100%;
    }
}

/* -----------------------------------
   Timeline Component Styling (Simplified & Unique)
----------------------------------- */

.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 0;
}

/* Vertical line in the timeline */
.timeline::before {
    content: '';
    position: absolute;
    left: 40px; /* Position the line 40px from the left */
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #0d6efd; /* Bootstrap primary color */
    border-radius: 2px;
}

/* Timeline item */
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 80px; /* Space for the dot */
}

/* Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 32px; /* Center the dot on the line */
    top: 0;
    width: 16px;
    height: 16px;
    background-color: #0d6efd;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #0d6efd;
}

/* Timeline content */
.timeline-content {
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for timeline content */
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Timeline titles */
.timeline-content h5 {
    margin-bottom: 0.5rem;
    color: #0d6efd; /* Bootstrap primary color */
    font-size: 1.25rem;
    font-weight: 600;
}

/* Timeline descriptions */
.timeline-content p {
    margin: 0;
    color: #555555;
    line-height: 1.5;
}

/* Responsive Adjustments for Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-item::before {
        left: 22px;
    }

    .timeline-content {
        padding: 0.75rem 1rem;
    }

    .timeline-content h5 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 12px;
    }

    .timeline-content {
        padding: 0.5rem 0.75rem;
    }

    .timeline-content h5 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }
}

/* -----------------------------------
   General Styles
----------------------------------- */

/* Section Titles */
.index-section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Fleet Card Styling */
.fleet-card a.text-decoration-none {
    color: inherit;
}

.fleet-card:hover .index-fleet-image-container {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.fleet-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Adds a deeper shadow on hover */
    transform: translateY(-5px); /* Slightly lifts the card */
}

/* Ensure smooth transitions */
.fleet-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: Add a dark overlay with fade-in effect on hover */
.fleet-card a {
    position: relative;
    display: block;
    overflow: hidden;
}

.fleet-card a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fleet-card:hover a::after {
    opacity: 1;
}

/* Ensure text remains readable above the overlay */
.fleet-card a .card-body {
    position: relative;
    z-index: 2;
}

/* -----------------------------------
   Buttons in "Estimate Your Fare" Section
----------------------------------- */

#fare-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Adjust button margins and widths */
#fare-form .btn-success,
#fare-form .btn-info {
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    #fare-form .btn-success,
    #fare-form .btn-info {
        margin-bottom: 0;
    }
}

/* Adjust button sizes */
#fare-form .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

@media (max-width: 576px) {
    #fare-form .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* -----------------------------------
   Additional Responsive Adjustments
----------------------------------- */

/* Ensure buttons take full width on small screens */
@media (max-width: 576px) {
    .hero__buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
