* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SF Pro Text", "Inter", Poppins, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    scroll-padding-top: 120px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    background-color: #071021;
    background-image:
      linear-gradient(180deg, rgba(3,16,25,0.56), rgba(3,16,25,0.72)),
      radial-gradient(1200px 600px at 10% 10%, rgba(138,109,255,0.12), transparent 12%),
      radial-gradient(900px 500px at 85% 85%, rgba(0,200,255,0.08), transparent 12%),
      url("exterior.jpeg");
    background-size: cover, cover, cover, cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #e9eef8;
    scroll-behavior: smooth;
    padding-top: 100px;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 1;
}

/* body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.22));
    mix-blend-mode: overlay;
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
    z-index: 0;
} */

header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 1100px;
    z-index: 120;
    border-radius: 7px;
    padding: 8px 12px;
    background: white;

    /* background: linear-gradient(180deg, rgba(226, 190, 190, 0.04), rgba(221, 210, 210, 0.02)); */
    /* border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(2,6,23,0.6);
    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%); */
}

nav {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

nav h1 {
    color: #000;
    font-weight: 900;
    letter-spacing: 0.6px;    
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-shrink: 0;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 7px;
    white-space: nowrap;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.03);
    transform: translateY(-2px);
    color: #50acd6;
    font-weight: 600;
}

section {
    padding: 20px;
    max-width: 1100px;
    margin: 20px auto;
    position: relative;
    z-index: 2;
}

.card {
    position: relative;
    overflow: visible;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    padding: 40px;
    color: #eaf2ff;
    box-shadow:
        0 10px 30px rgba(2,10,30,0.6),
        inset 0 1px 0 rgba(255,255,255,0.02);
    backdrop-filter: blur(30px) saturate(130%);
    -webkit-backdrop-filter: blur(30px) saturate(130%);
    transition: transform 260ms cubic-bezier(.2,.9,.3,1), box-shadow 260ms;
}

.card::before,
.card::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    transform: translateY(-18%);
    pointer-events: none;
    border-radius: 7px;
    mix-blend-mode: screen;
}

.card::before {
    top: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
    filter: blur(30px);
    opacity: 0.55;
}

.card::after {
    bottom: 0;
    top: auto;
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
    filter: blur(50px);
    opacity: 0.4;
    transform: translateY(18%);
}


/* Suggestion list styles */
.suggestions {
    margin: 2px 0 0 0;
    padding: 6px 0;
    list-style: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    max-height: 220px;
    overflow: auto;
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
    backdrop-filter: blur(30px);
    width: 100%;
}

.suggestion-item {
    padding: 12px 12px;
    cursor: pointer;
    color: #eaf2ff;
    font-size: 0.92rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.suggestion-item:hover,
.suggestion-item[aria-selected="true"] {
    background: rgba(255,255,255,0.03);
}

#home {
    text-align: center;
    margin-top: 10px;
}

#home h2 {
    font-size: 2.1rem;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

#home p {
    margin: 12px 0 20px;
    font-size: 1.02rem;
    color: rgba(230,235,245,0.9);
}

.btn-glass {
    margin: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(2,6,23,0.5);
    transition: transform 180ms ease, box-shadow 180ms ease;
    backdrop-filter: blur(50px) saturate(120%);
    -webkit-backdrop-filter: blur(50px) saturate(120%);
    font-size: 1rem;
}
#g-recaptcha {
    padding: 10px;
}

.btn-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(2,6,23,0.6);
}

#about h2, #contact h2 {
    color: #fff;
    margin-bottom: 12px;
}

#about p {
    line-height: 1.7;
    color: rgba(225,230,240,0.9);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

input, textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    background: linear-gradient(180deg, rgba(7,12,20,0.5), rgba(8,14,22,0.38));
    color: #eaf2ff;
    outline: none;
    font-size: 1em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    backdrop-filter: blur(50px) saturate(110%);
    -webkit-backdrop-filter: blur(50px) saturate(110%);
}

/* Style date and time picker icons */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {    
    cursor: pointer;
    color: #eaf2ff;
    border-radius: 4px;
    padding: 6px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* For Firefox */
input[type="date"],
input[type="time"] {
    color-scheme: dark;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #ffffff;
}

input::placeholder, textarea::placeholder {
    color: rgba(200,210,220,0.5);
}

textarea {
    height: 100px;
}

.contact-info {
    margin-top: 20px;
    line-height: 1.8;
    color: rgba(220,230,245,0.9);
}

.contact-info p {
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-info a {
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

footer {
    text-align: center;
    padding: 30px;
    background: transparent;
    color: rgba(200,210,220,0.7);
}


/* Smooth transition for the placeholder div */
#placeholderDiv {
    display: block;
    opacity: 0;
    max-height: 0;
    margin-top: 20px;
    transition: opacity 0.6s cubic-bezier(.4,0,.6,1), max-height 0.6s cubic-bezier(.4,0,.6,1);
    overflow: hidden;
    pointer-events: none;
}

#placeholderDiv.show {
    opacity: 1;
    max-height: none; /* Remove fixed height - allow dynamic growth */
    overflow: visible; /* Allow content to overflow naturally */
    pointer-events: auto;
}

#placeholderDiv:not(.show) {
    display: block;
    max-height: 0;
    overflow: hidden;
}

/* .div should NOT have hover effect */
.div {
    position: relative;
    overflow: visible; /* Changed from visible to allow content to expand */
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    padding: 10px 15px;
    color: #eaf2ff;
    box-shadow:
        0 10px 30px rgba(2,10,30,0.6),
        inset 0 1px 0 rgba(255,255,255,0.02);
    backdrop-filter: blur(30px) saturate(130%);
    -webkit-backdrop-filter: blur(30px) saturate(130%);
    transition: none;
    min-height: auto; /* Allow div to grow naturally */
    max-width: 800px;
    margin: 0 auto;
}

.div:hover {
    transform: none;
    box-shadow:
        0 10px 30px rgba(2,10,30,0.6),
        inset 0 1px 0 rgba(255,255,255,0.02);
}

/* Add specific styling for route results container */
#routeResults {
    animation: slideIn 0.4s cubic-bezier(.4,0,.6,1);
}

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

/* Ensure tables in route results are responsive */
#routeResults table {
    table-layout: auto;
    word-break: break-word;
}

#routeResults table td {
    max-width: 0; /* Allow cells to wrap properly */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.car_img {
    float: right;
    margin: 0 0 15px 20px;
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(2,6,23,0.5);
    display: block;
    clear: right;
}
.logo {
    max-width: 100%; /* Ensures the image scales down proportionally */
    max-height: 150px; /* Limits the maximum height */
    width: auto;
    height: auto; 
    border-radius: 6px;
    margin: 0px;
}
.logo:hover {
    background: rgba(255,255,255,0.03);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(2,6,23,0.6); /* Add shadow for consistency */
    transition: background 240ms ease, transform 200ms ease, box-shadow 200ms ease;
}
@media (max-width: 800px) {
    header {
        margin-bottom: 20px;
        left: 12px;
        transform: none;
        width: calc(100% - 24px);
        max-width: none;
        padding: 8px 10px;
    }
    .car_img {
        float: none;
        max-width: 80%;
        display: block;
        margin: 20px auto;
    }
    
    .contact-info {
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {
    nav h1 {
        font-size: 1.25rem;
        max-width: 100px;
    }
    
    nav ul {
        gap: 4px;
    }
    
    nav ul li a {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .contact-info {
        font-size: 0.9rem;
    }
    
    .contact-info a {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 400px) {
    #recaptchaWidget {
        transform: scale(0.77);
        transform-origin: center;
    }
}
@media screen and (max-width: 350px) {
    #recaptchaWidget {
        transform: scale(0.68);
        transform-origin: center;
    }
}
@media (min-width: 801px) {
    #home {
        margin-top: 100px !important;
    }
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Payment section styling */
.payment-subtitle {
    color: #b8c9e8;
    font-size: 0.95rem;
    margin-bottom: 30px;
    text-align: center;
}

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

.payment-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 300ms ease;
    box-shadow: 0 4px 15px rgba(2,6,23,0.3);
}

.payment-item:hover {
    transform: translateY(-5px);
    border-color: rgba(127,242,184,0.3);
    box-shadow: 0 8px 25px rgba(2,6,23,0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.payment-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-icon svg {
    color: #7ff2b8;
    filter: drop-shadow(0 2px 8px rgba(127,242,184,0.2));
    transition: all 300ms ease;
}

.payment-item:hover .payment-icon svg {
    color: #a3f5cc;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(127,242,184,0.4));
}

.payment-item h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-cards {
    color: #7ff2b8;
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 500;
}
#home .card {
    padding: 20px;
}
/* About section list styling */
#about .card {
    overflow: hidden;
}

#about ul {
    margin-left: 20px;
    margin-top: 10px;
}

#about li {
    margin-bottom: 15px;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}
