/* ===================================================================
   HERO SECTION WITH INLINE BOOKING FORM
   Single background image with horizontal form bar
   =================================================================== */

/* ==================== HERO SECTION ==================== */

.hero-section-inline {
    position: relative;
    min-height: auto;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Single Background Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Gradient Overlay */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(0 0 0 / 93%) 0%, rgb(0 0 0 / 55%) 50%, rgb(3 3 3) 100%);
    z-index: 2;
    pointer-events: none;
}


/* Content Container */
.hero-section-inline>.container {
    position: relative;
    z-index: 10;
    padding-top: 60px;
    padding-bottom: 70px;
}

/* ==================== HERO CONTENT ==================== */

.hero-content-center {
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-badge i {
    color: #FFD700;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-main {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ==================== BOOKING BAR ==================== */

.booking-bar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.booking-bar {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ==================== TRIP TYPE SELECTOR ==================== */

.trip-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.trip-radio {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

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

.trip-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
}

.trip-radio-label i {
    font-size: 16px;
}

.trip-radio input[type="radio"]:checked+.trip-radio-label {
    background: linear-gradient(135deg, #FFB400 0%, #FF9800 100%);
    border-color: #FF9800;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.trip-radio:hover .trip-radio-label {
    border-color: #FF9800;
    background: #fff5e6;
}

.trip-radio input[type="radio"]:checked+.trip-radio-label:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8800 100%);
}

/* ==================== BOOKING FIELDS ==================== */

.booking-fields {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.field-group {
    display: none;
    flex: 1;
    gap: 16px;
    align-items: flex-end;
}

.field-group.active {
    display: flex;
}

.form-field {
    flex: 1;
    min-width: 0;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.input-wrapper input:focus {
    border-color: #FF9800;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.input-wrapper input:focus~i {
    color: #FF9800;
}

/* Field Divider */
.field-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 48px;
    color: #FF9800;
    font-size: 18px;
    margin-bottom: 0;
}

/* ==================== SEARCH BUTTON ==================== */

.search-btn {
    padding: 13px 40px;
    background: linear-gradient(135deg, #FFB400 0%, #FF5733 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 87, 51, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 51, 0.45);
}

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

.search-btn i {
    font-size: 16px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1199px) {
    .booking-fields {
        flex-wrap: wrap;
    }

    .form-field {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 200px;
    }

    .field-divider {
        display: none;
    }

    .search-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 42px;
    }

    .booking-bar {
        padding: 24px 20px;
    }

    .trip-type-selector {
        flex-wrap: wrap;
    }

    .trip-radio {
        flex: 1 1 calc(50% - 6px);
    }

    .form-field {
        flex: 1 1 calc(50% - 8px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle-main {
        font-size: 16px;
    }

    .booking-bar {
        padding: 20px 16px;
    }

    .trip-type-selector {
        gap: 8px;
    }

    .trip-radio {
        flex: 1 1 100%;
    }

    .trip-radio-label {
        padding: 10px 16px;
        font-size: 13px;
    }

    .booking-fields {
        gap: 12px;
    }

    .form-field {
        flex: 1 1 100%;
    }

    .form-field label {
        font-size: 11px;
    }

    .input-wrapper input {
        padding: 11px 12px 11px 38px;
        font-size: 13px;
    }

    .search-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 18px;
    }

    .booking-bar {
        padding: 16px 12px;
    }

    .trip-radio-label {
        font-size: 12px;
        padding: 8px 12px;
    }

    .trip-radio-label span {
        display: none;
    }

    .trip-radio-label i {
        font-size: 18px;
    }
}

/* ==================== FORM VALIDATION STYLES ==================== */

.input-wrapper input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.input-wrapper input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.input-wrapper input.is-valid {
    border-color: #28a745;
    background-color: #f0fff4;
}

.input-wrapper input.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #dc3545;
    font-weight: 500;
}

.form-field {
    position: relative;
}

/* Autocomplete dropdown styling */
.pac-container {
    z-index: 10000 !important;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    font-family: inherit;
}

.pac-item {
    padding: 10px 12px;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-icon {
    margin-top: 6px;
}

.pac-item-query {
    font-size: 14px;
    color: #1f2937;
}

/* ==================== CUSTOM 12-HOUR TIME PICKER ==================== */

.custom-time-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    transition: border-color 0.2s;
}

.custom-time-picker:focus-within {
    border-color: #FF5733;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 51, 0.1);
}

.custom-time-picker select {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    outline: none;
    padding: 2px 4px;
}

.custom-time-picker .time-hour,
.custom-time-picker .time-minute {
    width: 50px;
    text-align: center;
}

.custom-time-picker .time-period {
    width: 60px;
    font-weight: 600;
    color: #FF5733;
}

.custom-time-picker select:hover {
    background: #f8f9fa;
    border-radius: 4px;
}

.custom-time-picker select:focus {
    background: #fff3f0;
    border-radius: 4px;
}

/* Colon separator */
.custom-time-picker::before {
    content: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-time-picker {
        padding: 8px 12px;
    }

    .custom-time-picker select {
        font-size: 14px;
    }

    .custom-time-picker .time-hour,
    .custom-time-picker .time-minute {
        width: 45px;
    }

    .custom-time-picker .time-period {
        width: 55px;
    }
}

/* ==================== TIME SELECT DROPDOWN STYLING ==================== */

.input-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 45px;
    border: none;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.input-wrapper select:focus {
    outline: none;
}

.input-wrapper select option {
    padding: 10px;
    font-size: 14px;
}

/* ==================== AIRPORT CONDITIONAL FIELDS ==================== */

/* Airport trip type dropdown - limit width */
#fields-airport>.form-field:first-child {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 250px;
}

.airport-conditional-fields {
    display: flex;
    gap: 16px;
    flex: 1;
    align-items: flex-end;
}

.airport-conditional-fields .form-field {
    flex: 1;
    min-width: 0;
}


/* Responsive for airport fields */
@media (max-width: 1199px) {
    .airport-conditional-fields {
        flex-wrap: wrap;
    }

    .airport-conditional-fields .form-field {
        flex: 1 1 calc(50% - 8px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .airport-conditional-fields {
        flex-direction: column;
        gap: 12px;
    }

    .airport-conditional-fields .form-field {
        flex: 1 1 100%;
    }
}