/**
 * Service Tabs CSS - Only for the tabs functionality
 * File: assets/css/service-tabs.css
 */

/* Service Tabs */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.service-tab {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-tab:first-child {
    border-radius: 15px 0 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.service-tab:last-child {
    border-radius: 0 15px 15px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.service-tab.active {
    background: white;
    color: #003580;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.service-tab-icon {
    font-size: 20px;
}

/* Tab Content Areas */
.tab-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 40px;
    pointer-events: none;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    padding: 0;
    pointer-events: all;
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #febb02;
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Trip Type Toggle */
.trip-type-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 15px;
}

.trip-type-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trip-type-btn.active {
    background: #003580;
    color: white;
}

/* Other Form Layouts */
.flights-form {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.rides-form {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr auto;
    gap: 20px;
    align-items: end;
}

/* Mobile Responsive for Tabs */
@media (max-width: 768px) {
    .service-tabs {
        flex-direction: column;
        gap: 0;
        margin: 0 20px 30px;
    }

    .service-tab {
        border-radius: 0 !important;
        border-right: 2px solid rgba(255, 255, 255, 0.3);
        border-left: 2px solid rgba(255, 255, 255, 0.3);
    }

    .service-tab:first-child {
        border-radius: 15px 15px 0 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .service-tab:last-child {
        border-radius: 0 0 15px 15px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    .tab-content {
        padding: 25px 20px;
    }

    .tab-content.active {
        padding: 0;
    }

    .flights-form,
    .rides-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Flight Search CSS - ADD this to your main CSS file */

/* Trip Type Toggle Updates */
.trip-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.trip-type-btn {
    flex: 1;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6c757d;
}

.trip-type-btn input[type="radio"] {
    display: none;
}

.trip-type-btn.active,
.trip-type-btn:has(input:checked) {
    background: #667eea;
    color: white;
}

.trip-type-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.trip-type-btn.active:hover {
    background: #5a67d8;
    color: white;
}

/* Flight-specific styling */
.flight-search-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.flight-search-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
}

/* Airport suggestions */
.airport-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    color: #495057;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Popular routes styling */
.popular-routes {
    margin-top: 20px;
    text-align: center;
}

.route-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.route-btn {
    padding: 8px 15px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.route-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Return field visibility */
.return-field.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .route-buttons {
        gap: 8px;
    }
    
    .route-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .trip-type-toggle {
        flex-direction: column;
        gap: 8px;
    }
}