/* Modal de aula gratuita: estilos isolados da navegação e dos cards do portal. */
body.rlm-open { overflow: hidden; }
.rlm { box-sizing: border-box; width: min(536px, calc(100% - 32px)); max-width: 536px; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #e3e8f1; border-radius: 24px; background: #fff; color: #18213a; font: 400 14px/1.55 Manrope, sans-serif; box-shadow: 0 30px 90px #050d2450; overflow: auto; overscroll-behavior: contain; }
.rlm *, .rlm *::before, .rlm *::after { box-sizing: border-box; }
.rlm [hidden] { display: none !important; }
.rlm::backdrop { background: #081225ba; backdrop-filter: blur(5px); }
.rlm[open] { animation: rlm-enter .22s ease both; }
.rlm__content { position: relative; padding: 34px; }
.rlm__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #5b6579; background: #f4f6fa; cursor: pointer; }
.rlm svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rlm__eyebrow { display: block; padding-right: 35px; color: #1d4ed8; font: 700 13px/1.2 'Barlow Condensed', Manrope, sans-serif; letter-spacing: .09em; }
.rlm h2 { margin: 14px 28px 10px 0; color: #0a1222; font: 800 clamp(24px, 5.5vw, 31px)/1.15 Manrope, sans-serif; letter-spacing: -.045em; text-transform: none; }
.rlm__intro { margin: 0 0 22px; color: #5b6579; font-size: 14px; line-height: 1.6; }
.rlm__choice { margin-bottom: 15px; }
.rlm__field { margin-top: 15px; }
.rlm__field > label, .rlm__choice > label { display: block; margin-bottom: 7px; color: #18213a; font-size: 13px; font-weight: 700; }
.rlm input:not([type=checkbox]), .rlm select { width: 100%; min-width: 0; height: 48px; padding: 11px 13px; border: 1px solid #cdd6e6; border-radius: 10px; outline: 0; background: #fff; color: #18213a; font: 400 16px/1.3 Manrope, sans-serif; transition: border-color .15s, box-shadow .15s; }
.rlm select { font-size: 14px; text-overflow: ellipsis; }
.rlm input::placeholder { color: #7d8799; font-size: 14px; }
.rlm input:focus, .rlm select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #2563eb16; }
.rlm :is(input, select)[aria-invalid=true] { border-color: #bd3434; }
.rlm__material { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid #dce6fb; border-radius: 12px; color: #1d4ed8; background: #f2f6ff; }
.rlm__material strong, .rlm__material span { display: block; }
.rlm__material strong { margin-bottom: 2px; color: #10254b; font-size: 14px; font-weight: 800; }
.rlm__material span { color: #5b6579; font-size: 12px; line-height: 1.45; }
.rlm__change { display: block; min-height: 32px; margin: 3px 0 -5px auto; padding: 4px 0 4px 10px; border: 0; background: none; color: #1d4ed8; font: 600 12px/1.4 Manrope, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rlm__consent { margin: 19px 0 16px; }
.rlm__consent label { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.6; color: #5b6579; cursor: pointer; }
.rlm input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: #2563eb; }
.rlm__consent a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
.rlm__error { display: block; margin-top: 5px; color: #a82b2b; font-size: 12px; line-height: 1.4; }
.rlm__notice { margin: 0 0 14px; padding: 11px 13px; border: 1px solid #e3e8f1; border-radius: 9px; color: #5b6579; background: #f4f6fa; font-size: 11px; line-height: 1.55; }
.rlm__status { margin: 0 0 14px; padding: 12px 13px; border-radius: 9px; color: #21447d; background: #eaf1ff; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rlm__status[data-state=error] { color: #8c2525; background: #fff0ee; }
.rlm__status[data-state=success] { color: #076644; background: #e7f7ef; }
.rlm__status[data-state=preview] { color: #495773; background: #f0f3f8; }
.rlm__submit { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 14px 15px; border: 1px solid transparent; border-radius: 11px; background: #0b1a33; color: #fff; font: 800 14px/1.4 Manrope, sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.rlm__submit:hover { background: #173462; }
.rlm__submit:active { transform: translateY(1px); }
.rlm__submit:disabled { cursor: wait; opacity: .7; }
.rlm__footnote { margin: 12px 0 0; color: #6a7487; font-size: 11px; line-height: 1.45; text-align: center; }
.rlm__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rlm :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@keyframes rlm-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .rlm { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; } .rlm__content { padding: 28px 20px 24px; } .rlm__close { top: 9px; right: 9px; } .rlm h2 { margin-right: 15px; font-size: 26px; } .rlm__intro { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .rlm[open] { animation: none; } .rlm * { transition: none !important; } }
