/* --- CSS RESET & GLOBAL VARIABLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff5a1f;
  --primary-hover: #e0480f;
  --bg-dark: #121824;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --border-color: #e5e7eb;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* --- NAVIGATION BAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: var(--bg-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

/* --- PAGE HERO BANNER --- */
.hero-booking {
  position: relative;
  background: url('https://images.unsplash.com/photo-1549399542-7e3f8b79c341?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 24, 36, 0.8);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: #e5e7eb;
}

/* --- STEP INDICATOR BAR --- */
.booking-steps-bar {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 5%;
}

.steps-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.step-indicator.active {
  color: var(--primary-color);
  font-weight: 700;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.step-indicator.active .step-num {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 1rem;
}

/* --- MAIN BOOKING LAYOUT --- */
.booking-section {
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
}

/* Form Container Card */
.booking-form-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.card-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.card-header h2 {
  font-size: 1.5rem;
  color: var(--bg-dark);
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.full-width {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-group select,
.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--primary-color);
}

.form-section-title h3 {
  font-size: 1.1rem;
  color: var(--bg-dark);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.4rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.submit-btn {
  padding: 1rem;
  font-size: 1rem;
  margin-top: 1rem;
}

/* --- SUMMARY SIDEBAR WIDGET --- */
.summary-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.summary-header h3 {
  font-size: 1.25rem;
  color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.car-preview {
  text-align: center;
  margin-bottom: 1.5rem;
}

.car-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.car-preview h4 {
  font-size: 1.1rem;
  color: var(--bg-dark);
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.summary-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 0.5rem 0;
}

.total-row {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.total-row span:last-child {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.summary-perks {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.summary-perks i {
  color: #10b981;
  margin-right: 0.3rem;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 5% 1.5rem 5%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h3, 
.footer-col h4 {
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 900px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .booking-form {
    grid-template-columns: 1fr;
  }

  .step-text {
    display: none;
  }

  .booking-form-card {
    padding: 1.5rem;
  }
}