* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #003d7a;
    --accent-color: #ff6b35;
    --success-color: #28a745;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Branding */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.airplane-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    animation: fly 3s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1px;
}

.tagline {
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0 20px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Stages */
.stage {
    display: none;
    animation: slideIn 0.4s ease-in-out;
}

.stage.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stage h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Destination Cards */
.destinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.destination-card {
    background: var(--bg-light);
    border: 3px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s;
}

.destination-card:hover::before {
    left: 100%;
}

.destination-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.destination-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    transform: scale(1.05);
}

.destination-flag {
    font-size: 4rem;
    margin-bottom: 15px;
}

.destination-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.destination-card.selected h3,
.destination-card.selected .country,
.destination-card.selected .airport-code,
.destination-card.selected .destination-details {
    color: var(--white);
}

.country {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.airport-code {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.destination-details {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Seat Map */
.seat-map {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.cabin {
    margin-bottom: 30px;
}

.cabin h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.seats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-number {
    width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
}

.seat {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
}

.seat:hover:not(.occupied) {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.seat.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.seat.occupied {
    background: #ccc;
    border-color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.aisle {
    width: 30px;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-seat {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    pointer-events: none;
}

.legend-available {
    background: var(--white);
    border-color: var(--border-color);
}

.legend-selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.legend-occupied {
    background: #ccc;
    border-color: #999;
    opacity: 0.6;
}

/* Review Card */
.review-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.review-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.review-section:last-of-type {
    border-bottom: none;
}

.review-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
}

.review-item .label {
    font-weight: 600;
    color: var(--text-light);
}

.review-item .value {
    font-weight: 600;
    color: var(--text-dark);
}

.input-field {
    flex: 1;
    margin-left: 20px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.price-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    border-radius: 10px;
    color: var(--white);
}

.price-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-note {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Boarding Pass */
.boarding-pass {
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    margin: 30px auto;
    max-width: 700px;
    box-shadow: var(--shadow-lg);
}

.boarding-pass-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 25px;
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.boarding-airplane {
    width: 50px;
    height: 50px;
    color: var(--white);
}

.airline-name {
    font-size: 1.8rem;
    font-weight: 700;
}

.booking-ref {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 5px;
}

.boarding-pass-body {
    padding: 30px;
}

.bp-section {
    margin-bottom: 25px;
}

.bp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--border-color);
}

.bp-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.bp-item {
    flex: 1;
}

.bp-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.bp-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.bp-value.large {
    font-size: 2rem;
    color: var(--primary-color);
}

.bp-sublabel {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.bp-arrow {
    font-size: 2rem;
    margin: 0 20px;
}

.barcode {
    margin: 30px 0;
    text-align: center;
}

.barcode svg {
    max-width: 200px;
    height: 60px;
}

.boarding-pass-footer {
    background: var(--bg-light);
    padding: 20px;
    text-align: center;
}

.boarding-pass-footer p {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.boarding-pass-footer .small {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#stage4 .btn {
    margin: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .stage h2 {
        font-size: 1.5rem;
    }

    .destinations {
        grid-template-columns: 1fr;
    }

    .progress-bar {
        padding: 0 10px;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .seat {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    .aisle {
        width: 20px;
    }

    .bp-value.large {
        font-size: 1.5rem;
    }

    .navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
    }

    .progress-bar,
    .navigation,
    header,
    .stage h2,
    .subtitle {
        display: none !important;
    }

    .boarding-pass {
        border: 2px solid #000;
        page-break-inside: avoid;
    }
}
