/*Estilo padrão dos inputs*/
label:has(input, select, textarea) {
    appearance: unset;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: 0.5s;

    input,
    select,
    textarea {
        padding: 16px 12px;
        background: var(--bg1);
        border-radius: 25px;
        border: unset;
        font-size: 0.9em;
        color: var(--texto-70);
        border: 1px solid rgba(175, 175, 175, 0.05);
        width: 100%;
    }

    img,
    svg {
        position: absolute;
        bottom: 16px;
        right: 12px;
        width: 20px;
        opacity: 0.5;
    }

    &.branco input,
    &.branco select,
    &.branco textarea {
        background: #fff;
        color: var(--texto-70);
    }

    &:has(input:focus-within) {
        color: var(--texto-95);
        border-color: rgba(43, 43, 43, 0.12);
    }

    &:has(input:not(:placeholder-shown)) {
        border-color: rgba(43, 43, 43, 0.24);
        color: var(--texto-95);

        img,
        svg {
            opacity: 0.82;
        }
    }
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 52px;
    min-width: 52px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #d7dbe2;
    box-shadow: inset 0 0 0 1px rgba(24, 28, 33, 0.08);
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;

    &::before {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 3px 8px rgba(24, 28, 33, 0.2), 0 1px 2px rgba(24, 28, 33, 0.12);
        transition: transform 0.25s ease;
    }

    &:checked {
        background: var(--cor1);
        box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.14);
    }

    &:checked::before {
        transform: translateX(20px);
    }

    &:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.16);
    }

    &:disabled {
        opacity: 0.55;
        cursor: default;
    }
}

/*Estilo padrão dos botões*/
.btn {
    display: flex;
    justify-content: center;
    padding: 1rem;
    border-radius: 2rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    text-align: center;
    background-color: var(--cor1);
    color: white;
    font-weight: 500;
    font-size: 0.95em;
    gap: 8px;

    &.cor2 {
        background-color: var(--cor2);
        color: white;
    }

    &.cor3 {
        background-color: var(--cor3);
        color: white;
    }

    &.mini {
        padding: 0.5rem 0.75rem;
    }

    &.grande {
        padding: 1.125rem 1.675rem;
    }

    &.sucesso {
        background-color: var(--verde);
        color: white;
    }

    &.aviso {
        background-color: var(--amarelo);
        color: white;
    }

    &.erro {
        background-color: var(--vermelho);
        color: white;
    }

    &.cancelar {
        background-color: #edeff3;
        color: #212121;
    }

    &:hover {
        filter: brightness(1.175);
    }

    .svg, img {
        width: 18px;
        filter: brightness(0) invert(1);
    }

    &.cancelar img {
        filter: brightness(0) invert(0);
        opacity: 0.82;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    min-height: 100%;
    background: hsl(221deg 77% 96% / 50%);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: none;
    align-items: flex-end;

    &.ativo {
        display: flex;
        z-index: 100;
        animation: fadeIn 0.3s ease-in-out forwards;
    }

    &.ativo .modal-container {
        animation: scaleIn 0.3s ease-in-out forwards;
    }

    .modal-container {
        width: 100%;
        background: #fff;
        transform-origin: center;
        border-radius: 16px;
        position: relative;
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    .modal-container.grande {
        height: 100svh;
        overflow-y: auto;
        border-radius: 0px;
    }

    .modal-fechar {
        width: 32px;
        opacity: 0.5;
        color: #211f1f;
    }

    .modal-fechar-absoluto {
        position: absolute;
        right: 16px;
        top: 16px;
        width: 32px;
        opacity: 0.5;
        color: #211f1f;
    }
}

.notificacao {
    position: fixed;
    top: 32px;
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 8px;
    padding: 8px 8px 8px 0px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0px 0px 10px 0px rgb(133 132 132 / 24%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999999;

    div {
        display: flex;
        flex-direction: column;
    }

    &.sucesso {
        background: var(--verde);
    }

    &.erro {
        background: var(--vermelho);
    }

    &.info {
        background: var(--cor1);
    }

    &.aviso {
        background: var(--aviso);
    }

    .notificao-titulo {
        margin: 0;
        font-size: 1em;
        color: #fff;
    }

    .notificacao-icone {
        width: 42px;
        margin: 8px 16px;
        filter: brightness(0) invert(1);
    }

    .notificacao-fechar {
        position: absolute;
        top: 6px;
        right: 6px;
        filter: brightness(0) invert(1);
        cursor: pointer;
        font-size: 0.75em;
        line-height: 1rem;
    }

    .notificacao-detalhes {
        font-size: 0.8em;
        line-height: 1.2rem;
        color: #fff;
        opacity: 0.75;
    }
}

a {
    color: var(--cor1);
    font-weight: 500;

    &:has(img) {
        line-height: 0;
    }
}

.processando {
    pointer-events: none;
    opacity: 0.7;

    img {
        filter: invert(1);
        width: 18px;
    }
}

.mini, .pequeno {
    font-size: 0.8em;
    color: var(--texto3);
}

#conteudo {
    flex: 1;
    height: 100%;
}

.pagina-inicio {
    min-height: 100svh;
    background: var(--branco);
    color: var(--texto1);
}

.inicio-hero {
    padding-top: 28px;
    padding-bottom: 40px;
    background: #f7fafc;
}

.inicio-logo {
    width: 132px;
    max-width: 52%;
}

.inicio-cabecalho a {
    color: var(--cor1);
    font-size: 0.95rem;
    font-weight: 700;
}

.inicio-chamada {
    margin-top: auto;
    max-width: 680px;
}

.inicio-chamada h1 {
    color: var(--cor1);
    font-size: 2.45rem;
    line-height: 1;
    letter-spacing: 0;
}

.inicio-chamada p,
.inicio-texto p,
.inicio-suporte p {
    color: var(--texto2);
}

.inicio-conteudo {
    padding-top: 28px;
    padding-bottom: 36px;
    border-top: 1px solid rgba(19, 58, 144, 0.1);
}

.inicio-texto,
.inicio-suporte {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(19, 58, 144, 0.1);
}

.inicio-texto h2,
.inicio-suporte h2 {
    color: var(--cor1);
    font-size: 1.2rem;
}

.inicio-suporte a {
    color: var(--cor1);
    font-size: 1.15rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}

.menu-direita {

    img {
        width: 28px;
        opacity: 0.67;
    }
}

.container-ilustracao {

    img {
        max-width: 225px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767px) {

    .notificacao {
        left: 50%;
        transform: translateX(-50%);
    }
}
