/* Baunti contact (v9): reach links and the mini form. Uses the app's tokens
   (--ink, --ink-2, --line, --line-strong, --accent, --surface-2, --error). */

/* the app's one-step form and its contact list are replaced, not removed */
#contacto form:not(.bt-mf),
#contacto #contact-title ~ ul { display: none !important; }

/* ---------------------------------------------------------------- reach */
.bt-reach { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.bt-reach__link {
  display: inline-flex; align-items: center; gap: 0.625rem;
  min-height: 3rem; padding: 0 1.125rem 0 0.375rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink); font-size: 0.9375rem; font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: box-shadow 160ms var(--bt-ease-out, ease), translate 160ms var(--bt-ease-out, ease);
}
.bt-reach__icon {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}
.bt-reach__link--wa .bt-reach__icon { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .bt-reach__link:hover { box-shadow: inset 0 0 0 1px var(--ink-2); translate: 0 -1px; }
}
.bt-reach__link:focus-visible { outline: 2px solid var(--focus, #ff6b5b); outline-offset: 3px; }

/* ----------------------------------------------------------------- form */
.bt-mf { align-content: start; }
.bt-mf.is-done .bt-mf__top { display: none; }
.bt-mf__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; }
.bt-mf__count { margin-left: auto; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bt-mf__back {
  display: inline-flex; align-items: center; gap: 0.375rem;
  min-height: 2.75rem; margin: -0.5rem 0 -0.5rem -0.5rem; padding: 0 0.5rem;
  border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--ink-2);
}
.bt-mf__back[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .bt-mf__back:hover { color: var(--ink); } }
.bt-mf__bar { height: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.bt-mf__bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transition: transform 420ms var(--bt-ease-out, ease); }

/* steps slide in from the side we are heading to */
.bt-mf__stage { position: relative; transition: height 300ms var(--bt-ease-out, ease); }
.bt-mf__panel { display: grid; gap: 1.25rem; }
.bt-mf__panel.is-leaving { position: absolute; inset: 0 0 auto 0; pointer-events: none; animation: bt-mf-out 200ms var(--bt-ease-out, ease) both; }
.bt-mf__panel.is-entering { animation: bt-mf-in 320ms var(--bt-ease-out, ease) both; }
@keyframes bt-mf-out { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -28px)); } }
@keyframes bt-mf-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } }

.bt-mf__q { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 1.25rem; }
.bt-mf__legend {
  padding: 0; font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
}
.bt-mf__q > .bt-mf__legend { margin-bottom: 1.25rem; } /* a legend is not a grid item, so the gap skips it */
.bt-mf__legend:focus { outline: none; }

/* answers: one tap */
.bt-chips { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.bt-chip { position: relative; display: block; cursor: pointer; }
.bt-chip input, .bt-seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bt-chip span {
  display: flex; align-items: center; min-height: 3.25rem; padding: 0.75rem 1rem;
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  transition: box-shadow 140ms ease, background-color 140ms ease, scale 140ms var(--bt-ease-out, ease);
}
@media (hover: hover) and (pointer: fine) { .bt-chip:hover span { box-shadow: inset 0 0 0 1px var(--ink-2); } }
.bt-chip:active span { scale: 0.98; }
.bt-chip input:checked + span {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.bt-chip input:focus-visible + span, .bt-seg__opt input:focus-visible + span { outline: 2px solid var(--focus, #ff6b5b); outline-offset: 2px; }
.bt-mf__next { justify-self: start; }
.bt-mf__next[hidden] { display: none; }

/* contact step */
.bt-mf__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; font-size: 0.8125rem; color: var(--ink-2); }
.bt-mf__sum p { margin-right: 0.25rem; }
.bt-mf__sum ul { display: contents; }
.bt-mf__sum li { padding: 0.25rem 0.625rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
.bt-mf__change { min-height: 2.75rem; padding: 0 0.5rem; color: var(--accent-ink, var(--accent)); text-decoration: underline; text-underline-offset: 0.2em; font-weight: 500; }
.bt-mf__pair { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .bt-mf__pair { grid-template-columns: 1fr 1fr; } }
.bt-mf__field { display: grid; gap: 0.5rem; align-content: start; }
.bt-mf__err { font-size: 0.8125rem; color: var(--error); }
.bt-mf__note { font-size: 0.875rem; color: var(--ink-2); }

.bt-seg { display: inline-flex; justify-self: start; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.bt-seg__opt { position: relative; cursor: pointer; }
.bt-seg__opt span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0 1rem;
  border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--ink-2);
  transition: background-color 140ms ease, color 140ms ease;
}
.bt-seg__opt svg { width: 16px; height: 16px; }
.bt-seg__opt input:checked + span { background: var(--ink); color: var(--bg); }

.bt-mf__send { justify-self: start; gap: 0.5rem; }
.bt-mf__send svg, .bt-mf__actions svg { width: 18px; height: 18px; }
.bt-mf__done { display: grid; gap: 0.75rem; }
.bt-mf__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.bt-mf__actions .btn { gap: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .bt-mf__stage, .bt-mf__bar span, .bt-chip span, .bt-reach__link { transition: none; }
  .bt-mf__panel.is-leaving, .bt-mf__panel.is-entering { animation: none; }
}
