* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.flight-booking-container {
    max-width: 1200px;
    margin: 0 auto;
  padding: 0px !important;
 background-color: rgba(0, 0, 0, 0) !important;
    border-radius: 25px !important;
 box-shadow: none !important;
 
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    font-size: 2.8em;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 37, 95, 0.3);
}

.flight-search-form {
    background: #88bce4;

  border-style: none;
  padding: 25px;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}

/* Trip Type Radio Buttons - FIXED STYLES */
.trip-type-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.trip-type-section label {
    font-weight: 600;
    color: #00255f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    margin-right: 0;
    position: relative;
}

.trip-type-section input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #00255f;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    appearance: auto;
    display: inline-block;
    width: auto;
    height: auto;
}

.trip-type-section input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #00255f;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    appearance: auto;
    display: inline-block;
    width: auto;
    height: auto;
}

/* Main Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    align-items: end;
}

.form-row.passengers-row {
    grid-template-columns: repeat(6, 1fr);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #00255f;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 15px !important;
    border: 2px solid #e1ecf4;
    border-radius: 12px !important;
    font-size: 16px;
    background-color: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #88bce4;
    box-shadow: 0 0 0 3px rgba(136, 188, 228, 0.2);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Date inputs styling */
.form-group input[type="text"][readonly] {
    background-color: #f8fbff;
    cursor: pointer;
}

/* Direct flights checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
}

.checkbox-container input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #00255f;
}

.checkbox-container label {
    font-size: 14px;
    color: #00255f;
    cursor: pointer;
    margin: 0;
    text-transform: none;
}

/* Search button - Updated to navy */
.submit-section {
    text-align: center;
    margin-top: 40px;
}

.search-button {
    background: linear-gradient(135deg, #00255f 0%, #003875 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 37, 95, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 200px;
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 37, 95, 0.4);
    background: linear-gradient(135deg, #003875 0%, #004a8a 100%);
}

.search-button:active {
    transform: translateY(-1px);
}

/* Results page specific styles */
.btn {
    background: linear-gradient(135deg, #00255f 0%, #003875 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 37, 95, 0.3);
    margin-bottom: 30px;
}

.btn:hover {
    background: linear-gradient(135deg, #003875 0%, #004a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 37, 95, 0.4);
}

/* Loading and Results Styles */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    background: white;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #00255f;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 37, 95, 0.1);
    margin: 20px 0;
    position: relative;
}

.loading:after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #88bce4;
    border-top-color: #00255f;
    border-radius: 50%;
    margin: 20px auto 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #d32f2f;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 37, 95, 0.1);
    margin: 20px 0;
    border-left: 4px solid #d32f2f;
}

.results-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0;
    background: linear-gradient(135deg, #88bce4 0%, #a8d0ed 50%, #88bce4 100%);
}

.results-container .search_bar {
    width: 100%;
    max-width: 100%; 
    margin: 0 auto;
    padding: 0 20px;
}

.results-container .results-title {
    padding: 0 20px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.4em;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 37, 95, 0.3);
}

.results-container .search-again-container {
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 37, 95, 0.1);
}

.h1 {
    font-size: 24px;
    font-weight: 600;
    color: #00255f;
    margin-bottom: 20px;
}

.GTButtonsbottomtxtcolor {
    color: #6b7280;
    font-size: 16px;
}

.WaitContact {
    color: #00255f;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
}

.no-records-found {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    margin: 20px 0;
    background-color: #f9fafb;
}

.Airportpopupheading {
    font-size: 18px;
    color: #00255f;
    margin: 15px 0;
    line-height: 1.6;
}

/* Dialog styling */
#dialog {
    font-family: inherit;
}

.ui-dialog {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 37, 95, 0.3);
}

.ui-dialog-titlebar {
    background: linear-gradient(135deg, #00255f 0%, #003875 100%);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 600;
}

.ui-dialog-content {
    padding: 30px !important;
}

/* Results page title styling */
.results-title {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 37, 95, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .form-row.passengers-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .flight-search-form {
        padding: 30px 20px;
    }
    
    .form-row,
    .form-row.passengers-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trip-type-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    h1 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    
    .search-button {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .flight-search-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.8em;
    }
}

/* jQuery UI Datepicker custom styling */
.ui-datepicker {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 37, 95, 0.15);
    border: none;
    overflow: hidden;
}

.ui-datepicker-header {
    background: linear-gradient(135deg, #88bce4 0%, #a8d0ed 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.ui-datepicker-trigger {
    margin-left: 10px;
    vertical-align: middle;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.ui-datepicker-trigger:hover {
    opacity: 1;
}

/* Autocomplete styling */
.autocomplete-suggestions {
    border: 2px solid #e1ecf4;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 37, 95, 0.15);
    overflow: hidden;
    margin-top: 5px;
}

.autocomplete-suggestion {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.autocomplete-suggestion:hover {
    background-color: #f8fbff;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-selected {
    background-color: #88bce4;
    color: white;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flight-search-form {
    animation: fadeInUp 0.8s ease-out;
}

/* Results page specific styles - only affects results page */
.results-container .search_bar {
    width: 100% !important; 
    max-width: 100%; 
    margin: 0 auto;
}

.results-container #_IFrame {
    width: 100% !important; 
    max-width: 100%;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 37, 95, 0.15);
    border: none;
    background: white;
    display: block;
}

/* Search Again button container - only affects results page */
.search-again-container {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

/* Additional styling for better visual hierarchy */
.form-group select option:checked {
    background-color: #00255f;
    color: white;
}

/* Hover effects for form elements */
.form-group select:hover,
.form-group input:hover {
    border-color: #88bce4;
    box-shadow: 0 0 0 2px rgba(136, 188, 228, 0.1);
}

/* Focus states */
.trip-type-section input[type="radio"]:focus,
.trip-type-section input[type="checkbox"]:focus {
    outline: 2px solid #00255f;
    outline-offset: 2px;
}

/* Loading animation */
.loading-gif {
    width: 80px;
    height: 80px;
    margin: 20px auto;
    display: block;
}

/* Old form styles for compatibility */
.searc-field-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.label_form {
    flex: 0 0 150px;
    font-weight: bold;
    color: #00255f;
    margin-right: 15px;
}

.value_from {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.value_from select,
.value_from input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #e1ecf4;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s;
}

.value_from select:focus,
.value_from input[type="text"]:focus {
    outline: none;
    border-color: #88bce4;
    box-shadow: 0 0 5px rgba(136, 188, 228, 0.3);
}

.number_of_passenger {
    display: flex;
    gap: 10px;
}

.number_of_passenger select {
    flex: 1;
    min-width: 90px;
}