/* ===== JSKILZRIDE - Main Stylesheet ===== */
/* Inspired by muvment.ng - Car Rental Platform */
/* ------------------------------------------------------------------ */

/* ===== CSS Variables ===== */
:root {
  --primary: #722F37;
  --primary-dark: #5a252b;
  --primary-light: #8e3b45;
  --secondary: #8B0000;
  --accent: #D4AF37;
  --accent-light: #e0c04d;
  --bg-light: #F8F9FA;
  --bg-dark: #1a1a2e;
  --text-dark: #1a1a1a;
  --text-body: #2d2d2d;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --white: #ffffff;
  --off-white: #fafafa;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1280px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== Selection ===== */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0 24px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-light { color: var(--text-light); }
.text-white { color: var(--white); }
.text-dark { color: var(--text-dark); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

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

.section-title {
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--radius);
  font-size: 1.125rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 47, 55, 0.3);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #c4a030;
  border-color: #c4a030;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-light:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

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

.navbar-brand img {
  height: 55px;
  max-height: 55px;
  width: auto;
}

.navbar-brand span {
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.navbar.scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .btn {
  margin-left: 0.5rem;
  padding: 8px 18px;
  color: var(--text-dark) !important;
}

.nav-links .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.nav-links .btn::after {
  display: none;
}

.navbar.scrolled .nav-links .btn {
  color: var(--text-dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  padding: 100px 2rem 2rem;
  transition: var(--transition);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

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

.mobile-menu .btn {
  margin-top: 1rem;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.overlay.active {
  display: block;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--text-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 50%, rgba(114,47,55,0.4) 100%);
  z-index: 1;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: var(--nav-height);
}

.hero-content {
  flex: 1;
  max-width: 550px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 500px;
  margin-bottom: 2rem;
}

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

/* Hero Progress Bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 3;
  width: 0;
  animation: heroProgress 5s linear infinite;
}

@keyframes heroProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero-dots button.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* Hero Booking Form */
.hero-booking {
  width: 420px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-booking {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius);
  }
}

/* ===== Booking Form ===== */
.booking-form {
  width: 100%;
}

.booking-form h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.25rem;
}

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

.booking-form .form-group {
  margin-bottom: 1rem;
}

.booking-form .form-group.full-width {
  grid-column: 1 / -1;
}

.booking-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.375rem;
}

.booking-form select,
.booking-form input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-primary);
  color: var(--text-body);
  background: var(--white);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.booking-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.booking-form select:focus,
.booking-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

.booking-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ===== Form Styles ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-group .required::after {
  content: '*';
  color: #dc2626;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  color: var(--text-body);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

.form-control.error {
  border-color: #dc2626;
}

.form-control.success {
  border-color: #059669;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 9L2 4h10z' fill='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

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

.section-header h2 {
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Vehicle Cards ===== */
.vehicle-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

.vehicle-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.vehicle-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.vehicle-card:hover .vehicle-card-image img {
  transform: scale(1.08);
}

.vehicle-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.vehicle-card-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 14px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 20px;
}

.vehicle-card-body {
  padding: 1.25rem;
}

.vehicle-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.vehicle-card-body .meta {
  display: flex;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.vehicle-card-body .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vehicle-card-body .meta i {
  color: var(--primary);
}

.vehicle-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ===== Vehicle Detail Page ===== */
.vehicle-detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vehicle-detail-gallery .main-image {
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
}

.vehicle-detail-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-detail-gallery .thumbnails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.vehicle-detail-gallery .thumbnails img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.vehicle-detail-gallery .thumbnails img:hover {
  opacity: 0.8;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.vehicle-specs .spec-item {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  text-align: center;
}

.vehicle-specs .spec-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.vehicle-specs .spec-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.vehicle-specs .spec-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Booking Page ===== */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.booking-main {
  min-width: 0;
}

.booking-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  box-shadow: var(--shadow-sm);
}

.booking-sidebar h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #E5E7EB;
}

.sidebar-sticky .btn-block {
  width: 100%;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: column;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E5E7EB;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.step.active .step-num {
  background: var(--primary);
  color: var(--white);
}

.step.completed .step-num {
  background: #10b981;
  color: var(--white);
}

.step.completed .step-label {
  color: #10b981;
  font-weight: 600;
}

.step-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: #E5E7EB;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
}

/* Form Sections */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.form-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #F3F4F6;
}

/* Vehicle Selection Grid */
.vehicle-selection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.vehicle-option {
  display: block;
  cursor: pointer;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.vehicle-option:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vehicle-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(114, 47, 55, 0.02);
  box-shadow: 0 0 0 3px rgba(114,47,55,0.15);
}

.vehicle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vehicle-card-content {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.vehicle-img {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-light);
}

.vehicle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-info {
  flex: 1;
  min-width: 0;
  padding: 1rem;
}

.vehicle-info h4 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.vehicle-category {
  font-size: 0.8rem;
  color: var(--text-light);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.vehicle-specs-list {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.vehicle-specs-list span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.vehicle-pricing {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #F3F4F6;
}

.price-hour {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.price-day {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Duration Picker */
.duration-picker {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.duration-btn {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.duration-btn:hover {
  border-color: var(--primary-light);
  background: rgba(114,47,55,0.02);
}

.duration-btn.active,
.duration-btn:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.duration-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.duration-btn .duration-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: inherit;
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* Booking Details Wrapper (hidden until vehicle selected) */
#booking-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.5s ease;
  pointer-events: none;
}

#booking-details.visible {
  opacity: 1;
  max-height: 3000px;
  pointer-events: auto;
}

/* Trip Toggle */
.trip-type-toggle,
.booking-type-toggle {
  display: flex;
  gap: 0.75rem;
}

.toggle-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-option span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text);
}

.toggle-option span i {
  font-size: 1rem;
}

.toggle-option input:checked + span {
  border-color: var(--primary);
  background: rgba(114, 47, 55, 0.06);
  color: var(--primary);
}

.toggle-option:hover span {
  border-color: var(--primary-light);
}

/* Input with button */
.input-with-btn {
  display: flex;
  gap: 0.5rem;
}

.input-with-btn .form-control {
  flex: 1;
}

.input-with-btn .btn {
  flex-shrink: 0;
}

/* Trip segment */
.trip-segment {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* Sidebar Price Summary */
.selected-vehicle-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E5E7EB;
}

.selected-vehicle-info img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.selected-vehicle-info h4 {
  font-size: 0.95rem;
  margin: 0;
}

.trip-summary {
  font-size: 0.85rem;
}

.trip-summary p {
  margin: 0.25rem 0;
}

.price-breakdown {
  margin-top: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text);
}

.price-row .price-amount {
  font-weight: 600;
}

.price-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 0.25rem 0;
}

.price-row.total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.price-row.total .price-amount {
  font-size: 1.125rem;
}

/* Spacing utilities */
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.25rem; }

/* Button sizes */
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Round trip fields */
.round-trip-fields {
  transition: var(--transition);
}

/* ===== Checkout Page ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.checkout-main {
  min-width: 0;
}

.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  box-shadow: var(--shadow-sm);
}

.order-summary h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #E5E7EB;
}

.summary-vehicle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E5E7EB;
}

.summary-vehicle img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.summary-vehicle h4 {
  font-size: 0.95rem;
  margin: 0;
}

.summary-details .item,
.order-summary .item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.summary-details .item span:first-child,
.order-summary .item span:first-child {
  color: var(--text-light);
}

.order-summary .item.total {
  border-top: 1px solid #E5E7EB;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
}

.order-summary .item.total .amount {
  color: var(--primary);
  font-size: 1.125rem;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-method-card {
  display: block;
  cursor: pointer;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: var(--transition);
}

.payment-method-card:hover {
  border-color: var(--primary-light);
}

.payment-method-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(114, 47, 55, 0.02);
}

.payment-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-card .info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-method-card .info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-light);
}

.payment-details {
  display: none;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-top: -0.5rem;
}

.payment-method-card:has(input:checked) + .payment-details {
  display: block;
}

.bank-info p {
  margin: 0.375rem 0;
  font-size: 0.9rem;
}

.account-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.copy-btn {
  margin-left: 0.5rem;
}

.crypto-wallets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.crypto-wallet-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.crypto-wallet-card h5 {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.wallet-qr {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  display: block;
}

.wallet-address {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  word-break: break-all;
}

.wallet-address code {
  font-size: 0.75rem;
  background: var(--bg-light);
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-preview {
  margin-top: 0.5rem;
}

.proof-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-check a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== Alerts ===== */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }

/* ===== Services Section ===== */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card .icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(114, 47, 55, 0.08);
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ===== How It Works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.step::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 60%;
  width: calc(100% - 60px);
  height: 2px;
  background: #E5E7EB;
  z-index: 0;
}

.step:last-child::after {
  display: none;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: var(--white);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question .chevron {
  transition: transform 0.3s ease;
  color: var(--primary);
  font-size: 0.8rem;
}

.faq-question.active .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.faq-answer.open {
  max-height: 300px;
  padding: 0 1.25rem 1.125rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Cities Grid ===== */
.city-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.city-card:hover img {
  transform: scale(1.1);
}

.city-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
}

.city-card-overlay h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.city-card-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== Vehicle Categories ===== */
.category-card {
  background: var(--white);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.category-card .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Reviews Section ===== */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F3F4F6;
}

.review-card .stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.review-card blockquote {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.review-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card .author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card .author h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.review-card .author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== Blog Cards ===== */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-body .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.blog-card-body h3 a {
  color: var(--text-dark);
}

.blog-card-body h3 a:hover {
  color: var(--primary);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-card-body .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-body .read-more:hover {
  gap: 8px;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--primary);
  padding: 60px 0;
}

.newsletter h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-primary);
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

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

.footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.625rem;
}

.footer ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-contact li i {
  color: var(--accent);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.footer-bottom a {
  color: var(--accent);
}

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

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

/* ===== Page Header ===== */
.page-header {
  background: var(--primary);
  padding: 120px 0 60px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb span {
  color: var(--accent);
}

/* ===== About Page ===== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.about-stat h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.about-stat p {
  font-size: 0.9rem;
  margin: 0;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(114, 47, 55, 0.08);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.125rem;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Terms & Privacy ===== */
.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.375rem;
  color: var(--text-light);
}

/* ===== Checkout Page ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-card:hover {
  border-color: var(--primary);
}

.payment-method-card.selected {
  border-color: var(--primary);
  background: rgba(114, 47, 55, 0.04);
}

.payment-method-card input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.payment-method-card .info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.payment-method-card .info p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.payment-details {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.payment-details.active {
  display: block;
}

.order-summary {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.order-summary h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #E5E7EB;
}

.order-summary .item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.9rem;
}

.order-summary .item.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-dark);
}

.order-summary .item.total .amount {
  color: var(--primary);
  font-size: 1.25rem;
}

/* ===== Driver Application ===== */
.driver-form {
  max-width: 800px;
  margin: 0 auto;
}

.driver-form .form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.driver-form .form-section h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

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

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

/* ===== Background Sections ===== */
.bg-light {
  background: var(--bg-light);
}

.bg-primary {
  background: var(--primary);
}

.bg-dark {
  background: var(--text-dark);
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-body {
  padding: 1.5rem;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.125rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(114, 47, 55, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(114, 47, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(114, 47, 55, 0); }
}

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

.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slideUp {
  animation: slideUp 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ===== Loading / Spinner ===== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(114, 47, 55, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ===== Alert / Flash Messages ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.badge-primary { background: rgba(114,47,55,0.1); color: var(--primary); }
.badge-accent { background: rgba(212,175,55,0.15); color: #8B6914; }
.badge-success { background: #ecfdf5; color: #065f46; }
.badge-warning { background: #fffbeb; color: #92400e; }

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.125rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-light);
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ===== Featured / CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ===== Features Grid ===== */
.feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(114, 47, 55, 0.08);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.125rem;
}

.feature-card h4 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Trip Segment (Booking) ===== */
.trip-segment {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.trip-segment .remove-trip {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition);
}

.trip-segment .remove-trip:hover {
  background: #dc2626;
  color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 1280px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .hero-booking {
    width: 100%;
    max-width: 360px;
    padding: 1.5rem;
  }
  .about-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .vehicle-detail-gallery {
    grid-template-columns: 1fr;
  }
  .vehicle-detail-gallery .main-image {
    height: 300px;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 2rem;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-booking {
    padding: 1.25rem;
    max-width: 100%;
  }
  .booking-form .form-row {
    grid-template-columns: 1fr;
  }
  .section-padding {
    padding: 50px 0;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-story {
    text-align: center;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .payment-method-card {
    padding: 0.75rem 1rem;
  }

  /* Fix section headers wrapping on mobile */
  .section-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Fix inline grid sections overflowing */
  .grid.grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem !important;
  }

  /* Fix hero dots overlapping form on mobile */
  .hero {
    min-height: auto;
    padding-bottom: 0;
  }
  .hero-inner {
    padding-top: var(--nav-height);
    padding-bottom: 1rem;
  }
  .hero-dots {
    display: none;
  }
  .hero-progress {
    display: none;
  }

  /* Compress hero booking form on mobile */
  .hero-booking {
    padding: 1rem;
    max-width: 100%;
  }
  .booking-form h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }
  .booking-form .form-group {
    margin-bottom: 0.5rem;
  }
  .booking-form label {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }
  .booking-form input,
  .booking-form select {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .booking-form .form-row {
    gap: 0.5rem;
  }

  /* Booking page responsive */
  .booking-layout {
    grid-template-columns: 1fr;
  }
  .vehicle-card-content {
    flex-direction: column;
  }
  .vehicle-img {
    width: 100%;
    height: 140px;
  }
  .duration-picker {
    flex-direction: column;
  }
  .step-connector {
    width: 30px;
  }
  .trip-type-toggle,
  .booking-type-toggle {
    flex-direction: column;
  }
  .toggle-option span {
    justify-content: center;
  }
  .step-label {
    font-size: 0.7rem;
  }
  /* Checkout page responsive */
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .crypto-wallets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-booking {
    padding: 1rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== CAR SALES STYLES ===== */

/* Car Sale Card */
.car-sale-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.car-sale-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.car-sale-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.car-sale-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.car-sale-card:hover .car-sale-card-image img {
  transform: scale(1.08);
}

/* Condition Badge */
.car-condition-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.car-condition-badge.foreign-used {
  background: #1a1a1a;
  color: #ffffff;
}
.car-condition-badge.local-used {
  background: #f59e0b;
  color: #ffffff;
}
.car-condition-badge.brand-new {
  background: #10b981;
  color: #ffffff;
}

/* Sold Overlay */
.car-sold-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.car-sold-overlay span {
  background: #dc2626;
  color: white;
  padding: 8px 28px;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 6px;
  transform: rotate(-12deg);
}

/* Reserved Overlay */
.car-reserved-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.car-reserved-overlay span {
  background: #d97706;
  color: white;
  padding: 8px 28px;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 6px;
  transform: rotate(-12deg);
}

/* Car Sale Price */
.car-sale-card-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 20px;
  z-index: 2;
}

/* Car Sale Card Body */
.car-sale-card-body {
  padding: 1.25rem;
}
.car-sale-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.car-sale-card-body h3 a {
  color: var(--text-dark);
  text-decoration: none;
}
.car-sale-card-body h3 a:hover {
  color: var(--primary);
}
.car-sale-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--text-light);
}
.car-sale-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-light);
  padding: 3px 10px;
  border-radius: 20px;
}
.car-sale-specs span i {
  color: var(--primary);
  font-size: 0.7rem;
}

/* Car Sale Detail Specs Grid */
.car-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
}
.car-specs-grid .spec-cell {
  background: var(--white);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.car-specs-grid .spec-cell .spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.car-specs-grid .spec-cell .spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Price Display (Detail Page) */
.car-price-display {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 1.5rem 0;
}
.car-price-display .price-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.car-price-display .price-amount {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
}
.car-price-display .price-negotiable {
  font-size: 0.8rem;
  opacity: 0.9;
  font-style: italic;
}

/* Why Buy From Us Section */
.why-buy-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-buy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.why-buy-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  background: rgba(114, 47, 55, 0.08);
  color: var(--primary);
}
.why-buy-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.why-buy-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Listing Status Badges */
.listing-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.listing-status.available {
  background: #ecfdf5;
  color: #065f46;
}
.listing-status.sold {
  background: #fef2f2;
  color: #991b1b;
}
.listing-status.reserved {
  background: #fffbeb;
  color: #92400e;
}

/* Inquire Button */
.btn-inquire {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-inquire:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .car-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .car-specs-grid {
    grid-template-columns: 1fr;
  }
}
