/* HR Platform 2.83.0 — Formularios móviles. Color de la marca: --hr-mf-accent ← --hr-public-accent ← --hr-accent. */
.hr-mf-form{--hr-mf-accent:var(--hr-public-accent,var(--hr-accent,#0f6e66))}
.hr-mf-off{display:none!important}
/* En formularios con rejilla (constructor de HR, HosteliaReD) los controles ocupan la fila completa. */
.hr-mf-steps,.hr-mf-nav,.hr-mf-draft{grid-column:1/-1!important;width:auto;max-width:100%;box-sizing:border-box;flex:1 1 100%}
.hr-mf-error{display:block;margin-top:4px;color:#b42318;font-size:13px;font-weight:600;line-height:1.3;letter-spacing:0;text-transform:none}
.hr-mf-form [aria-invalid="true"]{border-color:#d92d20!important;box-shadow:0 0 0 3px rgba(217,45,32,.12)!important}

/* Borrador recuperable */
.hr-mf-draft{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#eef6ff;border:1px solid #b9d7f7;color:#173b5f;font-size:14px;line-height:1.35}
.hr-mf-draft p{margin:0;flex:1 1 220px}
.hr-mf-draft div{display:flex;gap:8px}
.hr-mf-draft button{appearance:none;min-height:40px;padding:8px 14px;border-radius:10px;border:1px solid #b9d7f7;background:#fff;color:#173b5f;font:inherit;font-weight:700;cursor:pointer}
.hr-mf-draft .hr-mf-draft-yes{background:var(--hr-mf-accent);border-color:transparent;color:#fff}

/* Enviando… */
.hr-mf-busy{opacity:.8;cursor:progress!important;position:relative}
.hr-mf-busy::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:hr-mf-spin .7s linear infinite}
@keyframes hr-mf-spin{to{transform:rotate(360deg)}}

/* Pasos (solo cuando el asistente está activo en el celular) */
.hr-mf-steps{display:flex;gap:6px;overflow-x:auto;margin:0 0 12px;padding:6px;border-radius:14px;background:#f4f7f9;border:1px solid #e3e9ee;scrollbar-width:none;position:sticky;top:var(--hr-mf-sticky-top,0px);z-index:20}
.hr-mf-steps::-webkit-scrollbar{display:none}
.hr-mf-chip{appearance:none;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 12px 6px 6px;border-radius:999px;border:1px solid #d8e0e6;background:#fff;color:#33414d;font:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.hr-mf-chip b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#e8eef2;font-size:12px}
.hr-mf-chip.is-current{background:var(--hr-mf-accent);border-color:transparent;color:#fff}
.hr-mf-chip.is-current b{background:rgba(255,255,255,.25);color:#fff}
.hr-mf-chip.is-done b{background:#d7f0e2;color:#137333}
.hr-mf-chip.is-done b::after{content:"✓";position:absolute;opacity:0}
.hr-mf-nav{position:sticky;bottom:max(env(safe-area-inset-bottom,0px),var(--hr-mf-sticky-bottom,0px));z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px -4px 0;padding:10px 4px;background:linear-gradient(to top,#fff 75%,rgba(255,255,255,0))}
.hr-mf-nav button{appearance:none;min-height:48px;padding:10px 16px;border-radius:14px;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
.hr-mf-back{border:1px solid #d8e0e6;background:#fff;color:#33414d}
.hr-mf-next{border:0;background:var(--hr-mf-accent);color:#fff;margin-left:auto;flex:0 1 60%}
.hr-mf-count{font-size:12px;color:#5b6670;white-space:nowrap}
.hr-mf-nav.is-last{position:static;background:none}

/* Letra de 16 px en el celular: el iPhone no amplía la página al escribir. */
@media (max-width:767px){
  html body form.hr-mf-form[data-hr-mf] :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),select,textarea){font-size:16px!important}
}
@media (prefers-reduced-motion:reduce){.hr-mf-busy::before{animation:none}}
