/* ==========================================================================
   KALE SEYAHAT KIOSK - PREMIUM LIGHT THEME (style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-red: #E30613; /* Official Kale Seyahat Brand Red */
    --primary-red-hover: #C20510;
    --primary-red-glow: rgba(227, 6, 19, 0.25);
    
    --bg-light: #F8FAFC; /* Clean off-white background */
    --bg-card-white: #FFFFFF; /* Crisp solid white */
    
    --border-light: #E2E8F0;
    --border-glass-focus: rgba(227, 6, 19, 0.4);
    
    --text-dark: #0F172A; /* Deep dark slate for maximum readability */
    --text-muted: #64748B; /* Medium slate grey */
    
    --glow-cyan: rgba(0, 242, 254, 0.4);
    --accent-blue: #0084FF;
    
    /* Seat colors */
    --seat-empty: #FFFFFF;
    --seat-empty-border: #CBD5E1;
    --seat-selected: var(--primary-red);
    --seat-male: #0084FF;
    --seat-female: #FF00A0;
    
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-medium: 0 20px 40px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 15px 30px rgba(227, 6, 19, 0.2);
    
    --font-kiosk: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & TOUCH OPTIMIZATIONS
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #E2E8F0;
    color: var(--text-dark);
    font-family: var(--font-kiosk);
    font-size: 16px;
    line-height: 1.5;
    position: fixed;
    top: 0;
    left: 0;
}

/* Vertical Kiosk Container */
#kiosk-app-container {
    width: 1080px;
    height: 1920px;
    margin: 0 auto;
    background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 100px rgba(15, 23, 42, 0.15);
    border-left: 1px solid rgba(15, 23, 42, 0.03);
    border-right: 1px solid rgba(15, 23, 42, 0.03);
}

/* responsive scaling for testing on standard PC monitors */
@media (max-height: 1920px) or (max-width: 1080px) {
    body {
        position: relative;
        overflow: auto;
    }
    #kiosk-app-container {
        transform-origin: top center;
        max-width: 100vw;
        max-height: 100vh;
        width: 1080px;
        height: 1920px;
        aspect-ratio: 9/16;
    }
}

/* ==========================================================================
   LAYOUT PARTS (HEADER, INNER, FOOTER)
   ========================================================================== */

.kiosk-header {
    height: 140px;
    padding: 30px 50px;
    background: var(--bg-card-white);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.kiosk-logo-container {
    display: flex;
    align-items: center;
}

.kiosk-logo-img {
    height: 80px;
    object-fit: contain;
    background: #fff;
    padding: 5px;
    border-radius: 12px;
}

.kiosk-time-display {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.kiosk-main-content {
    flex: 1;
    position: relative;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 180px;
}

.kiosk-main-content::-webkit-scrollbar {
    display: none;
}

.kiosk-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    padding: 20px 50px;
    background: var(--bg-card-white);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.02);
}

.kiosk-footer-help {
    display: flex;
    align-items: center;
    gap: 15px;
}

.help-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
}

.help-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.help-text p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Step Progress Indicator Bar */
.kiosk-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.kiosk-steps-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: #E2E8F0;
    z-index: 1;
    border-radius: 2px;
}

.indicator-progress-bar {
    position: absolute;
    top: 25px;
    left: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-blue));
    z-index: 2;
    width: 0%;
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.step-node {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 60px;
}

.step-node-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    transition: var(--transition-normal);
    color: var(--text-muted);
    box-shadow: var(--shadow-soft);
}

.step-node.active .step-node-circle {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.step-node.completed .step-node-circle {
    background: #10B981;
    border-color: #10B981;
    color: #FFFFFF;
}

.step-node-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    position: absolute;
    top: 60px;
}

.step-node.active .step-node-label {
    color: var(--primary-red);
}

.step-node.completed .step-node-label {
    color: #10B981;
}

/* ==========================================================================
   GENERAL UI COMPONENTS & BUTTONS
   ========================================================================= */

.btn {
    font-family: var(--font-kiosk);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 24px 40px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), #C20510);
    color: #FFFFFF;
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card-white);
    border: 2px solid var(--border-light);
    color: var(--text-dark);
}

.btn-secondary:active {
    background: var(--bg-light);
    transform: scale(0.96);
}

.btn-large-rect {
    width: 100%;
    padding: 30px;
    border-radius: 24px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04), 
                0 2px 12px rgba(15, 23, 42, 0.015);
}

/* ==========================================================================
   STEP 1: WELCOME SCREEN (VIDEO AD & DEGRADE CAROUSEL)
   ========================================================================== */

#step-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px 0;
}

.welcome-video-container {
    width: 100%;
    height: 520px;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium);
    margin-bottom: 40px;
}

.welcome-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-ad-tag {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: 1px;
}

.video-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 35px 25px;
    background: linear-gradient(0deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0) 100%);
    font-size: 32px;
    font-weight: 800;
    text-align: left;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.welcome-logo {
    margin-bottom: 35px;
}

.welcome-logo-img {
    height: 110px;
    object-fit: contain;
    background: #fff;
    padding: 10px 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.welcome-tagline {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.welcome-subtitle {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 500;
}

.welcome-action-area {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.btn-start {
    height: 110px;
    font-size: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-red), #C20510);
    box-shadow: var(--shadow-glow);
    animation: pulseStart 2.5s infinite ease-in-out;
}

.lang-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.lang-btn {
    padding: 12px 24px;
    border-radius: 14px;
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.lang-btn.active {
    border-color: var(--primary-red);
    background: rgba(227, 6, 19, 0.05);
    color: var(--primary-red);
}

/* Welcome Advertising Carousel: Rich Gradient Cards */
.welcome-ad-carousel {
    width: 100%;
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    box-shadow: var(--shadow-medium);
}

.ad-slides {
    height: 110px;
    position: relative;
    width: 100%;
}

.ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
    padding: 20px;
}

.ad-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Slide Gradients for Visual Richness */
.ad-slide:nth-child(1) {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
}

.ad-slide:nth-child(2) {
    background: linear-gradient(135deg, #00B4DB 0%, #0083B0 100%);
}

.ad-slide:nth-child(3) {
    background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
}

.ad-slide-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF !important;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.ad-slide-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ad-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E1;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-red);
    width: 28px;
    border-radius: 5px;
}

/* ==========================================================================
   STEP 2: SEARCH SCREEN (LIGHT & VISUALLY RICH)
   ========================================================================== */

.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.search-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-label {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    padding-left: 10px;
}

.search-input-box {
    height: 90px;
    background: #F8FAFC;
    border: 2px solid var(--border-light);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-input-box:active, .search-input-box.active {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-red-glow);
    background: #FFFFFF;
}

.search-input-box svg {
    color: var(--primary-red);
    margin-right: 20px;
    width: 32px;
    height: 32px;
}

.search-placeholder {
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 600;
}

.search-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ==========================================================================
   STATION SELECTION OVERLAY MODAL (WHITE & LIGHT CONTRAST)
   ========================================================================== */

.station-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 200;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.1, 0.76, 0.55, 0.94);
    color: var(--text-dark);
}

.station-selection-overlay.open {
    transform: translateY(0);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.overlay-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.btn-close-overlay {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-search-bar {
    height: 80px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 25px;
}

.overlay-search-bar input {
    background: none;
    border: none;
    color: var(--text-dark);
    font-family: var(--font-kiosk);
    font-size: 24px;
    width: 100%;
    margin-left: 15px;
    outline: none;
}

.station-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

.station-list::-webkit-scrollbar {
    width: 8px;
}
.station-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.station-item {
    padding: 25px 30px;
    border-radius: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
}

.station-item:active {
    background: rgba(227, 6, 19, 0.05);
    border-color: var(--primary-red);
}

.station-badge {
    font-size: 14px;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Quick Stations Shortcut Grid */
.quick-stations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.quick-station-card {
    padding: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
}

.quick-station-card:active {
    background: rgba(227, 6, 19, 0.08);
    border-color: var(--primary-red);
}

/* Date Picker Layout */
.kiosk-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.calendar-header-day {
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-muted);
    padding: 10px 0;
}

.calendar-day-btn {
    height: 90px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-kiosk);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.calendar-day-btn span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.calendar-day-btn.disabled {
    opacity: 0.2;
    pointer-events: none;
}

.calendar-day-btn.selected {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.calendar-day-btn.selected span {
    color: #FFFFFF;
}

.calendar-day-btn.today {
    border-color: var(--accent-blue);
    border-width: 2px;
}

/* ==========================================================================
   STEP 3: JOURNEY LIST (MINIMALIST WHITE CARDS)
   ========================================================================== */

.journey-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.journey-filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    padding: 15px 25px;
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
}

.filter-pill.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.journey-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.journey-card {
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-soft);
    color: var(--text-dark);
}

.journey-card:active {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-medium);
}

.journey-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journey-time-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

.departure-time {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-dark);
}

.journey-duration-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    width: 90px;
    font-weight: 600;
}

.journey-duration-line {
    width: 100%;
    height: 3px;
    background: #E2E8F0;
    margin: 6px 0;
    position: relative;
    border-radius: 2px;
}

.journey-duration-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 3px solid #CBD5E1;
    border-right: 3px solid #CBD5E1;
    transform: rotate(45deg);
}

.arrival-time {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-muted);
}

.journey-price-badge {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-red);
}

.journey-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.bus-type-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 600;
}

.bus-type-badge {
    padding: 6px 12px;
    background: rgba(227, 6, 19, 0.08);
    border: 1px solid rgba(227, 6, 19, 0.2);
    border-radius: 8px;
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 800;
}

.seats-left-counter {
    font-size: 17px;
    color: #10B981;
    font-weight: 700;
}

/* ==========================================================================
   STEP 4: SEAT SELECTION
   ========================================================================== */

.seat-selection-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    height: 100%;
}

.bus-layout-outer {
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-medium);
}

.bus-steering-wheel {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #94A3B8;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

.bus-seats-grid-2plus1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin-top: 100px;
}

.bus-seats-grid-2plus2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin-top: 100px;
}

.bus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.bus-seat-pair {
    display: flex;
    gap: 15px;
}

.seat {
    width: 70px;
    height: 70px;
    background: var(--seat-empty);
    border: 2px solid var(--seat-empty-border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.seat::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 8px;
    right: 8px;
    height: 10px;
    background: rgba(15,23,42,0.03);
    border-radius: 4px;
}

.seat.empty:active {
    background: rgba(227, 6, 19, 0.1);
    border-color: var(--primary-red);
}

.seat.selected {
    background: var(--seat-selected);
    border-color: var(--seat-selected);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.seat.selected::before {
    background: rgba(255,255,255,0.2);
}

.seat.occupied-male {
    background: var(--seat-male);
    border-color: var(--seat-male);
    color: #FFFFFF;
    pointer-events: none;
    opacity: 0.9;
}

.seat.occupied-female {
    background: var(--seat-female);
    border-color: var(--seat-female);
    color: #FFFFFF;
    pointer-events: none;
    opacity: 0.9;
}

.corridor {
    width: 60px;
}

.seat-legend {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
}

.legend-color {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

/* Gender Selection Modal Popup (White & Red) */
.gender-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.gender-selection-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.gender-card {
    width: 600px;
    padding: 50px;
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-shadow: var(--shadow-medium);
}

.gender-selection-overlay.open .gender-card {
    transform: scale(1);
}

.gender-options {
    display: flex;
    gap: 30px;
}

.btn-gender {
    flex: 1;
    height: 180px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 28px;
    font-weight: 800;
}

.btn-gender-male {
    background: rgba(0, 132, 255, 0.05);
    border: 2px solid rgba(0, 132, 255, 0.2);
    color: #0084FF;
}

.btn-gender-male:active {
    background: #0084FF;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 132, 255, 0.25);
}

.btn-gender-female {
    background: rgba(255, 0, 160, 0.05);
    border: 2px solid rgba(255, 0, 160, 0.2);
    color: #FF00A0;
}

.btn-gender-female:active {
    background: #FF00A0;
    color: #fff;
    box-shadow: 0 10px 25px rgba(255, 0, 160, 0.25);
}

/* ==========================================================================
   STEP 5: PASSENGER INFO & INPUTS
   ========================================================================== */

.passenger-info-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.passenger-card-wrap {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.passenger-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.passenger-seat-badge {
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--primary-red);
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.kiosk-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kiosk-input-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
}

.kiosk-input {
    height: 80px;
    background: #FFFFFF;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 0 25px;
    font-family: var(--font-kiosk);
    font-size: 24px;
    color: var(--text-dark);
    outline: none;
    caret-color: var(--primary-red);
    box-shadow: var(--shadow-soft);
}

.kiosk-input:focus, .kiosk-input.focused {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-red-glow);
    background: #FFFFFF;
}

/* ==========================================================================
   VIRTUAL KEYBOARD SYSTEM (WHITE THEMED KEYS)
   ========================================================================== */

.keyboard-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #F1F5F9;
    border-top: 2px solid var(--border-light);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
    z-index: 300;
    padding: 25px 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
}

.keyboard-container.open {
    transform: translateY(0);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.keyboard-key {
    height: 70px;
    min-width: 70px;
    flex: 1;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: #FFFFFF;
    color: var(--text-dark);
    font-family: var(--font-kiosk);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.keyboard-key:active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.keyboard-key.special {
    background: #E2E8F0;
    font-size: 18px;
    font-weight: 700;
}

.keyboard-key.space-bar {
    flex: 6;
}

.keyboard-key.backspace-bar {
    flex: 2;
}

.keyboard-key.close-bar {
    flex: 2;
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
}

.keyboard-key.close-bar:active {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

/* ==========================================================================
   STEP 6: PAYMENT SELECTION & METHODS
   ========================================================================== */

.payment-grid-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.payment-option-card {
    height: 240px;
    background: var(--bg-card-white);
    border: 2px solid var(--border-light);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-soft);
}

.payment-option-card svg {
    width: 60px;
    height: 60px;
    color: var(--primary-red);
}

.payment-option-card.active {
    border-color: var(--primary-red);
    background: rgba(227, 6, 19, 0.04);
    box-shadow: var(--shadow-glow);
}

.payment-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.payment-method-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.qr-payment-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.qr-code-box {
    background: #fff;
    padding: 25px;
    border-radius: 28px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-timer {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 600;
}

.qr-timer span {
    color: var(--primary-red);
    font-weight: 800;
}

/* Card Payment Form */
.card-payment-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card-view-preview {
    height: 250px;
    background: linear-gradient(135deg, #1e1b4b, #312e81, var(--primary-red));
    border-radius: 24px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-medium);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    color: #FFFFFF;
}

.card-chip {
    width: 60px;
    height: 45px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 8px;
}

.card-number-view {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    word-spacing: 8px;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
}

.card-holder-view {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-expiry-view {
    font-size: 18px;
    font-weight: 600;
}

/* POS Terminal Simulation */
.pos-simulation-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.pos-device-box {
    width: 250px;
    height: 380px;
    background: #334155;
    border: 4px solid #475569;
    border-radius: 36px;
    position: relative;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: var(--shadow-medium);
}

.pos-device-screen {
    height: 120px;
    background: #000;
    border-radius: 12px;
    border: 2px solid #64748B;
    padding: 15px;
    color: #00FF66;
    font-family: monospace;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 0 10px rgba(0,255,102,0.2);
}

.pos-screen-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00FF66;
    animation: pulseLogo 1.5s infinite;
}

.pos-contactless-wave {
    display: flex;
    justify-content: center;
    color: #E2E8F0;
}

.pos-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
}

.pos-key {
    height: 25px;
    background: #475569;
    border-radius: 6px;
}

/* ==========================================================================
   STEP 7: SUCCESS & TICKET PRINTING (BOARDING PASS STYLING)
   ========================================================================== */

.success-screen-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 50px 0;
    text-align: center;
}

.success-icon-badge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 3px solid #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
    margin-bottom: 40px;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.2);
}

.success-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.success-subtitle {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-weight: 500;
}

/* Ticket printing slot visual */
.printer-slot-visual {
    width: 480px;
    height: 20px;
    background: #334155;
    border-radius: 10px;
    border: 2px solid #475569;
    position: relative;
    margin-bottom: 300px;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.5);
}

.ticket-printing-paper {
    position: absolute;
    top: 8px;
    left: 40px;
    width: 400px;
    height: 250px;
    background: #fff;
    color: #000;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-medium);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: printOut 4s forwards cubic-bezier(0.1, 0.76, 0.55, 0.94);
    transform-origin: top center;
    z-index: 5;
    border: 1px solid var(--border-light);
    border-top: 5px solid var(--primary-red);
}

.ticket-paper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #cbd5e1;
    padding-bottom: 15px;
}

.ticket-paper-logo {
    height: 45px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}

.ticket-paper-barcode {
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
}

.ticket-paper-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.ticket-paper-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.ticket-paper-row span:last-child {
    font-weight: 800;
}

.ticket-paper-footer {
    border-top: 1px solid #cbd5e1;
    padding-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    font-weight: 700;
}

/* ==========================================================================
   IDLE TIMEOUT MODAL (LIGHT THEMED)
   ========================================================================== */

.idle-timeout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.idle-timeout-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.idle-timeout-card {
    width: 700px;
    padding: 60px;
    background: var(--bg-card-white);
    border: 3px solid var(--primary-red);
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    color: var(--text-dark);
}

.idle-timer-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid #F1F5F9;
    border-top-color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 800;
    color: var(--primary-red);
    animation: rotateTimer 1s infinite linear;
}

.idle-timer-number {
    position: absolute;
    font-size: 64px;
    font-weight: 800;
    color: var(--text-dark);
    animation: none;
}

/* ==========================================================================
   SUMMARY SIDE PANEL (IN PROGRESS BOOKING)
   ========================================================================== */

.booking-summary-sidebar {
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: fit-content;
    box-shadow: var(--shadow-soft);
    color: var(--text-dark);
}

.sidebar-title {
    font-size: 22px;
    font-weight: 800;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
    color: var(--text-dark);
}

.summary-route-indicator {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-route-indicator h3 {
    font-size: 24px;
    font-weight: 800;
}

.summary-route-indicator p {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.summary-detail-row span:first-child {
    color: var(--text-muted);
    font-weight: 600;
}

.summary-detail-row span:last-child {
    font-weight: 700;
}

.summary-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-light);
}

.summary-total-price span:first-child {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-total-price span:last-child {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-red);
}

/* ==========================================================================
   STICKY STEPS ADVERTISEMENT BANNER
   ========================================================================== */

.step-ad-banner {
    width: 100%;
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 18px 25px;
    margin-top: 35px;
    box-shadow: var(--shadow-soft);
}

.step-ad-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.step-ad-content svg {
    flex-shrink: 0;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(227, 6, 19, 0.2));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 30px rgba(227, 6, 19, 0.4));
    }
}

@keyframes pulseStart {
    0%, 100% {
        transform: translateY(0);
        box-shadow: var(--shadow-glow);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(227, 6, 19, 0.4);
    }
}

@keyframes printOut {
    0% {
        transform: translateY(-240px) scaleY(0.01);
        opacity: 0.8;
    }
    40% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
    100% {
        transform: translateY(20px) scaleY(1);
        opacity: 1;
    }
}

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