.hero {
    position: relative;
    min-height: 600px;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Desktop Image */
    background: url('../../images/site_ui/hero-background.jpg') no-repeat center center;
    background-size: 100% 100%; 
    padding: 15px; 
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: none; 
}

.hero-content {
    position: relative; z-index: 2; max-width: 1200px; width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem; font-weight: 700; margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem; margin-bottom: 3rem; font-weight: 300;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.booking-form-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 2rem; 
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box; 
}

.booking-form {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 0.9fr 0.9fr auto;
    gap: 15px; 
    align-items: end;
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
    min-width: 0; 
    width: 100%;
}

.form-group label {
    font-size: 0.8rem; margin-bottom: 8px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.form-group input, 
.form-group select, 
.choices__inner,
.flatpickr-input, 
.flatpickr-mobile { 
    width: 100%; 
    height: 55px !important; 
    min-height: 55px !important;
    padding: 0 15px !important; 
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 8px !important; 
    font-size: 1rem !important; 
    background-color: #fff !important;
    color: #333 !important; 
    display: flex; 
    align-items: center; 
    box-sizing: border-box;
    line-height: normal; 
}

.flatpickr-input::placeholder { color: #555 !important; opacity: 1; }
input[type="hidden"].flatpickr-input { display: none !important; }

.choices__list--dropdown {
    background-color: #fff !important; color: #333 !important;
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: none; margin-top: 5px; z-index: 100;
}
.choices__list--dropdown .choices__item {
    color: #222 !important; font-size: 0.95rem; padding: 10px 15px; word-wrap: break-word;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #f1f5f9 !important;
}
.choices__placeholder { color: #555 !important; opacity: 1; }
.choices[data-type*="select-one"]::after {
    border-color: #333 transparent transparent transparent;
    margin-top: -3px; right: 15px;
}

.submit-btn {
    height: 55px; padding: 0 2rem; background-color: #003366; /* Navy Blue */
    color: #ffffff; border: none; border-radius: 8px; font-weight: 600;
    font-size: 1rem; cursor: pointer; transition: all 0.3s ease;
    white-space: nowrap; box-shadow: 0 4px 6px rgba(0,0,0,0.1); width: 100%;
}
.submit-btn:hover { background-color: #002244; transform: translateY(-2px); }

.cars-section { background-color: #f8f9fa; padding: 5rem 0; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; color: #222; margin-bottom: 0.5rem;}
.section-subtitle { text-align: center; margin-bottom: 3rem; color: #666; font-size: 1.1rem; }

.cars-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.car-card {
    background: #fff; border-radius: 12px; padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center;
    transition: transform 0.3s ease; display: flex; flex-direction: column;
}
.car-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.car-image-container {
    width: 100%; height: 180px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 1rem; overflow: hidden;
    position: relative;
}
.car-image { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.car-card:hover .car-image { transform: scale(1.05); }

/* Badge Styles */
.transmission-badge {
    position: absolute; top: 0; right: 0; z-index: 10;
    padding: 6px 14px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.badge-auto { background-color: #003366; color: #ffffff; border: 1px solid #002244; }
.badge-manual { background-color: #f1f5f9; color: #003366; border: 1px solid #cbd5e1; }

.car-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: #222; }
.car-features-icons { display: flex; justify-content: center; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.feature-icon-item { background: #f1f5f9; color: #475569; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.car-price { font-size: 1.8rem; font-weight: 800; color: #003366; margin-bottom: 1.5rem; }

.book-btn {
    display: block; width: 100%; padding: 1rem; background-color: #1e293b;
    color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600;
    transition: background 0.3s;
    margin-top: auto;
}
.book-btn:hover { background-color: #000; }

.view-all-container { margin-top: 3rem; text-align: center; }
.view-all-btn {
    background: #003366; color: white; padding: 1rem 2.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; transition: transform 0.2s; display: inline-block;
}

/* Reviews Section */
.customer-reviews-section { background-color: #f8f9fa; padding: 5rem 0; }
.reviews-slider-container { overflow: hidden; max-width: 1100px; margin: 0 auto; padding: 1rem 0; }
.reviews-slider-wrapper { display: flex; transition: transform 0.5s ease; gap: 1.5rem; }

.review-link { text-decoration: none; color: inherit; display: block; flex: 0 0 100%; }
.review-item {
    background: #fff; border-radius: 12px; padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    display: flex; flex-direction: column;
    min-height: 280px; /* Ensures consistent card height */
}
.review-header { display: flex; align-items: center; margin-bottom: 1rem; }
.review-platform-icon { margin-right: 0.75rem; }
.review-name { font-weight: 700; font-size: 1rem; }
.review-date { font-size: 0.8rem; color: #888; }

/* Text Truncation Logic */
.review-text { 
    color: #555; line-height: 1.6; flex-grow: 1; margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}
.review-text.expanded {
    -webkit-line-clamp: unset; /* Show all lines */
    overflow: visible;
}

.review-stars { display: flex; gap: 4px; margin-bottom: 1rem; }
.review-stars svg, .review-star { width: 20px; height: 20px; fill: #ffc107; }
.review-read-more { color: #003366; background: none; border: none; padding: 0; font-weight: 600; cursor: pointer; font-size: 1rem; text-align: left; }
.review-read-more:hover { text-decoration: underline; }

.slider-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.slider-btn { background: #fff; color: #003366; border: 1px solid #ddd; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display:flex; align-items:center; justify-content:center; }

.about-section { padding: 5rem 0; background-color: #fff; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem; margin-top: 3rem;
}
.feature-card {
    text-align: center; padding: 2rem; border: 1px solid #f1f5f9; border-radius: 12px;
    transition: transform 0.3s ease; background: #fff;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.feature-icon { margin-bottom: 1.5rem; color: #003366; display: flex; justify-content: center; }
.feature-icon svg { width: 50px; height: 50px; fill: currentColor; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: #222; }

/* Flatpickr Styling from cars.css */
.flatpickr-calendar {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    border-radius: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    width: 300px !important;
    margin: 0 auto;
}
.flatpickr-calendar::before, .flatpickr-calendar::after { display: none !important; }
.flatpickr-months { background: #003366 !important; border-radius: 12px 12px 0 0 !important; padding: 10px 0; }
.flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year { color: #fff !important; font-weight: 700; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { fill: #fff !important; }
.flatpickr-weekdays { background: #003366 !important; }
.flatpickr-weekday { color: rgba(255,255,255,0.8) !important; font-weight: 600 !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { background: #003366 !important; border-color: #003366 !important; }
.flatpickr-day.today { border-color: #003366 !important; }
.flatpickr-day:hover { background: #e6e6e6 !important; border-color: #e6e6e6 !important; }

@media (max-width: 1024px) {
    .booking-form { grid-template-columns: 1fr 1fr; gap: 12px; }
    .submit-btn { grid-column: span 2; margin-top: 10px; }
    .review-link { flex: 0 0 calc(50% - 0.75rem); }
}

@media (min-width: 1025px) {
    .review-link { flex: 0 0 calc(33.333% - 1rem); }
}

@media (max-width: 768px) {
    .hero { 
        min-height: 550px; 
        height: auto; 
        padding: 10px; 
        
        background-image: url('../../images/site_ui/hero-background-mobile.jpg');
        background-size: 100% 100%;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .hero-content h1 { 
        font-size: 2rem; 
    }
    
    .hero-content p { 
        font-size: 1rem; 
        margin-bottom: 1.5rem; 
    }
    
    .booking-form-container { 
        padding: 20px 15px; 
        width: 100%; 
        max-width: 100%; 
    }
    
    .booking-form { 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
    }
    
    .form-group, .submit-btn { 
        width: 100%; 
    }
    
    .form-group input, .form-group select, .flatpickr-input, .flatpickr-mobile {
        font-size: 16px !important; 
        height: 55px !important; 
        background-color: #fff !important;
    }
    
    .submit-btn { 
        margin-top: 5px; 
    }
    
    .cars-section, .about-section, .customer-reviews-section { 
        padding: 3rem 0; 
    }
    
    .section-title { 
        font-size: 1.8rem; 
    }
    
    .cars-grid { 
        grid-template-columns: 1fr; 
        max-width: 400px; 
        margin: 0 auto; 
    }
    
    .review-link { 
        flex: 0 0 100%; 
    }
}