/* VetUberaba — Gerador de Ficha Digital do Pet. Mobile primeiro. */
.fx-main { padding-bottom: 110px; }
.fx-intro, .fx-wizard, .fx-result { max-width: 640px; margin: 0 auto; }
.fx-intro[hidden], .fx-wizard[hidden], .fx-result[hidden] { display: none; }
.fx-intro { display: flex; flex-direction: column; gap: 14px; }

.fx-hero { display: flex; gap: 14px; align-items: center; background: var(--primary-blue); color: #fff; border-radius: 20px; padding: 18px; }
.fx-hero-ic { width: 58px; height: 58px; border-radius: 17px; background: var(--secondary-orange); display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; }
.fx-hero h2 { font-size: 19px; margin: 0 0 4px; line-height: 1.25; }
.fx-hero p { font-size: 13.5px; line-height: 1.5; margin: 0; color: #dbe6f4; }
.fx-hero strong { color: #fff; }

.fx-box { background: #fff; border: 1px solid #e5e9ef; border-radius: 18px; padding: 16px; box-shadow: 0 3px 12px rgba(0, 0, 0, .03); }
.fx-box h3 { font-size: 15px; color: var(--primary-blue); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.fx-box h3 i { color: var(--primary-green); font-size: 20px; }
.fx-box p { font-size: 14px; line-height: 1.6; color: #4b5563; margin: 0; }
.fx-box p strong { color: var(--primary-blue); }
.fx-box--safe { background: #f2f8ee; border-color: #cfe3c5; }
.fx-how { margin: 0; padding: 0; list-style: none; counter-reset: fx; display: flex; flex-direction: column; gap: 10px; }
.fx-how li { counter-increment: fx; position: relative; padding-left: 38px; font-size: 14px; line-height: 1.5; color: #4b5563; }
.fx-how li::before { content: counter(fx); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-green); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.fx-how b { color: var(--primary-blue); }
.fx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-tags span { font-size: 12px; font-weight: 600; color: var(--primary-blue); background: #e8eff8; border-radius: 20px; padding: 5px 11px; }
.fx-saved { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 16px; padding: 14px; }
.fx-saved[hidden] { display: none; }
.fx-saved p { font-size: 13.5px; color: #7c3a0b; margin: 0 0 10px; line-height: 1.45; }
.fx-start { margin-top: 2px; min-height: 54px; font-size: 16px; }
.fx-faq { background: #fff; border: 1px solid #e5e9ef; border-radius: 16px; padding: 4px 16px; }
.fx-faq summary { cursor: pointer; font-weight: 700; color: var(--primary-blue); font-size: 14.5px; padding: 12px 0; }
.fx-faq div { padding-bottom: 8px; }
.fx-faq p { font-size: 13.5px; line-height: 1.55; color: #4b5563; margin: 0 0 10px; }
.fx-faq b { color: var(--primary-blue); }

/* assistente */
.fx-count { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--primary-green); margin-bottom: 8px; }
.fx-wizard .wiz-steps, .fx-wizard .wiz-title, .fx-wizard .wiz-sub { max-width: none; }
.fx-fields { display: flex; flex-direction: column; gap: 16px; }
.fx-sec { margin-top: 8px; padding-top: 14px; border-top: 1px dashed #d6dde5; }
.fx-sec h3 { font-size: 15px; color: var(--primary-blue); margin: 0; }
.fx-sec p { font-size: 13px; color: #6b7280; margin: 3px 0 0; line-height: 1.45; }
.fx-err { color: #dc2626; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.fx-err[hidden] { display: none; }
.fx-nav { position: sticky; bottom: 0; z-index: 5; margin-top: 22px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg-color) 78%, rgba(244, 246, 248, 0)); }
.fx-nav .vu-btn { min-height: 52px; }
.fx-nav #fxPrev { flex: 0 0 auto; }
.fx-nav #fxNext { flex: 1; }
.fx-nav button[hidden], [hidden].fx-nav { display: none; }
.vu-field[hidden], .fx-aut[hidden] { display: none; }

/* seleção */
.fx-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-opt { flex: 1 1 auto; min-height: 46px; padding: 0 16px; border: 1.5px solid #dfe5eb; background: #fff; color: var(--primary-blue); font: inherit; font-size: 14.5px; font-weight: 700; border-radius: 12px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.fx-opt.is-on { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.fx-opt:focus-visible, .fx-card:focus-visible { outline: 3px solid rgba(27, 59, 100, .35); outline-offset: 2px; }
.fx-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; min-height: 96px; background: #fff; border: 1.5px solid #e5e9ef; border-radius: 16px; font: inherit; font-size: 14px; font-weight: 700; color: var(--primary-blue); cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s; }
.fx-card i { font-size: 30px; }
.fx-card.is-on { border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(92, 146, 71, .2); }
.fx-card.is-on i { color: var(--primary-green); }
.fx-checks { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 520px) { .fx-checks { grid-template-columns: 1fr 1fr; } }
.fx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: #374151; padding: 10px 12px; background: #fff; border: 1px solid #e5e9ef; border-radius: 12px; cursor: pointer; }
.fx-check input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--primary-green); flex-shrink: 0; }
.fx-bool { background: #fff; border: 1px solid #e5e9ef; border-radius: 12px; padding: 12px; }
.fx-block { gap: 10px; }
.fx-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.vu-photo-act .vu-btn { text-decoration: none; }
.fx-aut { background: #fff; border: 1px solid #e5e9ef; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.fx-aut.has-error { border-color: #dc2626; }
.fx-aut-t { font-size: 13.5px; line-height: 1.45; color: #374151; font-weight: 600; }

/* listas (medicamentos, vacinas) */
.fx-rows { display: flex; flex-direction: column; gap: 10px; }
.fx-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #fff; border: 1px solid #e5e9ef; border-radius: 14px; padding: 12px 44px 12px 12px; }
.fx-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-cell.c2 { grid-column: 1 / -1; }
.fx-cl { font-size: 11.5px; font-weight: 700; color: #6b7280; }
.fx-row .vu-input { padding: 10px 11px; font-size: 15px; }
.fx-del { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 10px; border: none; background: #fef2f2; color: #b91c1c; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.fx-add { align-self: flex-start; }
.fx-add[hidden] { display: none; }
.fx-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fx-presets-t { font-size: 12px; font-weight: 700; color: #6b7280; width: 100%; }
.fx-presets .vu-chip { font-size: 12.5px; padding: 7px 12px; }
.fx-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: #4b5563; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 12px; }
.fx-note i { color: #1e40af; font-size: 18px; flex-shrink: 0; }

/* assinatura */
.fx-sigbox { position: relative; background: #fff; border: 1.5px dashed #b6c1cf; border-radius: 14px; height: 150px; overflow: hidden; }
.fx-sig { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.fx-sig-ph { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #c0c8d2; font-size: 15px; font-weight: 600; pointer-events: none; }
.fx-sigbox.has-ink .fx-sig-ph { display: none; }
.fx-sigwrap .vu-btn { align-self: flex-start; }

/* revisão e resultado */
.fx-review { display: flex; flex-direction: column; gap: 8px; }
.fx-rv { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e5e9ef; border-radius: 14px; padding: 12px 12px 12px 14px; }
.fx-rv-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-rv-b b { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--primary-green); }
.fx-rv-b span { font-size: 13.5px; line-height: 1.4; color: #374151; overflow-wrap: anywhere; }
.fx-edit { flex-shrink: 0; border: 1.5px solid #d6dde5; background: #fff; color: var(--primary-blue); font: inherit; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.fx-warn { display: flex; flex-direction: column; gap: 6px; }
.fx-res-acts { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 0 auto; }
.fx-res-note { max-width: 420px; margin: 12px auto 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: #166534; min-height: 20px; }
.fx-link { color: var(--primary-blue); font-weight: 700; }
.fx-result .fx-note { max-width: 420px; margin: 14px auto 0; }
@media (min-width: 640px) { .fx-row { grid-template-columns: 2fr 1fr 1fr; } .fx-cell.c2 { grid-column: auto; } }
@media (max-width: 380px) { .fx-cards { grid-template-columns: 1fr 1fr; } .fx-opt { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .fx-opt, .fx-card { transition: none; } }

/* vacinas: estado vazio e botão minimalista "Voltar ao início" */
.fx-empty { display: flex; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.45; color: #6b7280; background: #fff; border: 1.5px dashed #cfd7e0; border-radius: 14px; padding: 14px; }
.fx-empty i { font-size: 24px; color: #9fb0c3; flex-shrink: 0; }
.fx-empty[hidden] { display: none; }
.fx-home { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #6b7280; text-decoration: none; border-radius: 10px; }
.fx-home i { font-size: 18px; }
.fx-home:hover, .fx-home:focus-visible { color: var(--primary-blue); background: #eaeff5; outline: none; }
.fx-example { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d9e0e8; }
.fx-example p { margin: 0 0 10px; }
