/* hirincars: "Navy and Sky" design tokens and page styles. */
:root {
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter', sans-serif;
  --weight-display: 500;

  --navy: #03163A;
  --sky: #09A6F0;
  --white: #FFFFFF;
  --hero-muted: #C3D2EA;
  --muted: #3A4C6E;
  --line: #D5DEEE;
  --field: #6F82A6;
  --tint: #D6EEFC;
  --footer-line: #1B3560;
  --error: #B3261E;

  --radius-card: 16px;
  --radius-field: 10px;
  --radius-pill: 999px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #4C9AFF;
  outline-offset: 2px;
}

/* Hero */
.hero { background: var(--navy); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  box-sizing: border-box;
}

.brand {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--weight-display);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--hero-muted);
  font-size: 16px;
  text-decoration: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-link:hover { opacity: 0.75; }

.button {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.button-accent {
  min-height: 44px;
  padding: 0 20px;
  font-size: 16px;
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 96px;
  box-sizing: border-box;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
  padding-top: 24px;
  text-align: center;
}

.eyebrow {
  color: var(--sky);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-title {
  margin: 16px 0 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: var(--weight-display);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.highlight { color: var(--sky); }

.hero-lead {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--hero-muted);
  font-size: 19px;
  line-height: 1.55;
}

.promises {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.promise {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 17px;
}

.promise svg { flex: none; stroke: var(--sky); }

/* Request card */
.request-card {
  display: block;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  padding: 32px;
  box-sizing: border-box;
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--navy);
}

/* Turbo autoscrolls to the frame's first child; keep the card's top edge in view. */
.request-card > :first-child { scroll-margin-top: 48px; }

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--weight-display);
  letter-spacing: -0.5px;
}

.card-lead {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-row > .field { flex: 1 1 180px; }

.field_with_errors { display: contents; }

.field-label {
  font-size: 14px;
  font-weight: 500;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1.5px solid var(--field);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
}

.field_with_errors .input { border-color: var(--error); }

.field-error {
  margin: 0;
  color: var(--error);
  font-size: 14px;
  line-height: 1.4;
}

.size-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.size-picker legend {
  margin-bottom: 8px;
  padding: 0;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Radios stay in the accessibility tree; the label is the visible pill. */
.size-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.size-option {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1.5px solid var(--field);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.size-input:checked + .size-option {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.size-input:focus-visible + .size-option {
  outline: 3px solid #4C9AFF;
  outline-offset: 2px;
}

.submit {
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius-field);
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.received {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
}

.received-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tint);
}

.received-icon svg { stroke: var(--navy); }

.received-copy {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.button-outline {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  box-sizing: border-box;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* Place suggestions */
.place-input { position: relative; }

.place-suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 260px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(3, 22, 58, 0.16);
}

.place-suggestions ul {
  margin: 0;
  padding: 4px;
  list-style: none;
}

.place-suggestions li {
  padding: 10px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}

.place-suggestions li:hover,
.place-suggestions li[aria-selected="true"] { background: var(--tint); }

/* Google's required credit: exact text, Roboto or sans-serif, 12px or larger, #5E5E5E. */
.google-credit {
  color: #5E5E5E;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.place-suggestions .google-credit {
  display: block;
  padding: 6px 14px 8px;
  border-top: 1px solid var(--line);
  text-align: right;
}

/* Only overnight trips ask for a number of days. */
.days-field { display: none; }

.request-form:has(option[value="overnight_return"]:checked) .days-field { display: flex; }

/* Estimate */
.estimate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-field);
  background: var(--tint);
}

.estimate-label {
  font-size: 14px;
  font-weight: 500;
}

.estimate-amount {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.estimate-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.estimate-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(3, 22, 58, 0.14);
  font-size: 15px;
}

.estimate-row:first-child { border-top: 0; }

.estimate-row strong { font-weight: 700; }

.estimate-detail,
.estimate-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.estimate-note { color: var(--muted); }

.estimate .google-credit { align-self: flex-end; }

/* Comes last in the form so Enter sends the request, but shows right under the estimate. */
.estimate { order: 1; }
.update-estimate { order: 2; }
.contact-fields { order: 3; }
.submit { order: 4; }
.form-note { order: 5; }

.update-estimate {
  min-height: 48px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.update-estimate[hidden] { display: none; }

.estimate.is-stale > :not(.google-credit) { opacity: 0.45; }

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.section-vehicles { padding: 88px 32px 40px; }
.section-how { padding: 72px 32px 88px; }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: var(--weight-display);
  letter-spacing: -1px;
}

.section-lead {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.vehicle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.vehicle-card {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 28px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}

.vehicle-art {
  display: flex;
  align-items: flex-end;
  height: 64px;
}

.vehicle-art svg { max-width: 100%; }

.v-body { fill: var(--white); stroke: var(--navy); }
.v-stripe { fill: var(--sky); }
.v-window { fill: var(--tint); stroke: var(--navy); }
.v-wheel { fill: var(--navy); }

.vehicle-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--weight-display);
  letter-spacing: -0.3px;
}

.vehicle-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.vehicle-price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.vehicle-price-note {
  color: var(--muted);
  font-size: 14px;
}

.vehicle-price-amount {
  font-size: 22px;
  font-weight: 700;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  flex: 1 1 220px;
  min-width: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

.step-title {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: var(--weight-display);
}

.step-body {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Backup-vehicle band */
.band { background: var(--sky); }

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px;
  box-sizing: border-box;
}

.band-title {
  flex: 1 1 420px;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: var(--weight-display);
  line-height: 1.1;
  letter-spacing: -1px;
}

.band-body {
  flex: 1 1 300px;
  max-width: 420px;
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 40px;
  box-sizing: border-box;
}

.footer-title {
  max-width: 640px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: var(--weight-display);
  line-height: 1.08;
  letter-spacing: -1px;
}

.button-footer {
  min-height: 52px;
  margin-top: 28px;
  padding: 0 28px;
  font-size: 17px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--footer-line);
  color: var(--hero-muted);
  font-size: 15px;
}

.footer-brand {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-display);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Privacy page */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 88px;
  box-sizing: border-box;
}

.legal h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: var(--weight-display);
  letter-spacing: -1px;
}

.legal h2 {
  margin: 36px 0 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: var(--weight-display);
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.legal p { margin: 0 0 12px; }

.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-updated { margin-top: 12px; font-size: 14px; }

.footer-inner-compact { padding-top: 8px; }
.footer-inner-compact .footer-meta { margin-top: 0; border-top: 0; }
