/* Typeform-style business inquiry (/business/inquiry).
   Uses the site's tokens from styles.css, so it follows light and dark mode
   and the house type. Everything is prefixed tf- to stay out of the way of the
   main stylesheet. Without JavaScript (no .tf-on on <html>), every step shows
   in one long column and the form still submits. */

.tf-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

.tf-top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
}
.tf-logo { height: 26px; width: auto; display: block; }
/* Dark wordmark on the light page, white one on the dark page. */
.tf-logo--dark { display: none; }
:root[data-theme="dark"] .tf-logo--light { display: none; }
:root[data-theme="dark"] .tf-logo--dark { display: block; }
:root[data-theme="dark"] .tf-logo { filter: none; }
.tf-close { color: var(--text); text-decoration: none; font-size: 15px; }
.tf-close:hover { color: var(--fg); }

.tf-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 4; background: var(--line-soft); }
.tf-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 300ms var(--ease); }

.tf { max-width: 760px; margin: 0 auto; padding: 96px var(--gutter) 120px; }

.tf-step { margin: 0 0 64px; }

.tf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tf-eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; }
.tf-h1 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--fg); }
.tf-lede { font-size: clamp(17px, 2vw, 20px); color: var(--text); line-height: 1.5; margin: 0 0 28px; }

.tf-q { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; font-weight: 500; margin: 0 0 10px; padding: 0; color: var(--fg); }
.tf-num { color: var(--accent); font-size: .6em; vertical-align: .25em; margin-right: 6px; white-space: nowrap; }
.tf-help { color: var(--text); margin: 0 0 20px; font-size: 17px; }

.tf-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: clamp(20px, 2.6vw, 28px);
  outline: none;
  border-radius: 0;
  transition: border-color var(--dur) var(--ease);
}
.tf-input::placeholder { color: var(--muted); }
.tf-input:focus { border-bottom-color: var(--accent); }
.tf-select { cursor: pointer; appearance: auto; }
.tf-select option { color: #0d070a; }
.tf-area { resize: vertical; min-height: 3em; }

.tf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tf-label { display: block; color: var(--text); font-size: 15px; }
@media (max-width: 599px) { .tf-pair { grid-template-columns: 1fr; gap: 8px; } }

.tf-choices { display: grid; gap: 10px; margin-top: 18px; max-width: 520px; }
.tf-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: 18px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tf-choice:hover { border-color: var(--accent); }
.tf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tf-choice kbd, .tf-hint kbd {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
}
.tf-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tf-choice:has(input:checked) kbd { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tf-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.tf-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: var(--text); max-width: 600px; margin-top: 14px; }
.tf-consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.tf-consent a { color: var(--accent); }

.tf-row { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.tf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.tf-btn:hover { transform: translateY(-1px); }
.tf-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.tf-btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.tf-hint { color: var(--muted); font-size: 13px; }
.tf-step--welcome .tf-hint { margin-top: 10px; }
@media (hover: none) { .tf-hint { display: none; } }

.tf-error { color: #d0453a; font-size: 15px; margin: 12px 0 0; }
:root[data-theme="dark"] .tf-error { color: #ff8b82; }
.tf-status { margin: 18px 0 0; font-size: 16px; color: var(--text); min-height: 1.4em; }
.tf-status.is-err { color: #d0453a; }
:root[data-theme="dark"] .tf-status.is-err { color: #ff8b82; }

.tf-nav { display: none; }

/* ---- Enhanced: one question per screen ---------------------------------- */
.tf-on .tf { padding-top: 0; padding-bottom: 0; }
.tf-on .tf-step {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  box-sizing: border-box;
  padding: 96px 0 110px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.tf-on .tf-step > * { max-width: 100%; }
.tf-on .tf-step .tf-input, .tf-on .tf-step .tf-pair, .tf-on .tf-step .tf-choices { width: 100%; }
.tf-on .tf-step.is-active { display: flex; animation: tf-in 380ms var(--ease) both; }
.tf-on .tf-step.is-active.is-back { animation-name: tf-in-back; }
@keyframes tf-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes tf-in-back { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tf-on .tf-step.is-active { animation: none; }
  .tf-progress span { transition: none; }
}

.tf-on .tf-nav {
  display: flex;
  position: fixed;
  right: var(--gutter);
  bottom: 22px;
  z-index: 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.tf-arrow {
  width: 40px;
  height: 36px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 18px;
  cursor: pointer;
}
.tf-arrow + .tf-arrow { border-left: 1px solid rgba(255, 255, 255, .25); }
.tf-arrow:disabled { opacity: .45; cursor: default; }
.tf-on .tf-nav[hidden] { display: none; }
