/* Custom CSS Design System - Travel Assist UK */

:root {
  /* Amtrak Brand Aesthetic Color Palette */
  --primary-color: #002D62;
  /* Amtrak Deep Navy Blue */
  --secondary-color: #005A9C;
  /* Amtrak Steel/Medium Blue Accent */
  --sky-blue: #D1E8FF;
  /* Amtrak Light Accent Blue */
  --accent-color: #E21E26;
  /* Amtrak Brand Arrow Red */
  --white: #FFFFFF;
  --bg-primary: #F0F3F7;
  /* Amtrak Page Background Light Grey */
  --bg-secondary: #FFFFFF;
  --text-primary: #1F2937;
  /* Charcoal Text */
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border-color: #D1D5DB;
  /* Amtrak Form Border Grey */
  --border-hover: #005A9C;

  --status-ontime: #16A34A;
  /* Success Green */
  --status-delay-mid: #F59E0B;
  /* Warning Amber */
  --status-delay-high: #C62828;

  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* UI Tokens */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-neon: 0 0 15px rgba(0, 95, 134, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Typography Helpers */
h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--primary-color);
  font-weight: 700;
}

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

a:hover {
  color: var(--primary-color);
}

/* Global Navigation */
.main-navbar {
  background-color: var(--primary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

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

.logo-tagline {
  font-size: 0.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.nav-links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  text-shadow: 0 0 1px var(--white);
}

.cta-btn-header {
  background-color: var(--accent-color);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.2);
}

.cta-btn-header:hover {
  background-color: #B71C1C;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #001f33 0%, #003B5C 100%);
  color: var(--white);
  padding: 80px 20px 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(79, 163, 209, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-content p {
  color: var(--sky-blue);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Search Tabs Booking Widget */
.search-widget-container {
  max-width: 900px;
  margin: -40px auto 40px auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0;
}

.tab-btn {
  background: #E5E7EB;
  border: none;
  padding: 6px 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: var(--transition-smooth);
  margin-right: 2px;
}

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

.tab-btn:hover:not(.active) {
  background-color: #D1D5DB;
  color: var(--text-primary);
}

/* Search Forms Layout */
.search-form-grid {
  display: grid;
  grid-template-columns: 1.2fr auto 1.2fr 1.5fr 1.2fr 160px;
  gap: 16px;
  align-items: end;
}

@media (max-width: 768px) {
  .search-form-grid {
    grid-template-columns: 1fr !important;
  }
}

.swap-btn {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  z-index: 5;
  align-self: end;
  margin-bottom: 2px;
}

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

.swap-btn i {
  font-size: 0.95rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.input-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition-smooth);
}

.input-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
}

.search-submit-btn {
  background-color: #4C8000;
  color: var(--white);
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(76, 128, 0, 0.25);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-submit-btn:hover {
  background-color: #3F6B00;
  transform: translateY(-1px);
}

/* Autocomplete Suggestion Box */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  margin-top: 4px;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
}

.autocomplete-list li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  flex-direction: column;
}

.autocomplete-list li:last-child {
  border-bottom: none;
}

.autocomplete-list li:hover {
  background-color: rgba(0, 95, 134, 0.05);
}

.station-title {
  font-weight: 600;
  color: var(--text-primary);
}

.station-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Status Log Tray Drawer */
.log-console-container {
  background-color: #1E293B;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
  border: 1px solid #334155;
  text-align: left;
}

.log-console-header {
  background-color: #0F172A;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
}

.log-console-title {
  color: #94A3B8;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  animation: logPulse 1.5s infinite;
}

.log-terminal-output {
  max-height: 180px;
  overflow-y: auto;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38BDF8;
  line-height: 1.5;
}

.log-terminal-line {
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  padding-bottom: 2px;
}

@keyframes logPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

/* Search Results Layout */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.fare-card {
  display: grid;
  grid-template-columns: 1fr 480px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

@media (max-width: 992px) {
  .fare-card {
    grid-template-columns: 1fr;
  }
}

.fare-card:hover {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.fare-card-left {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.train-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.train-logo-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(0, 95, 134, 0.08);
  border: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.train-name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
}

.train-number {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.time-duration-flow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.time-box {
  display: flex;
  flex-direction: column;
}

.time-box-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.time-box-value {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.duration-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.duration-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.arrow-line {
  height: 2px;
  background-color: var(--sky-blue);
  width: 100%;
  position: relative;
  margin-top: 4px;
}

.arrow-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--sky-blue);
}

/* 4-Class Price Grid */
.fare-card-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #F8FAFC;
  border-left: 1px solid var(--border-color);
  padding: 12px;
  gap: 10px;
}

@media (max-width: 992px) {
  .fare-card-right {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

.fare-class-column {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
}

.fare-class-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.fare-class-price {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 6px 0;
}

.fare-book-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.fare-book-btn:hover {
  background-color: var(--primary-color);
}

.fare-class-soldout {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 16px;
}

/* Card Details Drawer Styles */
.card-details-drawer {
  grid-column: 1 / -1;
  padding: 20px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--border-color);
  animation: slideDown 0.3s ease-out;
  text-align: left;
}

.fare-card.expanded {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.details-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 16px;
}

.details-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .details-content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.details-content-grid h3 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.route-address-step {
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 14px;
  line-height: 1.4;
}

.route-address-step strong {
  color: var(--text-primary);
}

.route-address-step .step-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 50%;
}

.amenities-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenities-checklist li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.amenities-checklist li i {
  color: var(--status-ontime);
}

.details-refund-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Map Section Tracking Panel */
.map-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 24px;
}

.map-wrapper {
  height: 500px;
  width: 100%;
}

/* Info Board Cards Grid */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .info-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-stat-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 95, 134, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.25rem;
}

.info-stat-content {
  display: flex;
  flex-direction: column;
}

.info-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.info-stat-val {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 2px;
}

/* Trust Signals Badges Section */
.trust-badges-section {
  padding: 60px 20px;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.trust-badges-title {
  font-size: 1.4rem;
  margin-bottom: 30px;
}

.badges-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
}

.badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(0, 95, 134, 0.08);
  color: var(--secondary-color);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 95, 134, 0.15);
}

.badge-name {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.badge-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* Popular Routes Grid Section */
.popular-routes-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

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

.route-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.route-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.route-card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: 700;
}

.route-card-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
}

.route-card-link {
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
}

/* Live Chat Widget Simulation */
.chat-widget-toggle {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: var(--transition-smooth);
}

.chat-widget-toggle:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

.chat-widget-container {
  position: fixed;
  bottom: 150px;
  right: 24px;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 999;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.chat-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  color: var(--white);
  margin: 0;
  font-size: 0.95rem;
}

.chat-body {
  padding: 16px;
  max-height: 250px;
  overflow-y: auto;
  font-size: 0.85rem;
  background-color: var(--bg-primary);
}

.chat-msg {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 85%;
}

.chat-msg.agent {
  background-color: var(--white);
  color: var(--text-primary);
  border-top-left-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.chat-footer input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
}

.chat-footer button {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Sticky bottom Mobile Call Bar */
.sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 998;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.sticky-call-text {
  font-size: 0.82rem;
  font-weight: 500;
}

.sticky-call-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--sky-blue);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.sticky-call-btn {
  background: var(--accent-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.05);
}

/* Lead Booking Modal popup */
.inquiry-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.inquiry-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUp 0.3s ease-out;
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Cookie Consent Overlay */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUp 0.4s ease-out;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cookie-btn-accept {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-reject {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}

/* Footer disclaimer section styling */
.main-footer {
  background-color: var(--primary-color);
  color: #94A3B8;
  padding: 60px 20px 40px 20px;
  border-top: 1px solid #1E293B;
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1E293B;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-logo i {
  color: var(--sky-blue);
}

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94A3B8;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-disclaimer-notice {
  max-width: 1200px;
  margin: 30px auto 0 auto;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #64748B;
  border-top: 1px solid #1E293B;
  padding-top: 20px;
}

.footer-disclaimer-notice strong {
  color: #94A3B8;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

/* Stepper and Checkout Form Styles */
.checkout-stepper {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.step-indicator {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.step-indicator.active {
  color: var(--secondary-color);
}

.step-indicator::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

.step-indicator.active::after {
  width: 100%;
}

/* Premium Search Loading Overlay */
.search-loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  max-width: 750px;
}

.loader-content-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.loader-content-card h3 {
  font-family: var(--font-title);
  color: var(--primary-color);
  font-size: 1.4rem;
  margin: 20px 0 5px 0;
}

/* Animated Train Loader CSS */
.train-animation-track {
  height: 40px;
  border-bottom: 3px double var(--text-muted);
  position: relative;
  overflow: hidden;
  margin: 20px auto;
  max-width: 400px;
}

.train-locomotive {
  width: 75px;
  height: 25px;
  background: var(--secondary-color);
  border-radius: 4px 15px 4px 4px;
  position: absolute;
  bottom: 0;
  left: -80px;
  animation: runTrain 2s linear infinite;
  display: flex;
  align-items: center;
  padding-left: 6px;
  box-sizing: border-box;
  gap: 4px;
}

.train-window {
  width: 10px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
}

.train-smoke {
  position: absolute;
  top: -8px;
  right: 15px;
  width: 8px;
  height: 8px;
  background: rgba(156, 163, 175, 0.4);
  border-radius: 50%;
  animation: puffSmoke 0.5s ease-out infinite;
}

@keyframes runTrain {
  0% {
    left: -80px;
  }

  100% {
    left: 400px;
  }
}

@keyframes puffSmoke {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-10px) scale(1.5);
    opacity: 0;
  }
}

/* Promo discount banner in loader */
.promo-discount-banner {
  background: #FFF5F5;
  border: 1.5px dashed var(--accent-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  text-align: center;
  position: relative;
}

.promo-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--white);
  padding: 2px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.promo-discount-banner h4 {
  font-family: var(--font-title);
  color: var(--primary-color);
  font-size: 1.05rem;
  margin: 5px 0 10px 0;
}

.promo-discount-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 15px 0;
}

.promo-call-btn {
  background: var(--accent-color);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.promo-call-btn:hover {
  background: #B71C1C;
}

/* Stops Timeline */
.stops-timeline {
  position: relative;
  padding-left: 24px;
  margin: 20px 0;
  text-align: left;
}

.stops-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 2px;
  height: calc(100% - 12px);
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-node {
  position: relative;
  margin-bottom: 18px;
}

.timeline-node:last-child {
  margin-bottom: 0;
}

.timeline-node::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -23px;
  width: 14px;
  height: 14px;
  background-color: var(--white);
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  z-index: 2;
}

.timeline-node.origin-node::before {
  background-color: var(--secondary-color);
}

.timeline-node.dest-node::before {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  line-height: 1.4;
}

.timeline-station {
  font-weight: 600;
  color: var(--primary-color);
}

.timeline-time {
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-stopover {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Full-Screen Glassmorphism Popup Loader */
.search-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-loader-overlay .loader-content-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  animation: zoomInModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomInModal {
  from {
    transform: scale(0.9) translateY(10px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Interactive Card Preview */
.card-preview-container {
  width: 100%;
  max-width: 360px;
  height: 210px;
  perspective: 1000px;
  margin: 0 auto 30px auto;
}

.credit-card-preview {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.credit-card-preview.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 20px 24px;
  box-sizing: border-box;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.card-face-front {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.card-face-back {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  transform: rotateY(180deg);
  padding: 20px 0;
}

/* Front Details */
.card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 5px;
  position: relative;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 22px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 3px;
}

.card-preview-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.35rem;
  letter-spacing: 2px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin: 18px 0;
  white-space: nowrap;
}

.card-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-preview-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 3px;
  text-align: left;
}

.card-preview-val {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  text-align: left;
}

/* Back Details */
.card-black-bar {
  width: 100%;
  height: 40px;
  background: #000000;
  margin-top: 5px;
}

.card-signature-strip {
  width: 80%;
  height: 32px;
  background: #e2e8f0;
  margin: 12px auto 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  box-sizing: border-box;
}

.card-preview-cvv {
  font-family: 'Courier New', Courier, monospace;
  font-style: italic;
  font-weight: bold;
  color: #0f172a;
  letter-spacing: 1px;
}

/* Premium Modern Form Inputs with Icons */
.form-group-icon {
  position: relative;
  margin-bottom: 20px;
}

.form-group-icon label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  text-align: left;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.input-icon-wrapper input,
.input-icon-wrapper select,
.input-icon-wrapper textarea {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.25s ease;
  background-color: #ffffff;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus,
.input-icon-wrapper textarea:focus {
  outline: none;
  border-color: #005F86;
  box-shadow: 0 0 0 4px rgba(0, 95, 134, 0.12);
  background-color: #ffffff;
}

.input-icon-wrapper input:focus+i,
.input-icon-wrapper select:focus+i {
  color: #005F86;
}

/* Redesigned Sidebar Cards */
.sidebar-summary-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-summary-card h3 {
  font-family: 'Outfit', sans-serif;
  color: #003B5C;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 18px;
  border-bottom: 1.5px solid #f1f5f9;
  padding-bottom: 8px;
}

.summary-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #475569;
}

.summary-detail-row strong {
  color: #0f172a;
}

/* Amtrak Search Style additions */
.passenger-dropdown-trigger {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--white);
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  height: 47px;
  transition: all 0.25s ease;
}

.passenger-dropdown-trigger:focus {
  outline: none;
  border-color: #005F86;
  box-shadow: 0 0 0 4px rgba(0, 95, 134, 0.12);
}

.passenger-popover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: var(--white);
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 100;
  padding: 20px;
  margin-top: 5px;
  animation: fadeInFast 0.2s ease-out;
  box-sizing: border-box;
}

@keyframes fadeInFast {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.pass-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: left;
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-controls button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: var(--white);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.stepper-controls button:hover {
  background: #F1F5F9;
  border-color: var(--secondary-color);
}

.pass-done-btn {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.pass-done-btn:hover {
  background: #004F70;
}

/* Card Selection Highlights */
.fare-card.selected-leg {
  border-color: var(--secondary-color) !important;
  background-color: rgba(0, 95, 134, 0.03) !important;
  box-shadow: 0 4px 15px rgba(0, 95, 134, 0.08) !important;
}

/* Floating booking bar for Round Trip selection */
.floating-booking-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  color: var(--white);
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 20000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  animation: slideUpBar 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBar {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.floating-bar-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.floating-bar-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
}

.floating-bar-btn {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.floating-bar-btn:hover {
  background: #B71C1C;
}

@media (max-width: 576px) {
  .floating-booking-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 12px;
  }

  .floating-bar-details {
    text-align: center;
  }
}

/* Amtrak Mobile Viewport & Search Placement Optimization */
@media (max-width: 768px) {
  .hero-section {
    display: none !important;
    /* Hide hero text completely on mobile so search widget sits directly at top */
  }

  .search-widget-container {
    margin: 0 auto !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    padding: 16px !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .swap-btn {
    align-self: center !important;
    margin: -10px auto -10px auto !important;
    transform: rotate(90deg) !important;
  }

  .swap-btn:hover {
    transform: rotate(270deg) !important;
  }

  .amtrak-floating-banner.shifted {
    bottom: 140px !important;
  }
}

/* Amtrain Mobile Navigation and Headers */
.mobile-nav-controls {
  display: none;
  align-items: center;
  gap: 12px;
}

.nav-phone-btn,
.nav-menu-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-phone-btn:hover,
.nav-menu-btn:hover {
  background: var(--accent-color);
}

.mobile-dropdown-menu {
  background-color: var(--primary-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  width: 100%;
}

.mobile-dropdown-menu a {
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-menu a:hover,
.mobile-dropdown-menu a.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white) !important;
}

.mobile-dropdown-call {
  background-color: var(--accent-color);
  color: var(--white) !important;
  text-align: center;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .mobile-nav-controls {
    display: flex;
  }

  .main-navbar {
    border-bottom: none;
  }
}

/* My Trip Search Form Panel */
#search-mytrip-panel {
  animation: fadeInFast 0.3s ease-out;
}

/* Search widget call action details */
.widget-call-cta-container {
  width: 100%;
  margin-top: 20px;
}

.widget-call-now-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #4C8000;
  color: var(--white) !important;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 4px 15px rgba(76, 128, 0, 0.3);
  animation: pulse-glow-btn 2s infinite;
  transition: var(--transition-smooth);
}

.widget-call-now-btn:hover {
  background: #3F6B00;
  transform: translateY(-1px);
}

.widget-disclaimer-notice {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  text-align: left;
}

@keyframes pulse-glow-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 128, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(76, 128, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(76, 128, 0, 0);
  }
}

/* Sitewide Floating Sticky Call Banner (Amtrak-Style Mock Match) */
.amtrak-floating-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 580px;
  background: #FFF8F8;
  /* Soft pale pink/white */
  border: 3px solid #E21E26;
  /* Prominent red border */
  border-radius: 40px;
  /* Pillow shape */
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  box-sizing: border-box;
}

.amtrak-floating-banner .agent-photo-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.amtrak-floating-banner .agent-photo-col img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #E21E26;
  /* Red ring around profile picture */
  object-fit: cover;
}

.amtrak-floating-banner .content-col {
  flex-grow: 1;
  text-align: center;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.amtrak-floating-banner .promo-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.amtrak-floating-banner .discount-badge {
  background: #16A34A;
  /* Green promo pill */
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.amtrak-floating-banner .banner-phone {
  font-size: 1.7rem;
  font-weight: 900;
  color: #E21E26;
  /* Bold red numbers */
  text-decoration: none;
  line-height: 1.1;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.amtrak-floating-banner .banner-phone:hover {
  text-decoration: underline;
}

.amtrak-floating-banner .call-btn-col {
  flex-shrink: 0;
}

.amtrak-floating-banner .call-btn-col a {
  width: 44px;
  height: 44px;
  background: #16A34A;
  /* Circular green button */
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
  transition: transform 0.2s;
}

.amtrak-floating-banner .call-btn-col a:hover {
  transform: scale(1.08);
}

@media (max-width: 576px) {
  .amtrak-floating-banner {
    width: 96% !important;
    max-width: 420px !important;
    bottom: 12px !important;
    padding: 6px 10px !important;
    border-width: 2px !important;
    border-radius: 30px !important;
  }

  .amtrak-floating-banner .agent-photo-col img {
    width: 44px !important;
    height: 44px !important;
    border-width: 1.5px !important;
  }

  .amtrak-floating-banner .banner-phone {
    font-size: 1.35rem !important;
  }

  .amtrak-floating-banner .promo-text {
    font-size: 0.65rem !important;
    gap: 2px !important;
  }

  .amtrak-floating-banner .discount-badge {
    padding: 1px 4px !important;
    font-size: 0.62rem !important;
    border-radius: 3px !important;
  }

  .amtrak-floating-banner .call-btn-col a {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  /* Make tab buttons Book, Train Status, My Trip smaller on mobile */
  .tab-btn {
    padding: 6px 8px !important;
    font-size: 0.74rem !important;
    flex: 1 !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  .tab-btn i {
    display: none !important;
  }
}

@media (max-width: 375px) {
  .amtrak-floating-banner {
    padding: 4px 8px !important;
  }

  .amtrak-floating-banner .agent-photo-col img {
    width: 36px !important;
    height: 36px !important;
  }

  .amtrak-floating-banner .banner-phone {
    font-size: 1.15rem !important;
  }

  .amtrak-floating-banner .promo-text {
    font-size: 0.58rem !important;
    letter-spacing: -0.2px !important;
  }

  .amtrak-floating-banner .call-btn-col a {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }
}

/* Custom Global Confirmation Modal (Amtrain Style) */
.amtrain-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeInFast 0.25s ease-out;
}

.amtrain-modal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 480px;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid var(--border-color);
  animation: zoomInModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.amtrain-modal-success-icon {
  font-size: 3rem;
  color: #16A34A;
  margin-bottom: 12px;
  display: block;
}

.amtrain-modal-header h3 {
  font-size: 1.35rem;
  color: var(--primary-color);
  margin: 0 0 10px 0;
  font-family: var(--font-title);
  font-weight: 700;
}

.amtrain-modal-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.amtrain-modal-urgent-box {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
  margin-bottom: 20px;
}

.amtrain-modal-urgent-box .urgent-title {
  font-weight: 700;
  color: #B45309;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.amtrain-modal-urgent-box p {
  font-size: 0.85rem !important;
  color: #78350F !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
}

.amtrain-modal-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #4C8000;
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(76, 128, 0, 0.2);
  transition: transform 0.2s, background-color 0.2s;
}

.amtrain-modal-call-btn:hover {
  background-color: #3F6B00;
  transform: translateY(-1px);
}

.amtrain-modal-close-btn {
  background: #E2E8F0;
  color: #475569;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.amtrain-modal-close-btn:hover {
  background: #CBD5E1;
}