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

:root {
  /* Premium Palette */
  --red: #A01010;
  --red-hover: #7b0a0a;
  --dark: #121212;
  --grey: #F5F7FA;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  
  /* Glassmorphism settings */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  --radius: 20px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
}

/* Page Transition / SPA Feel Container */
#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--grey);
  box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

.page {
  padding: calc(10px + var(--safe-top)) 20px calc(90px + var(--safe-bottom));
  min-height: 100vh;
  animation: fadeIn 0.3s ease forwards;
}

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

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

.logo-container {
  width: 140px;
}

.logo-container img {
  width: 100%;
  height: auto;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.95);
}

/* Hero Section */
.hero {
  margin-bottom: 15px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 24px;
}

/* Call to Action Card */
.cta-card {
  background: linear-gradient(135deg, var(--red) 0%, #d81b1b 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px -10px rgba(160, 16, 16, 0.4);
  margin-bottom: 15px;
  display: block;
  transition: transform 0.2s ease;
  z-index: 1;
}

.cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-card:active {
  transform: scale(0.98);
}

.cta-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.glass-orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  z-index: -1;
}

.orb-1 {
  width: 60px;
  height: 60px;
  bottom: -10px;
  right: 60px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.orb-2 {
  width: 30px;
  height: 30px;
  top: 20px;
  right: 120px;
}

.faint-bus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(4);
  opacity: 0.05; /* very faint */
  color: var(--white);
  pointer-events: none;
  z-index: 1;
}

.cta-card h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cta-card p {
  font-size: 14px;
  opacity: 0.9;
  max-width: 80%;
}

.cta-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

/* Action Grid */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.02);
  transition: transform 0.2s ease;
}

.action-tile:active {
  transform: scale(0.96);
}

.action-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(160, 16, 16, 0.08);
  display: grid;
  place-items: center;
  color: var(--red);
}

.action-tile.dark .action-icon-wrap {
  background: rgba(31, 41, 55, 0.08);
  color: var(--text-dark);
}

.action-tile h3 {
  font-size: 16px;
  font-weight: 600;
}

.action-tile p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Forms & Inputs Native Look */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.native-input {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  appearance: none; /* Crucial for native styling */
}

.native-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(160, 16, 16, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 18px;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  box-shadow: 0 10px 20px -5px rgba(160, 16, 16, 0.3);
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:active {
  transform: scale(0.98);
  background: var(--red-hover);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 calc(12px + var(--safe-bottom));
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--red);
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}
/* Booking Top Bar and Tabs */
.booking-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--white);
  border-bottom: 2px solid var(--red);
}

.booking-topbar .logo {
  height: 30px;
  width: auto;
}

.booking-topbar a {
  font-weight: 600;
  font-size: 14px;
}

.tab-scroll-container {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  background: var(--grey);
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  -webkit-overflow-scrolling: touch;
}

.tab-scroll-container::-webkit-scrollbar {
  display: none;
}

.top-tab {
  padding: 8px 16px;
  background: var(--white);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.top-tab.active {
  background: rgba(160, 16, 16, 0.08);
  color: var(--red);
  border-color: rgba(160, 16, 16, 0.2);
}

/* Trip Type Toggle */
.trip-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.trip-toggle-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--white);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.trip-toggle-btn.active {
  background: rgba(160, 16, 16, 0.05);
  border-color: rgba(160, 16, 16, 0.3);
  color: var(--red);
}

/* Tab Content */
.tab-content-panel {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.tab-content-panel.active {
  display: block;
}

/* Charter Banner */
.charter-banner {
  background: linear-gradient(to bottom, #1a1a1a, #000);
  border-radius: 16px 16px 0 0;
  padding: 30px 20px;
  color: white;
  text-align: center;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Radio Button Styling for Slots */
input[type="radio"]:checked + div {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 2px rgba(160, 16, 16, 0.2);
}
input[type="radio"]:checked + div span {
  color: var(--red) !important;
}

/* Legal Footer */
.auth-legal-footer {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 24px 20px;
  margin: 30px 0 10px 0;
  text-align: center;
}

.auth-legal-copy {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.auth-legal-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-legal-text a {
  color: var(--text-dark);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  font-weight: 500;
}
