/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

/* Main Content */
.main {
    min-height: calc(100vh - 80px);
}

.section {
    display: none;
    padding: 2rem 0;
}

.section.active {
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

/* Search Form */
.search-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.trip-type {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.trip-type label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.trip-type input[type="radio"] {
    accent-color: #1e3c72;
}

.search-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.input-group input,
.input-group select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #1e3c72;
}

.search-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* Flight Results */
.flight-results {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.flight-results h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.flights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flight-card {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flight-card:hover {
    border-color: #1e3c72;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.flight-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.flight-time {
    text-align: center;
}

.flight-time .time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
}

.flight-time .city {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.flight-duration {
    text-align: center;
    color: #666;
}

.flight-duration .duration {
    font-weight: 600;
}

.flight-price {
    text-align: right;
}

.flight-price .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
}

.flight-price .per-person {
    font-size: 0.9rem;
    color: #666;
}

.select-flight-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.select-flight-btn:hover {
    background: #218838;
}

/* Booking Progress */
.booking-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e1e5e9;
    z-index: 1;
}

.progress-step.active:not(:last-child)::after {
    background: #1e3c72;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-number {
    background: #1e3c72;
    color: white;
}

.step-title {
    font-size: 0.9rem;
    text-align: center;
    color: #666;
}

.progress-step.active .step-title {
    color: #1e3c72;
    font-weight: 600;
}

/* Booking Content */
.booking-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.passenger-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-section {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
}

.form-section h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

/* Seat Selection Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    background: #1e3c72;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.seat {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.seat.available {
    background: #f8f9fa;
    border-color: #28a745;
}

.seat.available:hover {
    background: #e8f5e8;
}

.seat.occupied {
    background: #dc3545;
    color: white;
    cursor: not-allowed;
}

.seat.selected {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #e1e5e9;
    text-align: right;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1e3c72;
    color: white;
}

.btn-primary:hover {
    background: #2a5298;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* My Bookings */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.booking-id {
    font-weight: 700;
    color: #1e3c72;
}

.booking-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.booking-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.no-bookings {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-bookings i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* About Section */
.about-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature i {
    font-size: 3rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.feature h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .search-inputs {
        grid-template-columns: 1fr;
    }
    
    .flight-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .booking-progress {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .progress-step:not(:last-child)::after {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .seat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .search-form,
    .booking-content,
    .about-content {
        padding: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .seat {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
}