/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1e40af 0%, #059669 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.demo-badge {
    background: #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
}

.nav-tab {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-tab.active {
    background: white;
    color: #1e40af;
    border-color: white;
}

.nav-tab:hover {
    background: rgba(255,255,255,0.3);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Booking Steps */
.booking-step {
    display: none;
    padding: 2rem 0;
    animation: slideIn 0.3s ease-in;
}

.booking-step.active {
    display: block;
}

.booking-step.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-step h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.step-description {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #f0f9ff;
}

/* Options Grid */
.agency-grid,
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.option-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.option-card:hover {
    border-color: #3B82F6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

.option-card.selected {
    border-color: #3B82F6;
    background: #f0f9ff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.option-card h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.option-card .price {
    font-weight: 700;
    color: #059669;
    font-size: 1.3rem;
    margin: 1rem 0;
}

.option-card .details {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.option-card .badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-success {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: #3B82F6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-success {
    background: #059669;
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.btn-success:hover {
    background: #047857;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Booking Navigation */
.booking-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.booking-nav button {
    padding: 0.75rem 2rem;
}

/* Results Container */
.results-container {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.results-container.hidden {
    display: none;
}

.results-container h3 {
    margin-bottom: 1rem;
    color: #1e40af;
}

/* Booking Summary */
.booking-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.summary-details {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #3B82F6;
}

.summary-details p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.summary-details strong {
    color: #1f2937;
}

.summary-details .total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.payment-section {
    margin: 2rem 0;
}

.payment-options {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.payment-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

/* Dashboard */
.filters {
    margin-bottom: 2rem;
}

.filters select {
    padding: 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    width: 200px;
}

.bookings-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.bookings-table thead {
    background: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
}

.bookings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #1f2937;
}

.bookings-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.bookings-table tbody tr:hover {
    background: #f9fafb;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fed7aa;
    color: #92400e;
}

/* Voucher */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #1f2937;
}

.voucher {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border: 3px solid #3B82F6;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.voucher h2 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.voucher-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin: 1rem 0;
    font-family: monospace;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    letter-spacing: 2px;
}

.voucher-details {
    text-align: left;
    margin-top: 1.5rem;
    color: #1f2937;
}

.voucher-details p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.voucher-details strong {
    color: #1e40af;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .agency-grid,
    .options-grid {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .booking-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .booking-nav button {
        width: 100%;
    }

    .bookings-table {
        font-size: 0.9rem;
    }

    .bookings-table th,
    .bookings-table td {
        padding: 0.5rem;
    }
}

@media print {
    body {
        background: white;
    }

    .navbar,
    .booking-nav,
    .close-modal,
    .btn-primary:not(.modal .btn-primary) {
        display: none;
    }

    .modal {
        position: static;
        background: white;
    }

    .modal-content {
        max-width: 100%;
        box-shadow: none;
    }
}
