/* VetCuritiba — 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: #17233f; color: #ffffff; border-radius: 20px; padding: 18px}
.fx-hero-ic { width: 58px; height: 58px; border-radius: 17px; background: #e8b923; 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: #ffffff}

.fx-box { background: #ffffff; border: 1px solid #d8dfee; border-radius: 18px; padding: 16px; box-shadow: 0 3px 12px rgba(11,18,32,0.03)}
.fx-box h3 { font-size: 15px; color: #0b1220; margin: 0 0 8px; display: flex; gap: 8px; align-items: center}
.fx-box h3 i { color: #1f7a37; font-size: 20px}
.fx-box p { font-size: 14px; line-height: 1.6; color: #566883; margin: 0}
.fx-box p strong { color: #0b1220}
.fx-box--safe { background: #d9f6e8; border-color: #d8dfee}
.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: #566883}
.fx-how li::before { content: counter(fx); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: #5c9247; color: #ffffff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center}
.fx-how b { color: #0b1220}
.fx-tags { display: flex; flex-wrap: wrap; gap: 6px}
.fx-tags span { font-size: 12px; font-weight: 600; color: #0b1220; background: #e3ebfd; border-radius: 20px; padding: 5px 11px}
.fx-saved { background: #fbf0c8; border: 1px solid #fbf0c8; border-radius: 16px; padding: 14px}
.fx-saved[hidden] { display: none}
.fx-saved p { font-size: 13.5px; color: #8a6400; margin: 0 0 10px; line-height: 1.45}
.fx-start { margin-top: 2px; min-height: 54px; font-size: 16px}
.fx-faq { background: #ffffff; border: 1px solid #d8dfee; border-radius: 16px; padding: 4px 16px}
.fx-faq summary { cursor: pointer; font-weight: 700; color: #0b1220; 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: #566883; margin: 0 0 10px}
.fx-faq b { color: #0b1220}

/* assistente */
.fx-count { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #1f7a37; 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 #d8dfee}
.fx-sec h3 { font-size: 15px; color: #0b1220; margin: 0}
.fx-sec p { font-size: 13px; color: #566883; 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, #e7ecf6 78%, rgba(244,246,248,0))}
.fx-nav .vp-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}
.vp-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 #d8dfee; background: #ffffff; color: #0b1220; 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: #5c9247; border-color: #2c9a4a; color: #ffffff}
.fx-opt:focus-visible, .fx-card:focus-visible { outline: 3px solid rgba(11,18,32,0.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: #ffffff; border: 1.5px solid #d8dfee; border-radius: 16px; font: inherit; font-size: 14px; font-weight: 700; color: #0b1220; cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s}
.fx-card i { font-size: 30px}
.fx-card.is-on { border-color: #2c9a4a; box-shadow: 0 0 0 3px rgba(92,146,71,0.2)}
.fx-card.is-on i { color: #1f7a37}
.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: #0b1220; padding: 10px 12px; background: #ffffff; border: 1px solid #d8dfee; border-radius: 12px; cursor: pointer}
.fx-check input { width: 19px; height: 19px; margin-top: 1px; accent-color: #5c9247; flex-shrink: 0}
.fx-bool { background: #ffffff; border: 1px solid #d8dfee; 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%)}
.vp-photo-act .vp-btn { text-decoration: none}
.fx-aut { background: #ffffff; border: 1px solid #d8dfee; 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: #0b1220; 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: #ffffff; border: 1px solid #d8dfee; 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: #566883}
.fx-row .vp-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: #f8f9fd; 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: #566883; width: 100%}
.fx-presets .vp-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: #566883; background: #e3ebfd; border: 1px solid #e3ebfd; border-radius: 12px; padding: 10px 12px}
.fx-note i { color: #2f55c8; font-size: 18px; flex-shrink: 0}

/* assinatura */
.fx-sigbox { position: relative; background: #ffffff; 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: #566883; font-size: 15px; font-weight: 600; pointer-events: none}
.fx-sigbox.has-ink .fx-sig-ph { display: none}
.fx-sigwrap .vp-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: #ffffff; border: 1px solid #d8dfee; 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: #1f7a37}
.fx-rv-b span { font-size: 13.5px; line-height: 1.4; color: #0b1220; overflow-wrap: anywhere}
.fx-edit { flex-shrink: 0; border: 1.5px solid #d8dfee; background: #ffffff; color: #0b1220; 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: #1f7a37; min-height: 20px}
.fx-link { color: #0b1220; 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: #566883; background: #ffffff; border: 1.5px dashed #d8dfee; border-radius: 14px; padding: 14px}
.fx-empty i { font-size: 24px; color: #566883; 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: #566883; text-decoration: none; border-radius: 10px}
.fx-home i { font-size: 18px}
.fx-home:hover, .fx-home:focus-visible { color: #0b1220; background: #e3ebfd; outline: none}
.fx-example { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d8dfee}
.fx-example p { margin: 0 0 10px}
