/* ==========================================================================
   RailSwift Express - Train Ticket Booking System Stylesheet
   Version: 1.0.0
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #0f3460;
  --primary-dark: #0a2240;
  --primary-light: #1a4f8b;
  --accent: #ff6b35;
  --accent-hover: #e85924;
  --accent-subtle: #fff4ee;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --info: #0284c7;

  /* Neutrals */
  --bg-body: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-alt: #eef2f6;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 30px -5px rgba(15, 52, 96, 0.15);

  /* Borders & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.partner-badge i {
  color: var(--accent);
}

.top-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-main {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-text h1 span {
  color: var(--accent);
}

.logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-badge-hot {
  font-size: 10px;
  background: var(--danger);
  color: #fff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-signin {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  transition: var(--transition);
}

.btn-signin:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 52, 96, 0.25);
}

.mobile-toggle {
  display: none;
  font-size: 22px;
  color: var(--primary);
}

/* ==========================================================================
   Hero Section with Train Image
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 640px;
  padding: 60px 0 100px;
  background: linear-gradient(180deg, rgba(10, 34, 64, 0.78) 0%, rgba(15, 52, 96, 0.92) 100%),
              url('../assets/images/hero-train.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero-overlay-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 40px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}

.hero-pill-badge i {
  color: #facc15;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-title span {
  color: #fb923c;
  background: linear-gradient(90deg, #ff8a00, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

/* ==========================================================================
   Booking & Search Card Widget
   ========================================================================== */
.booking-card-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.booking-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
}

.booking-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.booking-tab-btn i {
  font-size: 17px;
}

.booking-tab-btn:hover {
  color: var(--primary);
}

.booking-tab-btn.active {
  color: var(--primary);
  background: #ffffff;
  border-bottom-color: var(--accent);
}

.tab-pane {
  display: none;
  padding: 30px;
}

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

/* Trip Type Switcher (One Way / Round Trip) */
.trip-type-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.radio-group {
  display: flex;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.radio-pill {
  position: relative;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-pill label {
  display: block;
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.radio-pill input[type="radio"]:checked + label {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.quick-options {
  display: flex;
  align-items: center;
  gap: 20px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Booking Form Grid */
.booking-grid {
  display: grid;
  grid-template-columns: 2.2fr 48px 2.2fr 1.6fr 1.6fr 1.6fr;
  gap: 12px;
  align-items: center;
}

.form-box {
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: var(--transition);
  position: relative;
}

.form-box:focus-within {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

.form-box label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.form-box label i {
  color: var(--accent);
  font-size: 13px;
}

.form-box input, .form-box select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.form-subtext {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.swap-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-swap-stations {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-swap-stations:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(180deg);
}

.search-action-bar {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.action-perks {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.action-perks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-perks i {
  color: var(--success);
}

.btn-search-trains {
  background: linear-gradient(135deg, var(--accent) 0%, #e0531c 100%);
  color: #ffffff;
  padding: 14px 38px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}

.btn-search-trains:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.5);
}

/* Secondary Tab Panels (PNR / Live Status) */
.pnr-box-layout {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  max-width: 800px;
  margin: 10px auto;
}

.pnr-box-layout .form-box {
  flex: 1;
}

.pnr-demo-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.demo-chip {
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
}

.demo-chip:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   Trust & Key Highlights Strip
   ========================================================================== */
.features-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-orange { background: #ffedd5; color: #ea580c; }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-purple { background: #f3e8ff; color: #9333ea; }

.feature-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.feature-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Live Search Results Section (Interactive Demo)
   ========================================================================== */
.results-section {
  padding: 60px 0;
  background: var(--bg-body);
}

.results-header-banner {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid var(--border-color);
}

.route-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.route-badge {
  background: var(--primary-light);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}

.route-details h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.route-details p {
  font-size: 13px;
  color: var(--text-muted);
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar Filters */
.filter-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.filter-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-header h4 {
  font-size: 15px;
  font-weight: 700;
}

.btn-reset-filters {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.filter-group {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.time-slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.time-slot-btn {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.time-slot-btn i {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--primary);
}

.time-slot-btn.active, .time-slot-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f7ff;
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Train Result Cards */
.train-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.train-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.train-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.train-card-top {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 2.2fr 3fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.train-identity h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.train-num-type {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}

.train-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.train-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tag-bullet { background: #fee2e2; color: #dc2626; }
.tag-express { background: #e0e7ff; color: #4338ca; }
.tag-superfast { background: #dcfce7; color: #15803d; }

.run-days {
  display: flex;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.run-day {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
}

.run-day.runs {
  background: #ecfdf5;
  color: var(--success);
}

/* Schedule visualization */
.train-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.time-station {
  text-align: left;
}

.time-station.destination {
  text-align: right;
}

.time-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.station-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.date-indicator {
  font-size: 11px;
  color: var(--text-light);
}

.duration-line-wrap {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.duration-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.line-decor {
  height: 2px;
  background: #cbd5e1;
  position: relative;
  margin: 6px 0;
}

.line-decor::before, .line-decor::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.line-decor::before { left: 0; }
.line-decor::after { right: 0; }

.halts-info {
  font-size: 11px;
  color: var(--text-light);
}

.train-quick-price {
  text-align: right;
}

.price-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

/* Class Availabilities Tray */
.class-tray {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 14px 24px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.class-pill-card {
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 140px;
  cursor: pointer;
  transition: var(--transition);
}

.class-pill-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.class-pill-card.selected {
  border-color: var(--accent);
  background: #fff8f5;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.class-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.class-code {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-main);
}

.class-fare {
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
}

.avail-status {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-available { color: var(--success); }
.status-rac { color: var(--warning); }
.status-wl { color: var(--danger); }

.avail-chance {
  font-size: 10px;
  color: var(--text-muted);
}

.train-card-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.amenities-list {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
}

.amenities-list span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-route-view {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

.btn-book-card {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-book-card:hover {
  background: var(--accent-hover);
}

/* ==========================================================================
   Popular Scenic Routes Section
   ========================================================================== */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.route-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.route-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.route-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.route-card:hover .route-img-wrap img {
  transform: scale(1.08);
}

.route-tag-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 52, 96, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.route-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.route-cities {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.route-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.route-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.route-stat {
  font-size: 12px;
  color: var(--text-muted);
}

.route-stat strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
}

.btn-route-book {
  background: #f1f5f9;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-route-book:hover {
  background: var(--accent);
  color: #fff;
}

/* ==========================================================================
   Train Experience & Amenities Showcase
   ========================================================================== */
.experience-section {
  background: #ffffff;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.experience-card {
  padding: 28px 24px;
  background: var(--bg-body);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.experience-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.exp-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.experience-card h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.experience-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Deals & Promo Offers
   ========================================================================== */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.offer-card {
  background: linear-gradient(135deg, #ffffff 0%, #fbfcfd 100%);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.offer-card:hover {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.offer-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.offer-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.offer-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.coupon-code {
  font-family: monospace;
  font-weight: 800;
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 1px;
}

.btn-copy-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* ==========================================================================
   App Download Banner
   ========================================================================== */
.app-banner-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
  margin: 40px auto;
}

.app-banner-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.app-text h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.app-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.app-perks-list {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.app-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.app-perk i {
  color: #4ade80;
}

.app-buttons {
  display: flex;
  gap: 14px;
}

.store-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.store-btn:hover {
  background: #ffffff;
  color: var(--primary);
}

.store-btn i {
  font-size: 26px;
}

.store-btn-text span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-btn-text strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
}

.app-qr-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.qr-visual {
  width: 140px;
  height: 140px;
  background: #ffffff;
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 70px;
}

.app-qr-box p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.faq-question i {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.8fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .brand-logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text h1 {
  color: #fff;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-col h5 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-newsletter p {
  font-size: 13px;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-newsletter {
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-backdrop.show .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.btn-modal-close {
  font-size: 20px;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px;
}

/* PNR Result Card Inside Modal */
.pnr-status-result {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #fafbfc;
}

.pnr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.pnr-badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--success-bg);
  color: var(--success);
}

.passenger-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
}

.passenger-table th, .passenger-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.passenger-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1100px) {
  .booking-grid {
    grid-template-columns: 1fr 1fr;
  }
  .swap-btn-container {
    grid-column: span 2;
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .routes-grid, .offers-grid, .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-section {
    padding: 40px 0 80px;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .swap-btn-container {
    grid-column: 1;
    margin: -6px 0;
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

  .train-card-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .train-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .duration-line-wrap {
    padding: 0;
    width: 100%;
  }

  .time-station.destination {
    text-align: left;
  }

  .train-quick-price {
    text-align: left;
  }

  .app-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-buttons, .app-perks-list {
    justify-content: center;
  }

  .routes-grid, .offers-grid, .experience-grid, .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Additional Styles for Multi-Page Rail System
   ========================================================================== */

/* Page Hero Banner */
.page-hero-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 45px 0 50px;
  color: #fff;
  position: relative;
}

.page-hero-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero-banner p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-nav a:hover {
  color: var(--accent);
}

/* Modify Search Bar */
.modify-search-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
  position: sticky;
  top: 74px;
  z-index: 90;
}

.modify-search-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1.4fr 1.4fr 1.2fr auto;
  gap: 12px;
  align-items: center;
}

.modify-input-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.modify-input-box label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modify-input-box input, .modify-input-box select {
  width: 100%;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

.btn-modify-search {
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-modify-search:hover {
  background: var(--accent-hover);
}

/* Date Carousel Ribbon */
.date-ribbon-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0;
  margin-bottom: 24px;
}

.date-pill-btn {
  flex: 1;
  min-width: 110px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.date-pill-btn:hover, .date-pill-btn.active {
  border-color: var(--primary);
  background: #f0f7ff;
}

.date-pill-btn.active {
  border-color: var(--accent);
  background: #fff8f5;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.date-pill-day {
  font-size: 12px;
  color: var(--text-muted);
}

.date-pill-date {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin: 2px 0;
}

.date-pill-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}

/* Checkout Stepper */
.checkout-stepper {
  display: flex;
  justify-content: space-between;
  max-width: 680px;
  margin: 0 auto 36px;
  position: relative;
}

.checkout-stepper::before {
  content: \'\';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
}

.step-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-muted);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 14px;
  transition: var(--transition);
}

.step-item.active .step-bubble {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.step-item.completed .step-bubble {
  background: var(--success);
  color: #fff;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.step-item.active .step-label {
  color: var(--primary);
}

/* Checkout 2-Column Grid */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}

.checkout-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.checkout-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.checkout-card-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-card-header h3 i {
  color: var(--accent);
}

/* Passenger Input Block */
.passenger-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
}

.passenger-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.passenger-card-top h5 {
  font-size: 14px;
  font-weight: 700;
}

.btn-remove-pax {
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-add-pax {
  background: #f1f5f9;
  border: 1.5px dashed #cbd5e1;
  color: var(--primary);
  padding: 12px;
  border-radius: var(--radius-md);
  width: 100%;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-pax:hover {
  background: #e2e8f0;
  border-color: var(--primary);
}

/* Payment Tabs */
.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.payment-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  background: #f1f5f9;
  color: var(--text-muted);
}

.payment-tab-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Order Summary Box */
.order-summary-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.fare-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.fare-row.total {
  border-top: 2px dashed var(--border-color);
  padding-top: 14px;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.fare-row.total .price {
  color: var(--accent);
}

/* E-Ticket Boarding Pass Styles */
.ticket-print-wrapper {
  max-width: 820px;
  margin: 0 auto 50px;
}

.ticket-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ticket-stub {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 240px;
}

.ticket-main-body {
  padding: 32px;
  border-right: 2px dashed #cbd5e1;
  position: relative;
}

/* Cutout circles on dashed line */
.ticket-stub::before, .ticket-stub::after {
  content: \'\';
  position: absolute;
  right: 230px;
  width: 24px;
  height: 24px;
  background: var(--bg-body);
  border-radius: 50%;
  z-index: 5;
}

.ticket-stub::before {
  top: -12px;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.05);
}

.ticket-stub::after {
  bottom: -12px;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.05);
}

.ticket-side-body {
  padding: 32px 24px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ticket-pnr-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.ticket-pnr-banner h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.barcode-strip {
  width: 100%;
  height: 48px;
  background: repeating-linear-gradient(90deg, #0f172a, #0f172a 2px, transparent 2px, transparent 5px, #0f172a 5px, #0f172a 9px, transparent 9px, transparent 12px);
  margin-top: 16px;
  border-radius: 4px;
}

/* Live Station Timeline */
.station-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin: 20px 0;
}

.station-timeline::before {
  content: \'\';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 20px;
  width: 3px;
  background: #e2e8f0;
}

.timeline-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  position: relative;
}

.timeline-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-row.passed .timeline-dot {
  border-color: var(--success);
  color: var(--success);
  background: #ecfdf5;
}

.timeline-row.current .timeline-dot {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.25);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.timeline-content {
  flex: 1;
  margin-left: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  align-items: center;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.timeline-row.current .timeline-content {
  border-color: var(--accent);
  background: #fff8f5;
}

/* Contact Cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.contact-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.contact-box-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Print Rules */
@media print {
  body {
    background: #ffffff !important;
  }
  .top-bar, .header-main, .site-footer, .ticket-actions-bar, .toast-notice {
    display: none !important;
  }
  .ticket-stub {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

@media (max-width: 900px) {
  .modify-search-grid {
    grid-template-columns: 1fr;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .ticket-stub {
    grid-template-columns: 1fr;
  }
  .ticket-main-body {
    border-right: none;
    border-bottom: 2px dashed #cbd5e1;
  }
  .ticket-stub::before, .ticket-stub::after {
    display: none;
  }
  .timeline-content {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
