/* Basic body styling for context */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ECEFF1; /* Very light blue-grey for a fresh background */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    padding-top: 80px; /* Space for the fixed banner */
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

/* --- TOP BANNER STYLES (Existing) --- */
.top-banner {
    background-color: #263238; /* Deep Charcoal Blue */
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.banner-left {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.banner-logo {
    height: 40px;
    width: 40px;
    margin-right: 15px;
    background-color: #FFC107; /* Amber - a nice pop with the deep blue */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #263238; /* Match banner background for contrast */
    font-size: 1.2em;
}

.site-name {
    font-size: 2.2em;
    font-weight: bold;
    margin-right: 30px;
    white-space: nowrap;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.menu-items li {
    margin-right: 25px;
}

.menu-items a {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.menu-items a:hover {
    color: #BBDEFB; /* Lighter blue on hover */
}

.banner-right {
    display: flex;
    align-items: center;
}

.currency-selector {
    position: relative;
    margin-right: 20px;
}

.currency-selector select {
    background-color: #263238; /* Match banner background */
    color: white;
    border: 1px solid #607D8B; /* Soft blue-grey border */
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 25px;
}

.currency-selector .fa-caret-down {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-button {
    background-color: #2196F3; /* Clean Blue Accent */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #1976D2; /* Darker blue on hover */
}


/* --- SEARCH CRITERIA BOX STYLES (Existing) --- */
.search-criteria-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Lighter, more elegant shadow */
    width: 80%;
    max-width: 1200px;
    margin: 30px auto 20px auto; /* More spacing from banner, centered */
    padding: 30px;
    box-sizing: border-box;
}

.search-title {
    font-size: 2em; /* Slightly larger title */
    font-weight: 700;
    color: #37474F; /* Very dark blue-grey for strong readability */
    margin-bottom: 25px;
    text-align: center; /* Center the search title */
}

.trip-type-selection {
    margin-bottom: 25px;
    display: flex;
    justify-content: center; /* Center radio buttons */
    gap: 20px;
}

.trip-type-selection label {
    font-size: 1.1em; /* Slightly larger font */
    color: #607D8B; /* Soft blue-grey */
    cursor: pointer;
}

.trip-type-selection input[type="radio"] {
    margin-right: 5px;
    accent-color: #2196F3; /* Set accent color for radio button check */
}

.search-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px; /* Slightly more space between fields */
    margin-bottom: 30px;
}

.search-field-group {
    display: flex;
    flex-direction: column;
}

.search-field-group label {
    font-size: 0.95em; /* Slightly larger label */
    color: #607D8B; /* Soft blue-grey */
    margin-bottom: 8px; /* More space between label and input */
    font-weight: 500;
}

.search-field-group input,
.search-field-group select {
    width: 100%;
    padding: 12px; /* More padding for a softer look */
    border: 1px solid #CFD8DC; /* Very light blue-grey border */
    border-radius: 8px; /* Slightly more rounded inputs */
    font-size: 1em;
    box-sizing: border-box;
    color: #37474F; /* Dark text in inputs */
    background-color: #F8F9FA; /* Very subtle background for inputs */
}

.search-field-group select[multiple] {
    height: auto;
    min-height: 60px;
}

.book-now-button-container {
    text-align: center;
    margin-top: 25px; /* More space above the button */
}

.book-now-button {
    background-color: #2196F3; /* Clean Blue Accent */
    color: white;
    border: none;
    padding: 14px 30px; /* Larger padding for a more prominent button */
    border-radius: 8px; /* More rounded button */
    cursor: pointer;
    font-size: 1.2em; /* Larger font for call to action */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.book-now-button:hover {
    background-color: #1976D2; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}


/* --- NEW: Main Content Area for Layout Split --- */
.main-content-area {
    text-align: center;
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    justify-content: space-between; /* Space between the two columns */
    align-items: flex-start; /* Align items to the top */
    width: 90%;
    max-width: 1200px; /* Max width for the entire content area */
    /* margin: 30px auto; */ /* Space from search box and center */
    gap: 30px; /* Gap between the two main columns */
}

.ticket-display-area {
    flex: 0 0 98%; /* Allocate 40% (minus gap) for ticket, flex-shrink 0 to maintain size */
    max-width: 550px; /* Keep ticket max-width consistent */
    box-sizing: border-box;
    display: flex; /* To center the ticket-container if it's smaller */
    justify-content: center;
    margin: 0 auto;
}

.car-selection-area {
    flex: 1; /* Take remaining space */
    min-width: 50%; /* Ensure it doesn't shrink too much */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between car selection rows */
}

.section-heading {
    font-size: 2em;
    font-weight: 700;
    color: #37474F;
    margin-bottom: 20px;
    text-align: center;
}


/* --- TICKET UI STYLING (Moved and adjusted for new layout) --- */
.ticket-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Lighter, more elegant shadow */
    width: 100%; /* Take full width of its parent (.ticket-display-area) */
    overflow: hidden;
    position: relative;
    transform: perspective(1px) translateZ(0); /* For crisp shadow rendering */
}

/* Optional: Subtle 'perforated' edge effect (adjust colors) */
.ticket-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    right: -10px;
    height: 20px;
    background-image: radial-gradient(circle at 10px 50%, transparent 10px, #FFFFFF 10px),
                      radial-gradient(circle at calc(100% - 10px) 50%, transparent 10px, #FFFFFF 10px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: #ECEFF1; /* Match body background */
    z-index: 1;
    transform: translateY(-50%);
    mask-image: repeating-linear-gradient(to right, #000 0px, #000 5px, transparent 5px, transparent 10px);
    -webkit-mask-image: repeating-linear-gradient(to right, #000 0px, #000 5px, transparent 5px, transparent 10px);
}

/* Ticket Header: Selected Package */
.ticket-header {
    background-color: #009688; /* Vibrant Teal */
    color: white;
    padding: 25px 30px; /* More padding */
    text-align: center;
    border-bottom: 1px dashed #4DB6AC; /* Lighter teal dashed line */
    position: relative;
    z-index: 2;
}

.ticket-title {
    font-size: 2em; /* Even bigger font */
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px; /* Subtle spacing */
}

/* Ticket Body: Details */
.ticket-body {
    padding: 30px; /* More overall padding */
    padding-bottom: 25px;
    position: relative;
    z-index: 2;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 18px; /* More space */
    font-size: 1.15em; /* Slightly larger font */
    color: #455A64; /* Darker grey for readability */
    border-bottom: 1px solid #F0F4F5; /* Very subtle separator */
    padding-bottom: 12px;
}

.detail-row .detail-label,
.detail-row .detail-value {
    flex: 1 1 45%; /* Allow items to grow/shrink, take up ~45% each for two columns */
    box-sizing: border-box;
    padding-right: 0px; /* Space between label and value */
    text-align: left;
}

.detail-row .detail-value {
    text-align: right; /* Align values to the right */
    padding-left: 10px;
    padding-right: 0;
}

.detail-row .detail-label:nth-child(even) {
    text-align: right; /* Align second label to the right */
}

.detail-row .detail-value:nth-child(even) {
    text-align: right; /* Align second value to the right */
}

.clickable-banner {
  cursor: pointer;
}

.pickup-datetime {
  color: #009688; /* Teal for Pickup */
  font-weight: 600;
}

.pickup-detail-value {
  color: #009688; /* Teal for Pickup */
  font-weight: 600;
}

.drop-datetime {
  color: #3F51B5; /* Indigo for Return Dropoff */
  font-weight: 600;
}

.drop-detail-value {
  color: #2196F3;
  font-weight: 600;
}
.return-pickup-value {
  color: #3F51B5; /* Indigo for Return Dropoff */
  font-weight: 600;
}
.return-drop-value {
  color: #2196F3;
  font-weight: 600;
}

@media (max-width: 480px) { /* Adjust for very small screens */
    .detail-row .detail-label,
    .detail-row .detail-value {
        flex: 1 1 100%; /* Stack on top of each other */
        text-align: left !important; /* Force left alignment */
        padding-right: 0;
        padding-left: 0;
    }
    .detail-row .detail-label {
        margin-bottom: 5px; /* Space between label and its value when stacked */
    }
}


/* --- Car Details and Ticket Value --- */
.car-details {
    display: flex;
    justify-content: space-between; /* Pushes content to edges */
    align-items: center; /* Vertically aligns all items */
    margin-top: 25px;
    padding-bottom: 12px; /* Space before potential bottom border */
    border-bottom: 1px solid #F0F4F5; /* Consistent subtle separator */
}

.car-visual-and-info { /* New wrapper for car icon and info */
    display: flex;
    align-items: center; /* Vertically aligns icon and info */
    gap: 25px; /* Space between icon and info */
    flex-grow: 1; /* Allows this section to grow, pushing value to right */
}

.car-icon {
    font-size: 4em;
    color: #009688; /* Vibrant Teal, matching header */
    flex-shrink: 0;
}

.car-info {
    flex-grow: 1;
}

.car-model {
    font-size: 1.8em;
    font-weight: 700;
    color: #37474F;
    margin-bottom: 12px;
}

.car-capacity {
    display: flex;
    gap: 35px;
    font-size: 1.1em;
    color: #607D8B;
}

.capacity-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.capacity-item i {
    color: #8BC34A; /* Light Green - complementary icon color */
    font-size: 1.3em;
}

/* --- Ticket Value Display --- */
.ticket-value-display {
    font-size: 2.5em; /* Much bigger font for the value */
    font-weight: 800; /* Extra bold */
    color: #2196F3; /* Clean Blue Accent for high visibility */
    white-space: nowrap; /* Prevent value from wrapping */
    margin-left: 0px; /* Ensure some space if flex-grow doesn't push enough */
    flex-shrink: 0; /* Prevent it from shrinking */
}

.ticket-value-display .currency {
    font-size: 0.7em; /* Smaller currency symbol */
    vertical-align: super; /* Raise the currency symbol slightly */
    margin-right: 2px;
}

.ticket-value-display .value {
    /* No specific style needed here, inherits from parent */
}


/* Ticket Footer */
.ticket-footer {
    background-color: #F5F5F5; /* Very light grey background for footer */
    padding: 18px 25px;
    text-align: center;
    font-size: 0.95em;
    color: #9E9E9E;
    border-top: 1px dashed #CFD8DC; /* Very light blue-grey dashed line */
    position: relative;
    z-index: 2;
}


/* --- NEW: Car Selection Interface Styles --- */
.car-selection-row {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch; /* Stretch items to fill height of row */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px; /* Ensure a minimum height for the row */
}

.car-selection-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.car-image-wrapper {
    flex: 0 0 30%; /* 20% width for the image */
    max-width: 200px; /* Prevent image from getting too wide on large screens */
    overflow: hidden;
    display: flex;
    align-items: center; /* Center image vertically */
    justify-content: center; /* Center image horizontally */
    background-color: #F0F4F5; /* Light background for image area */
}

.car-image-wrapper img {
    width: 100%;
    height: 100%; /* Fill the wrapper height */
    object-fit: contain; /* Cover the area, cropping if necessary */
}

.car-details-and-features {
    flex: 1; /* Take remaining space */
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
    text-align: left;
}

.car-type-name {
    font-size: 1.8em;
    font-weight: 700;
    color: #263238;
    margin-top: 0;
    margin-bottom: 10px;
}

.car-capacity-row { /* Reusing capacity-item styles, but for a row */
    display: flex;
    gap: 25px;
    font-size: 1.05em;
    color: #607D8B;
    margin-bottom: 15px;
}

.car-capacity-row .capacity-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-capacity-row .capacity-item i {
    color: #8BC34A; /* Green tick color */
    font-size: 1.2em;
}


.car-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0; /* Space below features, above button */
    font-size: 0.95em;
    color: #455A64;
    line-height: 1.5;
}

.car-features li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-features i.fas.fa-check-circle {
    color: #4CAF50; /* Green for checkmark */
    font-size: 1.1em;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.select-car-button {
    background-color: green;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    align-self: flex-end; /* Push button to the right within flex column */
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.select-car-button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}


/* --- London Sights Gallery Styles (Existing) --- */
.additional-content {
    margin-top: 50px;
    padding: 30px 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.additional-content h2 {
    font-size: 2.5em;
    color: #37474F;
    margin-bottom: 40px;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.gallery-item h3 {
    font-size: 1.4em;
    color: #37474F;
    margin: 15px 15px 8px;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-item .booking-link {
    display: block;
    background-color: #2196F3;
    color: white;
    padding: 12px 15px;
    margin: 0 15px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gallery-item .booking-link:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

/* --- Site Footer Styles (Existing) --- */
.site-footer {
    background-color: #263238;
    color: #CFD8DC;
    padding: 40px 20px 20px;
    margin-top: 60px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #FFC107;
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section ul {
    font-size: 0.95em;
    line-height: 1.6;
    color: #B0BEC5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #B0BEC5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFFFFF;
}

.footer-section p i {
    margin-right: 10px;
    color: #2196F3;
}

.footer-about .footer-logo {
    height: 50px;
    width: 50px;
    background-color: #FFC107;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #263238;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.footer-about h3 {
    margin-top: 0;
    color: #FFFFFF;
    font-size: 1.8em;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #B0BEC5;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #2196F3;
}

.footer-bottom {
    border-top: 1px solid #37474F;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85em;
    color: #9E9E9E;
}

.footer-bottom i {
    color: #E91E63; /* Pink heart for a nice touch */
}


/* --- NEW: Shopping Cart Page Styles --- */
.cart-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 900px; /* Wider than ticket, narrower than search box */
    margin: 50px auto 30px auto;
    padding: 30px;
    box-sizing: border-box;
}

.cart-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #37474F;
    text-align: center;
    margin-bottom: 40px;
}

.cart-items-list {
    margin-bottom: 30px;
    border-top: 1px solid #ECEFF1; /* Light separator at top */
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ECEFF1; /* Separator between items */
}

.cart-item:last-child {
    border-bottom: none; /* No border for the last item */
}

.item-details {
    flex-grow: 1;
    text-align: left;
}

.item-package {
    font-size: 1.4em;
    font-weight: 600;
    color: #263238; /* Deep Charcoal Blue */
    margin-top: 0;
    margin-bottom: 10px;
}

.item-info-row {
    font-size: 0.95em;
    color: #607D8B;
    margin-bottom: 5px;
}

.item-info-row .info-label {
    font-weight: 500;
    margin-right: 5px;
}

.item-info-row .info-value {
    color: #455A64;
}

.item-price {
    font-size: 1.8em; /* Large price font */
    font-weight: 700;
    color: #009688; /* Vibrant Teal for price */
    white-space: nowrap;
    margin-left: 20px; /* Space from details */
}

.item-price .currency {
    font-size: 0.7em;
    vertical-align: super;
    margin-right: 2px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #E57373; /* Light Red for delete icon */
    font-size: 1.3em;
    cursor: pointer;
    margin-left: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.remove-item-btn:hover {
    color: #D32F2F; /* Darker red on hover */
    transform: scale(1.1);
}

.cart-summary {
    border-top: 2px dashed #CFD8DC; /* Stronger dashed line before summary */
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: right;
}

.summary-row {
    display: flex;
    justify-content: flex-end; /* Align label and value to the right */
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #455A64;
}

.summary-row .summary-label {
    font-weight: 500;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent label from shrinking */
}

.summary-row .summary-value {
    font-weight: 600;
    color: #263238; /* Dark color for values */
    min-width: 100px; /* Ensure values have consistent alignment */
    text-align: right;
}

.summary-row.grand-total {
    font-size: 1.6em; /* Bigger font for grand total */
    font-weight: 700;
    color: #2196F3; /* Primary accent blue for grand total */
    border-top: 1px solid #CFD8DC; /* Line above grand total */
    padding-top: 15px;
    margin-top: 60px;
}

.summary-row.grand-total .summary-value {
    color: #2196F3; /* Ensure value matches grand total color */
}

.cart-actions {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center; /* Center buttons */
    gap: 15px; /* Space between buttons */
    margin-top: 30px;
}

.action-btn {
    background-color: #2196F3; /* Primary blue for main actions */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.action-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

.action-btn.clear-cart-btn {
    background-color: #E57373; /* Red for clear cart */
}
.action-btn.clear-cart-btn:hover {
    background-color: #D32F2F;
}

.action-btn.return-btn {
    background-color: #607D8B; /* Grey-blue for return to booking */
}
.action-btn.return-btn:hover {
    background-color: #546E7A;
}

.input-error {
    border: 2px solid #e74c3c !important;
    background-color: #fff0f0 !important;
    transition: border 0.2s, background 0.2s;
}

select.input-error {
    border: 2px solid #e74c3c !important;
    background-color: #fff0f0 !important;
    box-shadow: 0 0 2px #e74c3c;
}


/* --- NEW: Checkout Page Styles --- */
.hidden {
    display: none !important; /* Utility class to hide sections */
}

.checkout-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 900px; /* Consistent width with cart page */
    margin: 50px auto 30px auto;
    padding: 30px;
    box-sizing: border-box;
}

.checkout-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #37474F;
    text-align: center;
    margin-bottom: 40px;
}

/* Authentication Section */
.auth-section {
    padding-bottom: 30px;
    border-bottom: 1px dashed #CFD8DC;
    margin-bottom: 30px;
    text-align: center;
}

.auth-section h3 {
    font-size: 1.8em;
    color: #263238;
    margin-bottom: 20px;
}

.auth-intro-text {
    font-size: 1.1em;
    color: #607D8B;
    margin-bottom: 30px;
}

.auth-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.auth-box {
    background-color: #F8F9FA; /* Light background for auth forms */
    border: 1px solid #CFD8DC;
    border-radius: 10px;
    padding: 25px;
    flex: 1; /* Allows boxes to grow */
    min-width: 300px; /* Minimum width for each form box */
    max-width: 400px;
    box-sizing: border-box;
    text-align: left; /* Align form labels/inputs left */
}

.auth-box h4 {
    font-size: 1.5em;
    color: #009688; /* Teal accent for sub-headings */
    margin-bottom: 25px;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 0.95em;
    color: #455A64;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #CFD8DC;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: #37474F;
    background-color: #FFFFFF;
}

.auth-btn {
    display: block;
    width: 100%;
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.auth-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

.proceed-to-payment-auth-btn { /* "Proceed as Guest" button */
    background-color: #607D8B; /* Grey-blue */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.proceed-to-payment-auth-btn:hover {
    background-color: #546E7A;
    transform: translateY(-2px);
}


/* Order Summary Section (Read-Only Cart) */
.order-summary-section {
    padding-bottom: 30px;
    border-bottom: 1px dashed #CFD8DC;
    margin-bottom: 30px;
    text-align: center;
}

/* --- NEW: Style for Welcome Message --- */
.order-summary-section .welcome-message {
    font-size: 1.6em; /* Slightly smaller than main section title, but still prominent */
    color: #64B5F6;   /* Light Blue - soft and inviting */
    margin-bottom: 25px; /* Add some space below the welcome message */
    text-align: center;
    font-weight: 600; /* Make it a bit bolder for visibility */
}

.order-summary-section h3 {
    font-size: 1.8em;
    color: #263238;
    margin-bottom: 20px;
}

.order-summary-section .cart-items-list.read-only .remove-item-btn {
    display: none; /* Hide remove button in read-only view */
}

.order-summary-section .cart-items-list.read-only .cart-item {
    cursor: default; /* No pointer cursor */
    box-shadow: none; /* No shadow for read-only items */
}

.proceed-to-payment-btn { /* "Proceed to Payment" button */
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 25px;
    display: flex; /* For icon alignment */
    align-items: center;
    gap: 8px;
    margin-left: auto; /* Push button to the right */
    margin-right: auto; /* Center on small screens */
}
.proceed-to-payment-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}


/* Payment Section */
.payment-section h3 {
    font-size: 1.8em;
    color: #263238;
    margin-bottom: 20px;
    text-align: center;
}

.payment-interface {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
}

.payment-tabs {
    flex: 0 0 200px; /* Fixed width for tabs */
    display: flex;
    flex-direction: column; /* Vertical tabs */
    background-color: #F8F9FA; /* Light background for tabs */
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-button {
    background: none;
    border: none;
    border-left: 5px solid transparent; /* Border for active indicator */
    padding: 15px 20px;
    text-align: left;
    font-size: 1.1em;
    color: #607D8B;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-left-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.tab-button i {
    font-size: 1.3em;
    color: #B0BEC5; /* Icon color */
    transition: color 0.3s ease;
}

.tab-button:hover:not(.active) {
    background-color: #ECEFF1; /* Lighter hover background */
    color: #455A64;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-button.active {
    background-color: #E3F2FD; /* Light blue background for active tab */
    border-left-color: #2196F3; /* Blue border for active indicator */
    color: #2196F3; /* Blue text for active tab */
    font-weight: 600;
}

.fa-whatsapp {
  color: #25D366 !important; /* WhatsApp green */
  font-size: 20px;
}

.payment-content {
    flex-grow: 1; /* Payment form content takes remaining space */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    box-sizing: border-box;
}

.payment-form h4 {
    font-size: 1.6em;
    color: #37474F;
    margin-bottom: 25px;
}

.payment-form .form-group {
    margin-bottom: 20px;
}

.payment-form label {
    display: block;
    font-size: 0.95em;
    color: #455A64;
    margin-bottom: 8px;
    font-weight: 500;
}

.payment-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #CFD8DC;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: #37474F;
    background-color: #FFFFFF;
}

.payment-form .form-row {
    display: flex;
    gap: 20px;
}

.payment-form .form-row .form-group {
    flex: 1; /* Make expiry and CVV take equal space */
}

.paypal-login-btn,
.google-pay-btn,
.apple-pay-btn {
    background-color: #E0E0E0; /* Default neutral color for these buttons */
    color: #37474F;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.paypal-login-btn i,
.google-pay-btn i,
.apple-pay-btn i {
    font-size: 1.2em;
}

/* Specific button colors */
.paypal-login-btn {
    background-color: #FFC439; /* PayPal Yellow */
    color: #1A222B;
}
.paypal-login-btn:hover {
    background-color: #e0ac00;
    transform: translateY(-2px);
}

.google-pay-btn {
    background-color: #4285F4; /* Google Blue */
    color: white;
}
.google-pay-btn:hover {
    background-color: #3367D6;
    transform: translateY(-2px);
}

.apple-pay-btn {
    background-color: #000000; /* Apple Black */
    color: white;
}
.apple-pay-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
}


.submit-payment-btn {
    display: block;
    width: 100%;
    background-color: #009688; /* Teal accent for submit */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
}

.submit-payment-btn:hover {
    background-color: #00796B;
    transform: translateY(-2px);
}


/* Order Confirmation Section */
.order-confirmation-section {
    background-color: #E8F5E9; /* Light Green for success */
    border: 1px solid #A5D6A7;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
    max-width: 600px;
}

.order-confirmation-section h3 {
    font-size: 2.2em;
    color: #388E3C; /* Dark Green for success heading */
    margin-bottom: 20px;
}

.order-confirmation-section h3 i {
    margin-right: 15px;
    color: #4CAF50; /* Green icon */
}

.order-confirmation-section p {
    font-size: 1.1em;
    color: #455A64;
    line-height: 1.6;
    margin-bottom: 15px;
}

.order-confirmation-section p strong {
    color: #263238;
}

.order-confirmation-section #display-order-number {
    font-size: 1.3em;
    font-weight: bold;
    color: #2196F3; /* Blue for order number */
}

.order-confirmation-section .action-btn {
    margin: 15px 10px 0; /* Space between confirmation buttons */
}

.hamburger {
    display: none;
    font-size: 2rem;   
    color: #263238; 
    background: white;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    z-index: 1100;
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) { /* Tablets and smaller laptops */
    /* Main content area stacks columns */
    .main-content-area {
        flex-direction: column;
        align-items: center; /* Center stacked items */
        gap: 40px; /* More space between stacked sections */
    }

    .ticket-display-area {
        flex: 0 0 auto; /* Remove fixed width, let it adjust */
        width: 90%; /* Take more width on smaller screens */
        max-width: 450px; /* Maintain max width */
    }

    .car-selection-area {
        flex: 0 0 auto; /* Remove flex-grow, let it adjust */
        width: 90%; /* Take more width on smaller screens */
        min-width: unset; /* Remove min-width constraint */
    }

    /* Car selection row adjustments */
    .car-selection-row {
        flex-direction: column; /* Stack image and details vertically */
        align-items: center;
        text-align: center;
        padding-bottom: 20px; /* Add padding at bottom for stacked button */
    }

    .car-image-wrapper {
        flex: 0 0 auto;
        width: 100%; /* Image takes full width */
        height: 180px; /* Fixed height for consistency */
        border-radius: 12px 12px 0 0; /* Only top corners rounded */
    }

    .car-image-wrapper img {
        border-radius: 12px 12px 0 0; /* Match wrapper */
    }

    .car-details-and-features {
        padding: 20px;
        align-items: center; /* Center contents when stacked */
        text-align: center;
        gap: 10px; /* Adjust gap */
    }

    .car-capacity-row {
        flex-direction: column; /* Stack capacity items */
        gap: 10px;
    }

    .car-features {
        margin-bottom: 15px; /* Adjust margin */
    }

    .car-features li {
        justify-content: center; /* Center features with checkmarks */
    }

    .select-car-button {
        align-self: center; /* Center button when stacked */
        width: auto; /* Allow button to size naturally */
        min-width: 150px; /* Ensure minimum width */
    }

    /* Gallery and Footer adjustments (existing) */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .additional-content h2 {
        font-size: 2em;
    }

    .footer-content {
        justify-content: center;
        gap: 25px;
    }
    .footer-section {
        min-width: 200px;
        flex-basis: 45%;
    }
}

@media (max-width: 768px) { /* Larger phones and small tablets */
    /* Existing responsive adjustments */
    .additional-content {
        padding: 20px 10px;
    }
    .gallery-grid {
        gap: 15px;
    }
    .gallery-item img {
        height: 160px;
    }
    .gallery-item h3 {
        font-size: 1.2em;
        margin: 12px 12px 6px;
    }
    .gallery-item .booking-link {
        padding: 10px 12px;
        margin: 0 12px 12px;
        font-size: 0.9em;
    }

    .site-footer {
        padding: 30px 15px 15px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .footer-section {
        text-align: center;
        flex-basis: auto;
        min-width: unset;
        width: 100%;
    }
    .footer-section p i {
        margin-right: 5px;
    }
    .footer-about .footer-logo {
        margin: 0 auto 15px;
    }
    .social-links {
        display: flex;
        justify-content: center;
    }
    .social-links a {
        margin: 0 10px;
    }
    .checkout-title {
        font-size: 1.6em;
    }
    .auth-section h3, .order-summary-section h3, .payment-section h3 {
        font-size: 1.6em;
    }
    .menu-items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* adjust as needed */
        right: 0;
        left: auto;
        width: fit-content;
        color: white;
        background: #000;
        z-index: 1000;
        align-items: flex-start;
        text-align: right;
        box-shadow: -2px 2px 10px rgba(0,0,0,0.15);
        margin-left: 1rem;
    }
    .menu-items.open {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    /* Car selection row adjustments for smaller tablets/large phones */
    .car-selection-row {
        padding-bottom: 15px; /* Less padding when stacked */
    }
    .car-details-and-features {
        padding: 15px;
    }
    .car-type-name {
        font-size: 1.5em;
    }
    .car-capacity-row {
        font-size: 0.95em;
    }
    .car-features {
        font-size: 0.85em;
    }
    .select-car-button {
        font-size: 1em;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) { /* Mobile phones */
    /* Existing responsive adjustments */
    .additional-content h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
    }
    .gallery-item img {
        height: 200px;
    }
    /* Car selection row adjustments for mobile */
    .car-selection-row {
        min-height: unset; /* Allow height to be dynamic */
    }
    .car-image-wrapper {
        height: 150px; /* Smaller image height on mobile */
    }
    .auth-box {
        padding: 20px;
    }
    .auth-box h4 {
        font-size: 1.3em;
    }
    .auth-form label, .payment-form label {
        font-size: 0.9em;
    }
    .auth-form input, .payment-form input {
        padding: 10px;
    }
    .tab-button {
        font-size: 0.85em;
        padding: 10px 5px;
    }
    .tab-button i {
        font-size: 1.1em;
    }
    .payment-form h4 {
        font-size: 1.4em;
    }
    .submit-payment-btn {
        font-size: 1em;
    }
    .order-confirmation-section h3 {
        font-size: 1.6em;
    }
    .order-confirmation-section p {
        font-size: 0.95em;
    }

}

@media (max-width: 600px) {
    .banner-left {
        flex-wrap: wrap;
    }
    .site-name {
        font-size: 1.8em;
        margin-right: 15px;
    }
    /*
    .menu-items {
        flex-wrap: wrap;
        margin-top: 10px;
    }
    .menu-items li {
        margin-right: 15px;
        margin-bottom: 5px;
    }
        */
    .banner-right {
        margin-left: auto;
    }

    .search-criteria-box {
        width: 95%;
        padding: 20px;
    }
    .search-title {
        font-size: 1.6em;
    }
    .search-fields-grid {
        grid-template-columns: 1fr;
    }
    .ticket-container {
        width: 95%;
    }
    .ticket-title {
        font-size: 1.6em;
    }

    /* Adjust car details for small screens */
    .car-details {
        flex-direction: column; /* Stack car details vertically */
        align-items: center;
        text-align: center;
        gap: 20px; /* Space between car info block and value */
    }

    .car-visual-and-info {
        flex-direction: column; /* Stack car icon and info vertically */
        align-items: center;
        gap: 15px;
        width: 100%; /* Take full width to center its contents */
    }

    .car-capacity {
        flex-direction: column; /* Stack capacity items on small screens */
        gap: 15px;
        align-items: center;
    }

    .ticket-value-display {
        margin-left: 0; /* Remove left margin when stacked */
        margin-top: 15px; /* Add top margin when stacked */
        font-size: 2em; /* Slightly smaller font when stacked vertically */
    }

    .cart-summary > div {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .cart-notes-charges-row {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .cart-notes-charges-row > div {
        min-width: 0 !important;
        margin-left: 0 !important;
    }
    .cart-summary label {
        float: none !important;
        display: block;
        margin-bottom: 4px;
    }
}

/* --- NEW: Additional Styles for Car Selection Interface --- */
.car-selection-row {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.car-price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0 20px;
}

.car-price-value {
    font-size: 1.6em;
    font-weight: 800;
    color: #2196F3;
    letter-spacing: 1px;
    white-space: nowrap;
}