/* Lao Bus Online Ticket Platform - Styles */

/* Import Lao Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    text-transform: capitalize;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

:root {
    --primary-color: #00BFFF;
    --secondary-color: #E0F7FA;
    --accent-color: #87CEEB;
    --dark-color: #1976D2;
    --light-color: #FFFFFF;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    --text-dark: #1565C0;
    --text-light: #64B5F6;
    --border-color: #B3E5FC;
    --shadow: 0 2px 8px rgba(0, 191, 255, 0.15);
    --shadow-lg: 0 4px 16px rgba(0, 191, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Lao', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Noto Sans Lao', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 50%, #E0F7FA 100%);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #00BFFF 0%, #1976D2 50%, #1565C0 100%);
    color: var(--light-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
}

nav a:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.menu-icon {
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
}

/* Make My Account icon yellow - Desktop */
.dropdown-toggle .menu-icon {
    filter: sepia(100%) saturate(200%) hue-rotate(0deg) brightness(1.2);
}

/* Make My Account icon yellow - Mobile */
.dropdown-toggle-mobile .nav-icon {
    filter: sepia(100%) saturate(200%) hue-rotate(0deg) brightness(1.2);
}

nav a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Desktop Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    border-radius: 0;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(0, 191, 255, 0.1) 100%);
    opacity: 1;
    padding-left: 1.5rem;
}

.dropdown-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #00BFFF 0%, #1976D2 50%, #1565C0 100%);
    box-shadow: 0 -2px 10px rgba(0, 191, 255, 0.3);
    z-index: 1000;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
    min-width: 60px;
    flex: 1;
    max-width: 120px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--light-color);
    background: rgba(255, 255, 255, 0.15);
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

/* Mobile Dropdown Menu */
.nav-dropdown-mobile {
    position: relative;
    flex: 1;
    max-width: 120px;
}

.dropdown-toggle-mobile {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu-mobile {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    margin-bottom: 0.5rem;
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    opacity: 0;
    border: 1px solid rgba(0, 191, 255, 0.1);
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 0.5rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nav-dropdown-mobile.active .dropdown-menu-mobile {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    gap: 0.75rem;
    border-radius: 0;
    min-width: auto;
    flex: none;
    max-width: none;
    min-height: 52px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-menu-mobile .dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(0, 191, 255, 0.1) 100%);
    color: var(--text-dark);
    padding-left: 1.5rem;
    transform: translateX(4px);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-item .nav-icon {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.dropdown-item .nav-label {
    font-size: 0.85rem;
    text-align: left;
}

.main-content {
    padding-bottom: 80px; /* Space for bottom nav on mobile */
    padding-top: 1rem;
    min-height: calc(100vh - 200px);
}

@media (min-width: 769px) {
    .main-content {
        padding-bottom: 0;
        padding-top: 2rem;
    }
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--light-color);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Noto Sans Lao', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-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='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
    padding-right: 2rem;
    min-width: 120px;
}

.lang-select:hover {
    background-color: rgba(255, 255, 255, 0.3);
    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='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
}

.lang-select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.lang-select option {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(25, 118, 210, 0.7), rgba(21, 101, 192, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%2387CEEB" width="1200" height="600"/><path d="M0,300 Q300,200 600,300 T1200,300" stroke="%23E0F7FA" stroke-width="3" fill="none"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    padding: 4rem 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==================== MODERN HOME PAGE STYLES ==================== */

/* Modern Hero Section */
.hero-modern {
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 30%, #E0F4FF 60%, #F0F8FF 100%);
    color: #1565C0;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 120px 80px at 15% 20%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 150px 100px at 25% 35%, rgba(255,255,255,0.7) 0%, transparent 70%),
        radial-gradient(ellipse 100px 60px at 70% 15%, rgba(255,255,255,0.8) 0%, transparent 70%),
        radial-gradient(ellipse 180px 120px at 85% 30%, rgba(255,255,255,0.6) 0%, transparent 70%),
        radial-gradient(ellipse 130px 90px at 60% 25%, rgba(255,255,255,0.7) 0%, transparent 70%);
    animation: cloudDrift 30s ease-in-out infinite;
}

@keyframes cloudDrift {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(20px); opacity: 0.9; }
}

@keyframes heroGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    color: #0077B6;
}

.badge-icon {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
    color: #0D47A1;
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}

.hero-title .highlight {
    background: linear-gradient(to right, #0077B6, #00B4D8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #1976D2;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.7);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,119,182,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0077B6;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 1;
    color: #1565C0;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-bus {
    position: absolute;
    font-size: 4rem;
    top: 15%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.5;
    filter: drop-shadow(0 2px 4px rgba(0,119,182,0.3));
}

.floating-ticket {
    position: absolute;
    font-size: 3rem;
    top: 70%;
    right: 15%;
    animation: float 5s ease-in-out infinite 1s;
    opacity: 0.5;
    filter: drop-shadow(0 2px 4px rgba(0,119,182,0.3));
}

.floating-map {
    position: absolute;
    font-size: 3.5rem;
    bottom: 20%;
    left: 15%;
    animation: float 7s ease-in-out infinite 2s;
    opacity: 0.5;
    filter: drop-shadow(0 2px 4px rgba(0,119,182,0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Enhanced Date Picker */
.label-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.date-picker-wrapper-enhanced {
    position: relative;
}

.date-display-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    box-shadow: 0 2px 8px rgba(0,191,255,0.1);
}

.date-display-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,191,255,0.2);
    border-color: var(--dark-color);
}

.date-display-box.has-value {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-color: var(--success-color);
}

.date-display-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.date-display-box:not(.has-value) .date-display-text {
    color: #999;
    font-weight: 400;
}

.calendar-icon-large {
    font-size: 2rem;
    animation: calendarBounce 2s ease-in-out infinite;
}

@keyframes calendarBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modern-date-input-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.quick-date-selector {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
    border-radius: 12px;
}

.quick-date-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-icon {
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.quick-date-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.quick-date-btn-modern {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.quick-date-btn-modern:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,191,255,0.2);
}

.quick-date-btn-modern.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    border-color: var(--dark-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,191,255,0.4);
}

.quick-day-icon {
    font-size: 1.8rem;
}

.quick-date-btn-modern.active .quick-day-icon {
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.quick-day-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,191,255,0.3);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounceIcon 2s ease-in-out infinite;
}

.feature-card:nth-child(even) .feature-icon {
    animation-delay: 1s;
}

@keyframes bounceIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Suggestions Section */
.suggestions-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.suggestion-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.suggestion-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.suggestion-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.suggestion-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
    background: white;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.step-card {
    background: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    color: white;
    flex: 1;
    min-width: 200px;
    max-width: 220px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.step-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.4);
}

.step-number {
    background: rgba(255,255,255,0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-content p {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.4;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Popular Routes Section */
.popular-routes-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #E3F2FD 0%, #81D4FA 50%, #4FC3F7 100%);
}

.popular-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.route-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.route-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.route-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.route-badge.hot {
    background: linear-gradient(135deg, #ff9068 0%, #fd746c 100%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.route-from, .route-to {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.route-arrow {
    font-size: 1.5rem;
    animation: moveArrow 2s ease-in-out infinite;
}

@keyframes moveArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.route-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 2px dashed #e0e0e0;
}

.route-time, .route-price {
    font-size: 1rem;
    color: #666;
}

.route-price {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #E0F4FF 0%, #B0E0E6 50%, #87CEEB 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 20%);
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e8ebf0 0%, #b8c5d6 20%);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 1.5rem 2rem;
    border-top: 2px solid #e0e0e0;
}

/* ==================== MODERN SEARCH PAGE STYLES ==================== */

/* Search Page Header */
.search-page-header {
    background: linear-gradient(135deg, #87CEEB 0%, #00B4D8 50%, #0077B6 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: headerPulse 8s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.search-icon-large {
    font-size: 3rem;
    display: inline-block;
    animation: searchBounce 2s ease-in-out infinite;
}

@keyframes searchBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.search-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.search-page-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Quick Filters */
.quick-filters-section {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-filters-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fire-icon {
    font-size: 1.5rem;
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.quick-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-filter-btn {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-dark);
}

.quick-filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,191,255,0.3);
}

.route-mini {
    font-size: 0.95rem;
}

/* Modern Search Form */
.modern-search-form {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.search-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-form-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.search-form-desc {
    color: #666;
    font-size: 1rem;
}

.btn-search-modern {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    transition: all 0.3s ease;
}

.btn-search-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,191,255,0.4);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Booking Tips Compact */
.booking-tips-compact {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.tips-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tip-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tip-icon {
    font-size: 1.5rem;
}

.tip-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
}

/* Modern Results */
.modern-results {
    margin-top: 3rem;
    padding-bottom: 3rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-icon {
    font-size: 2rem;
}

.results-count {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Results Filters */
.results-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-icon {
    font-size: 1.2rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 1.5rem;
}

.result-card-modern {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.result-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.result-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hot-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.route-cities {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.city-from, .city-to {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.route-arrow-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.route-meta {
    margin-bottom: 1.5rem;
}

.bus-type-badge {
    background: #f0f0f0;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* Result Times */
.result-times {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1.5rem 0;
    border-top: 2px dashed #e0e0e0;
    border-bottom: 2px dashed #e0e0e0;
    margin-bottom: 1.5rem;
}

.time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.time-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.time-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.time-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.time-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.time-duration {
    font-size: 1.5rem;
}

/* Result Footer */
.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.seat-availability {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seat-icon {
    font-size: 1.5rem;
}

.seat-text {
    font-weight: 600;
    color: var(--text-dark);
}

.text-warning {
    color: var(--warning-color);
}

.seat-status-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.seat-status-badge.status-few {
    background: #fff3cd;
    color: #856404;
}

.seat-status-badge.status-limited {
    background: #ffe6e6;
    color: #c62828;
}

.result-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.price-display {
    text-align: right;
}

.price-amount {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success-color);
}

.price-label {
    font-size: 0.85rem;
    color: #888;
}

.btn-select-seats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-select-seats:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,191,255,0.4);
}

/* No Results */
.no-results-card {
    background: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.no-results-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results-card p {
    color: #888;
}

/* Modern Seat Selection */
.modern-seat-selection {
    padding: 3rem 0;
}

/* Progress Indicator */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.progress-step.completed .progress-circle {
    background: var(--success-color);
    color: white;
}

.progress-step.active .progress-circle {
    background: var(--primary-color);
    color: white;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.progress-line {
    width: 100px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 1rem;
}

.progress-line.completed {
    background: var(--success-color);
}

/* Seat Selection Header */
.seat-selection-header {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-back-modern {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.btn-back-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.seat-icon-large {
    font-size: 3rem;
}

.seat-selection-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.seat-selection-desc {
    color: #888;
    font-size: 1.1rem;
}

/* Seat Map Container */
.seat-map-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.seat-map-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.bus-front-indicator {
    background: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
    color: white;
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    text-align: center;
    margin: -2rem -2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
}

.bus-icon {
    font-size: 1.5rem;
}

.seat-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.seat {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.seat.available {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.seat.available:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,191,255,0.3);
}

.seat.selected {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--dark-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,191,255,0.3);
}

.seat.booked {
    background: #e0e0e0;
    color: #999;
    border: 2px solid #ccc;
    cursor: not-allowed;
}

/* Seat Legend Modern */
.seat-legend-modern {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 12px;
}

.legend-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-seat {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.available-demo {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.selected-demo {
    background: var(--primary-color);
    border: 2px solid var(--dark-color);
}

.booked-demo {
    background: #e0e0e0;
    border: 2px solid #ccc;
}

/* Booking Summary Card */
.booking-summary-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-icon {
    font-size: 1.5rem;
}

.summary-content {
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-divider {
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 1rem 0;
}

.summary-item.total {
    border-bottom: none;
    padding-top: 1rem;
}

.summary-value-total {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success-color);
}

.btn-book-modern {
    width: 100%;
    background: linear-gradient(135deg, var(--success-color) 0%, #388e3c 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 15px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-book-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76,175,80,0.4);
}

.btn-book-modern:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.booking-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.note-icon {
    font-size: 1.2rem;
}

/* Search Form */
.search-form {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--light-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans Lao', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    background-color: var(--light-color);
}

.form-group input:not([type="date"]),
.form-group select,
.form-group textarea {
    min-height: 44px; /* Better touch target */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00BFFF;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

/* Modern Date Picker */
.date-picker-wrapper {
    position: relative;
    width: 100%;
}

.date-picker-wrapper.date-focused .modern-date-input {
    transform: translateY(-1px);
}

.modern-date-input {
    padding: 0.875rem 3rem 0.875rem 1rem !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: var(--text-dark) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-height: 52px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.modern-date-input:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.15) !important;
    transform: translateY(-1px);
}

.modern-date-input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.15), 0 4px 16px rgba(0, 191, 255, 0.2) !important;
    background: var(--light-color) !important;
    transform: translateY(-1px);
}

.modern-date-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.date-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.3s ease;
}

.modern-date-input:focus + .date-icon {
    transform: translateY(-50%) scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 191, 255, 0.3));
}

.quick-date-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.quick-date-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: var(--light-color);
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: 'Noto Sans Lao', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quick-date-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.25);
}

.quick-date-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 191, 255, 0.2);
}

.quick-date-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--light-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
}

/* Date input styling for different browsers */
.modern-date-input::-webkit-datetime-edit-text {
    color: var(--text-dark);
    padding: 0 0.25rem;
}

.modern-date-input::-webkit-datetime-edit-month-field,
.modern-date-input::-webkit-datetime-edit-day-field,
.modern-date-input::-webkit-datetime-edit-year-field {
    color: var(--text-dark);
    font-weight: 500;
}

.modern-date-input::-webkit-datetime-edit-month-field:focus,
.modern-date-input::-webkit-datetime-edit-day-field:focus,
.modern-date-input::-webkit-datetime-edit-year-field:focus {
    background-color: rgba(0, 191, 255, 0.1);
    border-radius: 4px;
    color: var(--primary-color);
}

/* Firefox date input styling */
.modern-date-input::-moz-placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Mobile optimizations for date picker */
@media (max-width: 768px) {
    .modern-date-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 48px !important;
    }
    
    .quick-date-buttons {
        gap: 0.375rem;
        margin-top: 0.5rem;
    }
    
    .quick-date-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        flex: 1;
        min-width: 0;
    }
    
    .date-icon {
        right: 0.875rem;
        font-size: 1.125rem;
    }
}

/* Searchable Select Component */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-input {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--light-color);
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: text;
    font-family: 'Noto Sans Lao', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 44px;
}

.searchable-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.searchable-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-light);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    z-index: 1;
}

.searchable-select.active .searchable-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.searchable-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
    margin-top: -2px;
}

.searchable-select.active .searchable-dropdown {
    display: block;
}

.searchable-option {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.searchable-option:last-child {
    border-bottom: none;
}

.searchable-option:hover,
.searchable-option.highlighted {
    background-color: var(--secondary-color);
}

.searchable-option.selected {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.searchable-option-name {
    font-weight: 500;
    display: block;
}

.searchable-option-details {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.searchable-option.selected .searchable-option-details {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .searchable-dropdown {
        max-height: 250px;
    }
    
    .searchable-option {
        padding: 1rem;
        font-size: 1rem;
    }
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Noto Sans Lao', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 44px; /* Minimum touch target */
    min-width: 120px; /* Better button sizing */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background: #0091EA;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #5DADE2;
}

/* Results Section */
.results {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.result-card {
    background: var(--light-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.result-route {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.result-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .result-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Seat Selection */
.seat-selection {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.seat-map {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.seat {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.875rem;
    min-height: 48px; /* Better touch target */
    min-width: 48px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.seat:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.seat.available {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.seat.available:hover {
    background: var(--accent-color);
    border-color: var(--primary-color);
}

.seat.selected {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.seat.booked {
    background: var(--text-light);
    color: var(--light-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
}

/* Booking Confirmation */
.booking-confirmation {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.confirmation-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.qr-code {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.qr-code img {
    max-width: 300px;
    border: 4px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: var(--light-color);
}

.booking-info {
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-label {
        font-size: 0.875rem;
    }
    
    .info-value {
        font-size: 1rem;
        word-break: break-word;
    }
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
}

.info-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* Admin Dashboard */
.admin-dashboard {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.form-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    padding: 4px 8px;
    transition: color 0.2s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: #00BFFF;
}

.password-toggle:focus {
    outline: 2px solid #00BFFF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure password input has padding for toggle button */
.form-group input[type="password"],
.form-group input[type="text"] {
    padding-right: 3rem;
}

/* Form validation error messages */
.error-message {
    display: block;
    color: #F44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #F44336;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #4CAF50;
}

.form-group input:focus:invalid {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Confirmation Modal */
.confirm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    align-items: center;
    justify-content: center;
}

.confirm-modal-overlay.show {
    display: flex;
}

.confirm-modal {
    background: var(--light-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
    text-align: center;
}

.confirm-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: scaleIn 0.3s ease 0.1s both;
}

.confirm-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.confirm-modal-message {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirm-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-modal-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.confirm-modal-btn-cancel {
    background: #f5f5f5;
    color: var(--text-dark);
}

.confirm-modal-btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirm-modal-btn-confirm {
    background: linear-gradient(135deg, #00BFFF 0%, #1976D2 100%);
    color: white;
}

.confirm-modal-btn-confirm:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.4);
}

.confirm-modal-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .confirm-modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .confirm-modal-icon {
        font-size: 3rem;
    }
    
    .confirm-modal-title {
        font-size: 1.25rem;
    }
    
    .confirm-modal-buttons {
        flex-direction: column;
    }
    
    .confirm-modal-btn {
        width: 100%;
    }
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 2rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 107, 107, 0.3);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 90%;
    min-width: 300px;
    animation: alertPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-error::before {
    content: '⚠️';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: alertShake 0.5s ease-in-out;
}

@keyframes alertPopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes alertShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Alert error backdrop overlay */
.alert-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 0;
}

/* Responsive - Mobile First Approach */
/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .search-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 44px; /* Minimum touch target */
    }
    
    .result-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .result-price {
        font-size: 1.25rem;
    }
    
    .seat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .seat {
        min-height: 50px;
        font-size: 0.875rem;
    }
    
    .confirmation-card {
        padding: 1.5rem;
    }
    
    .qr-code img {
        max-width: 250px;
    }
}

/* Mobile (481px to 768px) */
@media (max-width: 768px) {
    /* Modern Hero Responsive */
    .hero-modern {
        padding: 3rem 1rem;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .floating-bus, .floating-ticket, .floating-map {
        display: none;
    }
    
    /* Features Responsive */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Suggestions Responsive */
    .suggestions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* How It Works Responsive */
    .steps-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-card {
        max-width: 100%;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    /* Popular Routes Responsive */
    .popular-routes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .route-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* FAQ Responsive */
    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.95rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem 1.5rem;
    }
    
    /* Enhanced Date Picker Mobile */
    .date-display-box {
        padding: 1rem;
        min-height: 50px;
    }
    
    .date-display-text {
        font-size: 1rem;
    }
    
    .calendar-icon-large {
        font-size: 1.5rem;
    }
    
    .quick-date-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .quick-date-btn-modern {
        padding: 0.75rem 0.5rem;
    }
    
    .quick-day-icon {
        font-size: 1.5rem;
    }
    
    .quick-day-text {
        font-size: 0.8rem;
    }
    
    /* Search Page Responsive */
    .search-page-title {
        font-size: 1.75rem;
    }
    
    .search-icon-large {
        font-size: 2rem;
    }
    
    .quick-filters {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quick-filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-form-card {
        padding: 1.5rem;
    }
    
    .tips-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .results-filters {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-action {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-select-seats {
        width: 100%;
        justify-content: center;
    }
    
    /* Seat Selection Responsive */
    .booking-progress {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 1rem;
    }
    
    .progress-line {
        width: 60px;
    }
    
    .seat-map-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .booking-summary-card {
        position: static;
    }
    
    .seat-grid-modern {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .seat {
        font-size: 0.85rem;
    }
    
    .seat-legend-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Old Hero */
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Minimum touch target */
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.625rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .result-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .seat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .seat {
        min-height: 48px;
        font-size: 0.875rem;
    }
    
    .seat-legend {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    /* Hide desktop nav on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Show bottom nav on mobile */
    .bottom-nav {
        display: flex;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .lang-switcher {
        gap: 0.25rem;
    }
    
    .lang-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-width: 100px;
        min-height: 40px;
        padding-right: 1.75rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .search-form {
        margin: 1.5rem 1rem;
        padding: 1.5rem;
    }
    
    .results {
        padding: 0 1rem;
    }
    
    .seat-selection {
        padding: 0 1rem;
    }
    
    .seat-map {
        padding: 1.5rem;
    }
    
    .booking-confirmation {
        padding: 0 1rem;
    }
    
    .confirmation-card {
        padding: 1.5rem;
    }
    
    .btn {
        min-height: 44px; /* Minimum touch target for mobile */
        padding: 0.875rem 1.5rem;
    }
    
    .result-card {
        padding: 1.25rem;
    }
    
    .detail-item {
        padding: 0.5rem 0;
    }
    
    footer {
        margin-bottom: 70px; /* Space for bottom nav */
        padding: 1.5rem 1rem;
    }
    
    /* Improve card spacing on mobile */
    .result-card,
    .booking-card,
    .profile-card {
        margin-bottom: 1.25rem;
    }
    
    /* Better button spacing */
    .booking-actions,
    .payment-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .booking-actions .btn,
    .payment-actions .btn {
        width: 100%;
    }
}

/* Tablet (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Modern Hero Tablet */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    /* Features Tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Suggestions Tablet */
    .suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Popular Routes Tablet */
    .popular-routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Navigation */
    .bottom-nav {
        display: none;
    }
    
    .desktop-nav {
        display: block;
    }
    
    .main-content {
        padding-bottom: 0;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .seat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .search-form {
        max-width: 700px;
    }
    
    .results {
        max-width: 1000px;
    }
}

/* Desktop: Hide bottom nav, show desktop nav */
@media (min-width: 1025px) {
    .bottom-nav {
        display: none;
    }
    
    .desktop-nav {
        display: block;
    }
    
    .main-content {
        padding-bottom: 0;
    }
    
    /* Better desktop spacing */
    .hero {
        padding: 5rem 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .search-form {
        max-width: 900px;
        padding: 2.5rem;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .results {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .result-card {
        padding: 2rem;
    }
    
    .result-details {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .seat-selection {
        max-width: 900px;
    }
    
    .seat-map {
        padding: 2.5rem;
    }
    
    .seat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .seat {
        min-height: 60px;
        font-size: 1rem;
    }
    
    .booking-confirmation {
        max-width: 700px;
    }
    
    .confirmation-card {
        padding: 2.5rem;
    }
    
    /* Better hover effects on desktop */
    .result-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 24px rgba(0, 191, 255, 0.25);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    /* Improved form inputs on desktop */
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.15);
    }
}

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .header-container,
    .results,
    .search-form,
    .seat-selection,
    .booking-confirmation {
        max-width: 1400px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .result-details {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid #00BFFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Improve text selection */
::selection {
    background: var(--primary-color);
    color: var(--light-color);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--light-color);
}

/* Better scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0091EA;
}

/* Fingerprint Scan Button */
.fingerprint-btn {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #00BFFF 0%, #1976D2 50%, #1565C0 100%);
    color: var(--light-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    margin: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.fingerprint-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

.fingerprint-btn:active:not(:disabled) {
    transform: translateY(0);
}

.fingerprint-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fingerprint-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.fingerprint-icon svg {
    width: 48px;
    height: 48px;
    color: var(--light-color);
    animation: pulse 2s ease-in-out infinite;
}

.fingerprint-btn.scanning .fingerprint-icon {
    background: rgba(255, 255, 255, 0.3);
    animation: scanning 1.5s ease-in-out infinite;
}

.fingerprint-btn.scanning .fingerprint-icon svg {
    animation: scanning-pulse 1s ease-in-out infinite;
}

.fingerprint-btn.success .fingerprint-icon {
    background: rgba(6, 167, 125, 0.3);
}

.fingerprint-btn.success .fingerprint-icon svg {
    color: var(--success-color);
    animation: success-bounce 0.5s ease;
}

.fingerprint-btn.error .fingerprint-icon {
    background: rgba(244, 67, 54, 0.3);
    animation: error-shake 0.5s ease;
}

.fingerprint-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes scanning {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

@keyframes scanning-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes success-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Multi-step Form Styles */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step-label {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.step.active .step-number {
    background-color: #007bff;
    color: white;
}

.step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 1rem;
    position: relative;
    top: -20px;
}

.form-step {
    animation: fadeIn 0.3s ease-in-out;
}

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

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.form-navigation button {
    flex: 1;
    max-width: 150px;
}

@media (max-width: 768px) {
    .fingerprint-btn {
        padding: 1.25rem;
    }

    .fingerprint-icon {
        width: 56px;
        height: 56px;
    }

    .fingerprint-icon svg {
        width: 40px;
        height: 40px;
    }

    .fingerprint-text {
        font-size: 1rem;
    }

    .step-indicator {
        flex-direction: column;
        gap: 1rem;
    }

    .step-line {
        width: 2px;
        height: 30px;
        margin: 0;
        top: 0;
    }

    .form-navigation {
        flex-direction: column;
    }

    .form-navigation button {
        max-width: none;
    }
}

/* Modern Receipt Design */
@media print {
    /* Hide everything except the print receipt */
    body * {
        visibility: hidden;
    }

    .print-receipt,
    .print-receipt * {
        visibility: visible;
    }

    .print-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 8cm !important;
        height: 15cm !important;
        margin: 0 !important;
        padding: 0 !important; /* Remove padding to maximize content space */
        box-sizing: border-box !important;
        font-family: 'Arial', sans-serif;
        color: #1a202c;
        background: white;
        line-height: 1.1; /* Even tighter line height */
        font-size: 7px; /* Smaller font size */
        overflow: hidden !important;

        /* ABSOLUTE SINGLE PAGE CONSTRAINTS */
        page-break-inside: avoid !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        break-inside: avoid-page !important;
        break-before: avoid-page !important;
        break-after: avoid-page !important;
        orphans: 9999 !important;
        widows: 9999 !important;

        /* Force exact dimensions */
        min-width: 8cm !important;
        max-width: 8cm !important;
        min-height: 15cm !important;
        max-height: 15cm !important;
    }

    /* Modern Header with Gradient */
    .receipt-header-modern {
        background: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
        border-radius: 4px;
        padding: 3px;
        margin-bottom: 2px;
        color: white;
        height: 1.5cm; /* Fixed height */
        box-sizing: border-box;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2px; /* Reduced margin */
    }

    .company-branding {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .brand-icon {
        font-size: 20px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        padding: 4px;
    }

    .brand-text h1 {
        margin: 0;
        font-size: 14px;
        font-weight: bold;
        color: white;
    }

    .brand-text p {
        margin: 1px 0 0 0;
        font-size: 6px;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 300;
    }

    .receipt-badge {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 3px 8px;
    }

    .badge-text {
        font-size: 8px;
        font-weight: bold;
        color: white;
        letter-spacing: 0.5px;
    }

    .header-decoration {
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        border-radius: 1px;
    }

    /* Route Information Card */
    .route-card {
        background: linear-gradient(135deg, #87CEEB 0%, #00B4D8 100%);
        border-radius: 4px;
        padding: 4px;
        margin-bottom: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        height: 2.2cm; /* Fixed height */
        box-sizing: border-box;
    }

    .card-header {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 6px;
    }

    .card-icon {
        font-size: 10px;
    }

    .card-title {
        font-size: 8px;
        font-weight: bold;
        color: white;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .route-info {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        padding: 6px;
    }

    .route-stops {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
        gap: 8px;
    }

    .stop {
        flex: 1;
        text-align: center;
    }

    .stop-label {
        font-size: 6px;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        display: block;
        margin-bottom: 2px;
    }

    .stop-name {
        font-size: 10px;
        font-weight: bold;
        color: white;
        display: block;
    }

    .route-arrow {
        flex-shrink: 0;
    }

    .arrow-icon {
        font-size: 12px;
        color: white;
        font-weight: bold;
    }

    .departure-time {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 4px 6px;
    }

    .time-icon {
        font-size: 8px;
    }

    .time-label {
        font-size: 6px;
        color: rgba(255, 255, 255, 0.9);
    }

    .time-value {
        font-size: 9px;
        font-weight: bold;
        color: white;
    }

    /* Booking Details Grid */
    .booking-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        margin-bottom: 2px;
        height: 2.2cm; /* Fixed height */
        box-sizing: border-box;
    }

    .detail-card {
        background: white;
        border-radius: 4px;
        padding: 4px; /* Reduced padding */
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 4px; /* Reduced gap */
    }

    .card-icon-small {
        font-size: 10px;
        opacity: 0.7;
    }

    .card-content {
        flex: 1;
    }

    .card-label {
        font-size: 6px;
        color: #718096;
        text-transform: uppercase;
        font-weight: bold;
        display: block;
        margin-bottom: 2px;
    }

    .card-value {
        font-size: 9px;
        font-weight: bold;
        color: #2d3748;
        display: block;
    }

    /* Passenger Information Card */
    .passenger-card {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        border-radius: 4px;
        padding: 4px;
        margin-bottom: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        height: 2.2cm; /* Fixed height */
        box-sizing: border-box;
    }

    .passenger-details {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        padding: 4px; /* Reduced padding */
        display: flex;
        flex-direction: column;
        gap: 2px; /* Reduced gap */
    }

    .passenger-field {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2px 0;
    }

    .field-label {
        font-size: 7px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: bold;
        min-width: 35px;
    }

    .field-value {
        font-size: 8px;
        font-weight: bold;
        color: white;
        flex: 1;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }



    /* QR Code & Validation Section */
    .qr-validation-section {
        margin-bottom: 2px;
        height: 2.2cm; /* Fixed height */
        box-sizing: border-box;
    }

    .qr-card {
        background: white;
        border-radius: 4px;
        padding: 4px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 4px;
        height: 100%; /* Fill container */
        box-sizing: border-box;
    }

    .qr-container-print img {
        width: 22mm;
        height: 22mm;
        border-radius: 4px;
    }

    .qr-info {
        flex: 1;
        text-align: center;
    }

    .qr-title {
        font-size: 8px;
        font-weight: bold;
        color: #2d3748;
        display: block;
        margin-bottom: 2px;
    }

    .qr-subtitle {
        font-size: 6px;
        color: #718096;
        display: block;
        font-style: italic;
    }

    /* Modern Footer */
    .receipt-footer-modern {
        height: 1.8cm; /* Fixed height to complete 15cm total */
        box-sizing: border-box;
    }

    .footer-decoration {
        height: 1px; /* Thinner decoration */
        background: linear-gradient(90deg, #00B4D8, #0077B6);
        border-radius: 0.5px;
        margin-bottom: 2px; /* Reduced margin */
    }

    .footer-content {
        background: #f8fafc;
        border-radius: 4px;
        padding: 4px 6px; /* Reduced padding */
        margin-bottom: 2px; /* Reduced margin */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-info {
        flex: 1;
    }

    .footer-text {
        font-size: 6px;
        color: #4a5568;
        font-weight: bold;
        display: block;
        margin-bottom: 1px;
    }

    .footer-contact {
        font-size: 5px;
        color: #718096;
        display: block;
    }

    .footer-timestamp {
        text-align: right;
    }

    .timestamp-label {
        font-size: 5px;
        color: #a0aec0;
        display: block;
    }

    .timestamp-value {
        font-size: 6px;
        color: #2d3748;
        font-weight: bold;
        display: block;
    }

    .footer-tagline {
        text-align: center;
        background: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
        color: white;
        border-radius: 3px;
        padding: 3px 4px; /* Reduced padding */
    }

    .footer-tagline span {
        font-size: 6px;
        font-weight: 300;
        font-style: italic;
    }

    /* Receipt bill size: 8cm x 15cm */
    @page {
        size: 8cm 15cm;
        margin: 0; /* No margins for exact sizing */
    }

    /* FORCE SINGLE PAGE - No page breaks allowed */
    .print-receipt {
        page-break-inside: avoid !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        orphans: 9999 !important;
        widows: 9999 !important;
        width: 8cm !important;
        height: 15cm !important;
        max-width: 8cm !important;
        max-height: 15cm !important;
        min-width: 8cm !important;
        min-height: 15cm !important;
        padding: 2mm !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        display: block !important;
    }

    /* Prevent ANY child elements from breaking across pages */
    .print-receipt *,
    .receipt-header-modern *,
    .route-card *,
    .booking-details-grid *,
    .passenger-card *,
    .qr-validation-section *,
    .receipt-footer-modern * {
        page-break-inside: avoid !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        orphans: 9999 !important;
        widows: 9999 !important;
    }

    /* Additional single-page enforcement */
    html, body {
        height: auto !important;
        overflow: visible !important;
    }

    /* ULTIMATE SINGLE PAGE PROTECTION */
    .print-receipt,
    .print-receipt > *,
    .print-receipt > * > *,
    .print-receipt > * > * > * {
        break-inside: avoid-page !important;
        break-before: avoid-page !important;
        break-after: avoid-page !important;
        page-break-inside: avoid !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        orphans: 9999 !important;
        widows: 9999 !important;
    }

    /* ABSOLUTE SINGLE PAGE ENFORCEMENT */
    @media print {
        html, body {
            height: auto !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
        }

        /* FORCE SINGLE PAGE - ABSOLUTE PREVENTION */
        * {
            break-inside: avoid !important;
            break-before: avoid !important;
            break-after: avoid !important;
            page-break-inside: avoid !important;
            page-break-before: avoid !important;
            page-break-after: avoid !important;
            orphans: 9999 !important;
            widows: 9999 !important;
        }

        /* Specific receipt container enforcement */
        .print-receipt {
            break-inside: avoid-page !important;
            break-before: avoid-page !important;
            break-after: avoid-page !important;
            page-break-inside: avoid !important;
            page-break-before: avoid !important;
            page-break-after: avoid !important;
            height: 15cm !important;
            max-height: 15cm !important;
            min-height: 15cm !important;
            overflow: hidden !important;
        }

        /* Prevent ANY element from causing page breaks */
        div, span, p, h1, h2, h3, h4, h5, h6, img, table, tbody, thead, tr, td, th {
            break-inside: avoid !important;
            break-before: avoid !important;
            break-after: avoid !important;
            page-break-inside: avoid !important;
            page-break-before: avoid !important;
            page-break-after: avoid !important;
        }
    }