/* ===== GTT Car Rental EV — Design System ===== */
/* Fonts loaded via <link> in HTML for faster rendering */

:root {
  /* Primary Blues */
  --primary-900: #001a4d;
  --primary-800: #002b80;
  --primary-700: #0039a6;
  --primary-600: #0052D4;
  --primary-500: #4364F7;
  --primary-400: #6FB1FC;
  --primary-300: #93c5fd;
  --primary-200: #bfdbfe;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Accent */
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%);
  --gradient-hero: linear-gradient(135deg, #001a4d 0%, #0052D4 40%, #4364F7 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 82, 212, 0.15);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-blue: 0 10px 40px rgba(0, 82, 212, 0.25);

  /* Typography */
  --font-thai: 'Kanit', sans-serif;
  --font-en: 'Inter', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem 0;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Marketing / hero accents */
  --hero-highlight: rgba(111, 177, 252, 0.35);
  --surface-glass-light: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-thai);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navbar — single glass bar, clear hierarchy ===== */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1.75rem);
  max-width: min(1120px, var(--container-max));
  z-index: 1000;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: top 0.35s ease;
}

.navbar.scrolled {
  top: 0.5rem;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.55rem 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 28px rgba(0, 15, 50, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  max-width: none;
  margin: 0;
}

.navbar.scrolled .container {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 82, 212, 0.1);
  box-shadow: 0 4px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  transition: color 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}

.navbar-brand:hover {
  opacity: 0.95;
}

.navbar.scrolled .navbar-brand {
  color: var(--primary-600);
}

.navbar-brand .brand-logo {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.22));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.navbar-brand:hover .brand-logo {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.28));
}

.navbar.scrolled .brand-logo {
  height: 38px;
  filter: none;
}

.navbar.scrolled .navbar-brand:hover .brand-logo {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links > a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
}

.nav-links > a:not(.nav-cta):hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.navbar.scrolled .nav-links > a:not(.nav-cta) {
  color: var(--gray-700);
}

.navbar.scrolled .nav-links > a:not(.nav-cta):hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.nav-links > a:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.95);
  outline-offset: 3px;
}

.navbar.scrolled .nav-links > a:focus-visible {
  outline-color: var(--primary-500);
}

.nav-cta {
  margin-left: 0.35rem;
  padding: 0.55rem 1.35rem !important;
  background: var(--white) !important;
  color: var(--primary-700) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
}

.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}

.navbar.scrolled .nav-cta {
  background: var(--primary-600) !important;
  color: var(--white) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 14px rgba(0, 82, 212, 0.28) !important;
}

.navbar.scrolled .nav-cta:hover {
  background: var(--primary-700) !important;
  box-shadow: 0 8px 26px rgba(0, 82, 212, 0.35) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-toggle:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.95);
  outline-offset: 2px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-base);
  border-radius: 2px;
}

.navbar.scrolled .mobile-toggle {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.navbar.scrolled .mobile-toggle:hover {
  background: var(--gray-200);
}

.navbar.scrolled .mobile-toggle span {
  background: var(--gray-800);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  background-color: #0a1224;
  background-image:
    radial-gradient(ellipse 95% 65% at 12% 38%, rgba(99, 102, 241, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 75% 55% at 92% 12%, rgba(14, 165, 233, 0.16) 0%, transparent 48%),
    radial-gradient(ellipse 55% 45% at 55% 88%, rgba(67, 100, 247, 0.14) 0%, transparent 50%),
    var(--gradient-hero);
  background-size: cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 85%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2) 0%, transparent 58%);
  animation: heroGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top, var(--gray-50) 0%, transparent 100%);
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-5%, 5%) scale(1.1);
  }
}

/* Optimize for mobile */
@media (max-width: 768px) {
  .hero::before,
  .hero::after {
    animation: none !important;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
  max-width: 520px;
}

.hero-kicker::before {
  content: '';
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--primary-400));
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text h1 {
    animation: heroTitleIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

.hero-text h1 span {
  background: linear-gradient(135deg, #a5d8ff 0%, #6fb1fc 45%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(111, 177, 252, 0.35));
}

.hero-notice {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 34rem;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: #fef9c3;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-notice strong {
  font-weight: 700;
  color: #fff;
}

.hero-notice-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 0.85rem;
  margin-top: 2.75rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  padding: 1rem 1.25rem;
  min-width: 7.5rem;
  flex: 1 1 auto;
  background: var(--surface-glass-light);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-4px);
}

.hero-stat .number {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--white);
  min-width: 2.5rem;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.88) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-car-image {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 400;
  object-fit: contain;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 56px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 100px rgba(67, 100, 247, 0.18);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Floating decorative elements */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(0, 82, 212, 0.06);
  animation: floatBadge 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.floating-badge.top-left {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.floating-badge.bottom-right {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5ff 100%);
  color: var(--primary-700);
  box-shadow:
    0 4px 16px rgba(0, 82, 212, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 32px rgba(0, 82, 212, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline-color: var(--primary-500);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline:focus-visible {
  outline-color: var(--primary-300);
}

.btn-blue {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(0, 82, 212, 0.35);
}

.btn-blue:focus-visible {
  outline-color: var(--primary-200);
}

/* Secondary / toolbar buttons (admin, modals) */
.btn.btn-secondary-outline {
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn.btn-secondary-outline:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
  background: var(--primary-50);
  transform: translateY(-1px);
}

.btn.btn-secondary-outline:focus-visible {
  outline-color: var(--primary-400);
}

.btn.btn-soft {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn.btn-soft:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.btn.btn-soft:focus-visible {
  outline-color: var(--gray-500);
}

.btn.btn-ghost-on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.btn-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn.btn-ghost-on-dark:focus-visible {
  outline-color: rgba(255, 255, 255, 0.9);
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  min-height: 44px;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ===== Section Headings ===== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, rgba(219, 234, 254, 0.9) 100%);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 82, 212, 0.1);
  box-shadow: 0 2px 12px rgba(0, 82, 212, 0.06);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 4px;
  margin: 0.85rem auto 0;
  border-radius: 2px;
  background: var(--gradient-primary);
  opacity: 0.9;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Cars Grid ===== */
.cars-section {
  padding: var(--section-padding);
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(0, 82, 212, 0.05) 0%, transparent 55%),
    var(--gray-50);
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.car-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  border: 1px solid var(--gray-100);
  animation: carFadeIn 0.6s ease-out both;
}

.car-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
  pointer-events: none;
}

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

.car-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 48px -12px rgba(15, 23, 42, 0.15),
    0 0 0 1px rgba(0, 82, 212, 0.06);
  border-color: rgba(0, 82, 212, 0.12);
}

.car-card:hover::before {
  opacity: 1;
}

.car-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-50);
}

.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-slow);
}

.car-card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 35%);
  pointer-events: none;
  z-index: 1;
}

.car-card:hover .car-card-img img {
  transform: scale(1.05);
}

.car-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-available {
  background: var(--accent-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.badge-rented {
  background: var(--accent-amber);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.badge-unavailable {
  background: var(--accent-red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.car-card-body {
  padding: 1.5rem;
}

.car-card-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.car-card-specs {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.spec-item i {
  color: var(--primary-500);
}

.car-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
}

.car-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-400);
}

/* ===== Features Section ===== */
.features-section {
  padding: var(--section-padding);
  background: var(--white);
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  background: linear-gradient(165deg, var(--white) 0%, var(--gray-50) 100%);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px -16px rgba(0, 82, 212, 0.18),
    0 0 0 1px rgba(0, 82, 212, 0.05);
  border-color: var(--primary-200);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--primary-600);
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: var(--section-padding);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.22), transparent 60%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.12), transparent 55%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  background: var(--gradient-dark);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), transparent);
  opacity: 0.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--gray-400);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: inline-block;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--gray-300);
  /* 4.5+ contrast ratio */
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-400);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group label .required {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition-base);
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(67, 100, 247, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* File upload */
.file-upload-wrapper {
  position: relative;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--gray-50);
}

.file-upload-wrapper:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 2.5rem;
  color: var(--primary-400);
  margin-bottom: 0.75rem;
}

.file-upload-text {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.file-upload-text strong {
  color: var(--primary-600);
}

.file-preview {
  margin-top: 1rem;
  display: none;
}

.file-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: var(--radius-sm);
  margin: 0 auto;
}

.file-preview .file-name {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

/* ===== Booking Page ===== */
.booking-page {
  min-height: 100vh;
  padding-top: 100px;
  background:
    radial-gradient(ellipse 100% 55% at 50% 0%, rgba(0, 82, 212, 0.06) 0%, transparent 52%),
    var(--gray-50);
}

.booking-header {
  position: relative;
  background-color: #0052d4;
  background-image:
    radial-gradient(ellipse 80% 70% at 15% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    var(--gradient-primary);
  padding: 3rem 0;
  margin-top: -100px;
  padding-top: calc(3rem + 100px);
  overflow: hidden;
}

.booking-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--gray-50), transparent);
  pointer-events: none;
}

.booking-header .container {
  position: relative;
  z-index: 1;
}

.booking-header-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.5rem;
}

.booking-header h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.booking-header h1 i {
  opacity: 0.95;
  margin-right: 0.35rem;
}

.booking-header-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
}

.booking-container {
  max-width: 800px;
  margin: -2rem auto 4rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.booking-form-card {
  position: relative;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow:
    0 20px 50px -20px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(0, 82, 212, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.95);
  transition: box-shadow 0.35s ease;
}

.booking-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--gradient-primary);
  opacity: 0.85;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-100);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.01em;
}

.form-section-title i {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Selected car info */
.selected-car-info {
  display: none;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, rgba(239, 246, 255, 0.6) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(191, 219, 254, 0.85);
  box-shadow: 0 4px 20px rgba(0, 82, 212, 0.06);
}

.selected-car-info.show {
  display: flex;
}

.selected-car-info img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

.selected-car-details h4 {
  font-weight: 600;
  color: var(--gray-900);
}

.selected-car-details .price {
  color: var(--primary-600);
  font-weight: 700;
  font-size: 1.15rem;
}

/* หน้าจอง: แถบนำทางอ่านชัดบนพื้นอ่อน (ไม่มีสคริปต์ scroll เหมือนหน้าแรก) */
.page-booking .navbar .container {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 82, 212, 0.1);
  box-shadow: 0 4px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.page-booking .navbar:not(.scrolled) .nav-links > a:not(.nav-cta) {
  color: var(--gray-700);
}

.page-booking .navbar:not(.scrolled) .nav-links > a:not(.nav-cta):hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.page-booking .navbar:not(.scrolled) .nav-cta {
  background: var(--primary-600) !important;
  color: var(--white) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 14px rgba(0, 82, 212, 0.28) !important;
}

.page-booking .navbar:not(.scrolled) .nav-cta:hover {
  background: var(--primary-700) !important;
  box-shadow: 0 8px 26px rgba(0, 82, 212, 0.35) !important;
}

.page-booking .navbar:not(.scrolled) .navbar-brand {
  color: var(--primary-600);
}

.page-booking .navbar:not(.scrolled) .brand-logo {
  filter: none;
  height: 38px;
}

.page-booking .navbar:not(.scrolled) .mobile-toggle {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.page-booking .navbar:not(.scrolled) .mobile-toggle:hover {
  background: var(--gray-200);
}

.page-booking .navbar:not(.scrolled) .mobile-toggle span {
  background: var(--gray-800);
}

.page-booking .nav-links > a.nav-link-active:not(.nav-cta) {
  color: var(--primary-600) !important;
  background: var(--primary-50);
  font-weight: 700;
}

.page-booking .navbar.scrolled .nav-links > a.nav-link-active:not(.nav-cta) {
  color: var(--primary-600) !important;
  background: var(--primary-50);
}


/* Shared components (Modals, Toasts) and Admin styles moved to separate files to improve homepage performance. */

/* ===== Loading ===== */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
  color: var(--gray-500);
}


/* Modal styles moved to components.css */

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* ===== Responsive ===== */


/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* CTA pulse — readable on white button */
@keyframes pulse-cta {

  0%,
  100% {
    box-shadow:
      0 4px 18px rgba(0, 82, 212, 0.25),
      0 0 0 0 rgba(0, 82, 212, 0.35);
  }

  50% {
    box-shadow:
      0 12px 36px rgba(0, 82, 212, 0.38),
      0 0 0 8px rgba(0, 82, 212, 0);
  }
}

.pulse {
  animation: pulse-cta 2.4s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 100, 247, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(67, 100, 247, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(67, 100, 247, 0);
  }
}


/* FullCalendar overrides moved to components.css */


/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-car-image,
  .floating-badge {
    animation: none !important;
  }

  .hero-text h1 {
    animation: none !important;
  }

  .pulse {
    animation: none !important;
  }

  .car-card {
    animation: none !important;
  }

  .car-card:hover {
    transform: none;
  }

  .hero-stat:hover {
    transform: none;
  }

  .stat-card:hover {
    transform: none;
  }

  .modal {
    animation: none !important;
  }
}