/* FlyWT Exact Match Styling */

/* Main Search Container - Allow All Dropdowns */
.flywt-search-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
    margin: 20px auto;
    padding: 20px;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

/* Ensure parent containers don't clip dropdowns */
.bravo_form_search,
.bravo_banner_search_form {
    overflow: visible !important;
}

/* Tab Navigation - Aligned to Image */
.flywt-tabs {
    display: flex;
    background: transparent;
    margin: 0 0 15px 0;
    padding: 0;
    border-bottom: none;
    gap: 4px;
    justify-content: flex-start;
}

.flywt-tab {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    font-family: inherit;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    min-width: auto;
}

.flywt-tab:hover {
    color: #1e40af;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.flywt-tab.active {
    background: #1e40af;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.25);
}

/* Form Content - Allow Dropdowns */
.flywt-form-content {
    padding: 20px 0 0 0;
    background: transparent;
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* Responsive Design - Prevent Overlapping */
@media (max-width: 768px) {
    .flywt-form-row {
        flex-direction: column;
        height: auto;
        padding: 15px;
        border-radius: 20px;
    }

    .flywt-input-group {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 15px 20px;
    }

    .flywt-input-group:last-child {
        border-bottom: none;
        padding-bottom: 60px; /* Space for search button */
    }

    .flywt-search-btn {
        position: absolute;
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        top: auto;
    }
}

/* Form Tabs */
.flywt-form-tab {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flywt-form-tab.active {
    display: block;
    opacity: 1;
}

/* Form Row - FlyWT Style with Connected Fields */
.flywt-form-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 15px;
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: relative;
    min-height: 56px;
    overflow: visible;
    z-index: 1;
}

/* Input Groups - FlyWT Connected Style */
.flywt-input-group {
    flex: 1;
    min-width: 160px;
    position: relative;
    padding: 12px 16px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 56px;
    box-sizing: border-box;
    z-index: 5;
    background: transparent;
}

.flywt-input-group:last-child {
    border-right: none;
}

.flywt-input-group:first-child {
    border-radius: 8px 0 0 8px;
}

.flywt-input-group:last-child {
    border-radius: 0 8px 8px 0;
}

/* Special styling for search button container */
.flywt-input-group.search-button-container {
    flex: 0 0 auto;
    min-width: 60px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e40af;
    border-radius: 0 8px 8px 0;
}

/* Ensure dropdown appears above other elements */
.flywt-input-group:focus-within {
    z-index: 15;
}

.flywt-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
}

/* Input Fields - FlyWT Style */
.flywt-input {
    width: 100%;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: transparent;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    line-height: 1.2;
}

.flywt-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.flywt-input::placeholder {
    color: #bbb;
    font-size: 14px;
    font-weight: 400;
}

/* Smart Search Styling - Fixed Dropdown */
.smart-search {
    position: relative;
    width: 100%;
    z-index: 10;
}

.smart-search .flywt-input {
    cursor: pointer;
}

.smart-search .bravo-autocomplete {
    position: absolute;
    top: calc(100% + 5px);
    left: -20px;
    right: -20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

.smart-search .bravo-autocomplete.show {
    display: block;
}

.smart-search .bravo-autocomplete .list-item {
    max-height: 250px;
    overflow-y: auto;
}

.smart-search .bravo-autocomplete .item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #333;
}

.smart-search .bravo-autocomplete .item:hover {
    background-color: #f8f9fa;
}

.smart-search .bravo-autocomplete .item:last-child {
    border-bottom: none;
}

/* Loading spinner for autocomplete */
.smart-search .bravo-autocomplete .autocomplete-loading {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 5px;
    display: none !important; /* Hidden by default */
}

.smart-search .bravo-autocomplete .autocomplete-loading.show {
    display: block !important;
}

.smart-search .bravo-autocomplete .autocomplete-loading i {
    margin-right: 8px;
    color: #1e40af;
}

/* Fix for persistent loading message */
.smart-search .bravo-autocomplete.on-message .message {
    display: none !important;
}

.smart-search .bravo-autocomplete.show .message {
    display: none !important;
}

/* Improved autocomplete positioning and appearance */
.smart-search .bravo-autocomplete {
    z-index: 99999 !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    max-width: 100%;
    min-width: 250px;
}

.smart-search .bravo-autocomplete .item {
    transition: background-color 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
}

.smart-search .bravo-autocomplete .item:hover {
    background-color: #f0f7ff;
    color: #1e40af;
}

.smart-search .bravo-autocomplete .item:first-child {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.smart-search .bravo-autocomplete .item:last-child {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

/* Enhanced smart search input styling */
.smart-search .smart-search-location {
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.smart-search .smart-search-location:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(81, 145, 250, 0.1);
    outline: none;
}

/* Loading state for input */
.smart-search.loading .smart-search-location {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%235191fa"><path d="M12 2C13.1 2 14 2.9 14 4C14 5.1 13.1 6 12 6C10.9 6 10 5.1 10 4C10 2.9 10.9 2 12 2ZM21 9V7L19 8L21 9ZM3 9L5 8L3 7V9ZM13 14C13 15.1 12.1 16 11 16C9.9 16 9 15.1 9 14C9 12.9 9.9 12 11 12C12.1 12 13 12.9 13 14ZM17.25 15.5L15.75 14L17.25 12.5L18.75 14L17.25 15.5ZM8.25 15.5L6.75 14L8.25 12.5L9.75 14L8.25 15.5Z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Search button loading state */
.flywt-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #ccc !important;
}

.flywt-search-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Improved form validation states */
.flywt-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.flywt-input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

/* Multi-city segment styling improvements */
.flywt-segment {
    position: relative;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.flywt-segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.flywt-segment-title {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.flywt-remove-segment {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flywt-remove-segment:hover {
    background: #c82333;
    transform: scale(1.1);
}

.flywt-add-segment {
    background: #1e40af;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flywt-add-segment:hover {
    background: #4080e8;
    transform: translateY(-1px);
}

.flywt-add-segment:before {
    content: '+';
    font-size: 18px;
    font-weight: bold;
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
    .smart-search .bravo-autocomplete {
        left: -10px;
        right: -10px;
        width: auto;
        min-width: auto;
    }

    .smart-search .bravo-autocomplete .item {
        padding: 15px 12px;
        font-size: 15px;
    }

    .smart-search .bravo-autocomplete .autocomplete-loading {
        padding: 20px 15px;
        font-size: 15px;
    }

    .flywt-segment {
        margin-bottom: 15px;
        padding: 12px;
    }

    .flywt-segment-header {
        margin-bottom: 12px;
    }

    .flywt-segment-title {
        font-size: 14px;
    }

    .flywt-remove-segment {
        width: 28px;
        height: 28px;
    }

    .flywt-add-segment {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
        font-size: 15px;
    }
}

/* Multi-City Trip Summary Styles */
.flywt-trip-summary {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.flywt-summary-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #1e40af 0%, #4080e8 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.flywt-summary-header:hover {
    background: linear-gradient(135deg, #4080e8 0%, #3070d8 100%);
}

.flywt-summary-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flywt-summary-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.flywt-summary-content {
    display: none;
    padding: 0;
}

.flywt-summary-list {
    padding: 15px 20px;
}

.flywt-summary-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.flywt-summary-item:last-child {
    border-bottom: none;
}

.flywt-summary-route {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flywt-summary-number {
    background: #1e40af;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.flywt-summary-details {
    flex: 1;
}

.flywt-summary-cities {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.flywt-summary-cities .from,
.flywt-summary-cities .to {
    color: #1e40af;
}

.flywt-summary-cities i {
    color: #666;
    font-size: 12px;
}

.flywt-summary-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.flywt-summary-date i {
    color: #1e40af;
}

.flywt-summary-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.flywt-summary-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.flywt-summary-info i {
    color: #1e40af;
}

/* Summary item states */
.flywt-summary-item.incomplete {
    opacity: 0.7;
}

.flywt-summary-item.incomplete .flywt-summary-number {
    background: #ffc107;
    color: #333;
}

.flywt-summary-item.complete .flywt-summary-number {
    background: #28a745;
    color: white;
}

.flywt-summary-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #ffc107;
    margin-top: 5px;
}

.flywt-summary-status i {
    font-size: 12px;
}

/* Animation for segment removal */
.flywt-segment.removing {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

/* Responsive design for trip summary */
@media (max-width: 768px) {
    .flywt-trip-summary {
        margin: 15px 0;
    }

    .flywt-summary-header {
        padding: 12px 15px;
    }

    .flywt-summary-title {
        font-size: 14px;
    }

    .flywt-summary-list {
        padding: 12px 15px;
    }

    .flywt-summary-route {
        gap: 12px;
    }

    .flywt-summary-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .flywt-summary-cities {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .flywt-summary-footer {
        padding: 12px 15px;
    }
}

/* Enhanced Multi-City Flight Summary */
#enhanced-summary {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#enhanced-summary button:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

#enhanced-summary .flight-route {
    position: relative;
}

#enhanced-summary .flight-route::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 2px;
    background: #28a745;
}

/* Animation for enhanced summary */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Enhanced summary responsive */
@media (max-width: 768px) {
    #enhanced-summary {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
    }

    #enhanced-summary .flight-details {
        padding: 15px !important;
    }

    #enhanced-summary h4 {
        font-size: 18px !important;
    }

    #enhanced-summary .price-display {
        font-size: 20px !important;
    }
}

/* Multi-City Flight Selection Summary */
.multi-city-summary {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.selected-flight-item {
    transition: all 0.3s ease;
    border-left: 4px solid #28a745 !important;
}

.selected-flight-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Flight card selection states */
.flight-card.selected-flight {
    border: 2px solid #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    background: rgba(40, 167, 69, 0.05);
}

.select-flight-btn.btn-success {
    background: #28a745 !important;
    border-color: #28a745 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Responsive adjustments for summary */
@media (max-width: 768px) {
    .multi-city-summary {
        position: fixed !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
    }

    .selected-flight-item {
        margin-bottom: 15px;
    }
}

/* Passenger Selector - Fixed Trimming */
.flywt-passenger-selector {
    position: relative;
    cursor: pointer;
    width: 100%;
    z-index: 5;
}

.flywt-passenger-selector.active {
    z-index: 9999;
}

.flywt-passenger-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.flywt-passenger-display:hover {
    color: #1e40af;
}

.flywt-passenger-display:focus {
    outline: none;
    color: #1e40af;
}

.flywt-passenger-display .dropdown-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.flywt-passenger-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Passenger Dropdown - Fixed Trimming */
.flywt-passenger-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: -20px;
    right: -20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    display: none;
    min-width: 300px;
}

.flywt-passenger-dropdown.show {
    display: block;
}

.flywt-passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.flywt-passenger-row:last-child {
    border-bottom: none;
}

.flywt-passenger-info h6 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.flywt-passenger-info small {
    font-size: 12px;
    color: #666;
}

.flywt-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flywt-counter-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    background: #ffffff;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.flywt-counter-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.flywt-counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flywt-counter-value {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Class Selector */
.flywt-class-selector {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.flywt-class-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.flywt-class-option {
    padding: 10px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 90px;
}

.flywt-class-option:hover {
    border-color: #007bff;
    color: #007bff;
}

.flywt-class-option.active {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

/* Confirm Button */
.flywt-confirm-btn {
    width: 100%;
    padding: 12px 20px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.flywt-confirm-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}



/* Multi-City Segments */
.flywt-segment {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.flywt-segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.flywt-segment-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.flywt-remove-segment {
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.flywt-remove-segment:hover {
    background: #c82333;
}

.flywt-add-segment {
    background: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 15px 0;
    width: 100%;
}

.flywt-add-segment:hover {
    background: #218838;
}

/* Additional Options */
.flywt-options {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.flywt-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.flywt-checkbox input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .flywt-search-container {
        margin: 10px;
        border-radius: 6px;
    }

    .flywt-form-content {
        padding: 20px 15px;
    }

    .flywt-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .flywt-input-group {
        min-width: auto;
    }

    .flywt-tab {
        padding: 12px 15px;
        font-size: 13px;
    }

    .flywt-passenger-dropdown {
        padding: 15px;
    }

    .flywt-class-options {
        justify-content: center;
    }

    .flywt-class-option {
        flex: 1;
        min-width: 70px;
        font-size: 11px;
        padding: 6px 8px;
    }

    .flywt-counter {
        align-self: flex-end;
    }

    .flywt-segment {
        padding: 15px;
        margin-bottom: 15px;
    }

    .flywt-class-selector-segment .flywt-class-option {
        min-width: 100px;
        font-size: 11px;
        padding: 6px 8px;
    }

    .flywt-add-segment {
        width: 100%;
        margin: 15px 0;
    }
}

/* Form Container */
.flywt-form-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
}




.flywt-passenger-btn {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #ffffff;
    text-align: left;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flywt-passenger-btn:hover {
    border-color: #007bff;
}

.flywt-passenger-btn:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}



/* Passenger Counter */
.flywt-passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.flywt-passenger-row:last-child {
    border-bottom: none;
}

.flywt-passenger-info h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.flywt-passenger-info small {
    color: #666;
    font-size: 13px;
}

.flywt-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flywt-counter-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    background: #ffffff;
    color: #666;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.flywt-counter-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.flywt-counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flywt-counter-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 20px;
    text-align: center;
}

/* Class Selector */
.flywt-class-selector {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.flywt-class-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.flywt-class-option {
    padding: 10px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.flywt-class-option:hover {
    border-color: #007bff;
    color: #007bff;
}

.flywt-class-option.active {
    border-color: #007bff;
    background: #007bff;
    color: #ffffff;
}

/* Search Button - Integrated FlyWT Style */
.flywt-search-btn {
    background: #1e40af;
    border: none;
    border-radius: 0 8px 8px 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    height: 100%;
    min-width: 80px;
    position: relative;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flywt-search-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.flywt-search-btn:active {
    background: #1e3a8a;
}

/* Direct Flight Checkbox */
.flywt-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.flywt-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.flywt-checkbox-label {
    font-size: 15px;
    color: #666;
    cursor: pointer;
}

/* Multi-City Segments */
.flywt-segment {
    background: #f8f9fa;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.flywt-segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.flywt-segment-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.flywt-remove-segment {
    background: #dc3545;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flywt-remove-segment:hover {
    background: #c82333;
}

.flywt-add-segment {
    background: #28a745;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.flywt-add-segment:hover {
    background: #218838;
}

/* Multi-City Class Selector for Segments */
.flywt-class-selector-segment {
    margin-top: 10px;
}

.flywt-class-selector-segment .flywt-class-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flywt-class-selector-segment .flywt-class-option {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.flywt-class-selector-segment .flywt-class-option:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.flywt-class-selector-segment .flywt-class-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-flight-search-container {
        padding: 20px;
        margin: 10px;
        border-radius: 8px;
    }
    
    .search-title {
        font-size: 24px;
    }
    
    .flywt-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .flywt-class-options {
        grid-template-columns: 1fr;
    }
    
    .flywt-passenger-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .flywt-counter {
        align-self: flex-end;
    }

    .flywt-segment {
        padding: 15px;
        margin-bottom: 15px;
    }

    .flywt-class-selector-segment .flywt-class-option {
        min-width: 100px;
        font-size: 11px;
        padding: 6px 8px;
    }

    .flywt-add-segment {
        width: 100%;
        margin: 15px 0;
    }
}
