@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6, 
.header nav a, 
.call-button,
.book-now-button {
    font-family: 'Montserrat', sans-serif;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }

p { font-size: 1rem; line-height: 1.6; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    pointer-events: none; /* Allow touch events to pass through */
}

/* Re-enable pointer events for header content */
.header * {
    pointer-events: auto;
}

.logo img {
    width: 200px;
    height: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    padding: 0;
}

@media screen and (min-width: 769px) {
    nav ul {
        margin-left: -4rem;
        margin-right: -4rem;
        position: relative;
    }
    nav ul li {
        padding: 0 4rem;
        position: relative;
    }
    nav ul li:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 1rem;
        background-color: rgba(0, 0, 0, 0.1);
    }
}

@media screen and (max-width: 768px) {
    nav ul {
        gap: 2rem;
    }
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #00007A;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

nav a:hover {
    color: #00007A;
}

nav a:hover::after {
    width: 100%;
    opacity: 1;
}

.call-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #FE641A;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.call-button:hover {
    background-color: #e55a17;
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 60px;
        -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 0.75rem 1rem;
        background: white;
        pointer-events: none; /* Allow touch events to pass through */
    }
    
    .header * {
        pointer-events: auto; /* Re-enable pointer events for header content */
    }

    .logo img {
        width: 150px;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        padding: 5rem 2rem 2rem;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        z-index: 1500;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    nav a {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }

    .call-button {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 300px;
        justify-content: center;
        margin: 0;
        z-index: 1600;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .logo img {
        width: 120px;
    }

    nav {
        padding: 4rem 1rem 2rem;
    }

    nav a {
        font-size: 1.2rem;
    }

    .call-button {
        font-size: 0.95rem;
        padding: 0.875rem;
    }
}

/* Animation for mobile menu */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav.active ul li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

nav.active ul li:nth-child(1) { animation-delay: 0.1s; }
nav.active ul li:nth-child(2) { animation-delay: 0.2s; }
nav.active ul li:nth-child(3) { animation-delay: 0.3s; }

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding: 2rem 8rem 4rem 8rem;
    background: linear-gradient(to bottom, #f1f3f5, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1; /* Ensure it's below the header but above other content */
}

.left-hero {
    flex: 1;
}

.left-hero h1 {
    margin-bottom: 1.5rem;
}

.left-hero p {
    margin-bottom: 2rem;
}

.right-hero {
    flex-shrink: 0;
}

.right-hero img {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    height: auto;
    display: block;
}

.right-hero img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.book-now-button {
    display: inline-block;
    background-color: #00007A;
    color: white;
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 2; /* Ensure button is above hero section but below header */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
    touch-action: manipulation; /* Optimize for touch */
}

.book-now-button:hover {
    background-color: #000055;
    transform: translateY(-2px);
}

.fleet-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding-bottom: 2rem;
}

.fleet-info h2 {
    margin-bottom: 2rem;
}

.fleet-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-flow: row;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
    justify-content: space-between;
}

@media screen and (max-width: 1200px) {
    .fleet-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .fleet-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }

    .left-hero {
        padding: 0;
    }

    .left-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .left-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .right-hero {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .right-hero img {
        width: 100%;
        height: auto;
    }

    .book-now-button {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
        padding: 1rem 2rem;
    }

    .fleet-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }

    .left-hero h1 {
        font-size: 1.75rem;
    }

    .left-hero p {
        font-size: 0.95rem;
    }

    .book-now-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .right-hero {
        max-width: 280px;
    }

    .fleet-container {
        grid-template-columns: 1fr;
    }
    
    .fleet-item {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
    }
}

.fleet-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #e6f0ff;
    border-radius: 8px;
    padding: 0.75rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fleet-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .fleet-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
}
.fleet-item p {
    text-align: center;
    margin: 0.5rem 0;
    line-height: 1.3;
    font-size: 0.85rem;
}

.fleet-item img {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.fleet-item:hover img {
    transform: translateY(-8px) scale(1.05);
}

.fleet-item p {
    text-align: center;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.car-type {
    font-style: italic;
    color: #666;
    margin-top: auto;
}

.fleet-info .book-now-button {
    padding: 0.75rem 2.5rem;
    margin-top: 3rem;
    display: block;
    width: auto;
}

.reviews {
    background: linear-gradient(135deg, lightgray 50%, gray 100%);
    color: black;
    padding: 3.5rem 2rem;
    text-align: center;
    margin: 0;
    opacity: 0;
    animation: fadeInReview 1s ease forwards;
}

.reviews h4 {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.reviews h2 {
    font-size: 1.25rem;
    color: black;
    margin: 0;
}

.reviews-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    height: 350px;
}

.review-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.review-slide.active {
    opacity: 1;
}

.review-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.0rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: rgba(0, 0, 0, 0.6);
}

.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0;
    padding: 3rem 2rem 0.5rem;
    opacity: 0;
    animation: fadeInFooter 0.8s ease-out forwards;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info > div {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.footer-info > div:hover {
    transform: translateY(-5px);
}

.footer h3 {
    color: #00007A;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: #FE641A;
    transition: width 0.3s ease;
}

.footer-info > div:hover h3::after {
    width: 75px;
}

.footer p {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer a {
    color: #00007A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FE641A;
}

.hours-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

@media screen and (max-width: 480px) {
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
}

.radio-group label {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.radio-group label:hover {
    border-color: #00007A;
    background-color: rgba(0, 0, 122, 0.05);
}

.radio-group input[type="radio"]:checked + label {
    background-color: #00007A;
    color: white;
    border-color: #00007A;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem; /* Reduced from 2rem */
    flex-wrap: wrap;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.form-button {
    width: 100%;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.next-button,
.continue-button,
.select-rate {
    /* Inheriting form-button styles */
    width: 100%;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background-color: #00007A;
    color: white;
}

.back-button,
.cancel-button {
    /* Inheriting form-button styles */
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background-color: #666;
    color: white;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #00007A;
    transition: width 0.3s ease;
}

.back-button:hover,
.cancel-button:hover {
    background-color: #444;
}

.contact-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

.weekday-hours,
.weekend-hours {
    padding: 0;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.weekday-hours:hover,
.weekend-hours:hover {
    transform: translateX(5px);
}

.day {
    font-weight: 600;
    color: #00007A;
    margin-bottom: 0.25rem;
}

.time {
    color: #666;
    font-size: 0.95rem;
}

.phone-link {
    color: #00007A;
    font-weight: 600;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #FE641A;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 0.9rem;
}

@keyframes fadeInFooter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hours-container {
        justify-content: center;
    }

    .weekday-hours {
        text-align: center;
    }

    .weekday-hours:hover,
    .weekend-hours:hover {
        transform: none;
    }

    .weekday-hours p {
        margin: 0.5rem 0;
    }
}

@keyframes fadeInReview {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media screen and (max-width: 768px) {
    .reviews {
        padding: 2rem 1rem;
    }

    .reviews h4 {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .reviews h2 {
        font-size: 1rem;
    }

    .reviews-container {
        height: auto;
        min-height: 400px;
    }

    .review-slide {
        padding: 0 1rem;
    }
}

.quote-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto; /* Changed from 100vh */
    height: auto;
    padding: 6rem 2rem 3rem; /* Increased top padding to account for fixed header */
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    position: relative; /* Added */
    -webkit-transform: translate3d(0,0,0); /* Added for iOS */
}

@media screen and (max-width: 768px) {
    .quote-section {
        padding: 5rem 1.5rem 2rem; /* Increased top padding for mobile header */
        min-height: auto; /* Changed from 100vh */
        padding-bottom: env(safe-area-inset-bottom); /* Account for bottom safe area on iOS */
    }
}

@media screen and (max-width: 480px) {
    .quote-section {
        padding: 4rem 1rem 1.5rem; /* Further reduced padding for mobile */
    }
    
    .quote-section h2 {
        margin-top: 0; /* Remove extra space from heading */
        margin-bottom: 1rem; /* Tighten up space after heading */
    }
}

#quote-result {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;  /* Reduced from 2rem for more compact layout */
    background-color: #F3F4F6;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    display: none;
    box-sizing: border-box;
}

.quote-result .rate-options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Explicit 2 columns for desktop */
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Media query specifically for rate options layout */
@media screen and (min-width: 1024px) {
    .quote-result .rate-options-container {
        grid-template-columns: repeat(2, 1fr); /* Ensure side-by-side on larger screens */
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    .quote-result .rate-options-container {
        grid-template-columns: minmax(0, 1fr); /* Single column on medium screens */
    }
}

.rate-option {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.rate-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rate-table {
    margin-bottom: auto;
}

.mileage-info {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0;
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
}

.rental-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    /* Increase max-width to make the form wider */
    max-width: 1200px;
    margin: 1rem auto; /* Reduced from 2rem */
    padding: 2rem; /* Reduced from 2.5rem */
    background-color: #F3F4F6;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
  }
  
.rental-form .form-group {
    margin-bottom: 1.5rem;
}

.rental-form .form-group:nth-child(1),
.rental-form .form-group:nth-child(2),
.rental-form .form-group:nth-child(3) {
    grid-column: span 1;
}

.rental-form .form-group:nth-child(5) {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.rental-form .form-group:nth-child(5) label {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.rental-form .form-group:nth-child(5) .radio-group {
    justify-content: flex-start;
    gap: 2rem;
}

.rental-form .form-group:nth-child(6),
.rental-form .form-group:nth-child(7) {
    grid-column: span 1;
}

.rental-form .form-group:nth-child(8) {
    grid-column: span 1;
}

.rental-form .continue-button {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto 0;
}

@media screen and (max-width: 768px) {
    .rental-form {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
        margin: 1rem;
        width: auto;
    }

    .rental-form .form-group,
    .rental-form .form-group:nth-child(n) {
        grid-column: 1 / -1;
    }

    .button-group {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
        align-items: center;
        width: 100%;
    }

    /* Change button order on mobile */
    .next-button {
        order: 1; /* Display first */
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
    
    .back-button {
        order: 2; /* Display second */
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
    
    .cancel-button {
        order: 3; /* Display last */
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    .quote-result .rate-options-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .rate-option {
        width: 100%;
        margin: 0;
        padding: 1rem;
    }

    .rate-option h4 {
        margin: -1rem -1rem 1rem -1rem;
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }

    .rate-table {
        font-size: 0.9rem;
    }

    .rate-table td {
        padding: 0.4rem;
    }

    .mileage-info {
        font-size: 0.9rem;
        margin: 0.75rem 0;
    }

    .select-rate {
        width: 100%;
        margin: 1rem 0 0.5rem 0;
        padding: 0.8rem;
    }

    .quote-section {
        padding: 5rem 1rem 2rem;
    }

    .vehicle-options {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }

    .vehicle-option {
        width: 100%;
    }

    .vehicle-option img {
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }
}

.rental-form input,
.rental-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.rental-form label {
    display: block;
}

.vehicle-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduced from 250px */
    gap: 1.25rem; /* Reduced from 1.5rem */
    margin: 1rem 0; /* Reduced from 2rem */
    width: 100%;
    max-width: 100%;
}

@media screen and (min-width: 1200px) {
    .vehicle-options {
        grid-template-columns: repeat(3, 1fr);
    }
    .vehicle-option:nth-last-child(2) {
        grid-column: 1 / 2;  /* Position minivan in first column */
    }
    .vehicle-option:last-child {
        grid-column: 2 / 3;  /* Position passenger van in second column */
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .vehicle-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .vehicle-options {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 1rem;
        margin: 0 -1rem;
    }

    .vehicle-option {
        flex: 0 0 80%;
        scroll-snap-align: center;
        max-width: none;
        width: auto;
    }

    .vehicle-option label {
        padding: 1rem;
    }

    .vehicle-option img {
        width: 140px;
        height: 90px;
    }

    /* Hide scrollbar for cleaner look */
    .vehicle-options::-webkit-scrollbar {
        display: none;
    }
    .vehicle-options {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

.vehicle-option {
    text-align: center;
    position: relative;
}

.vehicle-option:hover {
    transform: translateY(-5px);
}


.vehicle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.vehicle-option label {
    cursor: pointer;
    padding: 1.5rem; /* Reduced from 2rem */
    border: 2px solid #ddd;
    border-radius: 12px;
    display: block;
    background-color: #f8f9fa;
    transition: border-color 0.2s ease-in-out,
                box-shadow 0.2s ease-in-out,
                transform 0.2s ease-out;
}

.vehicle-option label:hover {
    border-color: #1a237e;
    box-shadow: 0 0 10px rgba(26, 35, 126, 0.2);
    transform: translateY(-2px);
}

.vehicle-option img {
    width: 180px; /* Fixed width */
    height: 120px; /* Fixed height */
    object-fit: contain; /* This ensures images maintain aspect ratio */
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.vehicle-option span {
    display: block;
    font-weight: 500;
}

.vehicle-option input[type="radio"]:checked + label {
    border-color: #1a237e;
    box-shadow: 0 0 10px rgba(26, 35, 126, 0.2);
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #333;
    transform: translateY(-2px);
}

.rental-form button[type="submit"], .select-rate {
    width: 100%;
    padding: 1rem;
    background-color: #00007A;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 1rem 0 0 0; /* Space above button only */
}

.rate-option {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 0; /* Changed from 1.5rem to remove double spacing */
    transition: all 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.rate-option:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.rate-option h4 {
    color: white;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    font-size: 1.2rem;
    background-color: #FE641A;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
}

.rate-option p {
    margin: 0.5rem 0;
    color: #333;
}

.rate-option .total {
    font-weight: bold;
    color: #00007A;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.rate-option .deposit {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.rate-details {
    margin: 1rem 0;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.rate-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.rate-table td:first-child {
    font-weight: 500;
    color: #666;
}

.rate-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.rate-table .total-row {
    font-size: 1.1rem;
    font-weight: 600;
    border-top: 2px solid #ddd;
}

.rate-table .total-row td {
    padding-top: 1rem;
    color: #00007A;
}

.rate-table .deposit-row {
    color: #666;
    font-style: italic;
}

.rate-table .deposit-row td:last-child {
    font-weight: 500;
}

.rental-form button[type="submit"]:hover {
    background-color: #000055;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding: 1rem;
    background-color: #F3F4F6;
    border-radius: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    background-color: white; 
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.radio-group label:hover {
    transform: translateY(-2px);
}

.radio-group input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #00007A;
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-group input[type="radio"]:checked {
    background-color: #FE641A;
    border-color: #FE641A;
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem; /* Reduced for a more compact layout */
    margin-bottom: 0.5rem; /* Added to ensure some space at bottom */
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.next-button,
.back-button,
.cancel-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    min-width: 120px;
    flex: 1;
    max-width: 200px;
}

.next-button {
    background-color: #00007A;
    color: white;
}

.next-button:hover {
    background-color: #000055;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 122, 0.2);
}

.back-button,
.cancel-button {
    background-color: #666;
    color: white;
}

.back-button:hover,
.cancel-button:hover {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#quote-result h3 {
    color: #00007A;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    opacity: 0;
    animation: fadeInContent 0.8s ease-out forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInMap 1s ease-out 0.3s forwards;
}

@keyframes fadeInMap {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInDetails 1s ease-out 0.6s forwards;
    transition: transform 0.3s ease;
}

.contact-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInDetails {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-details {
    text-align: center;
}

.contact-details h3 {
    color: #00007A;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.contact-details h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background-color: #FE641A;
}

.quote-button {
    display: inline-block;
    background-color: #00007A;
    color: white;
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.quote-button:hover {
    background-color: #00007A;
    transform: translateY(-2px);
    border-color: #FE641A;
    color: white;
}

.contact-details p {
    margin: 1rem 0;
    color: #666;
    line-height: 1.6;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-details ul li {
    margin: 0.5rem 0;
    color: #666;
}

@media screen and (min-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-details ul li {
        transform: translateX(0);
        transition: transform 0.3s ease;
    }
    
    .contact-details ul li:hover {
        transform: translateX(10px);
    }
}

@media screen and (max-width: 767px) {
    .contact-info {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .map-container iframe {
        height: 100%;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
    
    .contact-details h3 {
        font-size: 1.5rem;
    }
}

.form-group {
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(10px);
    animation: formElementFadeIn 0.3s ease forwards;
}

@keyframes formElementFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin: 0;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00007A;
    box-shadow: 0 0 0 2px rgba(0, 0, 122, 0.1);
}

.continue-button {
    background-color: #00007A;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.continue-button:hover {
    background-color: #000055;
}

a {
    text-decoration: none;
}

.left-hero a {
    text-transform: uppercase;
    font-size: 14px;
}

.fleet-info a {
    text-transform: uppercase;
    font-size: 14px;
}
.rental-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.vehicle-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.vehicle-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.vehicle-card input[type="radio"] {
    display: none;
}

.vehicle-card input[type="radio"]:checked + img {
    border: 2px solid #007bff;
    padding: 3px;
    border-radius: 4px;
}

.vehicle-card input[type="radio"]:checked + img + h4 {
    color: #007bff;
}

.vehicle-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.vehicle-card h4 {
    margin: 0.5rem 0;
    color: #333;
}

.vehicle-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .vehicle-selection-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .vehicle-card img {
        max-width: 150px;
    }

    .vehicle-card h4 {
        font-size: 1.1rem;
    }

    .vehicle-card p {
        font-size: 0.85rem;
    }

    /* Adjust rate options for medium screens */
    .quote-result .rate-options-container {
        grid-template-columns: minmax(0, 1fr); /* Stack on medium screens too */
    }
}

.continue-button {
    background-color: #00007A;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.continue-button:hover {
    background-color: #000055;
}

a {
    text-decoration: none;
}

.left-hero a {
    text-transform: uppercase;
    font-size: 14px;
}

.fleet-info a {
    text-transform: uppercase;
    font-size: 14px;
}
.rental-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.hours-section {
    text-align: center;
    padding: 2rem 1rem;
}

.hours-section h2 {
    color: #00007A;
    margin-bottom: 1.5rem;
    position: relative;
}

.hours-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #FE641A;
    margin: 0.5rem auto;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
}

.hours-list p {
    margin: 0;
    color: #666;
}

@media screen and (max-width: 480px) {
    .hours-section {
        padding: 1.5rem 1rem;
    }

    .hours-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hours-list {
        gap: 0.5rem;
    }

.hours-list p {
    font-size: 0.95rem;
}

}
