/* Hero Booking Overlay Styles */

/* Main overlay container */
.hero-booking-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.hero-booking-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Text Content */
.hero-text-content {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
}

.hero-text-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-text-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    line-height: 1.5;
}

/* Trip Type Selector Buttons */
.trip-type-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trip-type-btn {
    padding: 10px 24px;
    border-radius: 25px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.trip-type-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.trip-type-btn.active {
    background: #E5B84C;
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(229, 184, 76, 0.4);
}

/* Booking Form Card */
.booking-form-card-new {
    background: #fff;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Form Fields Row - Desktop */
.booking-fields-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

/* Individual Field */
.booking-field {
    flex: 1;
    min-width: 0;
}

.booking-field.passenger-field {
    flex: 0 0 130px;
    max-width: 130px;
}

.booking-field.submit-field {
    flex: 0 0 150px;
    max-width: 150px;
}

/* Field Label */
.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Field Input Wrapper */
.field-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0 15px;
    height: 50px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.field-input-wrapper:focus-within {
    border-color: #E5B84C;
    box-shadow: 0 0 0 3px rgba(229, 184, 76, 0.15);
    background: #fff;
}

.field-icon {
    color: #999;
    font-size: 1rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.field-input-wrapper input,
.field-input-wrapper select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    min-width: 0;
    height: 100%;
}

.field-input-wrapper input::placeholder {
    color: #999;
}

.field-input-wrapper select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Show Price Button */
.btn-show-price {
    width: 100%;
    height: 50px;
    background: #E5B84C;
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 184, 76, 0.3);
}

.btn-show-price:hover {
    background: #d4a73b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 184, 76, 0.4);
}

.btn-show-price:active {
    transform: translateY(0);
}

/* Return Fields Row */
.return-fields-row,
.hourly-fields-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.hourly-select {
    width: 100%;
}

/* ======================= */
/* MOBILE STYLES */
/* ======================= */
@media (max-width: 768px) {
    /* Hero section layout for mobile */
    .hero-slider-section {
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
    }
    
    /* Slider takes its natural height */
    .hero-slider-section .slider-wrapper {
        position: relative !important;
        height: 40vh !important;
        min-height: 250px !important;
    }
    
    /* Form comes after slider, not overlaid */
    .hero-booking-overlay {
        position: relative !important;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        padding: 20px 15px 25px;
        order: 2;
    }
    
    .hero-text-content {
        display: none;
    }
    
    .trip-type-selector {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .trip-type-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 70px;
        text-align: center;
    }
    
    .booking-form-card-new {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .booking-fields-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .booking-field,
    .booking-field.passenger-field,
    .booking-field.submit-field {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    
    .field-input-wrapper {
        height: 55px;
    }
    
    .field-input-wrapper input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-show-price {
        height: 55px;
        font-size: 1.1rem;
    }
    
    /* Hide carousel on mobile, show only first image */
    .hero-slider-section .carousel-inner,
    .hero-slider-section .carousel-item {
        height: 40vh !important;
        min-height: 250px !important;
    }
    
    .hero-slider-section .carousel-item img {
        height: 40vh !important;
        min-height: 250px !important;
        object-fit: cover !important;
    }
    
    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next,
    .hero-slider-section .carousel-indicators {
        display: none !important;
    }
    
    /* Hide vehicle selection container completely on mobile */
    .vehicle-selection-container {
        display: none !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .trip-type-selector {
        gap: 6px;
    }
    
    .trip-type-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .booking-form-card-new {
        padding: 15px 12px;
    }
}

/* ======================= */
/* LARGE SCREENS */
/* ======================= */
@media (min-width: 1200px) {
    .hero-booking-container {
        max-width: 1100px;
    }
    
    .booking-form-card-new {
        padding: 25px 30px;
    }
}

/* ======================= */
/* DATEPICKER STYLES */
/* ======================= */
.flatpickr-calendar {
    font-family: inherit;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.flatpickr-day.selected {
    background: #E5B84C !important;
    border-color: #E5B84C !important;
    color: #1a1a1a !important;
}

.flatpickr-day:hover {
    background: rgba(229, 184, 76, 0.2) !important;
}

/* Vehicle Selection Container Styles (for next step) */
.vehicle-selection-container {
    display: none !important;
    background: #f8f9fa;
    padding: 30px 20px;
}

.vehicle-selection-container.show {
    display: block !important;
}

/* Hide old vehicle grid on homepage */
.hero-slider-section + .vehicle-selection-container {
    display: none !important;
}

/* Ensure hero section has proper height for overlay positioning */
.hero-slider-section {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Desktop: Form overlays on slider */
@media (min-width: 769px) {
    .hero-slider-section {
        height: 100vh;
        min-height: 700px;
    }
    
    .hero-slider-section .slider-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .hero-booking-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

/* ======================= */
/* OVERRIDE OLD STYLES */
/* ======================= */
/* Force hide vehicle selection container everywhere */
#vehicleSelectionContainer,
.vehicle-selection-container,
div.vehicle-selection-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override old style.css mobile rules */
@media (max-width: 768px) {
    .vehicle-selection-container {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Old booking form container - hide it */
    .booking-form-container {
        display: none !important;
    }
    
    /* Old booking form card - hide it */
    .booking-form-card:not(.booking-form-card-new) {
        display: none !important;
    }
}
