/* ==========================================================================
   Contact band — "Send us a message", the last thing on the homepage
   --------------------------------------------------------------------------
   The same material as the dealer invite (dealer-invite.css), at rest on the
   page instead of floating over it. Glass needs something behind it to be
   glass over, and the page here is flat — so two soft pools of light sit
   under the card, one in the accent, one in the warm chip of the brand mark.
   Restrained: they read as depth, not as decoration.

   The fields sit on a solid tint, never on more glass. A bright top edge is
   light catching the material. Big surface, so a deep shadow.
   ========================================================================== */

.contact-band {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x) clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

/* ── the light behind the glass ──────────────────────────────────────────── */
.contact-band::before,
.contact-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
}
.contact-band::before {
  /* Boxes stay inside the band: a box past the edge widens the page (on a
     phone it widens the whole layout viewport). Blur ink may spill; boxes
     may not. */
  width: min(48vw, 620px);
  aspect-ratio: 1;
  right: 0;
  top: 4%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%);
}
.contact-band::after {
  width: min(34vw, 420px);
  aspect-ratio: 1;
  right: 28%;
  bottom: 0;
  background: radial-gradient(closest-side, rgba(242, 160, 61, 0.26), transparent 72%);
}
:root[data-theme="dark"] .contact-band::before {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 46%, transparent), transparent 72%);
}
:root[data-theme="dark"] .contact-band::after {
  background: radial-gradient(closest-side, rgba(242, 160, 61, 0.30), transparent 72%);
}

/* ── the words ───────────────────────────────────────────────────────────── */
.contact-band__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-band__intro .section-title { letter-spacing: -0.032em; }
.contact-band__intro p { margin-top: 0.9rem; color: var(--text-2); line-height: 1.65; }
.contact-band__intro p a { color: var(--accent); }
.contact-band__intro p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-band__intro ul { display: grid; gap: 0.55rem; margin-top: 1.3rem; }
.contact-band__intro li {
  display: grid;
  grid-template-columns: 19px 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-2);
}
.contact-band__intro li svg { width: 19px; height: 19px; color: var(--accent); margin-top: 1px; }
.contact-band__intro li strong { color: var(--text); font-weight: 600; }

/* ── the card ────────────────────────────────────────────────────────────── */
.cb {
  position: relative;
  padding: clamp(1.4rem, 3.5vw, 2.1rem);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(40px) saturate(1.7);
  -webkit-backdrop-filter: blur(40px) saturate(1.7);
  border: 1px solid var(--line-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 30px 70px -24px rgba(8, 9, 13, 0.35),
    0 10px 26px -14px rgba(8, 9, 13, 0.22);
}
:root[data-theme="dark"] .cb {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 30px 70px -24px rgba(0, 0, 0, 0.7),
    0 10px 26px -14px rgba(0, 0, 0, 0.5);
}

.cb__form { display: grid; gap: 0.7rem; }
.cb__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.cb__field { display: grid; gap: 0.3rem; }
.cb__field label { font-size: 0.79rem; font-weight: 500; color: var(--text-2); }
.cb__field label span { font-weight: 400; color: var(--text-3); }
.cb__field input,
.cb__field textarea {
  width: 100%;
  padding: 0.66rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-2);          /* solid tint — not glass on glass */
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.cb__field textarea { min-height: 8.5rem; resize: vertical; }
.cb__field input:focus-visible,
.cb__field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.cb__field input[aria-invalid="true"],
.cb__field textarea[aria-invalid="true"] { border-color: var(--danger, #D3352B); }

/* A field for scripts, not people: off the canvas, out of the tab order. */
.cb__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cb__err { font-size: 0.8rem; color: var(--danger, #D3352B); }
.cb__err:empty { display: none; }

.cb__submit {
  margin-top: 0.25rem;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--btn-primary-ink);
  background: var(--btn-primary);
  border: 0;
  border-radius: var(--pill, 999px);
  cursor: pointer;
  transition: transform 110ms var(--ease), background 140ms var(--ease);
}
.cb__submit:hover { background: var(--btn-primary-hi); }
.cb__submit:active { transform: scale(0.975); }     /* feedback on press */
.cb__submit[disabled] { opacity: 0.6; cursor: progress; }

.cb__foot { margin: 0.6rem 0 0; font-size: 0.79rem; line-height: 1.5; color: var(--text-3); }

/* ── sent ────────────────────────────────────────────────────────────────── */
.cb__sent { text-align: center; padding: 1.2rem 0 0.8rem; will-change: transform, opacity; }
/* styles.css makes every svg a block, so text-align cannot centre it. */
.cb__sent svg { display: block; width: 44px; height: 44px; margin: 0 auto 0.8rem; color: var(--accent); }
.cb__sent h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.cb__sent p { margin: 0 0 0.4rem; font-size: 0.93rem; line-height: 1.55; color: var(--text-2); }
.cb__sent strong { color: var(--text); }
.cb__sent button {
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.cb__sent button:hover { color: var(--text); }

.contact-band [hidden] { display: none !important; }

/* ── narrow ──────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .contact-band { grid-template-columns: 1fr; align-items: start; }
  .contact-band::before { right: 0; top: 30%; width: min(70vw, 420px); }
  .contact-band::after { display: none; }
}
@media (max-width: 560px) {
  .cb__row { grid-template-columns: 1fr; }
  .cb { border-radius: 22px; }
}

/* ── preferences ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-transparency: reduce) {
  .cb { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .contact-band::before, .contact-band::after { display: none; }
}
@media (prefers-contrast: more) {
  .cb { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--text); }
  .cb__field input, .cb__field textarea { border-color: var(--text-2); }
  .contact-band::before, .contact-band::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cb__submit:active { transform: none; }
}
