﻿:root {
    /*Cores*/

    --web-neutral-0: #FFFFFF;
    --web-neutral-100: #F9F9F9;
    --web-neutral-200: #E9E9E9;
    --web-neutral-300: #D9D9D9;
    --web-neutral-400: #B8B8B8;
    --web-neutral-500: #969696;
    --web-neutral-600: #858786;
    --web-neutral-700: #747876;
    --web-neutral-800: #505251;
    --web-neutral-900: #2D2D2D;
    --web-neutral-1000: #000000;

    --web-primary-0: #005D9B;
    --web-primary-100: #002D4B;

    --web-secondary-100: #FCFC1B;

    --web-terciary-0: #87C3BE;
    --web-terciary-100: #5AAAA0;

    --web-success-0: #51CBB4;
    --web-success-100: #D6FBD0;
    --web-success-600: #29BB11;

    --web-error-0: #EC1529;
    --web-error-050: #FAE6E5;
    --web-error-100: #FBD0D4;
    --web-error-200: #E0615A;
    --web-error-600: #BD1A11;

    --web-alert-100: #FFF4CC;
    --web-alert-200: #FFE999;
    --web-alert-600: #FFD53D;
    --web-alert-700: #997800;
    --web-alert-800: #665000;
}

/*Html*/

h1, h2, h3, h4, h5, h6,
p,
ul, ol {
    margin: 0;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

body {
    overflow-x: hidden;
}

/*Link*/

.web-link-primary {
    color: var(--web-primary-100);
    transition: .1s;
    text-decoration: underline;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.web-link-primary:hover {
    color: var(--web-primary-0);
}

.web-link-negative {
    color: var(--web-neutral-0);
    transition: .1s;
    text-decoration: underline;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.web-link-negative:hover {
    color: var(--web-secondary-100);
}

/*Label*/

label {
    color: var(--web-neutral-900);
    font-size: 16px;
    line-height: 24px;
    font-weight: bold;
    transition: .1s;
}

/*Input*/

input, select {
    padding: 8px 16px;
    background: var(--web-neutral-0);
    border: 1px solid var(--web-neutral-400);
    border-radius: 4px;
    outline: none;
    color: var(--web-neutral-900);
    font-size: 16px;
    line-height: 24px;
    width: 100%;
    transition: .1s;
}

input::placeholder {
    color: var(--web-neutral-500);
    font-size: 16px;
    line-height: 24px;
}

input:focus, select:focus {
    border-color: var(--web-primary-100);
    box-shadow: 0 0 0 1px var(--web-primary-100);
}

select:focus {
    background-image: url(https://servicosonline.cassi.com.br/components/lib/bootstrap-icons/1.10.2/chevron-up.svg);
}

:is(input,select):is(:disabled,.disabled) {
    border-color: var(--web-neutral-400);
    background: var(--web-neutral-300);
    pointer-events: none;
}

input:is([type=radio],[type=checkbox]) {
    width: auto;
    accent-color: var(--web-primary-100);
    outline: none;
    box-shadow: none;
}

select {
    height: 42px;
    appearance: none;
    background-image: url(https://servicosonline.cassi.com.br/components/lib/bootstrap-icons/1.10.2/chevron-down.svg);
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    transition: .1s, background-image 0s;
}


/*Validação ASP.NET*/

.field-validation-error {
    color: var(--web-error-0);
    font-size: 14px;
    line-height: 20px;
}

.field-validation-error::before {
    content: url(../img/i-exclamation-circle-fill.svg) " ";
}

:is(input,select):has(+.field-validation-error) {
    border-color: var(--web-error-0);

    &:focus {
        box-shadow: 0 0 0 1px var(--web-error-0);
    }
}

label:has(+[data-val-required]:not([data-val-required=""]))::before {
    content: "* ";
    color: var(--web-error-0);
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
}

/*Botão*/

/*Primário*/

.web-botao-primary {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--web-primary-100);
    border: 1px solid var(--web-primary-100);
    border-radius: 4px;
    color: var(--web-neutral-0);
    font-size: 16px;
    line-height: 24px;
    transition: .1s;
    outline: transparent;
    width: fit-content;
    height: fit-content;
    user-select: none;
}

.web-botao-primary:is(:hover, :focus) {
    background: var(--web-secondary-100);
    border-color: var(--web-secondary-100);
    color: var(--web-primary-100);
}

.web-botao-primary:is(:disabled,.disabled) {
    background: var(--web-neutral-500);
    border-color: var(--web-neutral-500);
    color: var(--web-neutral-300);
    pointer-events: none;
}

/*Secundário*/

.web-botao-secondary {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--web-neutral-0);
    border: 1px solid var(--web-primary-100);
    border-radius: 4px;
    color: var(--web-primary-100);
    font-size: 16px;
    line-height: 24px;
    transition: .1s;
    outline: transparent;
    width: fit-content;
    height: fit-content;
    user-select: none;
}

.web-botao-secondary:is(:hover, :focus) {
    background: var(--web-primary-100);
    border-color: var(--web-primary-100);
    color: var(--web-neutral-0);
}

.web-botao-secondary:is(:disabled,.disabled) {
    background: var(--web-neutral-0);
    border-color: var(--web-neutral-500);
    color: var(--web-neutral-500);
    pointer-events: none;
}

/*Tooltip*/

.bi[data-bs-toggle=tooltip] {
    font-size: 16px;
    line-height: 16px;
    color: var(--web-primary-0);
}

.tooltip {
    --bs-tooltip-bg: var(--web-neutral-100);
    --bs-tooltip-color: var(--web-neutral-900);
    --bs-tooltip-opacity: 1;
    --bs-tooltip-max-width: 270px;
    font-size: 12px;
    line-height: 16px;
    border: 1px solid var(--web-neutral-200);
    border-radius: 5px;
    padding: 0;
}

.tooltip .tooltip-inner {
    padding: 8px 16px;
    text-align: left;
}

/*Associado*/

html {
    overflow-x: hidden;
}

:root {
    --altura-step-associado: 100px;
}

#container-associado {
    padding: 40px 0;
}

section.content:has(#container-associado-form) {
    background: linear-gradient(to right, var(--web-neutral-100) 50%, var(--web-neutral-0) 50%);
}

#container-associado-form > .row {
    --bs-gutter-x: 80px;
}

#container-associado-form > .row > * {
    padding-block: 40px;
}

#container-associado-form > .row > :first-child {
    background: var(--web-neutral-100);
}

#container-associado-form > .row > :last-child {
    background: var(--web-neutral-0);
}

@media (max-width: 1199px) {
    #container-associado {
        padding: 32px 16px !important;
    }

    section.content:has(#container-associado-form) {
        background: linear-gradient(to bottom, var(--web-neutral-100) var(--altura-step-associado), var(--web-neutral-0) var(--altura-step-associado));
    }

    #container-associado-form > .row > :first-child {
        height: var(--altura-step-associado);
        padding: 16px 32px !important;
    }

    #container-associado-form > .row > :last-child {
        padding: 40px 48px !important;
    }
}

/*Fluxos formulário*/

body:has(#radio-incluir-nome-social-nao:checked) #container-nome-social {
    display: none;
}

body:has(#radio-endereco-residencial-igual-correspondencia-sim:checked) #container-endereco-correspondencia {
    display: none;
}

/*Inputs radio*/

.container-radio label {
    font-weight: normal;
}

.container-radio > label:first-of-type {
    display: block;
    margin-bottom: 8px;
}

.container-radio > label:last-of-type {
    margin-left: 24px;
}

/*Card*/

.card-associado {
    background: var(--web-neutral-100);
    border: 1px solid var(--web-neutral-300);
    border-radius: 4px;
    padding: 16px;
}

.card-info-associado {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    background: var(--web-neutral-100);
    border-radius: 5px;
    border: 1px solid var(--web-neutral-300);
    box-shadow: -2px 0 0 0 var(--web-primary-100);
}

.card-info-detalhes-associado {
    padding: 16px 24px;
    border-radius: 5px;
    background: var(--web-neutral-100);
    box-shadow: -2px 0 0 0 var(--web-primary-100);
}

.card-info-detalhes-associado .bi {
    font-size: 24px;
    line-height: 24px;
    color: var(--web-primary-100);
}

/*Textos*/

.h-associado-16 {
    color: var(--web-primary-100);
    font-size: 16px;
    line-height: 24px;
    font-weight: bold;
}

.h-associado-20 {
    color: var(--web-primary-100);
    font-size: 20px;
    line-height: 28px;
    font-weight: bold;
}

.h-associado-28 {
    color: var(--web-primary-100);
    font-size: 28px;
    font-weight: bold;
    line-height: 36px;
}

.p-associado-12 {
    color: var(--web-neutral-1000);
    font-size: 12px;
    line-height: 16px;
}

.p-associado-14 {
    color: var(--web-neutral-900);
    font-size: 14px;
    line-height: 22px;
}

.p-associado-16 {
    color: var(--web-neutral-900);
    font-size: 16px;
    line-height: 24px;
}

.p-associado-18 {
    color: var(--web-neutral-800);
    font-size: 18px;
    line-height: 140%;
}

.a-associado-texto {
    color: inherit !important;
    text-decoration: underline !important;
}

/*Menu navegação*/

.breadcrumb, .breadcrumb * {
    margin: 0;
    color: var(--web-neutral-700) !important;
    font-size: 14px;
    line-height: 22px;
}

/*Input CEP*/

input[name*=Cep] {
    padding-left: calc(16px/*Padding*/ + 16px/*Ícone*/ + 8px /*Gap*/);
    background-image: url(https://servicosonline.cassi.com.br/components/lib/bootstrap-icons/1.10.2/search.svg);
    background-repeat: no-repeat;
    background-position: left 18px center;
    transition: .1s, background-image 0s;
}

/*Modal termo*/

.modal-custom-header-associado {
    display: flex;
    justify-content: space-between;
}

.modal-custom-header-associado h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: var(--web-neutral-900);
}

.modal-custom-header-associado button {
    align-self: center;
    color: var(--web-primary-100);
    opacity: 1;
    font-size: 12px;
    outline: none;
    box-shadow: none;
}

.conteudo-modal-associado {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    color: var(--web-neutral-900);
    font-size: 16px;
}

.conteudo-termo-modal-associado {
    height: 336px;
    padding: 16px;
    border: 1px solid var(--web-neutral-300);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background: var(--web-neutral-100);
    overflow-y: scroll;
}

.check-input label {
    display: flex;
    line-height: 16px;
}

.check-input label div {
    margin-left: 10px;
}

.check-input label p {
    font-size: 12px;
    font-weight: 400;
}

#modalAssinaturaDoTermoAssociado:not(:has(input[type=checkbox]:checked)) .btn-confirmar-solicitacao-termo-associado {
    background: var(--web-neutral-500);
    border-color: var(--web-neutral-500);
    color: var(--web-neutral-300);
    pointer-events: none;
}

/*Status da proposta*/

#status-proposta-associado {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

#status-proposta-associado .bi {
    font-size: 60px;
    color: var(--web-terciary-100);
    line-height: 60px;
}

@media (max-width: 1199px) {
    #status-proposta-associado .bi {
        font-size: 40px;
        line-height: 40px;
    }

    #status-proposta-associado h2 {
        font-size: 20px;
        line-height: 28px;
    }
}

/*Componente Etapa*/

#ol-etapa-associado {
    counter-reset: etapa-associado;
    margin-top: 24px;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.li-etapa-associado {
    counter-increment: etapa-associado;
    color: var(--web-primary-100);
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.li-etapa-associado[aria-current=page] {
    font-size: 20px;
    line-height: 28px;
    font-weight: bold;
}

.li-etapa-associado::before {
    content: counter(etapa-associado);
    color: var(--web-primary-100);
    font-size: 16px;
    line-height: 24px;
    width: 40px;
    height: 40px;
    aspect-ratio: 1/1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--web-primary-100);
    border-radius: 50%;
}

.li-etapa-associado[aria-current=page]::before {
    font-weight: bold;
    border-width: 2px;
}

.li-etapa-associado:not(:last-child)::after {
    content: "";
    width: 0;
    height: 30px;
    border-left: 2px solid var(--web-primary-100);
    position: absolute;
    top: 40px;
    left: 19px;
}

.li-etapa-associado:not(:has(~.li-etapa-associado[aria-current=page])) + .li-etapa-associado::after {
    border-style: dashed;
    border-width: 1px;
}

.li-etapa-associado:has(~.li-etapa-associado[aria-current=page])::before {
    border-color: var(--web-terciary-100);
    background: var(--web-terciary-100);
    color: var(--web-neutral-0);
    content: url(../img/i-check-etapa-associado.svg);
    line-height: 0;
}

.li-etapa-associado:has(~.li-etapa-associado[aria-current=page])::after {
    border-color: var(--web-terciary-100);
}

@media (max-width: 1199px) {
    #ol-etapa-associado {
        flex-direction: row;
        align-items: start;
        justify-content: space-evenly;
        gap: 0;
        width: 100%;
        margin-top: 0;
    }

    .li-etapa-associado {
        flex-direction: column;
        font-size: 16px !important;
        line-height: 24px;
        width: 100%;
        text-align: center;
    }

    .li-etapa-associado::before {
        width: 32px;
        height: 32px;
    }

    .li-etapa-associado:not(:last-child)::after {
        width: calc(100% - 32px);
        height: 0;
        border-left: none;
        border-top: 2px solid var(--web-primary-100);
        top: 15px;
        left: calc(50% + 16px);
    }
}

/*Alerta*/

#erros-form-associado {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--web-error-200);
    background: var(--web-error-050);
    font-size: 14px;
    color: var(--web-error-600);
}

#erros-form-associado .bi {
    font-size: 14px;
    line-height: 0;
    margin-right: 8px;
}

#erros-form-associado p {
    line-height: 20px;
}

#erros-form-associado ul {
    margin-top: 8px;
    padding-left: 48px !important;
}

#erros-form-associado li {
    font-weight: bold;
    line-height: 24px;
}

/*Mensagem carência*/

#mensagem-carencia-associado {
    display: flex;
    padding: 8px 16px;
    align-items: center;
    gap: 16px;
    border-radius: 10px;
    border: 1px solid #135B9E;
    background: #D1E6FA;
}

#mensagem-carencia-associado .bi {
    font-size: 12px;
    line-height: 0;
    color: #135B9E;
}

#mensagem-carencia-associado p {
    color: #202327;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}