/**
 * car-rental/car-rental.css
 * High-trust, responsive stylesheet for LUCON Car Rental.
 * Mobile-first architecture, accessible contrast, clean typography.
 */

:root {
  --primary: #0f2942;
  --primary-light: #1e3a8a;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-coral: #f97316;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --bg-slate: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-focus: #0284c7;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 41, 66, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 41, 66, 0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body.car-rental-body {
  font-family: var(--font-family);
  background-color: var(--bg-slate);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Prevent mobile dock overlap */
}

.car-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navigation Bar */
.car-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.car-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.car-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.car-brand img {
  height: 36px;
  width: auto;
}

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

.car-nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.car-nav-links .btn-support {
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Hero Section */
.car-hero {
  background: linear-gradient(135deg, #0f2942 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 48px 0 64px;
  position: relative;
}

.car-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.car-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 650px;
  margin-bottom: 24px;
}

.rental-trust-section {
  padding-top: 34px;
}

.rental-trust-section > h2 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rental-trust-section .value-props-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.rental-trust-section .value-prop-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.rental-trust-section .prop-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: #e8f3f8;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.rental-trust-section .value-prop-card h3 {
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 1.04rem;
}

.rental-trust-section .value-prop-card p,
.rental-trust-links {
  color: var(--text-muted);
  line-height: 1.6;
}

.rental-trust-links {
  margin-top: 16px;
  font-size: 0.92rem;
}

.rental-trust-links a {
  color: var(--accent-hover);
  font-weight: 650;
  text-underline-offset: 3px;
}

.protection-unavailable {
  padding: 14px 16px;
  border: 1px solid #f1d69a;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  color: #78350f;
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #f1f5f9;
}

/* Compact hero trust callout */
.hero-trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-trust-strip > div {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.09);
}

@media (min-width: 768px) {
  .hero-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Search Widget */
.search-widget-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  margin-top: -36px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.rental-results-search { margin-top: 24px; }
.rental-results-search .search-widget-card { margin-top: 0; }
.rental-search-timezone { margin: 12px 0 0; color: var(--text-muted); font-size: .85rem; }

@media (min-width: 768px) {
  .rental-trust-section .value-props-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rental-trust-section .value-props-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .search-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .search-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.date-time-controls {
  display: flex;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.date-time-controls .date-time-date {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding-inline: 10px;
}

.date-time-controls .date-time-time {
  flex: 0 0 7.25rem;
  width: 7.25rem;
  min-width: 7.25rem;
  padding-inline: 8px;
  text-align: center;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-search {
  height: 48px;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  padding: 0 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s;
}

.btn-search:hover {
  background-color: var(--accent-hover);
}

/* Value Props Section */
.value-props-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 48px 0;
}

@media (min-width: 640px) {
  .value-props-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-props-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-prop-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prop-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #e0f2fe;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.value-prop-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.value-prop-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Fleet Listing Cards */
.fleet-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.fleet-cards-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fleet-catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.fleet-catalog-heading .fleet-section-title {
  margin-bottom: 0;
}

.fleet-catalog-heading > span {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.fleet-cards-list--catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.vehicle-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.vehicle-card:hover {
  box-shadow: var(--shadow-md);
}

.vehicle-card-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.fleet-cards-list--catalog .vehicle-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fleet-cards-list--catalog .vehicle-media {
  min-height: 205px;
  padding: 16px;
  border-right: 0;
}

.fleet-cards-list--catalog .vehicle-specs {
  flex: 1;
  gap: 12px;
  padding: 18px;
}

.fleet-cards-list--catalog .specs-icons-grid {
  gap: 8px 12px;
  margin-bottom: 4px;
}

.fleet-cards-list--catalog .vehicle-packages-column {
  border-top: 1px solid var(--border);
  border-left: 0;
  padding: 16px 18px;
}

@media (min-width: 640px) {
  .fleet-cards-list--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fleet-cards-list--catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .vehicle-card-inner {
    grid-template-columns: 280px 1fr 340px;
  }
}

.vehicle-media {
  background: #f1f5f9;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .vehicle-media {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.vehicle-media img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.vehicle-specs {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vehicle-badge-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.vehicle-specs h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.vehicle-sample-model {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.specs-icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Side-by-side Package Choice Column */
.vehicle-packages-column {
  background: #f8fafc;
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 900px) {
  .vehicle-packages-column {
    border-top: none;
    border-left: 1px solid var(--border);
  }
}

.package-choice-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.package-choice-box.recommended {
  border: 2px solid var(--accent);
  background: #f0f9ff;
  position: relative;
}

.recommended-ribbon {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

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

.package-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.package-price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.package-details-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.package-details-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.package-details-list li.check {
  color: var(--success);
}

.package-details-list li.cross {
  color: var(--text-light);
  text-decoration: line-through;
}

.btn-select-pkg {
  display: inline-block;
  text-align: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: #ffffff;
  color: var(--accent);
  transition: all 0.15s ease;
}

.btn-select-pkg:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-select-pkg.primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-select-pkg.primary:hover {
  background: var(--accent-hover);
}

/* Checkout Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr 380px;
  }
}

.checkout-main-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.checkout-selection-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-itinerary {
  text-align: right;
}

.checkout-form-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.checkout-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-form-grid--compact {
  gap: 12px;
  margin-bottom: 0;
}

.checkout-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hold-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 500;
}

.hold-banner[hidden] {
  display: none;
}

.hold-timer {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #b45309;
}

/* Add-ons List */
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 18px;
}

.addon-row:last-child {
  border-bottom: none;
}

.addon-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.addon-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkout-section-intro {
  margin: -4px 0 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.summary-count {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.addon-option {
  transition: background-color 160ms ease, border-color 160ms ease;
}

.addon-option.is-selected {
  background: #f8fbff;
}

.addon-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.addon-quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.addon-quantity-button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f8fafc;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.addon-quantity-button:hover:not(:disabled),
.addon-quantity-button:focus-visible {
  background: #e0f2fe;
}

.addon-quantity-button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.addon-quantity {
  width: 34px;
  height: 30px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  background: #ffffff;
}

.addon-quantity:disabled {
  color: #94a3b8;
  background: #f8fafc;
}

.addon-quantity-limit {
  color: var(--text-muted);
  white-space: nowrap;
}

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

.protection-liability {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .car-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .car-nav {
    min-height: 60px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .car-brand {
    gap: 8px;
    font-size: 0.95rem;
    min-width: 0;
  }

  .car-brand img {
    height: 30px;
  }

  .car-brand span {
    white-space: nowrap;
  }

  .car-nav-links {
    gap: 8px;
    justify-content: flex-end;
  }

  .car-nav-links a {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .car-nav-links .btn-support {
    padding: 7px 9px;
  }

  .checkout-card {
    padding: 16px;
  }

  .checkout-selection-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-itinerary {
    text-align: left;
    width: 100%;
  }

  .checkout-form-grid--two,
  .checkout-form-grid--three {
    grid-template-columns: 1fr;
  }

  .hold-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .addon-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .addon-controls {
    flex-wrap: wrap;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
  }

  .addon-quantity-limit {
    width: auto;
    text-align: right;
  }

  .summary-sticky-card {
    padding: 16px;
    position: static;
  }

  .summary-row {
    align-items: flex-start;
    gap: 12px;
  }

  .summary-row > strong {
    text-align: right;
    white-space: nowrap;
  }

  .payment-method-card {
    padding: 14px;
  }

  .voucher-container {
    margin: 16px 0;
    padding: 20px 16px;
  }

  .voucher-header,
  .voucher-grid-2col {
    grid-template-columns: 1fr;
    display: grid;
    gap: 16px;
  }

  .voucher-ref-box {
    text-align: left;
  }
}

/* Payment Selection Radio Cards */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 600px) {
  .payment-methods-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.payment-method-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, background-color 0.15s;
}

.payment-method-card.active {
  border-color: var(--accent);
  background: #f0f9ff;
}

.payment-method-card.disabled {
  background: #f8fafc;
  border-color: #d8dee8;
  color: #7b8492;
  cursor: not-allowed;
  opacity: 0.72;
}

.payment-method-card.disabled strong,
.payment-method-card.disabled p {
  color: #7b8492 !important;
}

.payment-method-card.disabled input[type="radio"] {
  cursor: not-allowed;
}

.payment-method-card input[type="radio"] {
  margin-right: 8px;
}

/* Sticky Summary Sidebar */
.summary-sticky-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: sticky;
  top: 84px;
}

.summary-sticky-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.summary-row.liability {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #475569;
}

.rental-cost-breakdown {
  margin: 8px 0 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.rental-cost-group {
  padding: 11px 0;
  border-bottom: 1px solid #e7edf3;
}

.rental-cost-group:last-of-type {
  border-bottom: 0;
}

.rental-cost-label,
.rental-cost-group-heading {
  color: var(--primary);
  font-weight: 700;
}

.rental-cost-group-heading {
  margin-bottom: 7px;
}

.rental-cost-main-row,
.rental-cost-row,
.rental-cost-category-total,
.rental-cost-subtotal,
.rental-cost-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.rental-cost-main-row {
  align-items: flex-start;
}

.rental-cost-detail {
  margin-top: 3px;
  color: #718096;
  font-size: 0.84rem;
  line-height: 1.45;
}

.rental-cost-row {
  padding: 4px 0;
}

.rental-cost-amount {
  flex: 0 0 auto;
  min-width: 6.5rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.rental-cost-row > strong,
.rental-cost-category-total > strong,
.rental-cost-subtotal > strong,
.rental-cost-grand-total > strong {
  color: var(--primary);
}

.rental-cost-row > span:first-child {
  min-width: 0;
}

.rental-cost-category-total {
  border-top: 1px solid var(--border);
  margin-top: 5px;
  padding-top: 8px;
  color: var(--primary);
  font-weight: 700;
}

.rental-cost-subtotal {
  border-top: 1px solid var(--border);
  margin-top: 5px;
  padding: 13px 0 3px;
  font-weight: 700;
}

.rental-cost-grand-total {
  margin-top: 8px;
  padding: 15px 16px;
  border: 1px solid #cce6f4;
  border-radius: var(--radius-sm);
  background: #f0f9ff;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
}

.rental-cost-grand-total .rental-cost-amount {
  font-size: 1.2rem;
}

.btn-confirm-booking {
  width: 100%;
  height: 52px;
  background-color: var(--success);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s;
  margin-top: 16px;
}

.btn-confirm-booking:hover {
  background-color: #15803d;
}

.btn-confirm-booking:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

/* Printable Confirmation & Voucher */
.voucher-container {
  background: #ffffff;
  max-width: 800px;
  margin: 32px auto;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.voucher-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.voucher-ref-box {
  background: #f0f9ff;
  border: 1px dashed var(--accent);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-align: right;
}

.voucher-ref-box h2 {
  font-size: 1.4rem;
  color: var(--primary);
  font-family: monospace;
}

.voucher-warning-banner {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.voucher-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.voucher-section {
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.voucher-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.print-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

@media print {
  body.car-rental-body {
    background: #ffffff;
    padding: 0;
  }
  .car-header,
  .car-rental-body .topbar,
  .print-actions,
  .btn-print {
    display: none !important;
  }
  .voucher-container {
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
}

/* Date-specific estimates are separate from the final protected quote. */
.rental-estimate-total { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.rental-estimate-caption, .catalog-price-prompt { font-size: .85rem; line-height: 1.45; color: var(--text-muted); }
.rental-estimate-caption { margin: 0; }
.catalog-price-prompt { margin-top: 6px; }
