/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f5f5;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */

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

/* Header */

.site-header {
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.tag-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid #c4c4c4;
  background: #fafafa;
}

/* Hero */

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 65%, #f5f5f5 100%);
  padding: 32px 0 40px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-copy h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 0.98rem;
  color: #444;
  max-width: 28rem;
  margin-bottom: 20px;
}

/* Form */

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-row.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.field-row.two-col {
  flex-direction: row;
  gap: 8px;
}

.field-row.two-col > div {
  flex: 1;
}

.field-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}

.field-control {
  border-radius: 999px;
  border: 1px solid #d4d4d4;
  padding: 0 16px;
  height: 48px;
  font-size: 0.98rem;
  background: #fafafa;
  -webkit-appearance: none;
  appearance: none;
}

.field-control:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
  border-color: #333;
}

.btn-primary {
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  height: 52px;
  font-size: 1rem;
  font-weight: 600;
  background: #111;
  color: #fff;
  cursor: pointer;
  width: 100%;
  touch-action: manipulation;
}

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

.btn-secondary {
  margin-top: 4px;
  border-radius: 999px;
  height: 52px;
  font-size: 0.96rem;
  font-weight: 500;
  background: #f0f0f0;
  border: 1px solid #d4d4d4;
  color: #111;
  cursor: pointer;
  width: 100%;
  touch-action: manipulation;
}

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

.tiny-note {
  font-size: 0.75rem;
  color: #777;
  text-align: center;
}

.tiny-note.center {
  margin-top: 8px;
}

/* Hero visual – simple grayscale “car” */

.hero-visual {
  position: relative;
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.car-shadow {
  position: absolute;
  bottom: 20px;
  left: 10%;
  right: 10%;
  height: 18px;
  background: radial-gradient(circle at 50% 50%, #bdbdbd 0, #f5f5f5 65%);
  opacity: 0.7;
}

.car-body {
  position: relative;
  width: 80%;
  max-width: 360px;
  height: 120px;
  background: #cfcfcf;
  border-radius: 30px 50px 16px 16px;
  overflow: hidden;
}

.car-window {
  position: absolute;
  top: 10px;
  left: 18%;
  right: 18%;
  height: 45px;
  background: #e9e9e9;
  border-radius: 22px 42px 6px 6px;
}

.car-wheel {
  position: absolute;
  bottom: -12px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #7b7b7b;
  border: 6px solid #f5f5f5;
}

.car-wheel-front {
  right: 14%;
}

.car-wheel-back {
  left: 14%;
}

/* Sections */

.section {
  padding: 40px 0;
}

.section-light {
  background: #ffffff;
}

.section-title {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 24px;
}

/* Cards (benefits) */

.card-grid {
  display: grid;
  gap: 16px;
}

.card {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid #e0e0e0;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.94rem;
  color: #444;
}

/* Steps */

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e2e2e2;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.step-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.94rem;
  color: #444;
}

/* FAQ – CSS only accordion using <details> */

.faq {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid #e0e0e0;
}

.faq-item summary {
  list-style: none;
  padding: 14px 18px;
  font-size: 0.96rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-weight: 700;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 18px 14px 18px;
  font-size: 0.92rem;
  color: #444;
}

/* Footer */

.site-footer {
  border-top: 1px solid #e0e0e0;
  background: #ffffff;
  padding: 16px 0 22px;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-text {
  font-size: 0.8rem;
  color: #777;
}

/* CHECKOUT OVERLAY */

.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
  z-index: 40;
}

.checkout-overlay.open {
  display: flex;
}

.checkout-panel {
  width: 100%;
  max-width: 520px;
  max-height: 100%;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 20px;
  overflow-y: auto;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

.checkout-header h2 {
  font-size: 1rem;
}

.icon-button {
  position: absolute;
  left: 0;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 6px;
  cursor: pointer;
}

.checkout-car-summary {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #f7f7f7;
  margin-bottom: 12px;
}

.car-thumb {
  width: 84px;
  height: 56px;
  border-radius: 10px;
  background-image: url("2022_bentley_continental_gt-pic-1272850014128783666-1024x768.jpeg");
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.car-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.car-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.car-price {
  font-size: 0.9rem;
  font-weight: 700;
}

.car-dealer {
  font-size: 0.8rem;
  color: #555;
}

.checkout-intro h3 {
  font-size: 0.98rem;
  margin: 10px 0 4px;
}

.checkout-intro p {
  font-size: 0.86rem;
  color: #555;
}

.checkout-steps {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-step {
  border-radius: 14px;
  border: 1px solid #e1e1e1;
  overflow: hidden;
  background: #fafafa;
}

.checkout-step.completed {
  border-color: #b5b5b5;
}

.step-header {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
}

.step-status {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #bdbdbd;
  margin-right: 10px;
  flex-shrink: 0;
}

.checkout-step.completed .step-status {
  background: #111;
  border-color: #111;
}

.step-label {
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
}

.step-chevron {
  font-size: 1.1rem;
  margin-left: 8px;
}

.step-content {
  border-top: 1px solid #e1e1e1;
  padding: 12px 14px 14px;
  display: none;
  background: #ffffff;
}

.checkout-step.active .step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-help {
  font-size: 0.86rem;
  color: #555;
}

.field-hint {
  font-size: 0.78rem;
  color: #666;
  margin-top: 4px;
}

.field-label.muted {
  color: #999;
  letter-spacing: 0.04em;
}

/* Tabs + chips */

.tab-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #d6d6d6;
  padding: 3px;
  margin-bottom: 10px;
}

.tab {
  border-radius: 999px;
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 0.86rem;
  cursor: pointer;
}

.tab.active {
  background: #111;
  color: #fff;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.tab-panel.active {
  display: flex;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chip {
  border-radius: 999px;
  border: 1px solid #d4d4d4;
  padding: 6px 10px;
  font-size: 0.78rem;
  background: #f7f7f7;
  cursor: pointer;
}

.chip-selected {
  background: #111;
  color: #fff;
  border-color: #111;
}

.estimate-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
}

.estimate-label {
  font-size: 0.8rem;
  color: #666;
}

.estimate-value {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 4px;
}

.estimate-note {
  font-size: 0.78rem;
  color: #777;
  margin-top: 4px;
}

.estimate-breakdown {
  margin-top: 6px;
  padding-left: 16px;
  font-size: 0.8rem;
  color: #555;
}

/* Ghost close */

.ghost-close {
  margin-top: 12px;
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  font-size: 0.86rem;
  text-decoration: underline;
  color: #555;
  cursor: pointer;
}

/* Larger screens */

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .hero-copy {
    flex: 1;
  }

  .hero-visual {
    flex: 1;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

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

  .steps {
    flex-direction: row;
  }

  .step {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .checkout-panel {
    border-radius: 18px;
  }
}
