    *, *::before, *::after { box-sizing: border-box; }
    html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; overflow-x: hidden; }
    body { background: #f0f2f5; padding: 10px; }
    
    /* IFRAME EMBED MODE - Full width, không khung 2 bên */
    body.iframe-mode { 
        background: transparent !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        height: auto !important; 
        min-height: 0 !important; 
        overflow: visible !important;
        width: 100% !important;
    }
    html.iframe-mode { 
        height: auto !important; 
        width: 100% !important;
    }
    body.iframe-mode .container { 
        border-radius: 0 !important; 
        box-shadow: none !important; 
        max-width: 100% !important; 
        width: 100% !important;
        margin: 0 !important;
    }
    body.iframe-mode .header { 
        border-radius: 0 !important; 
    }
    body.iframe-mode .step-content {
        padding: 12px 10px 5px 10px !important;
    }
    
    .container { max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.1); overflow: hidden; }
    .header { background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%); color: #fff; padding: 20px 15px; text-align: center; }
    .header h1 { font-size: 22px; margin-bottom: 5px; }
    .header p { font-size: 13px; }
    .progress-bar { display: flex; justify-content: space-between; padding: 15px 10px; background: #f8f9fa; position: relative; overflow-x: auto; }
    .progress-bar::before { content: ''; position: absolute; top: 50%; left: 10px; right: 10px; height: 2px; background: #dee2e6; transform: translateY(-50%); z-index: 0; }
    .progress-step { position: relative; text-align: center; flex: 1; z-index: 1; min-width: 60px; }
    .step-circle { width: 35px; height: 35px; background: #fff; border: 2px solid #dee2e6; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-weight: 700; color: #6c757d; font-size: 14px; transition: all .3s; }
    .progress-step.active .step-circle { background: #1976d2; border-color: #1976d2; color: #fff; transform: scale(1.1); }
    .progress-step.completed .step-circle { background: #28a745; border-color: #28a745; color: #fff; }
    .step-label { font-size: 11px; color: #6c757d; }
    .progress-step.active .step-label { font-weight: 700; color: #1976d2; }
    .step-content { padding: 15px; display: none; }
    .step-content.active { display: block; animation: fadeIn .3s; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .step-title { color: #1976d2; margin-bottom: 12px; font-size: 18px; border-bottom: 2px solid #f0f0f0; padding-bottom: 8px; }
    .form-group { margin-bottom: 12px; }
    .form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #333; font-size: 14px; }
    .form-group input, .form-group select { width: 100%; padding: 10px; border: 2px solid #e9ecef; border-radius: 6px; font-size: 14px; transition: all .2s; }
    .form-group input:focus, .form-group select:focus { outline: none; border-color: #1976d2; box-shadow: 0 0 0 3px rgba(102,126,234,.08); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
    .date-picker-wrapper {
        position: relative;
    }
    .date-input-display {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e9ecef;
        border-radius: 6px;
        font-size: 14px;
        background: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all .2s;
        min-height: 46px;
    }
    .date-input-display:hover {
        border-color: #1976d2;
    }
    .date-input-display.active {
        border-color: #1976d2;
        box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
    }
    .date-input-display .date-text {
        flex: 1;
        font-weight: 500;
    }
    .date-input-display .date-icon {
        font-size: 20px;
        color: #c00;
    }
    .date-input-display.placeholder .date-text {
        color: #888;
        font-weight: 400;
    }
    .calendar-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 999999;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 25px 80px rgba(0,0,0,0.3);
        padding: 20px;
        display: none;
        width: 340px;
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }
    .calendar-popup.show {
        display: block;
        animation: calendarPopIn 0.25s ease;
    }
    @keyframes calendarPopIn {
        from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
        to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }
    .calendar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
        padding-bottom: 12px;
        border-bottom: 2px solid #e9ecef;
    }
    .calendar-nav-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: #e3f2fd;
        border-radius: 50%;
        cursor: pointer;
        font-size: 22px;
        font-weight: bold;
        color: #1976d2;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }
    .calendar-nav-btn:hover {
        background: #1976d2;
        color: #fff;
        transform: scale(1.1);
    }
    .calendar-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        transform: none;
        background: #f0f0f0;
        color: #999;
    }
    .calendar-month-year {
        font-weight: 700;
        font-size: 16px;
        color: #1976d2;
        text-align: center;
    }
    .calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
        margin-bottom: 8px;
    }
    .calendar-weekday {
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        color: #666;
        padding: 8px 0;
        text-transform: uppercase;
    }
    .calendar-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    .calendar-day {
        aspect-ratio: 1;
        min-width: 38px;
        min-height: 38px;
        border: none;
        border-radius: 8px;
        background: #f0f0f0;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s;
    }
    .calendar-day:hover:not(.disabled):not(.empty):not(.past) {
        transform: scale(1.1);
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    }
    .calendar-day.empty {
        visibility: hidden;
        background: transparent !important;
    }
    .calendar-day.today {
        border: 3px solid #1976d2 !important;
        font-weight: 700;
    }
    .calendar-day.selected {
        background: #1976d2 !important;
        color: #fff !important;
        font-weight: 700;
        transform: scale(1.15);
        box-shadow: 0 4px 15px rgba(25, 118, 210, 0.5);
    }
    .calendar-day.has-trip {
        background: #FFD700 !important;
        color: #000 !important;
        font-weight: 700;
        border: 2px solid #FFA500 !important;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    }
    .calendar-day.has-trip:hover {
        background: #FFC107 !important;
        transform: scale(1.12);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.6);
    }
    .calendar-day.has-trip.selected {
        background: #1976d2 !important;
        color: #fff !important;
        border-color: #1565c0 !important;
    }
    .calendar-day.no-trip {
        background: #f8f8f8 !important;
        color: #666 !important;
        cursor: pointer;
        border: 1px dashed #ccc !important;
    }
    .calendar-day.no-trip:hover {
        background: #eee !important;
        transform: scale(1.05);
    }
    .calendar-day.no-trip.selected {
        background: #1976d2 !important;
        color: #fff !important;
        border-color: #1565c0 !important;
    }
    .calendar-day.disabled {
        background: #e0e0e0 !important;
        color: #999 !important;
        cursor: not-allowed;
        border: 1px dashed #bbb !important;
    }
    .calendar-day.disabled:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .calendar-day.past {
        color: #aaa !important;
        background: #f0f0f0 !important;
        cursor: not-allowed;
    }
    .calendar-day.past:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .calendar-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 50px 20px;
        color: #1976d2;
        font-size: 14px;
        text-align: center;
    }
    .calendar-loading-spinner {
        width: 36px;
        height: 36px;
        border: 3px solid #e3f2fd;
        border-top-color: #1976d2;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin-bottom: 12px;
    }
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    .calendar-legend {
        display: flex;
        gap: 12px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 2px solid #f0f0f0;
        flex-wrap: wrap;
        justify-content: center;
    }
    .legend-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: #555;
        font-weight: 500;
    }
    .legend-color {
        width: 20px;
        height: 20px;
        border-radius: 4px;
    }
    .legend-color.yellow {
        background: #FFD700;
        border: 2px solid #FFA500;
    }
    .legend-color.gray {
        background: #e0e0e0;
        border: 1px dashed #bbb;
    }
    .legend-color.gray-dashed {
        background: #f8f8f8;
        border: 1px dashed #ccc;
    }
    .legend-color.blue {
        background: #1976d2;
    }
    .route-schedule-info {
        font-size: 11px;
        color: #666;
        text-align: center;
        margin-top: 10px;
        padding: 10px 12px;
        background: #f8f9fa;
        border-radius: 8px;
        line-height: 1.4;
    }
    .route-schedule-info.daily {
        color: #28a745;
        background: #e8f5e9;
        border: 1px solid #c8e6c9;
    }
    .route-schedule-info.special {
        color: #e65100;
        background: #fff3e0;
        border: 1px solid #ffe0b2;
    }
    .route-schedule-info.no-route {
        color: #666;
        background: #f5f5f5;
        border: 1px solid #e0e0e0;
    }
    @media (max-width: 768px) {
        .calendar-popup {
            width: calc(100% - 20px);
            max-width: 360px;
            padding: 15px;
        }
        .calendar-day {
            min-width: 36px;
            min-height: 36px;
            font-size: 13px;
        }
        .calendar-legend {
            gap: 8px;
        }
        .legend-item {
            font-size: 10px;
        }
    }
    .calendar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999998;
        backdrop-filter: blur(3px);
    }
    .calendar-overlay.show {
        display: block;
    }
    
    /* ============================================ */
    /* TRIP TYPE SELECTOR - Pill Buttons màu cam */
    /* ============================================ */
    .trip-type-selector { 
        display: flex; 
        background: #f0f0f0;
        border-radius: 25px;
        padding: 4px;
        gap: 4px;
        margin-bottom: 15px;
    }
    .trip-type-btn { 
        flex: 1; 
        padding: 10px 20px; 
        border: none;
        border-radius: 22px;
        background: transparent;
        cursor: pointer; 
        text-align: center; 
        font-weight: 600;
        font-size: 14px;
        color: #666;
        transition: all 0.3s ease;
    }
    .trip-type-btn.active { 
        background: linear-gradient(135deg, #ff6b35, #f7931e);
        color: #fff;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    }
    .trip-type-btn:not(.active):hover { 
        background: rgba(255, 107, 53, 0.1);
        color: #ff6b35;
    }
    
    #returnDateRow { display: none; }
    #returnDateRow.show { display: block; }
    .btn-group { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }
    .btn { padding: 12px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; flex: 1; transition: all .2s; }
    .btn-primary { background: linear-gradient(135deg, #1976d2, #1565c0); color: #fff; }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,126,234,.3); }
    .btn-secondary { background: #6c757d; color: #fff; }
    .btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
    .btn-search-wrapper { 
        display: flex; 
        justify-content: center; 
        margin-top: 15px;
        margin-bottom: 5px;
        position: relative;
        z-index: 1;
    }
    .btn-search { 
        width: 66%; 
        padding: 18px 40px; 
        background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
        color: #fff; 
        border: none; 
        border-radius: 50px; 
        font-size: 18px; 
        font-weight: 700; 
        cursor: pointer; 
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
        position: relative;
        overflow: hidden;
    }
    .btn-search::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    .btn-search:hover::before {
        left: 100%;
    }
    .btn-search:hover { 
        background: linear-gradient(135deg, #0077ee 0%, #0055bb 100%);
        transform: translateY(-3px); 
        box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
    }
    .btn-search:active {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    }
    .btn-search .search-icon {
        font-size: 20px;
        animation: pulse 2s infinite;
    }
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }
    .trips-section { margin-top: 15px; }
    .trips-section-title { 
        font-size: 18px; font-weight: 600; color: #333; margin-bottom: 15px; padding: 10px; 
        background: #f8f9fa; border-left: 4px solid #1976d2; 
        display: flex; align-items: center; gap: 10px;
    }
    .trips-section-title.return-title { border-left-color: #28a745; }
    .trips-table-wrapper {
        margin-top: 15px;
        overflow-x: auto;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,.05);
    }
    .trips-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }
    .trips-table thead {
        background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
        color: #fff;
    }
    .trips-table.return-table thead {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    }
    .trips-table th {
        padding: 14px 12px;
        text-align: center;
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-right: 1px solid rgba(255,255,255,.2);
    }
    .trips-table th:last-child { border-right: none; }
    .trips-table tbody tr {
        border-bottom: 1px solid #e0e0e0;
        transition: all 0.2s;
        cursor: pointer;
    }
    .trips-table tbody tr:hover {
        background: #f8f9ff;
    }
    .trips-table tbody tr.selected-trip {
        background: #e3f2fd !important;
        border: 2px solid #1976d2 !important;
    }
    .trips-table tbody tr.selected-trip-return {
        background: #e8f5e9 !important;
        border: 2px solid #28a745 !important;
    }
    .trips-table td {
        padding: 16px 12px;
        text-align: center;
        border-right: 1px solid #f0f0f0;
        vertical-align: middle;
    }
    .trips-table td:last-child { border-right: none; }
    .route-cell { text-align: left; font-weight: 500; color: #333; font-size: 14px; }
    .boat-name { font-weight: 600; color: #1976d2; font-size: 14px; }
    .departure-info { text-align: center; }
    .departure-time { font-weight: 700; color: #dc3545; font-size: 18px; display: block; margin-bottom: 4px; }
    .departure-date { color: #666; font-size: 13px; }
    .seats-cell { font-weight: 700; color: #dc3545; font-size: 18px; }
    .price-cell { font-weight: 700; color: #dc3545; font-size: 18px; }
    .btn-select {
        background: linear-gradient(135deg, #1976d2, #1565c0);
        color: #fff;
        border: none;
        padding: 10px 24px;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
        font-size: 14px;
    }
    .btn-select:hover {
        background: linear-gradient(135deg, #1565c0, #0d47a1);
        transform: translateX(3px);
        box-shadow: 0 4px 12px rgba(25,118,210,.3);
    }
    .btn-select::after { content: '→'; font-size: 16px; font-weight: bold; }
    .btn-select.selected {
        background: linear-gradient(135deg, #28a745, #20c997);
    }
    .btn-select.selected::after { content: '✓'; }
    .show-mobile-only { display: none; }
    .hide-mobile { display: table-cell; }
    @media (max-width: 768px) {
        .trips-table thead {
            display: none;
        }
        .show-mobile-only { display: table-cell !important; }
        .hide-mobile { display: none !important; }
        .trips-table-wrapper {
            border: none;
            box-shadow: none;
            background: transparent;
        }
        .trips-table {
            border-collapse: separate;
            border-spacing: 0 8px;
        }
        .trips-table tbody tr {
            display: table;
            width: 100%;
            table-layout: fixed;
            padding: 0;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            background: #fff;
            border-left: 4px solid #1976d2;
            box-shadow: 0 1px 3px rgba(0,0,0,.08);
            overflow: hidden;
        }
        .trips-table tbody tr:hover {
            background: #f8f9ff;
        }
        .trips-table tbody tr.selected-trip {
            border-left: 4px solid #1976d2;
            background: #e3f2fd !important;
        }
        .trips-table tbody tr.selected-trip-return {
            border-left: 4px solid #28a745;
            background: #e8f5e9 !important;
        }
        .trips-table.return-table tbody tr {
            border-left-color: #28a745;
        }
        .mobile-col1,
        .mobile-col2,
        .mobile-col3 {
            display: table-cell !important;
            vertical-align: middle;
            padding: 10px 8px !important;
            border: none;
        }
        .mobile-col1 {
            width: 45%;
            text-align: left;
            padding-left: 12px !important;
        }
        .mobile-boat {
            font-size: 13px;
            font-weight: 700;
            color: #1976d2;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .mobile-route {
            font-size: 12px;
            color: #555;
        }
        .mobile-col2 {
            width: 28%;
            text-align: center;
        }
        .mobile-date {
            font-size: 12px;
            color: #666;
            margin-bottom: 2px;
        }
        .mobile-time-price {
            font-size: 13px;
            font-weight: 600;
        }
        .mobile-time-price .m-time {
            color: #1976d2;
        }
        .mobile-time-price .m-price {
            color: #333;
        }
        .mobile-col3 {
            width: 27%;
            text-align: center;
            padding-right: 10px !important;
        }
        .mobile-seats {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }
        .mobile-seats strong {
            color: #28a745;
            font-weight: 700;
        }
        .btn-select-mobile {
            display: inline-block;
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(135deg, #1976d2, #1565c0);
            border: none;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .btn-select-mobile:hover {
            background: linear-gradient(135deg, #1565c0, #0d47a1);
        }
        .btn-select-mobile.selected {
            background: linear-gradient(135deg, #28a745, #20c997);
        }
    }
    @media (max-width: 400px) {
        .mobile-col1 {
            width: 42%;
            padding-left: 10px !important;
        }
        .mobile-col2 {
            width: 30%;
        }
        .mobile-col3 {
            width: 28%;
            padding-right: 8px !important;
        }
        .mobile-boat {
            font-size: 12px;
        }
        .mobile-route {
            font-size: 11px;
        }
        .mobile-date {
            font-size: 11px;
        }
        .mobile-time-price {
            font-size: 12px;
        }
        .mobile-seats {
            font-size: 11px;
        }
        .btn-select-mobile {
            padding: 5px 10px;
            font-size: 11px;
        }
    }
    .selected-trips-summary {
        margin-top: 20px;
        padding: 15px;
        background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
        border-radius: 10px;
        border: 2px solid #1976d2;
    }
    .selected-trips-summary h4 {
        margin: 0 0 15px 0;
        color: #1976d2;
        font-size: 16px;
    }
    .summary-trip {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #fff;
        border-radius: 6px;
        margin-bottom: 10px;
        border-left: 4px solid #1976d2;
    }
    .summary-trip.return { border-left-color: #28a745; }
    .summary-trip-info { flex: 1; }
    .summary-trip-label { font-size: 12px; color: #666; text-transform: uppercase; }
    .summary-trip-detail { font-weight: 600; color: #333; }
    .summary-trip-time { font-size: 18px; color: #dc3545; font-weight: 700; }
    .seat-map-wrapper { margin-top: 20px; }
    .seat-map-section {
        margin-bottom: 30px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 10px;
        border: 2px solid #e9ecef;
    }
    .seat-map-section.outbound { border-color: #1976d2; }
    .seat-map-section.return { border-color: #28a745; }
    .seat-map-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #dee2e6;
    }
    .seat-map-title {
        font-size: 18px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .seat-map-title.outbound { color: #1976d2; }
    .seat-map-title.return { color: #28a745; }
    .seat-map-trip-info {
        text-align: right;
        font-size: 14px;
        color: #666;
    }
    .seat-map-trip-info strong {
        color: #dc3545;
        font-size: 16px;
    }
    .seat-map-container { background: #fff; padding: 15px; border-radius: 10px; }
    .seat-grid-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    .floor-section { margin-bottom: 20px; }
    .floor-tabs { display: flex; border-bottom: 2px solid #dee2e6; margin-bottom: 0; background: #fff; }
    .floor-tab { padding: 12px 24px; cursor: pointer; font-weight: 600; color: #6c757d; border-bottom: 3px solid transparent; transition: all 0.2s; background: #f8f9fa; }
    .floor-tab:hover { color: #1976d2; background: #fff; }
    .floor-tab.active { color: #dc3545; border-bottom-color: #dc3545; background: #fff; }
    .section-header { padding: 10px 15px; margin: 15px 0 10px 0; border-radius: 6px; font-weight: 600; text-align: center; font-size: 14px; }
    .section-header.vip { background: linear-gradient(135deg, #ffc107, #ffca28); color: #000; }
    .section-header.deluxe { background: linear-gradient(135deg, #9c27b0, #ba68c8); color: #fff; }
    .section-header.eco { background: linear-gradient(135deg, #28a745, #34ce57); color: #fff; }
    .floor-content { padding: 15px 0; }
    .floor-title { font-size: 16px; font-weight: bold; margin-bottom: 12px; padding: 10px; background: linear-gradient(135deg, #1976d2, #1565c0); color: white; border-radius: 6px; text-align: center; }
    .seat-grid { display: grid; gap: 4px; justify-content: center; }
    .seat { width: 38px; height: 38px; border: 2px solid #ddd; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 9px; cursor: pointer; transition: all .2s; user-select: none; }
    .seat.available { background: #fff; color: #333; border: 2px solid #ddd; }
    .seat.available:hover { background: #e3f2fd; transform: scale(1.08); border-color: #1976d2; }
    .seat.vip-available { background: #fff9c4; color: #333; border: 2px solid #fdd835; font-weight: bold; }
    .seat.vip-available:hover { background: #fff59d; transform: scale(1.08); }
    .seat.deluxe-available { background: #f3e5f5; color: #333; border: 2px solid #9c27b0; font-weight: bold; }
    .seat.deluxe-available:hover { background: #e1bee7; transform: scale(1.08); }
    .seat.sold { background: #66bb6a; color: #fff; border-color: #4caf50; cursor: not-allowed; }
    .seat.selected { background: #ffc107 !important; color: #000 !important; border: 2px solid #ff9800 !important; transform: scale(1.1); box-shadow: 0 2px 8px rgba(255, 193, 7, 0.5); }
    .seat.locked { background: #ff9800; color: #fff; border-color: #f57c00; cursor: not-allowed; }
    .aisle { width: 10px; }
    .trip-badge {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 15px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        letter-spacing: 0.5px;
    }
    .trip-badge.outbound {
        background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
        color: #fff;
        border-left: 5px solid #0d47a1;
    }
    .trip-badge.return {
        background: linear-gradient(135deg, #388e3c 0%, #1b5e20 100%);
        color: #fff;
        border-left: 5px solid #1b5e20;
    }
    .seat-legend { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; justify-content: center; padding: 12px; background: #fff; border-radius: 8px; border: 1px solid #e0e0e0; }
    .legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; }
    .legend-color { width: 28px; height: 28px; border-radius: 4px; border: 2px solid #ddd; }
    .legend-color.white { background: #fff; border-color: #ddd; }
    .legend-color.vip { background: #fff9c4; border-color: #fdd835; }
    .legend-color.deluxe { background: #f3e5f5; border-color: #9c27b0; }
    .legend-color.green { background: #66bb6a; border-color: #4caf50; }
    .legend-color.yellow { background: #ffc107; border-color: #ff9800; }
    .legend-color.orange { background: #ff9800; border-color: #f57c00; }
    .selected-info { background: #fff; padding: 15px; border-radius: 10px; margin-top: 15px; border: 2px solid #1976d2; display: none; }
    .selected-info.show { display: block; }
    .selected-info h3 { color: #1976d2; margin-bottom: 12px; font-size: 16px; }
    .selected-seats-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
    .selected-seat-tag { background: #ffc107; color: #856404; padding: 6px 12px; border-radius: 15px; font-weight: bold; font-size: 13px; }
    .selected-seat-tag-free { background: #d4edda; color: #155724; border: 2px solid #28a745; padding: 6px 12px; border-radius: 15px; font-weight: bold; font-size: 13px; }
    .total-amount { font-size: 18px; font-weight: bold; color: #e74c3c; text-align: right; margin-top: 12px; padding-top: 12px; border-top: 2px solid #ddd; }
    .passengers-container { margin-top: 20px; }
    
    /* ============================================ */
    /* IMPORT EXCEL SECTION */
    /* ============================================ */
    .import-section {
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
        border: 2px dashed #4caf50;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
        text-align: center;
    }
    .import-section-title {
        color: #2e7d32;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 12px;
    }
    .import-buttons {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .btn-import {
        background: linear-gradient(135deg, #4caf50, #388e3c);
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
    .btn-import:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }
    .btn-download-template {
        background: linear-gradient(135deg, #ff9800, #f57c00);
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }
    .btn-download-template:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
        color: #fff;
    }
    .import-note {
        margin-top: 12px;
        font-size: 12px;
        color: #666;
    }
    .import-file-input {
        display: none;
    }
    .import-result {
        margin-top: 15px;
        padding: 12px;
        border-radius: 8px;
        display: none;
    }
    .import-result.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        display: block;
    }
    .import-result.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        display: block;
    }
    
    /* Mobile responsive - Import Section */
    @media (max-width: 768px) {
        .import-section {
            padding: 12px;
            margin-bottom: 15px;
            border-radius: 8px;
        }
        .import-section-title {
            font-size: 13px;
            margin-bottom: 10px;
        }
        .import-buttons {
            flex-direction: row;
            gap: 8px;
        }
        .btn-import, .btn-download-template {
            padding: 10px 14px;
            font-size: 12px;
            border-radius: 20px;
            gap: 5px;
            flex: 1;
            justify-content: center;
        }
        .import-note {
            display: none; /* Ẩn note trên mobile */
        }
        .import-result {
            margin-top: 10px;
            padding: 8px;
            font-size: 12px;
        }
    }
    
    @media (max-width: 400px) {
        .import-section {
            padding: 10px;
        }
        .import-section-title {
            font-size: 12px;
        }
        .btn-import, .btn-download-template {
            padding: 8px 10px;
            font-size: 11px;
        }
    }
    
    .passenger-card { 
        background: #fff; 
        padding: 0; 
        border-radius: 8px; 
        margin-bottom: 16px; 
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 8px rgba(0,0,0,.05);
        overflow: hidden;
    }
    .passenger-card-header { 
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        padding: 12px 16px;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 0;
    }
    .passenger-card h4 { 
        color: #333; 
        font-size: 15px; 
        margin: 0 0 8px 0;
        font-weight: 600;
    }
    .passenger-card .form-group {
        margin-bottom: 0;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    .passenger-card .form-group:last-child {
        border-bottom: none;
    }
    .passenger-card .form-group label {
        color: #1976d2;
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 6px;
    }
    .passenger-card .required {
        color: #dc3545;
        font-weight: 700;
    }
    .autofill-checkbox {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 8px 12px;
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border-radius: 6px;
        margin-top: 8px;
        border: 1px solid #90caf9;
        transition: all 0.2s;
    }
    .autofill-checkbox:hover {
        background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    }
    .autofill-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #1976d2;
        cursor: pointer;
    }
    .autofill-label {
        font-size: 13px;
        color: #1565c0;
        font-weight: 500;
    }
    .pax-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-bottom: 1px solid #f0f0f0;
    }
    .pax-form-row .form-group {
        border-right: 1px solid #f0f0f0;
        border-bottom: none !important;
    }
    .pax-form-row .form-group:last-child {
        border-right: none;
    }
    @media (max-width: 600px) {
        .pax-form-row {
            grid-template-columns: 1fr;
        }
        .pax-form-row .form-group {
            border-right: none;
            border-bottom: 1px solid #f0f0f0 !important;
        }
        .pax-form-row .form-group:last-child {
            border-bottom: none !important;
        }
        .autofill-checkbox {
            flex-wrap: wrap;
        }
        .autofill-label {
            font-size: 12px;
        }
    }
    .validation-msg {
        font-size: 12px;
        margin-top: 4px;
        padding: 2px 0;
        display: none;
        align-items: center;
        gap: 4px;
    }
    .validation-msg.show {
        display: flex;
    }
    .validation-msg.valid {
        color: #28a745;
    }
    .validation-msg.invalid {
        color: #dc3545;
    }
    .validation-msg.warning {
        color: #f57c00;
    }
    .passenger-card input.valid,
    .passenger-card select.valid {
        border-bottom-color: #28a745 !important;
        background-color: #f8fff8;
    }
    .passenger-card input.invalid,
    .passenger-card select.invalid {
        border-bottom-color: #dc3545 !important;
        background-color: #fff8f8;
    }
    .passenger-card input.warning,
    .passenger-card select.warning {
        border-bottom-color: #f57c00 !important;
        background-color: #fffbf0;
    }
    .passenger-card input,
    .passenger-card select {
        border: none;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
        padding: 8px 0;
        font-size: 14px;
        background: transparent;
    }
    .passenger-card input:focus,
    .passenger-card select:focus {
        border-bottom-color: #1976d2;
        box-shadow: none;
        outline: none;
    }
    .passenger-card input::placeholder {
        color: #999;
    }
    .bill-summary { 
        background: #fff; 
        padding: 20px; 
        border-radius: 12px; 
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 10px rgba(0,0,0,.05);
    }
    .bill-row { 
        display: flex; 
        justify-content: space-between; 
        padding: 10px 0; 
        border-bottom: 1px solid #f0f0f0; 
        font-size: 14px; 
    }
    .bill-row:last-child { border-bottom: none; }
    .bill-value { font-weight: 600; color: #333; }
    .bill-section {
        margin-top: 15px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #1976d2;
    }
    .bill-section.return { border-left-color: #28a745; }
    .bill-section-title {
        font-weight: 700;
        color: #1976d2;
        margin-bottom: 12px;
        font-size: 16px;
        padding-bottom: 8px;
        border-bottom: 1px dashed #dee2e6;
    }
    .bill-section.return .bill-section-title { color: #28a745; }
    .bill-seats-header {
        font-weight: 600;
        color: #333;
        margin-top: 12px;
        margin-bottom: 8px;
        font-size: 14px;
    }
    .bill-seats-list {
        background: #fff;
        border-radius: 6px;
        padding: 10px;
    }
    .bill-seat-item {
        display: grid;
        grid-template-columns: 60px 80px 1fr auto;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
        align-items: center;
    }
    .bill-seat-item:last-child { border-bottom: none; }
    .seat-code { font-weight: 700; color: #1976d2; }
    .seat-class { color: #666; font-size: 12px; }
    .seat-age { color: #28a745; font-size: 12px; }
    .seat-price { font-weight: 600; color: #dc3545; text-align: right; }
    .bill-subtotal {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 2px solid #dee2e6;
        font-weight: 700;
    }
    .bill-subtotal span:last-child { color: #dc3545; font-size: 16px; }
    .bill-subtotal.return span:last-child { color: #28a745; }
    .passengers-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .passenger-item {
        display: flex;
        gap: 12px;
        padding: 12px;
        background: #fff;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }
    .pax-number {
        width: 30px;
        height: 30px;
        background: #1976d2;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
        flex-shrink: 0;
    }
    .pax-info { flex: 1; }
    .pax-name { font-weight: 600; color: #333; font-size: 15px; margin-bottom: 4px; }
    .pax-details { 
        display: flex; 
        flex-wrap: wrap; 
        gap: 12px; 
        font-size: 13px; 
        color: #666; 
        margin-bottom: 4px;
    }
    .pax-seats { font-size: 13px; color: #1976d2; }
    .bill-grand-total {
        margin-top: 20px;
        padding: 20px;
        background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
        border-radius: 10px;
        text-align: center;
        color: #fff;
    }
    .grand-total-label {
        font-size: 14px;
        margin-bottom: 8px;
        opacity: 0.9;
    }
    .grand-total-amount {
        font-size: 28px;
        font-weight: 700;
    }
    @media (max-width: 768px) {
        .bill-seat-item {
            grid-template-columns: 50px 1fr auto;
        }
        .seat-class { display: none; }
        .pax-details { flex-direction: column; gap: 4px; }
    }
    .payment-section {
        margin-top: 25px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
        padding: 25px;
        border: 2px solid #1976d2;
    }
    .payment-header {
        text-align: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px dashed #dee2e6;
    }
    .payment-header h3 {
        color: #1976d2;
        margin: 0 0 8px 0;
        font-size: 20px;
    }
    .payment-header p {
        color: #666;
        margin: 0;
        font-size: 14px;
    }
    .payment-content {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 30px;
        align-items: start;
    }
    .qr-section {
        text-align: center;
    }
    .qr-code-wrapper {
        background: #fff;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,.1);
        display: inline-block;
    }
    .qr-code-wrapper img {
        width: 200px;
        height: 200px;
        display: block;
    }
    .qr-note {
        margin-top: 10px;
        font-size: 13px;
        color: #666;
    }
    .bank-info {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,.05);
    }
    .bank-logo {
        text-align: center;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    .bank-detail {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .bank-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .bank-row .label {
        color: #666;
        font-size: 14px;
        min-width: 120px;
    }
    .bank-row .value {
        font-weight: 600;
        color: #333;
        font-size: 15px;
        flex: 1;
    }
    .bank-row .value.account-number {
        font-family: 'Courier New', monospace;
        font-size: 18px;
        color: #1976d2;
        letter-spacing: 1px;
    }
    .bank-row .value.amount {
        color: #dc3545;
        font-size: 20px;
        font-weight: 700;
    }
    .bank-row .value.transfer-content {
        font-family: 'Courier New', monospace;
        color: #1976d2;
        background: #e3f2fd;
        padding: 5px 10px;
        border-radius: 4px;
    }
    .btn-copy {
        background: #e9ecef;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s;
    }
    .btn-copy:hover {
        background: #1976d2;
        color: #fff;
    }
    .payment-notice {
        margin-top: 20px;
        background: #fff3cd;
        border: 1px solid #ffc107;
        border-radius: 8px;
        padding: 15px;
    }
    .payment-notice p {
        margin: 0 0 10px 0;
        color: #856404;
    }
    .payment-notice ul {
        margin: 0;
        padding-left: 20px;
        color: #856404;
    }
    .payment-notice li {
        margin-bottom: 5px;
        font-size: 14px;
    }
    .booking-code-display {
        margin-top: 20px;
        text-align: center;
        background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
        color: #fff;
        padding: 20px;
        border-radius: 10px;
    }
    .booking-code-display span {
        font-size: 14px;
        display: block;
        margin-bottom: 8px;
    }
    .booking-code-display strong {
        font-size: 28px;
        letter-spacing: 3px;
        font-family: 'Courier New', monospace;
    }
    .btn-confirm-payment {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: #fff;
        border: none;
        padding: 18px 40px;
        border-radius: 50px;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
        text-transform: uppercase;
        letter-spacing: 1px;
        animation: pulse-green 2s infinite;
        position: relative;
    }
    @keyframes pulse-green {
        0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
        70% { box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
        100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
    }
    .btn-confirm-payment:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
        animation: none;
    }
    .btn-confirm-payment:disabled {
        background: #6c757d;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
        animation: none;
    }
    .payment-steps {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    .payment-step {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 15px;
        background: #f8f9fa;
        border-radius: 25px;
        font-size: 14px;
        color: #666;
        border: 2px solid #e9ecef;
        transition: all 0.3s;
    }
    .payment-step.active {
        background: #e8f5e9;
        border-color: #28a745;
        color: #28a745;
        font-weight: 600;
    }
    .payment-step.completed {
        background: #28a745;
        border-color: #28a745;
        color: #fff;
    }
    .payment-step-number {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #dee2e6;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 12px;
    }
    .payment-step.active .payment-step-number {
        background: #28a745;
        color: #fff;
    }
    .payment-step.completed .payment-step-number {
        background: #fff;
        color: #28a745;
    }
    .reminder-popup {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
        color: #fff;
        padding: 15px 20px;
        border-radius: 12px;
        box-shadow: 0 5px 25px rgba(0,0,0,0.3);
        z-index: 9999;
        max-width: 320px;
        animation: slideIn 0.5s ease;
        display: none;
    }
    .reminder-popup.show { display: block; }
    @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    .reminder-popup h4 { margin: 0 0 8px 0; font-size: 16px; }
    .reminder-popup p { margin: 0 0 12px 0; font-size: 14px; opacity: 0.95; }
    .reminder-popup button {
        background: #fff;
        color: #ee5a5a;
        border: none;
        padding: 10px 20px;
        border-radius: 20px;
        font-weight: 700;
        cursor: pointer;
        width: 100%;
    }
    .reminder-close {
        position: absolute;
        top: 8px;
        right: 12px;
        background: none;
        border: none;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        opacity: 0.8;
        width: auto !important;
        padding: 0 !important;
    }
    .sticky-confirm-btn {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        padding: 12px 20px;
        z-index: 9998;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
        animation: slideUp 0.3s ease;
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .sticky-confirm-btn.show { display: block; }
    .sticky-confirm-btn button {
        width: 100%;
        background: #fff;
        color: #28a745;
        border: none;
        padding: 14px 20px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .sticky-confirm-btn .sub-text {
        color: #fff;
        font-size: 12px;
        text-align: center;
        margin-top: 6px;
        opacity: 0.95;
    }
    @media (max-width: 768px) {
        .sticky-confirm-btn.show {
            display: block;
        }
        #step4 { padding-bottom: 100px; }
    }
    @media (min-width: 769px) {
        .sticky-confirm-btn { display: none !important; }
    }
    .payment-success-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        animation: fadeIn 0.3s;
    }
    .payment-success-popup .popup-content {
        background: #fff;
        padding: 40px;
        border-radius: 20px;
        text-align: center;
        max-width: 450px;
        width: 90%;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .payment-success-popup .popup-icon {
        font-size: 64px;
        margin-bottom: 20px;
    }
    .payment-success-popup h3 {
        color: #28a745;
        margin: 0 0 15px 0;
        font-size: 24px;
    }
    .payment-success-popup p {
        color: #666;
        margin: 0 0 10px 0;
        font-size: 15px;
        line-height: 1.6;
    }
    .btn-zalo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%);
        color: #fff;
        text-decoration: none;
        padding: 15px 30px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 16px;
        margin: 15px 0;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(0, 104, 255, 0.4);
    }
    .btn-zalo:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 104, 255, 0.5);
    }
    .btn-close-popup {
        display: block;
        width: 100%;
        margin-top: 15px;
        padding: 12px;
        background: #f8f9fa;
        border: 2px solid #dee2e6;
        border-radius: 8px;
        font-size: 14px;
        color: #666;
        cursor: pointer;
        transition: all 0.2s;
    }
    .btn-close-popup:hover {
        background: #e9ecef;
        border-color: #adb5bd;
    }
    @media (max-width: 768px) {
        .payment-section {
            display: flex;
            flex-direction: column;
        }
        .payment-header { order: 1; }
        .payment-content {
            order: 2;
            display: flex;
            flex-direction: column;
            grid-template-columns: 1fr;
        }
        .payment-content .bank-info {
            order: 1;
            margin-bottom: 10px;
        }
        .payment-content .qr-section {
            order: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 5px 0;
            width: 100%;
            padding: 0 10px;
            box-sizing: border-box;
        }
        .payment-confirm-section { 
            order: 3; 
            margin-top: 10px !important;
        }
        .payment-notice { 
            order: 4; 
            margin-top: 15px;
        }
        .payment-success-popup { order: 5; }
        .qr-code-wrapper {
            width: 100%;
            max-width: 280px;
            padding: 10px;
            margin: 0 auto;
            box-sizing: border-box;
        }
        .qr-code-wrapper img {
            width: 100%;
            max-width: 260px;
            height: auto;
            display: block;
            margin: 0 auto;
        }
        .bank-row {
            flex-wrap: wrap;
        }
        .bank-row .label {
            min-width: 100%;
            margin-bottom: 4px;
        }
        #step4 { padding-bottom: 80px; }
    }
    
    /* Extra small screens - QR code nhỏ hơn */
    @media (max-width: 400px) {
        .qr-code-wrapper {
            max-width: 240px;
            padding: 8px;
        }
        .qr-code-wrapper img {
            max-width: 220px;
        }
        .payment-section {
            padding: 15px 10px;
        }
        .payment-header h3 {
            font-size: 16px;
        }
        .payment-header p {
            font-size: 12px;
        }
        .bank-info {
            padding: 15px 10px;
        }
        .bank-row .value {
            font-size: 13px;
            word-break: break-all;
        }
        .bank-row .value.account-number {
            font-size: 14px;
        }
        .bank-row .value.amount {
            font-size: 16px;
        }
        .btn-confirm-payment {
            font-size: 14px;
            padding: 14px 20px;
        }
    }
    
    /* Rất nhỏ - iPhone SE */
    @media (max-width: 350px) {
        .qr-code-wrapper {
            max-width: 200px;
            padding: 6px;
        }
        .qr-code-wrapper img {
            max-width: 180px;
        }
        .payment-section {
            padding: 12px 8px;
        }
    }
    .notification { position: fixed; top: 15px; left: 15px; right: 15px; padding: 12px 15px; border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,.2); z-index: 10000; display: none; }
    .notification.show { display: block; animation: slideDown .3s; }
    @keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .notification.success { background: #28a745; color: #fff; }
    .notification.error { background: #dc3545; color: #fff; }
    .notification.info { background: #17a2b8; color: #fff; }
    .loading { text-align: center; padding: 30px; color: #1976d2; font-size: 16px; }
    .loading::after { content: '...'; animation: dots 1.5s infinite; }
    @keyframes dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }
    .empty-state { text-align: center; padding: 40px 20px; color: #999; }
    .empty-state-icon { font-size: 48px; margin-bottom: 15px; }
    .checkbox-group { margin-bottom: 15px; }
    .checkbox-label {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 12px 15px;
        background: #f8f9fa;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        transition: all 0.2s;
        user-select: none;
    }
    .checkbox-label:hover { border-color: #1976d2; background: #f0f4ff; }
    .checkbox-label input[type="checkbox"] { display: none; }
    .checkbox-custom {
        width: 22px;
        height: 22px;
        border: 2px solid #dee2e6;
        border-radius: 4px;
        margin-right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
        background: #1976d2;
        border-color: #1976d2;
    }
    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
        content: '✓';
        color: white;
        font-weight: bold;
        font-size: 14px;
    }
    .checkbox-text { font-size: 15px; font-weight: 500; color: #333; }
    @media (max-width: 768px) {
        body { padding: 0; background: #fff; }
        .container { border-radius: 0; box-shadow: none; }
        .step-content { padding: 10px; }
        .seat-map-section { 
            border: none; 
            padding: 10px; 
            margin-bottom: 15px;
            background: #fff;
        }
        .seat-map-container { padding: 10px; }
        .form-row, .form-row-3 { grid-template-columns: 1fr; }
        .seat { width: 32px; height: 32px; font-size: 8px; }
        .aisle { width: 8px; }
        .seat-grid { gap: 3px; }
        .trips-table { font-size: 12px; }
        .trips-table th, .trips-table td { padding: 10px 6px; }
        .btn-select { padding: 8px 16px; font-size: 12px; }
        .departure-time, .seats-cell, .price-cell { font-size: 16px; }
        /* Pill buttons vẫn nằm ngang trên mobile */
        .trip-type-selector { 
            flex-direction: row; 
            padding: 3px;
        }
        .trip-type-btn {
            padding: 8px 12px;
            font-size: 13px;
        }
        .seat-map-header { flex-direction: column; gap: 10px; }
        .seat-map-trip-info { text-align: left; }
        .legend-color { width: 24px; height: 24px; }
        .legend-item { font-size: 11px; gap: 4px; }
        .seat-legend { gap: 10px; padding: 10px; }
        .btn-search { 
            width: 100%; 
            font-size: 16px; 
            padding: 16px 20px; 
            border-radius: 8px;
        }
        .pax-form-row-3 { grid-template-columns: 1fr; }
        .pax-form-row-2 { grid-template-columns: 1fr; }
        .pax-form-row-3 .form-group,
        .pax-form-row-2 .form-group {
            border-right: none;
            border-bottom: 1px solid #f0f0f0 !important;
        }
        .passenger-card { margin: 0 0 15px 0; }
    }
    .invoice-form {
        background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 50%, #fff 100%);
        border: 2px solid #b8d4f0;
        border-radius: 16px;
        padding: 24px;
        margin: 20px 0;
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
        position: relative;
        overflow: hidden;
    }
    .invoice-form::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #0d6efd, #6610f2, #0d6efd);
    }
    .invoice-form-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px dashed #b8d4f0;
    }
    .invoice-form-header h4 {
        color: #0d6efd;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 10px 0;
        text-align: center;
        letter-spacing: 0.5px;
    }
    .invoice-note {
        color: #666;
        font-size: 13px;
        line-height: 1.6;
        margin: 0;
        text-align: center;
    }
    .invoice-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .invoice-form-grid .form-group {
        margin: 0;
    }
    .invoice-form-grid .form-group.full-width {
        grid-column: 1 / -1;
    }
    .invoice-form-grid label {
        display: block;
        font-weight: 500;
        color: #333;
        margin-bottom: 6px;
        font-size: 14px;
    }
    .invoice-form-grid label .required {
        color: #dc3545;
    }
    .invoice-form-grid input {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid #c5d9ed;
        border-radius: 10px;
        font-size: 14px;
        transition: all 0.2s;
        box-sizing: border-box;
        background: #fff;
    }
    .invoice-form-grid input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
        outline: none;
        background: #fff;
    }
    .invoice-form-grid input::placeholder {
        color: #9bb8d4;
    }
    .invoice-form-grid .form-hint {
        color: #888;
        font-size: 12px;
        margin-top: 4px;
        display: block;
    }
    @media (max-width: 600px) {
        .invoice-form-grid {
            grid-template-columns: 1fr;
        }
        .invoice-form-header h4 {
            font-size: 14px;
        }
        .invoice-note {
            font-size: 12px;
        }
    }

    /* ============================================ */
    /* VALIDATION STYLES - Hiển thị lỗi rõ ràng */
    /* ============================================ */
    .form-group.has-error input,
    .form-group.has-error select,
    .form-group.has-error .date-input-display {
        border-color: #dc3545 !important;
        background-color: #fff5f5 !important;
        animation: shake 0.5s ease;
    }
    
    .form-group.has-error label {
        color: #dc3545 !important;
    }
    
    .error-message {
        display: none;
        color: #dc3545;
        font-size: 12px;
        margin-top: 5px;
        padding: 6px 10px;
        background: #fff5f5;
        border-left: 3px solid #dc3545;
        border-radius: 0 4px 4px 0;
        animation: fadeIn 0.3s ease;
    }
    
    .form-group.has-error .error-message {
        display: block;
    }
    
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        20% { transform: translateX(-6px); }
        40% { transform: translateX(6px); }
        60% { transform: translateX(-4px); }
        80% { transform: translateX(4px); }
    }
    
    /* ============================================ */
    /* MOBILE DROPDOWN FIX - Không bị tràn */
    /* ============================================ */
    @media (max-width: 768px) {
        .form-group select {
            max-width: 100%;
            font-size: 14px;
            padding: 10px 35px 10px 10px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 12px;
        }
        
        .form-group select option {
            font-size: 14px;
            padding: 10px;
        }
        
        #routeId {
            font-size: 13px;
        }
        
        #passengerCount {
            font-size: 14px;
        }
    }
    
    @media (max-width: 400px) {
        .form-group select {
            font-size: 13px;
            padding: 8px 30px 8px 8px;
        }
        
        #routeId {
            font-size: 12px;
        }
    }

    /* ==================== */
    /* ZALO CARD - Popup Style */
    /* ==================== */
    .zalo-card {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border: 2px solid #0068ff;
        border-radius: 16px;
        padding: 20px;
        margin: 20px auto;
        max-width: 280px;
    }
    .zalo-card .avatar-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }
    .zalo-card .avatar {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0068ff, #00a2ff);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        box-shadow: 0 4px 15px rgba(0, 104, 255, 0.3);
    }
    .zalo-card .staff-info { flex: 1; }
    .zalo-card .staff-name {
        font-weight: 700;
        color: #0052cc;
        font-size: 17px;
        margin-bottom: 4px;
    }
    .zalo-card .staff-status {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #28a745;
        font-weight: 600;
    }
    .zalo-card .staff-status::before {
        content: '';
        width: 10px;
        height: 10px;
        background: #28a745;
        border-radius: 50%;
        box-shadow: 0 0 8px #28a745;
        animation: blink-status 1.5s infinite;
    }
    @keyframes blink-status {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
    .zalo-card .response-time {
        text-align: center;
        font-size: 13px;
        color: #666;
        margin-bottom: 15px;
    }
    .zalo-card .response-time span {
        color: #1976d2;
        font-weight: 600;
    }

    /* ==================== */
    /* CHIPS - Chọn nhanh hành khách */
    /* ==================== */
    .quick-select-section {
        margin-bottom: 20px;
        display: none;
    }
    .quick-select-section.has-data { display: block; }
    .quick-select-header {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
    }
    .quick-select-title {
        font-size: 14px;
        font-weight: 600;
        color: #1976d2;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .chips-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .pax-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #f5f5f5;
        border: 2px solid #e0e0e0;
        padding: 10px 14px;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 14px;
    }
    .pax-chip:hover {
        border-color: #1976d2;
        background: #e3f2fd;
    }
    .pax-chip.selected {
        background: #1976d2;
        border-color: #1976d2;
        color: #fff;
    }
    .pax-chip .chip-icon { font-size: 16px; }
    .pax-chip .chip-name {
        font-weight: 600;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .pax-chip .chip-age { font-size: 12px; opacity: 0.8; }
    .pax-chip .chip-delete {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgba(0,0,0,0.1);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #666;
        margin-left: 4px;
        transition: all 0.2s;
    }
    .pax-chip .chip-delete:hover { background: #e53935; color: #fff; }
    .pax-chip.selected .chip-delete { background: rgba(255,255,255,0.3); color: #fff; }
    .pax-chip.selected .chip-delete:hover { background: #fff; color: #e53935; }
    .apply-chips-btn {
        margin-top: 12px;
        padding: 12px 24px;
        background: linear-gradient(135deg, #ff6b35, #f7931e);
        color: #fff;
        border: 2px solid #fff;
        border-radius: 25px;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
        animation: pulse-btn 2s infinite;
    }
    @keyframes pulse-btn {
        0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4); }
        50% { transform: scale(1.03); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6); }
    }
    .apply-chips-btn:hover { 
        transform: scale(1.05); 
        box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5); 
        background: linear-gradient(135deg, #ff5722, #ff6b35);
    }
    @media (max-width: 500px) { .pax-chip .chip-name { max-width: 80px; } }

    /* ============================================
       INFANT TICKET OPTION - Box vàng mua vé cho bé
       ============================================ */
    .infant-ticket-option {
        margin-top: 8px;
        padding: 10px 12px;
        background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
        border: 2px dashed #ffc107;
        border-radius: 8px;
    }
    .infant-age-text {
        font-size: 13px;
        font-weight: 600;
        color: #2e7d32;
        margin-bottom: 8px;
    }
    .infant-checkbox-label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        color: #e65100;
    }
    .infant-checkbox-label input[type="checkbox"] {
        display: none;
    }
    .infant-checkmark {
        width: 18px;
        height: 18px;
        border: 2px solid #ff9800;
        border-radius: 4px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .infant-checkbox-label input[type="checkbox"]:checked + .infant-checkmark {
        background: #ff9800;
        border-color: #ff9800;
    }
    .infant-checkbox-label input[type="checkbox"]:checked + .infant-checkmark::after {
        content: '✓';
        color: #fff;
        font-weight: bold;
        font-size: 11px;
    }
    .infant-text {
        flex: 1;
        line-height: 1.3;
    }
    .infant-checkbox-label:hover .infant-checkmark {
        border-color: #f57c00;
        box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
    }

