/* Modal "Resultados de exames" - Laborcentro
   Usa <dialog> nativo: fundo escurecido (::backdrop), foco preso e ESC fechando. */

.lc-resultados-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 12px;
    color: inherit;
    opacity: .55;
    cursor: pointer;
    transition: opacity .2s;
}
.lc-resultados-link:hover,
.lc-resultados-link:focus-visible { opacity: 1; text-decoration: underline; }

.lc-modal {
    --lc-azul: #3E6482;
    --lc-azul-escuro: #2c4a63;
    --lc-dourado: #f39c12; /* laranja do logo */
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    color: #666;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.lc-modal::backdrop {
    background: rgba(10, 22, 34, .72);
    backdrop-filter: blur(2px);
}
.lc-modal[open] { animation: lc-modal-in .22s ease-out; }
@keyframes lc-modal-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.lc-modal__topo {
    position: relative;
    padding: 22px 56px 18px 28px;
    background: #fff;
    border-bottom: 3px solid var(--lc-dourado);
}
.lc-modal__topo img { display: block; height: 46px; width: auto; }

.lc-modal__fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.lc-modal__fechar:hover,
.lc-modal__fechar:focus-visible { background: #f0f3f6; color: var(--lc-azul); }

.lc-modal__corpo { padding: 24px 28px 28px; background: #fafafa; }
.lc-modal__titulo {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 500;
    color: var(--lc-azul);
}
.lc-modal__sub { margin: 0 0 20px; font-size: 14px; }

.lc-campo { margin-bottom: 14px; }
.lc-campo label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lc-azul);
}
.lc-modal .form-result {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d5dce3;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.lc-modal select.form-result { cursor: pointer; }
.lc-modal .form-result:focus {
    outline: 0;
    border-color: var(--lc-azul);
    box-shadow: 0 0 0 3px rgba(62, 100, 130, .18);
}

.lc-modal .form-enviar {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 20px;
    border: 0;
    border-radius: 6px;
    background: var(--lc-azul);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s;
}
.lc-modal .form-enviar:hover,
.lc-modal .form-enviar:focus-visible { background: var(--lc-azul-escuro); outline: 0; }

@media (max-width: 480px) {
    .lc-modal__topo { padding-left: 20px; }
    .lc-modal__corpo { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .lc-modal[open] { animation: none; }
}

/* Variante para paginas sem rodape (paciente.html / medico.html):
   pilula discreta fixa no canto inferior direito */
.lc-resultados-link--fixo {
    position: fixed;
    right: 16px;
    bottom: 12px;
    z-index: 900;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .85);
    color: #3E6482;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    opacity: .6;
}
