#modalAjuda { color: #202b32; }
#modalAjuda .modal-dialog { width: 780px; max-width: calc(100% - 32px); margin: 24px auto; }
#modalAjuda .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
#modalAjuda .modal-header { padding: 22px 26px; border-bottom: 1px solid #e8edef; background: #fff; }
#modalAjuda .modal-header h3, #modalAjuda .modal-header h4 { margin: 0; padding-right: 34px; font-size: 19px; font-weight: 600; line-height: 1.35; }
#modalAjuda .close { width: 34px; height: 34px; margin: -5px -5px 0 0; opacity: 1; color: #56666e; background: #f0f4f4; border-radius: 50%; font-size: 24px; font-weight: 400; text-shadow: none; }
#modalAjuda .modal-body { padding: 24px 26px; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow: auto; background: #fff; }
#modalAjuda .ajuda-layout { display: flex; align-items: center; gap: 30px; }
#modalAjuda .ajuda-player { position: relative; flex: none; width: 260px; width: min(260px, calc((100vh - 180px) * .5625)); min-width: 200px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; background: #17241f; }
#modalAjuda .ajuda-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#modalAjuda .ajuda-assistir { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; color: white; background: #17241f; font: inherit; }
#modalAjuda .ajuda-assistir img { display: block; width: 100%; height: 100%; object-fit: cover; }
#modalAjuda .ajuda-assistir::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(8,22,16,.88)); }
#modalAjuda .ajuda-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; padding-left: 4px; border-radius: 50%; background: #fff; color: #197447; font-size: 24px; box-shadow: 0 4px 24px rgba(0,0,0,.2); }
#modalAjuda .ajuda-assistir:hover .ajuda-play { background: #eaf6ee; }
#modalAjuda .ajuda-assistir-legenda { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 22px; font-size: 14px; font-weight: 600; text-align: center; }
#modalAjuda .ajuda-assistir-legenda small { display: block; margin-top: 5px; font-size: 12px; font-weight: 400; color: #e1eae5; }
#modalAjuda .ajuda-orientacao { flex: 1; min-width: 0; }
#modalAjuda .ajuda-etiqueta { color: #197447; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }
#modalAjuda .ajuda-orientacao h3 { margin: 12px 0; font-size: 27px; font-weight: 600; line-height: 1.18; letter-spacing: -.5px; }
#modalAjuda .ajuda-orientacao p { margin: 0 0 22px; color: #617079; font-size: 14px; line-height: 1.6; }
#modalAjuda .ajuda-passos { padding: 0; margin: 0 0 24px; list-style: none; counter-reset: ajuda-passo; }
#modalAjuda .ajuda-passos li { position: relative; padding-left: 42px; margin-bottom: 18px; counter-increment: ajuda-passo; }
#modalAjuda .ajuda-passos li::before { content: counter(ajuda-passo); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #edf5ef; color: #197447; font-size: 13px; font-weight: 700; }
#modalAjuda .ajuda-passos strong { display: block; font-size: 14px; line-height: 1.4; }
#modalAjuda .ajuda-passos li span { display: block; margin-top: 4px; color: #617079; font-size: 12px; line-height: 1.5; }
#modalAjuda .ajuda-comecar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 8px; background: #197447; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
#modalAjuda .ajuda-comecar:hover { background: #125b37; color: #fff; text-decoration: none; }
#modalAjuda .ajuda-youtube { display: block; margin-top: 15px; color: #53646d; font-size: 12px; text-align: center; text-decoration: underline; }
#modalAjuda button:focus-visible, #modalAjuda a:focus-visible { outline: 3px solid #e2a62b; outline-offset: 3px; }
/* The older Bootstrap layout puts the dialog directly on the modal element. */
#modalAjuda.ajuda-legado { width: 780px; max-width: calc(100% - 32px); left: 50%; top: 24px; margin: 0; transform: translateX(-50%); border-radius: 18px; overflow: hidden; }
#modalAjuda.ajuda-legado.fade.in { top: 24px; }
@media (max-width: 600px) {
    #modalAjuda .modal-dialog { max-width: calc(100% - 20px); margin: 10px auto; }
    #modalAjuda .modal-header { padding: 18px; }
    #modalAjuda .modal-header h3, #modalAjuda .modal-header h4 { font-size: 17px; }
    #modalAjuda .modal-body { padding: 20px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); }
    #modalAjuda .ajuda-layout { flex-direction: column; gap: 24px; }
    #modalAjuda .ajuda-player { width: min(240px, calc((100vh - 150px) * .5625)); }
    #modalAjuda .ajuda-orientacao { width: 100%; }
    #modalAjuda .ajuda-orientacao h3 { font-size: 24px; }
    #modalAjuda.ajuda-legado, #modalAjuda.ajuda-legado.fade.in { top: 10px; }
}
