 /* Fix for background image overflow on scroll */
.about-section-four .flight-bg img,
.testimonial-section .testimonials-bg img {
    position: fixed !important;
    z-index: -1 !important;
}

/* Alternative fix - hide background images completely */
.flight-bg-01,
.flight-bg-02,
.testimonial-bg-01,
.testimonial-bg-02,
.testimonial-bg-03 {
    display: none !important;
}

/* Ensure sections don't have overflow issues */
.about-section-four,
.testimonial-section {
    overflow: hidden;
}

/* Ensure main wrapper is visible */
.main-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Loader fixes */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
}

/* Ensure content is visible after loader */
body.loaded #loader-wrapper {
    display: none !important;
}

body.loaded .main-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Handle missing images */
img {
    background-color: #f8f9fa;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8f9fa"/><text x="50" y="50" text-anchor="middle" dy=".3em" fill="%236c757d" font-family="Arial, sans-serif" font-size="12">Image</text></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Error handling for broken images */
img[src=""],
img:not([src]),
img[src*="404"] {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Select2 dropdown fixes */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 10px;
}

/* Hide original select arrows to prevent duplicates */
select.select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
}

/* Ensure only one dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #999 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

/* Prevent JavaScript errors from breaking layout */
.js-error-fallback {
    display: none;
}

.no-js .js-error-fallback {
    display: block;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    margin: 10px 0;
}

/* Form validation styling */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Passenger fieldset styling */
.passengers-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.passengers-legend {
    font-weight: 600;
    color: #333;
    padding: 0 10px;
    font-size: 16px;
}