/* ============================================================
   KEYLESS GROUP — ENQUIRY FLOW
   Uses the core tokens from styles.css: square corners, hairline
   borders, Space Grotesk headings, pill actions.
   ============================================================ */

.kf {
  --kf-fast: 180ms;
  --kf-slow: 240ms;
  --kf-ink: var(--bg-dark);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
}

/* ---------- progress ---------- */

.kf-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.kf-track {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.kf-seg {
  flex: 1;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.1);
  transition: background var(--kf-slow) var(--ease-premium);
}

.kf-seg.is-done { background: var(--kf-ink); cursor: pointer; }
.kf-seg.is-done:hover { background: #000; }
.kf-seg.is-now { background: var(--kf-ink); opacity: 0.45; }
.kf-seg.is-done:focus-visible { outline: 2px solid var(--kf-ink); outline-offset: 4px; }

.kf-count {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- question ---------- */

.kf-panel { display: block; }
.kf-in { animation: kf-slide-in var(--kf-slow) var(--ease-premium) both; }
.kf-in-back { animation: kf-slide-back var(--kf-slow) var(--ease-premium) both; }

@keyframes kf-slide-in {
  from { opacity: 0; transform: translate3d(16px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes kf-slide-back {
  from { opacity: 0; transform: translate3d(-16px, 0, 0); }
  to { opacity: 1; transform: none; }
}

.kf-q {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}
/* Focused programmatically on each step so keyboard users land in the right
   place; the aria-live region does the announcing, so no visible ring. */
.kf-q:focus, .kf-q:focus-visible { outline: none; }

.kf-hint {
  margin: 12px 0 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.kf-hint a { text-decoration: underline; }

/* ---------- options ---------- */

.kf-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 3vw, 32px);
}

.kf-opts--wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.kf-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 116px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--bolt-border);
  border-radius: 0;
  color: #111;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--kf-fast) var(--ease-premium),
    background var(--kf-fast) var(--ease-premium),
    color var(--kf-fast) var(--ease-premium),
    transform var(--kf-fast) var(--ease-premium),
    box-shadow var(--kf-fast) var(--ease-premium);
}

.kf-opts--wide .kf-opt {
  flex-direction: row;
  align-items: center;
  min-height: 84px;
  gap: 16px;
}

.kf-opt:hover {
  border-color: var(--kf-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}

.kf-opt:focus-visible {
  outline: 2px solid var(--kf-ink);
  outline-offset: 3px;
}

.kf-opt.is-on {
  background: var(--kf-ink);
  border-color: var(--kf-ink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.kf-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--kf-ink);
  transition: color var(--kf-fast) var(--ease-premium);
}
.kf-opt.is-on .kf-icon { color: #fff; }

.kf-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  flex-shrink: 0;
}

.kf-opt-text { display: block; }

.kf-opt-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.kf-opt-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.kf-opt.is-on .kf-opt-hint { color: rgba(255, 255, 255, 0.7); }

/* selected tick */
.kf-opt-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--kf-fast) var(--ease-premium), transform var(--kf-fast) var(--ease-snappy);
}
.kf-opt-mark svg { width: 100%; height: 100%; }
.kf-opt.is-on .kf-opt-mark { opacity: 1; transform: none; }

/* keyboard affordance — pointer devices only */
.kf-key {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity var(--kf-fast) ease;
}
.kf-opt.is-on .kf-key { color: rgba(255, 255, 255, 0.5); }
@media (hover: hover) and (pointer: fine) {
  .kf-opts:hover .kf-key, .kf-opt:focus-visible .kf-key { opacity: 1; }
}

/* ---------- fields ---------- */

.kf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(24px, 3vw, 32px);
}

.kf-field { display: flex; flex-direction: column; }
.kf-field--wide { grid-column: 1 / -1; }

.kf-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 8px;
}

.kf-opt-flag {
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: none;
}

.kf-input {
  width: 100%;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--bolt-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #111;
  outline: none;
  transition: border-color var(--kf-fast) var(--ease-premium), box-shadow var(--kf-fast) var(--ease-premium);
}
.kf-input::placeholder { color: rgba(0, 0, 0, 0.35); }
.kf-input:hover { border-color: rgba(0, 0, 0, 0.3); }
.kf-input:focus {
  border-color: var(--kf-ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.kf-input[aria-invalid="true"] { border-color: #b42318; }
textarea.kf-input { resize: vertical; min-height: 92px; line-height: 1.6; }

.kf-fhint, .kf-err {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.kf-err { color: #b42318; font-weight: 500; }

/* ---------- review ---------- */

.kf-summary {
  margin: clamp(24px, 3vw, 32px) 0 0;
  padding: 22px 24px;
  background: var(--bg-bolt-grey);
  border-left: 3px solid var(--kf-ink);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #111;
}

.kf-rows { margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }

.kf-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.kf-row-k {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kf-row-v { margin: 0; font-size: 1rem; color: #111; line-height: 1.5; }

.kf-edit {
  background: none;
  border: 0;
  padding: 4px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kf-ink);
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--kf-fast) ease;
}
.kf-edit:hover { opacity: 0.6; }
.kf-edit:focus-visible { outline: 2px solid var(--kf-ink); outline-offset: 3px; }

.kf-msg { margin-top: 24px; }
.kf-msg p:last-child {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
}

/* ---------- navigation ---------- */

.kf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.kf-nav--center { justify-content: center; flex-wrap: wrap; border-top: 0; }

.kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--kf-fast) var(--ease-premium),
    color var(--kf-fast) var(--ease-premium),
    border-color var(--kf-fast) var(--ease-premium),
    transform var(--kf-fast) var(--ease-premium),
    box-shadow var(--kf-fast) var(--ease-premium);
}
.kf-btn-i { width: 16px; height: 16px; }

.kf-btn--go { background: var(--kf-ink); color: #fff; border-color: var(--kf-ink); }
.kf-btn--go:hover:not(:disabled) {
  background: var(--bg-grey);
  transform: scale(1.02);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.kf-btn--ghost { background: transparent; color: var(--kf-ink); border-color: var(--bolt-border); }
.kf-btn--ghost:hover { border-color: var(--kf-ink); background: rgba(0, 0, 0, 0.03); }

.kf-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.kf-btn:focus-visible { outline: 2px solid var(--kf-ink); outline-offset: 3px; }

.kf-tap {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- success ---------- */

.kf-done { text-align: center; padding: clamp(20px, 5vw, 48px) 0; }

.kf-done-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--kf-ink);
  color: #fff;
  animation: kf-pop 420ms var(--ease-snappy) both;
}
.kf-done-mark svg { width: 28px; height: 28px; }
.kf-done .kf-hint { margin-left: auto; margin-right: auto; }

@keyframes kf-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .kf-row { grid-template-columns: 1fr auto; }
  .kf-row-k { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .kf { padding: 22px 18px; }
  .kf-head { gap: 14px; }
  .kf-count { font-size: 0.64rem; letter-spacing: 0.12em; }
  .kf-opts, .kf-opts--wide { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kf-opts--wide .kf-opt { flex-direction: column; align-items: flex-start; min-height: 104px; }
  .kf-opt { min-height: 104px; padding: 14px; gap: 10px; }
  .kf-icon { width: 24px; height: 24px; }
  .kf-num { font-size: 1.25rem; }
  .kf-opt-label { font-size: 0.86rem; }
  .kf-opt-hint { display: none; }
  .kf-fields { grid-template-columns: 1fr; gap: 16px; }
  /* 16px keeps iOS from zooming the viewport on focus */
  .kf-input { font-size: 16px; }
  .kf-nav { flex-direction: column-reverse; align-items: stretch; }
  .kf-btn { width: 100%; }
  .kf-tap { text-align: center; }
  .kf-summary { padding: 18px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .kf-panel, .kf-in, .kf-in-back, .kf-done-mark { animation: none !important; }
  .kf-opt, .kf-btn, .kf-input, .kf-seg, .kf-opt-mark { transition: none !important; }
  .kf-opt:hover, .kf-btn--go:hover { transform: none; }
}

/* ============================================================
   CONTACT PAGE LAYOUT
   Short hero, then the flow beside the ways-to-reach-us panel.
   ============================================================ */

.contact-hero { padding-bottom: 0; }

/* Smaller than the standard hero title so the first question sits high. */
.contact-hero .bolt-title { font-size: clamp(2.2rem, 5.4vw, 4rem); }

.contact-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-intro .contact-eyebrow { text-align: center; }
.contact-intro .bolt-subtext { margin-left: auto; margin-right: auto; max-width: 56ch; }

.contact-panel-section { padding-top: 48px; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-main { min-width: 0; }

/* aside */
.contact-aside {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0 0 8px;
}

.contact-aside-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 500ms var(--ease-premium);
}
.contact-aside:hover .contact-aside-img { filter: grayscale(0); }

.contact-pledge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
}

.contact-pledge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9254;
  box-shadow: 0 0 0 3px rgba(31, 146, 84, 0.16);
  flex-shrink: 0;
}

.contact-cards { list-style: none; margin: 0; padding: 0; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.contact-card:last-child { border-bottom: 0; }

.contact-card svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--bg-dark);
}

.contact-card-k {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.contact-card-v {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #111;
  overflow-wrap: anywhere;
}
a.contact-card-v { border-bottom: 1px solid rgba(0, 0, 0, 0.18); }
a.contact-card-v:hover { border-bottom-color: #111; }

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .contact-aside-img { height: 180px; }
}

@media (max-width: 600px) {
  .contact-panel-section { padding-top: 32px; padding-bottom: 48px; }
  .contact-aside-img { height: 150px; }
  .contact-pledge, .contact-card { padding-left: 18px; padding-right: 18px; }
}
