/* ======================= HOME PAGE STYLES ======================= */

/* -------------------- CSS Variables -------------------- */
:root {
    --primary-blue: #0055aa;
    --secondary-blue: #003366;
    --accent-blue: #4285F4;
    --dark-bg: #1a2536;
    --text-dark: #333;
    --text-light: #555;
    --border-color: #ddd;
    --form-padding-x: 60px;
    --transition-standard: 0.3s ease;
}

/* -------------------- General Styles -------------------- */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

/* -------------------- Section Header Style -------------------- */
.section-header {
    text-align: center;
    max-width: 1300px;
    margin: 0 auto 50px auto;
}

.section-tag {
    display: inline-block;
    background-color: #f0f0ff;
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.4;
    color: var(--text-light);
}

/* -------------------- Hero Banner -------------------- */
.hero-banner {
    width: 100%;
    min-height: 550px;
    background-image: url('/images/business.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-main-content {
    max-width: 2000px;
    text-align: left;
    background-color: transparent;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    padding: 0;
    color: #ffffff;
}

.hero-main-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero-main-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 1000px;
}

.hero-cta-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #26196d;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all var(--transition-standard);
}

.hero-cta-button:hover,
.hero-cta-button:focus {
    background-color: #363432;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 97, 96, 0.6);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 450px;
        align-items: flex-end;
    }

    .hero-main-content {
        text-align: center;
        padding-bottom: 20px;
    }

    .hero-main-content h1 {
        font-size: 7vw;
        letter-spacing: 0;
    }

    .hero-main-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-cta-button {
        display: block;
        width: 80%;
        max-width: 300px;
        border-radius: 25px;
        margin: 0 auto;
    }
}


* Styling for the new Autocomplete Suggestions List */
/* --- NEW CONTAINER CLASS --- */
/* This container must wrap the <input> and the <ul> list for absolute positioning to work correctly. */
.autocomplete-field-wrapper {
    position: relative; /* CRITICAL: Establishes a positioning context for the absolutely positioned <ul> */
    margin-bottom: 25px; /* Add margin here to separate input groups */
}

/* -------------------- Autocomplete Suggestions List (FIXED) -------------------- */
.autocomplete-suggestions {
    list-style: none;
    padding: 0;
    
    /* CRITICAL FIXES: Position list relative to the wrapper */
    position: absolute; 
    top: 100%;       /* Position list exactly below the input field */
    left: 0;
    width: 100%;     /* List takes 100% width of the wrapper */
    
    margin: 0;       /* Remove external margins */
    border: 1px solid var(--border-color); /* Use your existing border variable */
    border-top: none;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
    max-height: 200px;
    max-width: 600px;
    overflow-y: auto;
    z-index: 50; /* Higher than the form's z-index but allows visibility */
    
    /* Ensure border-radius matches input field styling */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.autocomplete-suggestions li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9em;
    color: #333;
    border-bottom: 1px solid #eee;
    /* Ensure text selection is difficult for a better UX when clicking */
    user-select: none; 
}

.autocomplete-suggestions li:last-child {
    border-bottom: none;
}

.autocomplete-suggestions li:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Ensure the input box itself has no bottom margin when suggestions are active */
.autocomplete-field-wrapper input {
    margin-bottom: 0; /* Clear input's bottom margin */
    border-bottom-left-radius: 0; /* Optional: Makes the input flow into the suggestions */
    border-bottom-right-radius: 0;
}
    
/* -------------------- Quick Booking Form -------------------- */
.booking-form-wrapper {
    display: flexbox;
    width: 100%;
    max-width: 350px;
    background-color: rgba(255, 255, 255, 0.719);
    border-radius: 1.9%;
    padding: 20px 30px 20px 30px;
    margin-left: 8rem;
    z-index: 10;
}


.booking-form-wrapper h2 {
    font-size: 1.2em;
    font-weight: 600;
    color: white;
    margin: 0;
}

.booking-form-header i {
    font-size: 1.5em;
    margin-right: 15px;
    opacity: 0.8;
}

.booking-form-header .form-subtext-header {
    font-size: 0.8em;
    opacity: 0.7;
    margin: 0;
    position: absolute;
    left: 70px;
    top: 45px;
}

.booking-form-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-dark);
}

.booking-form-wrapper input,
.booking-form-wrapper select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.booking-form-wrapper input:focus,
.booking-form-wrapper select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(0, 85, 170, 0.3);
}

.datetime-group {
    display: flex;
    gap: 10px;
}

.datetime-group > div {
    flex: 1;
}

.input-group-home {
    display: flex;
    gap: 15px;
}

.input-group-home > div {
    flex: 1;
}

/* Passenger Input Group */
.passenger-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--text-dark);
    border-radius: 5px;
    margin-bottom: 15px;
    height: 44px;
    line-height: 44px;
}

.passenger-input-group button {
    background-color: #555;
    border: none;
    color: var(--border-color);
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 15px;
    height: 100%;
    transition: background-color 0.2s;
}

.passenger-input-group button:hover,
.passenger-input-group button:focus {
    background-color: #000;
    outline: 2px solid var(--dark-bg);
    outline-offset: -2px;
}

.passenger-input-group .passenger-count {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    flex-grow: 1;
}

.passenger-count i {
    margin-left: 5px;
    color: #888;
}

/* Submit Button */
.form-submit-btn {
    width: 100%;
    background-color: var(--secondary-blue);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition-standard);
    text-transform: uppercase;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit-btn:hover,
.form-submit-btn:focus {
    background-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 85, 170, 0.4);
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.complete-details-text {
    font-size: 0.8em;
    text-align: center;
    color: #888;
    margin-top: 10px;
}

/* -------------------- Mobile Responsiveness Fixes -------------------- */
@media (max-width: 600px) {
    /* Targets multi-column groups */
    .datetime-group,
    .input-group-home {
        flex-direction: column; /* Stack children vertically */
        gap: 0; /* Remove horizontal gap */
    }

    /* Ensure children take up full width when stacked */
    .datetime-group > div,
    .input-group-home > div {
        flex: 1 1 100%; /* Full width */
        width: 100%;
    }

    /* Adjust padding for the header to look balanced */
    .booking-form-header {
        padding-left: 20px; /* Reduce padding slightly */
    }
}

@media (max-width: 768px) {
    .booking-form-wrapper {

        --form-padding-x: 20px; /* Adjusting padding for smaller screens */
        padding: 20px var(--form-padding-x) 25px var(--form-padding-x);
        
        /* FIX: Center the form and remove the large margin */
        margin-right: auto;
        margin-left: auto;
        
        /* FIX: Allow the form to take up more width on tablets/large phones */
        max-width: 90%; 
        width: 100%; /* Ensures it fills up to the max-width */
    }

    .booking-form-header {
        left: calc(0px - var(--form-padding-x));
        width: calc(100% + (2 * var(--form-padding-x)));
        /* Ensure subtext is not cut off if header wraps */
        position: static; 
        display: block;
        text-align: center;
    }
    
    /* FIX: Re-adjust header elements for stacking */
    .booking-form-header h2,
    .booking-form-header .form-subtext-header {
        text-align: center;
        margin-top: 5px;
        position: static; /* Clear absolute positioning */
        padding: 0 10px;
    }

    .booking-form-header i {
        display: block;
        margin: 0 auto 10px; /* Center the icon */
    }
}

/* Mobile Responsive Overrides */
    @media screen and (max-width: 991px) {
        
        /* 1. Change the main container to stack vertically instead of side-by-side */
        .hero-banner {
            display: flex;
            flex-direction: column; /* Stacks items top-to-bottom */
            height: auto; /* Allows section to grow with content */
            padding-top: 100px; /* Space for the navbar */
            padding-bottom: 50px;
            align-items: center;
        }

        /* 2. Fix the Hero Text Section */
        .hero-main-content {
            width: 100%;
            max-width: 100%;
            text-align: center; /* Centers text for mobile */
            padding: 0 20px;
            margin-bottom: 40px; /* Pushes the form down so it doesn't overlap */
            z-index: 1; /* Ensures text stays clickable */
        }

        /* 3. Fix the Form Container */
        .booking-form-wrapper {
            position: relative; /* Disables absolute positioning if used */
            width: 90%; /* Leaves a little margin on sides */
            max-width: 450px; /* Prevents it from getting too wide on tablets */
            margin: 0 auto; /* Centers the form horizontally */
            right: auto; /* Resets any 'right' positioning */
            top: auto; /* Resets any 'top' positioning */
            transform: none; /* Resets centering transforms */
        }

        /* Optional: Adjust form text size for smaller screens */
        .booking-form-wrapper label {
            font-size: 14px;
        }
        
        /* Ensure the background image covers the whole new height */
        .hero-banner {
            background-position: center;
            background-size: cover;
        }
    }
/* -------------------- Welcome/Features Section -------------------- */
.welcome-section {
    background-color: #ffffff;
    padding-bottom: 100px; /* Creates room for the sticky footer */
}

.feature-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.feature-card {
    flex: 1;
    max-width: 380px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

/* Update your CSS to properly contain the image within its box */
.welcome-w{
    padding: 30px;
    margin-bottom:-2rem;

}
.feature-card-image img {
    width: 100%; 
    max-width: 200px; /* Limits size on mobile */
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%; /* Creates the circular look in the screenshot */
    object-fit: cover;
    margin-bottom: 20px;
}



.center-box,
.card-image-box {
    /* Define a clear size for the container if needed, e.g., to reserve space */
    /* Example: width: 100px; height: 100px; margin: 0 auto 20px; */
    /* This depends heavily on your desired design. */
    text-align: center; /* To center the image inside the div */
    margin-bottom: 20px; 
}



.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #022242;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    align-self: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    text-align: center;
}

.feature-card .card-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 25px;
    text-align: center;
}

.feature-card .card-description {
    flex-grow: 1;
    margin-bottom: 25px;
    line-height: 1.5;
}

.feature-card .card-description p {
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
}

/* Button Styles */
.btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
    transition: background-color var(--transition-standard), transform 0.2s;
}

.btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(to right, var(--secondary-blue), var(--primary-blue));
}

.btn-dark {
    background-color: #1a1a2e;
    color: white;
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: #000;
}

.btn-secondary {
    background-color: var(--accent-blue);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #357ae8;
}

@media (max-width: 768px) {
    .feature-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        max-width: 90%;
    }
}

/* -------------------- Fleet Section -------------------- */
.fleet-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.fleet-section h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 10px;
    color: black;
}

.fleet-section p {
    margin-bottom: 40px;
    font-size: 1.1em;
    color: var(--text-light);
}

.fleet-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.fleet-card {
    flex: 1 1 250px;
    max-width: 250px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.fleet-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.fleet-card h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.fleet-card p {
    font-size: 0.95em;
    color: var(--text-light);
}

@media (max-width: 992px) {
    

    .fleet-section img {
    max-width: 100%; /* Ensures the image never exceeds the width of its container */
    height: auto;    /* Maintains the image's aspect ratio when scaling */
    display: block;  /* Helps remove any extra space below the image */
}
    
    .fleet-cards {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .fleet-card {
        /* FIX: Ensures the card uses most of the screen width on mobile */
        width: 90%; 
        max-width: 500px; /* Optional: Sets a reasonable maximum width for tablets */
    }
}
/* -------------------- Premium Services Section -------------------- */
.services-section {
    padding: 80px 20px;
    background-color: white;
}

.service-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.service-card {
    flex: 1;
    max-width: 380px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
    position: relative;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.service-card .card-image-box {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    padding: 20px 20px 5px 20px;
    margin: 0;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 0 20px 25px 20px;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .service-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        max-width: 90%;
    }
}

/* -------------------- Call to Action Banner -------------------- */
.cta-banner {
    background-image: linear-gradient(rgba(26, 26, 46, 0.85), rgba(26, 26, 46, 0.85)),
        url('/images/detroit-airport.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Better performance on mobile than 'fixed' */
    padding: clamp(60px, 10vw, 100px) 20px; /* Fluid padding */
    text-align: center;
    color: white;
    width: 100%;
    box-sizing: border-box;
}




.cta-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px; /* Side padding to prevent text hitting edges on small screens */
}

.cta-content h2 {
    font-size: clamp(1.8rem, 5vw, 3.2rem); /* Increased scale for larger screens */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: clamp(30px, 5vw, 50px);
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px; /* Better readability for long sentences */
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Already good, keeps buttons side-by-side until too tight */
}

.btn-cta {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 35px; /* Slightly taller for better touch targets */
    border-radius: 50px;
    transition: all 0.3s ease; /* Ensure standard transition is defined */
    text-transform: uppercase;
    display: inline-flex; /* Changed from flex for better width handling */
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px; /* Ensures consistent button size */
}

.btn-cta-primary {
    background-color: white;
    color: #1a1a2e; /* Hardcoded blue if variable is missing */
    border: 2px solid white;
}

.btn-cta-secondary {
    background-color: white;
    color: #1a1a2e; /* Hardcoded blue if variable is missing */
    border: 2px solid white;
}

/* ... keep your existing hover effects ... */

/* -------------------- Improved Mobile Responsiveness -------------------- */
@media (max-width: 768px) {
    .cta-banner {
        padding: 60px 15px;
    }
    
    .cta-content h2 {
        margin-bottom: 15px;
    }
    .btn-cta{
        width: 50%;
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}