/* --- 1. BASE STYLES & RESET --- */
* {
    box-sizing: border-box;
}

:root {
    --primary-blue: #007bff;
    --secondary-orange: #ff6f00;
    --success-green: #28a745;
    --text-dark: #333;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-orange);
}

.btn {
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

h2 {
    font-size: 2em;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* Confirmation message styling */
.confirmation-message {
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
}

/* --- MODAL STYLES (Advanced Booking) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* --- New Car Selection Card Design --- */
.car-carousel-wrapper {
    position: relative;
    padding: 0 40px;
    /* Space for arrows */
}

#carList {
    display: flex;
    justify-content: flex-start;
    /* Align start to allow scrolling from left */
    gap: 15px;
    align-items: stretch;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;

    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

#carList::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: background-color 0.2s;
}

.scroll-arrow:hover {
    background-color: #f0f0f0;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

.car-select-item-new {
    flex: 1;
    /* Take equal width */
    min-width: 250px;
    /* Minimum width before scrolling/wrapping */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 0px;
    /* Remove bottom margin in flex row */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    /* Internal vertical layout */
}

/* On very small screens (phones), maybe revert to stack if wanted, 
   but user asked for slides. Keeps overflow-x: auto above. */
@media (max-width: 768px) {
    #carList {
        justify-content: flex-start;
        /* Align left for scrolling */
    }
}

.car-select-item-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.car-card-header {
    position: relative;
    padding: 10px;
    text-align: center;
    background-color: #fff;
}

.car-img-display {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

.car-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: lowercase;
}

.car-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Fill remaining height */
}

/* ... existing styles ... */

.car-trip-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
    margin-top: auto;
    /* Push to bottom */
}

.car-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.car-name {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.car-model {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
}

.car-price-block {
    text-align: right;
}

.car-price {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.car-price-subtitle {
    margin: 0;
    font-size: 0.75rem;
    color: #777;
}

.car-details-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: space-between;
}

.badge {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: #333;
    font-weight: 600;
}

.car-trip-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

.btn-book-now-card {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-book-now-card:hover {
    background-color: #0056b3;
}

.car-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-blue);
}

.car-info p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.fare-estimate {
    font-weight: 700;
    color: var(--success-green);
    font-size: 1.2em;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.otp-digit {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
}


/* --- 2. HEADER & NAVIGATION --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
}

.nav-links a.active {
    color: var(--secondary-orange);
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-orange);
}

.cta-btn {
    background-color: var(--secondary-orange);
    color: white;
    margin-left: 15px;
}

.cta-btn:hover {
    background-color: #e65c00;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- 3. HERO SECTION & BOOKING FORM (Index) --- */
.hero {
    background: url('rockfort-trichy.png') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    position: relative;
    color: black;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 2 1 50%;
    text-align: left;
}

.hero-text h1 {
    font-size: 3em;
    color: white;
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.hero-text p {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.booking-form-container {
    flex: 1 1 350px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--secondary-orange);
}

.booking-form h3 {
    margin-top: 0;
    color: var(--secondary-orange);
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.booking-form label {
    margin: 0;
    font-weight: 500;
    flex: 0 0 35%;
    /* Fixed width for labels */
    text-align: right;
    font-size: 0.95em;
}

.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form input[type="email"],
.booking-form select,
.booking-form input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
}

.book-btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px;
    margin-top: 20px;
    width: 100%;
    font-size: 1.1em;
}

.book-btn:hover {
    background-color: #0056b3;
}

.trip-type-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--primary-blue);
    background-color: var(--bg-light);
}

.trip-type-toggle input[type="radio"] {
    display: none;
}

.trip-type-toggle label {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-blue);
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

.trip-type-toggle input[type="radio"]:checked+label {
    background-color: var(--primary-blue);
    color: white;
}

.return-date-group {
    display: none;
}

/* --- 4. FEATURE SECTION (Index) --- */
.features {
    padding: 50px 0;
    background-color: #fff;
}

.feature-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.feature-item {
    flex-basis: 30%;
    min-width: 250px;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.feature-item i {
    font-size: 2.5em;
    color: var(--secondary-orange);
    margin-bottom: 10px;
}

.feature-item h4 {
    margin-top: 0;
    color: var(--text-dark);
}

/* --- 5. ROUTES SECTION (Index) --- */
.routes {
    padding: 60px 0;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.route-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.route-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    margin-bottom: 15px;
    display: block;
}

.route-card h3,
.route-card small,
.route-card .btn {
    padding-left: 20px;
    padding-right: 20px;
}

.route-card h3 {
    margin-top: 0;
    color: var(--primary-blue);
}

.route-card small {
    display: block;
    margin-bottom: 10px;
    color: #555;
}

.route-card .btn {
    background-color: var(--secondary-orange);
    color: white;
    margin: 0 20px 20px 20px;
}

/* --- CONTACT SECTION (Contact) --- */
.contact-section {
    padding: 50px 0;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info,
.contact-form-container {
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.contact-info {
    flex: 1 1 300px;
    border-top: 3px solid var(--primary-blue);
}

.contact-form-container {
    flex: 2 1 600px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.8em;
    color: var(--secondary-orange);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.info-item h4 {
    margin: 0;
    font-weight: 600;
    color: var(--primary-blue);
}

.info-item p {
    margin: 0;
    font-size: 0.95em;
}

.contact-form label {
    display: block;
    margin: 15px 0 5px 0;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--success-green);
    color: white;
    padding: 15px;
    margin-top: 20px;
    width: 100%;
    font-size: 1.1em;
}

/* --- ABOUT / WHY US SECTION (About) --- */
.why-us-intro {
    background-color: #e6f0ff;
    padding: 50px 0;
    margin-bottom: 40px;
}

.why-us-intro h1 {
    font-size: 2.8em;
    color: var(--text-dark);
    margin-top: 0;
    text-align: center;
}

.value-propositions {
    padding: 20px 0 60px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-blue);
}

.value-item i {
    font-size: 2.5em;
    color: var(--secondary-orange);
    margin-bottom: 15px;
}

.value-item h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-cta-strip {
    background-color: var(--secondary-orange);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.contact-cta-strip h2 {
    color: white;
    margin-bottom: 15px;
}

.contact-cta-strip .contact-btn {
    background-color: var(--success-green);
    color: white;
    font-size: 1.1em;
    padding: 15px 35px;
}

.contact-cta-strip .contact-btn:hover {
    background-color: #218838;
}

/* --- FLEET SECTION (Fleet) --- */
.fleet-section {
    padding: 40px 0 60px 0;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.car-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-top: 6px solid var(--primary-blue);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.card-content h3 {
    color: var(--secondary-orange);
    margin-top: 0;
    font-size: 1.5em;
}

.rate-tag {
    display: inline-block;
    background-color: var(--success-green);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 15px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
    flex-grow: 1;
}

.details-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
    display: flex;
    justify-content: space-between;
}

.details-list i {
    color: var(--primary-blue);
    margin-right: 8px;
}

.car-card .btn-primary {
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
}

/* --- ROUTES & FARES / PRICING (Routes) --- */
.pricing-section {
    padding: 20px 0 60px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.price-table {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--success-green);
}

.price-table h4 {
    font-size: 1.4em;
    color: var(--success-green);
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-bottom: 15px;
}

.price-table th,
.price-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-table th {
    font-weight: 600;
    color: var(--text-dark);
    width: 50%;
}

.highlight {
    font-weight: 700;
    color: var(--secondary-orange);
}

.coverage-section {
    padding: 40px 0 60px 0;
    background-color: #fff;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.route-list ul {
    list-style: none;
    padding: 0;
}

.route-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
}

.route-list i {
    margin-right: 10px;
    color: var(--primary-blue);
}

/* --- FOOTER --- */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--primary-blue);
}

.footer-col a,
.footer-col p a {
    color: #bbb;
    display: block;
    margin-bottom: 5px;
}

/* --- FLOATING BUTTONS --- */
.call-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 80px;
    right: 20px;
    background-color: var(--primary-blue);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.call-float i {
    font-size: 30px;
}

.call-float:hover {
    background-color: #0056b3;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 10px;
    right: 15px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 35px;
}

.whatsapp-float:hover {
    width: 160px;
    border-radius: 30px;
    font-size: 14px;
    background-color: #128c7e;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    body {
        overflow-x: hidden;
    }

    header .container {
        overflow-x: visible;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .hero-text {
        text-align: center;
        flex-basis: 100%;
        width: 100%;
        max-width: 400px;
    }

    .booking-form-container {
        max-width: 350px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .menu-toggle {
        display: block;
        padding: 10px;
        /* Add tap area */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Push below header */
        left: 0;
        right: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 5px;
        z-index: 2000;
        /* Ensure on top */
    }

    .nav-links a {
        border-bottom: 1px solid #f0f0f0;
        padding: 15px 20px;
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Adjust CTA button in mobile menu */
    .nav-links .cta-btn {
        margin: 10px auto;
        display: inline-block;
        width: 80%;
    }

    .nav-links a.active {
        border-left: 0;
        border-bottom: 2px solid var(--secondary-orange);
        background-color: #fafafa;
    }

    .nav-open {
        display: flex;
    }

    .nav-content {
        flex-wrap: nowrap;
    }

    .logo,
    .cta-btn {
        z-index: 1001;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.8em;
    }

    /* FIX: Mobile Header Layout - Single Row */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Force Full Width for Mobile Container */
    .container,
    header .container,
    .booking-form-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
        /* Keep safe padding */
        margin: 0;
        box-sizing: border-box;
    }

    /* --- MOBILE OPTIMIZATION FOR BOOKING FORM --- */
    .booking-form-container {
        padding: 15px !important;
        /* Reduced padding */
        margin-top: 20px;
    }

    .booking-form h3 {
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

    .form-group {
        flex-direction: column;
        /* Stack label and input */
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 10px;
        /* Tighter spacing */
    }

    .booking-form label {
        text-align: left;
        flex: auto;
        width: 100%;
        margin-bottom: 2px;
        font-size: 0.9em;
    }

    .booking-form input[type="text"],
    .booking-form input[type="tel"],
    .booking-form input[type="email"],
    .booking-form select,
    .booking-form input[type="date"] {
        padding: 8px;
        /* Smaller padding */
        font-size: 0.95rem;
    }

    .trip-type-toggle {
        margin-bottom: 15px;
    }

    .trip-type-toggle label {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .book-btn {
        padding: 12px;
        margin-top: 15px;
        font-size: 1rem;
    }

    /* --- HERO OPTIMIZATION --- */
    .hero {
        padding: 40px 0;
        /* Reduced vertical padding */
        background-position: center bottom;
        /* Adjust bg if needed */
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* --- CAR MODAL OPTIMIZATION --- */
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px 15px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .car-carousel-wrapper {
        padding: 0 30px;
        /* Reduce side padding for arrows */
    }

    .car-select-item-new {
        min-width: 220px;
        /* Narrower cards */
    }

    .car-card-body {
        padding: 5px 10px 10px 10px;
        /* Very compact padding */
    }

    .car-name {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .car-model {
        font-size: 0.75rem;
    }

    .car-price {
        font-size: 1rem;
    }

    .car-price-subtitle {
        font-size: 0.65rem;
    }

    .car-details-badges {
        margin-bottom: 8px;
        gap: 5px;
    }

    .badge {
        padding: 2px 5px;
        font-size: 0.7rem;
    }

    .car-trip-info {
        font-size: 0.75rem;
        margin-bottom: 8px;
        padding-top: 5px;
    }

    .btn-book-now-card {
        padding: 8px;
        font-size: 0.9rem;
    }

    .car-img-display {
        max-height: 100px;
        /* Smaller image */
    }

    /* Reduce Modal Title and Spacing */
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .contact-grid {
        flex-direction: row;
        flex-wrap: wrap;
        /* Allow wrapping for the menu */
        align-items: center;
        justify-content: space-between;
        padding: 5px 10px;
        gap: 5px;
    }

    .logo {
        font-size: 0.9rem;
        flex: 1;
        /* Takes available space */
        white-space: normal;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
        order: 1;
        /* First */
    }

    /* Group 'Book Now' and 'Menu Toggle' */
    .nav-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        order: 2;
        /* Second */
        flex-shrink: 0;
    }

    /* Compact 'Book Now' Button */
    .cta-btn {
        font-size: 0.7rem;
        /* Smaller Font */
        padding: 6px 10px;
        /* Reduced padding */
        width: auto;
        margin: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .menu-toggle {
        font-size: 1.2rem;
        margin-left: 10px;
        padding: 4px 8px;
        /* Touch target */
        border: 1px solid #eee;
        /* Inside look */
        border-radius: 4px;
        flex-shrink: 0;
        display: block;
        color: var(--text-dark);
    }

    .nav-links {
        width: 100%;
        gap: 0;
        margin-top: 10px;
        /* Space from header row */
        /* PUSH CONTENT DOWN: Remove absolute positioning */
        position: static;
        background-color: #f9f9f9;
        /* Slight contrast */
        box-shadow: none;
        /* Flatten */
        border-top: 1px solid #eee;
        z-index: 1000;
        padding: 0;
        display: none;
        /* Hidden by default */
    }

    /* When toggled via JS, it will be display: flex/block */
    .nav-open {
        display: flex;
        flex-direction: column;
    }

    .nav-links a {
        padding: 5px 0;
        border-bottom: 1px dotted #eee;
    }

    .contact-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-info,
    .contact-form-container {
        flex-basis: auto;
    }

    .footer-grid {
        justify-content: center;
    }

    .footer-col {
        flex: 1 1 100%;
        max-width: 350px;
        text-align: center;
    }

    .whatsapp-float:hover {
        /* Disable expanding on mobile to prevent clipping */
        width: 60px;
        border-radius: 50%;
        font-size: 0;
    }

    /* Ensure floating buttons are not cut off */
    .call-float {
        bottom: 90px;
        right: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .menu-toggle {
        display: block;
        /* Ensure visible on mobile */
        color: var(--text-dark);
    }
}

@media (min-width: 1000px) {
    .feature-item {
        flex-basis: calc(33.33% - 30px);
    }
}

@media (max-width: 500px) {
    .feature-item {
        flex-basis: 100%;
    }

}

/* --- CAPTCHA STYLES --- */
.captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}