/* ==========================================================================
   USA TRAIN BOOKING - CORE STYLESHEET
   Brand Colors:
   Primary: #002246 | Secondary: #0B4EA2 | Accent: #FFB400
   White: #FFFFFF   | Light BG: #F7F9FC
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --primary: #002246;
  --primary-dark: #001730;
  --primary-light: #07356a;
  --secondary: #0B4EA2;
  --secondary-hover: #083c7d;
  --accent: #FFB400;
  --accent-hover: #e5a200;
  --accent-light: #fff5db;
  --accent-glow: rgba(255, 180, 0, 0.4);

  /* Neutrals */
  --white: #FFFFFF;
  --bg-light: #F7F9FC;
  --bg-subtle: #EEF2F7;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --border-focus: #0B4EA2;

  /* Status */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --info: #3B82F6;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 34, 70, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 34, 70, 0.07), 0 2px 4px -2px rgba(0, 34, 70, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 34, 70, 0.08), 0 4px 6px -4px rgba(0, 34, 70, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 34, 70, 0.1), 0 8px 10px -6px rgba(0, 34, 70, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0, 34, 70, 0.22);
  --shadow-cta: 0 8px 25px rgba(255, 180, 0, 0.35);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ==========================================================================
   BUTTONS & CTA
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(11, 78, 162, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 78, 162, 0.45);
  color: var(--white);
}

/* Dominant CTA Button (Required in Header & Booking Engine) */
.btn-cta {
  background: linear-gradient(135deg, #FFC433 0%, var(--accent) 50%, #E5A200 100%);
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-cta);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 180, 0, 0.55);
  background: linear-gradient(135deg, #FFD066 0%, #FFB400 100%);
  color: var(--primary-dark);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(11, 78, 162, 0.04);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--primary);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 15, 35, 0.3);
  transition: all var(--transition);
}

.site-header.scrolled {
  background-color: rgba(0, 34, 70, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 25px rgba(0, 10, 25, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-logo .logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
}

.brand-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-logo .logo-text span {
  color: var(--accent);
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Navigation Links (Center) */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Right CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--primary);
  z-index: 2000;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: right var(--transition-smooth);
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close {
  color: var(--white);
  font-size: 1.6rem;
  padding: 6px;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.drawer-links .nav-link {
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 45, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 460px;
  padding: 38px 0 34px;
  background-image: url('../images/hero-train.png');
  background-size: cover;
  background-position: 85% 82%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 34, 70, 0.96) 0%,
    rgba(0, 34, 70, 0.88) 25%,
    rgba(0, 34, 70, 0.35) 48%,
    rgba(0, 34, 70, 0) 65%,
    rgba(0, 34, 70, 0) 100%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-header {
  text-align: left;
  max-width: 660px;
  margin: 0 0 20px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.18;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
  margin: 0 0 12px 0;
  font-weight: 400;
  line-height: 1.45;
}

/* Hero Features Badges */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 22px;
  margin-top: 8px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.88rem;
  font-weight: 600;
}

.feature-pill .check-icon {
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
}

/* ==========================================================================
   TRAIN SEARCH ENGINE (WIDGET)
   ========================================================================== */
.search-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 45px rgba(0, 20, 50, 0.22);
  padding: 20px 24px;
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Trip Type Tabs */
.trip-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.tab-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid transparent;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 34, 70, 0.2);
}

.tab-btn:not(.active):hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

/* Search Form Grid - Single Row on Desktop */
.search-form-grid {
  display: grid;
  grid-template-columns: 1.35fr 36px 1.35fr 1.05fr 1.05fr 1.15fr 1.25fr;
  gap: 8px;
  align-items: flex-end;
  position: relative;
}

.search-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
  white-space: nowrap;
}

.field-label i,
.field-label svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 48px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition);
}

.search-input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.12);
}

.search-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.84rem;
}

/* Station Input Specifics */
.station-code-badge {
  position: absolute;
  right: 10px;
  background: var(--primary-light);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  letter-spacing: 0.05em;
}

/* Station Swap Column & Button */
.swap-btn-col {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.swap-stations-btn {
  width: 34px;
  height: 34px;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  box-shadow: 0 2px 6px rgba(0, 34, 70, 0.12);
  transition: all var(--transition-smooth);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.swap-stations-btn:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: rotate(180deg) scale(1.1);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 34, 70, 0.18);
  border: 1px solid var(--border-color);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid var(--bg-light);
  transition: background var(--transition-fast);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: #F0F6FF;
}

.station-meta {
  display: flex;
  flex-direction: column;
}

.station-main {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.station-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.station-code-pill {
  background: rgba(11, 78, 162, 0.1);
  color: var(--secondary);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.autocomplete-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Passenger Trigger & Popover */
.passenger-trigger {
  width: 100%;
  height: 48px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.passenger-trigger:focus,
.passenger-trigger.active {
  background: var(--white);
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.12);
}

.passenger-popover {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(0, 34, 70, 0.2);
  border: 1px solid var(--border-color);
  padding: 18px;
  z-index: 100;
  display: none;
}

.passenger-popover.active {
  display: block;
}

.passenger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-light);
}

.passenger-row:last-of-type {
  border-bottom: none;
}

.passenger-info {
  display: flex;
  flex-direction: column;
}

.pax-type {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.88rem;
}

.pax-age {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.stepper-btn:hover:not(:disabled) {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper-count {
  font-weight: 700;
  font-size: 0.92rem;
  width: 18px;
  text-align: center;
}

.popover-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pax-limit-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Date Field Styling */
.date-input {
  cursor: pointer;
}

.date-field.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Submit Button in Widget - Aligned in Same Row */
.search-btn-col {
  display: flex;
  align-items: flex-end;
}

.search-submit-btn {
  width: 100%;
  height: 48px;
  font-size: 0.92rem;
  padding: 8px 14px;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   SECTION: WHY CHOOSE US
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(11, 78, 162, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(11, 78, 162, 0.1) 0%, rgba(255, 180, 0, 0.15) 100%);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==========================================================================
   SECTION: POPULAR ROUTES
   ========================================================================== */
.routes-section {
  background-color: var(--white);
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.route-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.route-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.route-card-banner {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.route-badge {
  background: rgba(0, 34, 70, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.route-price-tag {
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.route-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.route-header-info {
  margin-bottom: 16px;
}

.route-cities {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.route-cities .arrow {
  color: var(--secondary);
  font-size: 1.1rem;
}

.route-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.route-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-fare-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION: HOW IT WORKS
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(11, 78, 162, 0.35);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--secondary);
  margin: 10px auto 24px;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   SECTION: TRAVEL INFORMATION (BENEFITS)
   ========================================================================== */
.info-section {
  background: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.info-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.info-media img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.info-floating-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(0, 34, 70, 0.92);
  backdrop-filter: blur(10px);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-floating-card .stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.info-floating-card .stat-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.info-list-item {
  display: flex;
  gap: 16px;
}

.info-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(11, 78, 162, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-item-content h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-item-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner-section {
  padding: 60px 0;
}

.cta-banner-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 60px 50px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content h2 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 70px;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-badges {
  display: flex;
  gap: 12px;
}

.footer-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item svg,
.contact-item i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.disclaimer-micro {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  line-height: 1.4;
}

/* ==========================================================================
   SEARCH RESULTS PAGE STYLES
   ========================================================================== */
.results-page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 30px 0;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.search-summary-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.summary-route {
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-station {
  display: flex;
  flex-direction: column;
}

.summary-code {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}

.summary-name {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.summary-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
}

.summary-details {
  display: flex;
  align-items: center;
  gap: 24px;
}

.summary-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Results Content Layout */
.results-container {
  padding: 40px 0 80px;
}

.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* Sidebar Filters */
.filters-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.filter-header h3 {
  font-size: 1.15rem;
}

.reset-filters-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
}

.reset-filters-btn:hover {
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

/* Checkbox & Radios */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.filter-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-range {
  width: 100%;
  accent-color: var(--secondary);
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Results Main Area */
.results-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Results Sort Bar */
.results-sort-bar {
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.results-count-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.results-count-text strong {
  color: var(--primary);
}

.sort-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sort-select {
  padding: 8px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  outline: none;
}

/* Section Journey Headers (Outbound & Return) */
.journey-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.journey-section-title .journey-tag {
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Train Card */
.train-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-smooth);
  margin-bottom: 20px;
  position: relative;
}

.train-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.train-card.selected {
  border-color: var(--accent);
  background: #FFFDF5;
  box-shadow: 0 8px 25px rgba(255, 180, 0, 0.25);
}

.train-card-header {
  background: var(--bg-light);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.train-name-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.train-badge-pill {
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.train-service-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.train-number {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.train-amenities {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* Train Card Body */
.train-card-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 2.4fr 1.6fr;
  gap: 24px;
  align-items: center;
}

/* Schedule Timeline */
.timeline-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.timeline-point {
  display: flex;
  flex-direction: column;
}

.timeline-time {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.timeline-station {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.timeline-city {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.timeline-duration-path {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
}

.duration-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.path-line {
  position: relative;
  width: 100%;
  height: 3px;
  background: var(--border-color);
  border-radius: 2px;
}

.path-line::before,
.path-line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

.path-line::before { left: 0; }
.path-line::after { right: 0; }

.stops-badge {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.stops-badge.has-stops {
  color: var(--secondary);
  background: rgba(11, 78, 162, 0.08);
}

/* Fare & Action Column */
.fare-action-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border-color);
}

.fare-pricing {
  text-align: right;
}

.fare-class-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fare-amount {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.fare-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.select-train-btn {
  min-width: 130px;
}

/* ==========================================================================
   STATES: LOADING, ERROR, EMPTY
   ========================================================================== */
.state-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 60px 40px;
  text-align: center;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.state-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--bg-subtle);
  border-top-color: var(--secondary);
  border-right-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.state-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.state-icon.error { color: var(--danger); }
.state-icon.empty { color: var(--secondary); }

.state-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.state-msg {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   MODAL & CHECKOUT PREVIEW
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 45, 0.75);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-smooth);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: var(--primary);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  color: var(--white);
  font-size: 1.25rem;
}

.modal-close-btn {
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.modal-close-btn:hover {
  opacity: 1;
}

.modal-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

.booking-summary-box {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 20px;
}

.booking-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.booking-row:last-child {
  margin-bottom: 0;
}

.booking-total-row {
  border-top: 2px dashed var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  border-left: 4px solid var(--accent);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   BOOKING & CHECKOUT PAGE STYLES
   ========================================================================== */
.train-operator-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}

/* Stepper */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  gap: 12px;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: all var(--transition);
}

.step-node.completed,
.step-node.active {
  opacity: 1;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.step-node.completed .step-num {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.step-node.active .step-num {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.step-lbl {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  max-width: 60px;
}

.step-connector.active {
  background: var(--accent);
}

/* Booking Layout Grid */
.booking-layout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.checkout-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 24px;
}

.checkout-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.card-icon-badge {
  width: 44px;
  height: 44px;
  background: rgba(11, 78, 162, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form Grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* Pax Box */
.pax-card-box {
  background: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}

.pax-card-header {
  margin-bottom: 14px;
}

.pax-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-badge {
  background: var(--secondary);
  color: var(--white);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Booking Sidebar Summary */
.booking-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.sidebar-card-header h3 {
  font-size: 1.2rem;
}

.trip-tag {
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.sidebar-train-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-train-no {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.sidebar-route-meta {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}

.route-city-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.city-code {
  font-weight: 800;
  color: var(--primary);
}

.route-time {
  font-weight: 700;
  color: var(--text-main);
}

.route-duration-divider {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 0;
  position: relative;
}

.sidebar-fare-class {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sidebar-price-breakdown {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.price-row.total-row {
  border-top: 2px dashed var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.total-amount {
  color: var(--secondary);
  font-family: var(--font-heading);
}

.sidebar-trust-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   CONFIRMATION SCREEN & E-TICKET VOUCHER
   ========================================================================== */
.confirmation-container {
  max-width: 820px;
  margin: 0 auto;
}

.confirmation-banner {
  background: var(--success-bg);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  text-align: center;
  margin-bottom: 28px;
}

.conf-check-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.confirmation-banner h2 {
  font-size: 1.8rem;
  color: #065F46;
  margin-bottom: 8px;
}

.confirmation-banner p {
  color: #047857;
  font-size: 1.05rem;
}

.pnr-badge-box {
  background: var(--white);
  border: 2px dashed var(--secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.pnr-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pnr-code {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.pnr-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* E-Ticket Voucher Card */
.e-ticket-voucher {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.voucher-header {
  background: var(--bg-light);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-status-badge {
  background: var(--success);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.voucher-body {
  padding: 28px;
}

.voucher-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.v-station {
  display: flex;
  flex-direction: column;
}

.v-code {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.v-name {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.v-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 4px;
}

.v-path {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.v-train-badge {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.v-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.voucher-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.v-detail-item {
  display: flex;
  flex-direction: column;
}

.v-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.v-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.voucher-barcode-row {
  text-align: center;
  background: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius-md);
}

.barcode-graphic {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  line-height: 1;
}

.barcode-num {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.confirmation-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
