/* Shiba Match Form as a short guided flow, plus compact adoption steps on phones.
   Uses the existing colour roles and the Fraunces and Inter pairing. No new tokens. */
.mf-step{border:0;margin:0;padding:0;min-width:0}
.mf-step[hidden],.mf-progress[hidden],.mf-nav[hidden],.mf-nav [hidden]{display:none!important}
.mf-legend{padding:0;margin:0 0 14px;font-family:var(--vr-font-display,"Fraunces",Georgia,serif);font-weight:600;font-size:1.15rem;color:var(--ink,#3d2c1d)}
.mf-legend:focus{outline:none}
.mf-progress{margin:6px 0 18px}
.mf-count{display:flex;justify-content:space-between;gap:12px;font-size:.82rem;font-weight:600;letter-spacing:.02em;color:var(--ink-soft,#6b5847);margin-bottom:8px}
.mf-bar{display:block;height:6px;border-radius:999px;background:var(--sand,#ead9c2);overflow:hidden}
.mf-bar i{display:block;height:100%;width:33.34%;border-radius:999px;background:var(--terracotta,#c8553d);transition:width .25s ease}
.mf-label{display:block;font-size:1rem;font-weight:600;margin-bottom:8px;color:var(--ink,#3d2c1d)}
.mf-chips{display:flex;flex-wrap:wrap;gap:8px}
.mf-chip{position:relative;display:inline-flex;margin:0}
.mf-chip input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.mf-chip span{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1.5px solid var(--line,#e8d9c5);border-radius:999px;background:#fff;font-size:.95rem;font-weight:500;color:var(--ink,#3d2c1d);transition:background .15s ease,border-color .15s ease,color .15s ease}
.mf-chip input:checked+span{background:var(--terracotta,#c8553d);border-color:var(--terracotta-dark,#a8412e);color:#fff}
.mf-chip input:focus-visible+span{outline:3px solid var(--gold,#e6a756);outline-offset:2px}
.mf-chip small{font-size:.78em;font-weight:500;opacity:.85;margin-left:6px}
.mf-hint{font-size:.85rem;color:var(--ink-soft,#6b5847);margin:10px 0 0}
.mf-nav{display:flex;gap:10px;margin-top:20px}
.mf-nav .btn{flex:1;justify-content:center;min-height:50px}
.mf-nav .mf-back{flex:0 0 30%}
.mf-nav [type="submit"]{margin:0}
.mf-on .mf-submit-hidden{display:none}
.mf-on select,.mf-on input[type="text"],.mf-on input[type="tel"],.mf-on input[type="email"],.mf-on textarea{font-size:16px;min-height:50px}
@media (prefers-reduced-motion:reduce){.mf-bar i,.mf-chip span{transition:none}}

/* Adoption steps read as one compact timeline on phones, not eight stacked cards. */
@media (max-width:640px){
  .vp-six-steps.mf-timeline{display:block;position:relative;margin:0;padding:0}
  .vp-six-steps.mf-timeline li,.vp-six-steps.mf-timeline li:nth-child(even),.vp-six-steps.mf-timeline li:hover{position:relative;display:block;margin:0;padding:0 0 22px 56px;border:0;border-radius:0;background:none!important;box-shadow:none;transform:none}
  .vp-six-steps.mf-timeline li::before{position:absolute;left:0;top:0;width:40px;height:40px;margin:0;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--cream-2,#f6ecdf);border:1.5px solid var(--line,#e8d9c5);font-size:.95rem;line-height:1;color:var(--terracotta-dark,#a8412e)}
  .vp-six-steps.mf-timeline li::after{content:"";position:absolute;left:19.5px;top:44px;bottom:2px;width:1.5px;background:var(--line,#e8d9c5)}
  .vp-six-steps.mf-timeline li:last-child{padding-bottom:0}
  .vp-six-steps.mf-timeline li:last-child::after{display:none}
  .vp-six-steps.mf-timeline li h3{margin:0 0 4px;padding-top:8px;font-size:1.05rem}
  .vp-six-steps.mf-timeline li p{margin:0}
}

/* Application terms sit under the form, so the form is the first thing on the screen. */
#before-you-apply{margin-top:24px;scroll-margin-top:96px}

/* Room for the home and lifestyle answer on a phone */
.mf-on .mf-step textarea{min-height:132px}
