/* =========================================================
   FALE COMIGO
========================================================= */

.fale-comigo-wrapper {
    position: relative;
    z-index: 99999;
}


/* =========================================================
   BOTÃO FLUTUANTE
========================================================= */

.fale-comigo-button {
    position: fixed;

    right: 28px;
    bottom: 26px;

    height: 56px;

    padding: 0 23px 0 8px;

    display: flex;
    align-items: center;
    gap: 11px;

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 30px;

    background: #b80000;

    color: #fff;

    font-family: "Manrope", sans-serif;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .5px;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(80, 0, 0, .25);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}


.fale-comigo-button:hover {
    background: #980000;

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(80, 0, 0, .32);
}


/* =========================================================
   ÍCONE DE MENSAGEM
========================================================= */

.fale-comigo-button-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #fff;

    color: #b80000;
}


.fale-comigo-button-icon svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   PAINEL
========================================================= */

.fale-comigo-panel {
    position: fixed;

    right: 28px;
    bottom: 94px;

    width: 390px;

    max-height: calc(100vh - 115px);

    display: flex;
    flex-direction: column;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 14px;

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(18px)
        scale(.97);

    transform-origin: bottom right;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, .18);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}


.fale-comigo-panel.open {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   HEADER DO PAINEL
========================================================= */

.fale-comigo-header {
    min-height: 72px;

    display: flex;

    align-items: center;

    padding: 13px 16px;

    background:
        linear-gradient(
            135deg,
            #b80000 0%,
            #940000 100%
        );

    color: #fff;
}


/* =========================================================
   ÍCONE DO HEADER
========================================================= */

.fale-comigo-header-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-right: 11px;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, .16);

    color: #fff;
}


.fale-comigo-header-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   TEXTO DO HEADER
========================================================= */

.fale-comigo-header-text {
    flex: 1;

    display: flex;

    flex-direction: column;
}


.fale-comigo-header-text strong {
    font-family: "Manrope", sans-serif;

    font-size: 15px;

    font-weight: 800;

    line-height: 1.2;
}


.fale-comigo-header-text small {
    margin-top: 4px;

    font-family: "Manrope", sans-serif;

    font-size: 10px;

    line-height: 1.3;

    color: rgba(255, 255, 255, .82);
}


/* =========================================================
   BOTÃO FECHAR
========================================================= */

.fale-comigo-close {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 26px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    opacity: .85;

    transition:
        background .2s ease,
        opacity .2s ease;
}


.fale-comigo-close:hover {
    background: rgba(255, 255, 255, .12);

    opacity: 1;
}


/* =========================================================
   BODY
========================================================= */

.fale-comigo-body {
    padding: 20px;

    overflow-y: auto;
}


/* =========================================================
   INTRODUÇÃO
========================================================= */

.fale-comigo-intro {
    margin: 0 0 18px;

    font-family: "Manrope", sans-serif;

    font-size: 11px;

    line-height: 1.65;

    color: #555;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.fale-comigo-form {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


/* =========================================================
   GRUPOS
========================================================= */

.fale-form-group {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.fale-form-group label {
    font-family: "Manrope", sans-serif;

    font-size: 10px;

    font-weight: 800;

    color: #333;
}


.fale-form-group label span {
    color: #b80000;
}


/* =========================================================
   INPUTS / SELECT / TEXTAREA
========================================================= */

.fale-form-group input,
.fale-form-group select,
.fale-form-group textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dedede;

    border-radius: 6px;

    background: #fff;

    padding: 9px 11px;

    outline: none;

    font-family: "Manrope", sans-serif;

    font-size: 10px;

    color: #222;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.fale-form-group input,
.fale-form-group select {
    height: 38px;
}


.fale-form-group textarea {
    min-height: 82px;

    resize: vertical;

    line-height: 1.55;
}


.fale-form-group input::placeholder,
.fale-form-group textarea::placeholder {
    color: #a0a0a0;
}


/* =========================================================
   FOCUS
========================================================= */

.fale-form-group input:focus,
.fale-form-group select:focus,
.fale-form-group textarea:focus {
    border-color: #b80000;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(184, 0, 0, .07);
}


/* =========================================================
   CAMPOS INVÁLIDOS
========================================================= */

.fale-form-group input:invalid:focus,
.fale-form-group select:invalid:focus,
.fale-form-group textarea:invalid:focus {
    border-color: #b80000;
}


/* =========================================================
   CAMPOS OBRIGATÓRIOS
========================================================= */

.fale-comigo-required {
    margin-top: -3px;

    font-family: "Manrope", sans-serif;

    font-size: 9px;

    color: #888;
}


/* =========================================================
   BOTÃO ENVIAR
========================================================= */

.fale-comigo-submit {
    width: 100%;

    height: 43px;

    margin-top: 1px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border: none;

    border-radius: 6px;

    background: #b80000;

    color: #fff;

    font-family: "Manrope", sans-serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .4px;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.fale-comigo-submit:hover {
    background: #980000;

    transform: translateY(-1px);
}


.fale-comigo-submit span {
    font-size: 13px;
}


/* =========================================================
   MENSAGEM DE SUCESSO
========================================================= */

.fale-comigo-success {
    display: flex;

    flex-direction: column;

    gap: 5px;

    margin-bottom: 15px;

    padding: 12px;

    border-left: 3px solid #21874d;

    border-radius: 5px;

    background: #f0faf4;

    color: #176a3e;
}


.fale-comigo-success strong {
    font-family: "Manrope", sans-serif;

    font-size: 10px;

    font-weight: 800;
}


.fale-comigo-success span {
    font-family: "Manrope", sans-serif;

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================================
   MENSAGENS DE ERRO
========================================================= */

.fale-comigo-errors {
    margin-bottom: 15px;

    padding: 12px;

    border-left: 3px solid #b80000;

    border-radius: 5px;

    background: #fff5f5;

    color: #8d0000;
}


.fale-comigo-errors strong {
    font-family: "Manrope", sans-serif;

    font-size: 10px;
}


.fale-comigo-errors ul {
    margin: 7px 0 0;

    padding-left: 16px;
}


.fale-comigo-errors li {
    margin-bottom: 3px;

    font-family: "Manrope", sans-serif;

    font-size: 9px;

    line-height: 1.4;
}


/* =========================================================
   SCROLLBAR DO PAINEL
========================================================= */

.fale-comigo-body::-webkit-scrollbar {
    width: 5px;
}


.fale-comigo-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}


.fale-comigo-body::-webkit-scrollbar-thumb {
    background: #cfcfcf;

    border-radius: 10px;
}


.fale-comigo-body::-webkit-scrollbar-thumb:hover {
    background: #b80000;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------------------
       BOTÃO FLUTUANTE
    ----------------------------------------------------- */

    .fale-comigo-button {

        right: 16px;

        bottom: 16px;

        height: 52px;

        padding:
            0
            19px
            0
            7px;

    }


    .fale-comigo-button-icon {

        width: 38px;

        height: 38px;

    }


    .fale-comigo-button-icon svg {

        width: 18px;

        height: 18px;

    }


    /* -----------------------------------------------------
       PAINEL
    ----------------------------------------------------- */

    .fale-comigo-panel {

        right: 12px;

        left: 12px;

        bottom: 78px;

        width: auto;

        max-height:
            calc(100vh - 95px);

        border-radius: 12px;

    }


    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    .fale-comigo-header {

        min-height: 67px;

        padding: 11px 13px;

    }


    .fale-comigo-header-icon {

        width: 39px;

        height: 39px;

    }


    .fale-comigo-header-text strong {

        font-size: 14px;

    }


    .fale-comigo-header-text small {

        font-size: 9px;

    }


    /* -----------------------------------------------------
       BODY
    ----------------------------------------------------- */

    .fale-comigo-body {

        padding: 16px;

        /*
         * Evita que o conteúdo ultrapasse
         * a largura do ecrã.
         */

        width: 100%;

        box-sizing: border-box;

    }


    /* -----------------------------------------------------
       FORMULÁRIO MOBILE
       IMPORTANTE:
       16px evita o auto-zoom do Safari/iPhone.
    ----------------------------------------------------- */

    .fale-form-group input,
    .fale-form-group select,
    .fale-form-group textarea {

        width: 100%;

        min-height: 42px;

        box-sizing: border-box;

        padding:
            10px
            12px;

        font-family: "Manrope", sans-serif;

        /*
         * NÃO reduzir abaixo de 16px.
         * O Safari faz zoom automático abaixo
         * deste tamanho quando o campo recebe foco.
         */

        font-size: 16px !important;

        font-weight: 400;

        line-height: 1.4;

        color: #222;

        background: #fff;

        border: 1px solid #dcdcdc;

        border-radius: 6px;

        outline: none;

        /*
         * Impede ajustes automáticos de tamanho
         * do texto pelo navegador.
         */

        -webkit-text-size-adjust: 100%;

        text-size-adjust: 100%;

        transition:
            border-color .2s ease,
            box-shadow .2s ease;

    }


    /* -----------------------------------------------------
       SELECT
    ----------------------------------------------------- */

    .fale-form-group select {

        height: 44px;

        -webkit-appearance: none;

        appearance: none;

        background-image:
            linear-gradient(
                45deg,
                transparent 50%,
                #777 50%
            ),
            linear-gradient(
                135deg,
                #777 50%,
                transparent 50%
            );

        background-position:
            calc(100% - 16px) 18px,
            calc(100% - 11px) 18px;

        background-size:
            5px 5px,
            5px 5px;

        background-repeat: no-repeat;

        padding-right: 35px;

    }


    /* -----------------------------------------------------
       TEXTAREA
    ----------------------------------------------------- */

    .fale-form-group textarea {

        min-height: 105px;

        line-height: 1.5;

        resize: vertical;

    }


    /* -----------------------------------------------------
       PLACEHOLDER
    ----------------------------------------------------- */

    .fale-form-group input::placeholder,
    .fale-form-group textarea::placeholder {

        color: #999;

        opacity: 1;

    }


    /* -----------------------------------------------------
       FOCUS
    ----------------------------------------------------- */

    .fale-form-group input:focus,
    .fale-form-group select:focus,
    .fale-form-group textarea:focus {

        border-color: #b80000;

        box-shadow:
            0 0 0 3px rgba(184, 0, 0, .07);

    }


    /* -----------------------------------------------------
       LABEL
    ----------------------------------------------------- */

    .fale-form-group label {

        font-size: 10px;

        line-height: 1.4;

    }


    /* -----------------------------------------------------
       BOTÃO ENVIAR
    ----------------------------------------------------- */

    .fale-comigo-submit {

        min-height: 45px;

        height: 45px;

        font-size: 10px;

    }

}


/* =========================================================
   ECRÃS MUITO PEQUENOS
========================================================= */

@media (max-width: 380px) {

    .fale-comigo-button {

        right: 12px;

        bottom: 12px;

    }


    .fale-comigo-button-text {

        font-size: 10px;

    }


    .fale-comigo-panel {

        right: 8px;

        left: 8px;

        bottom: 72px;

        max-height:
            calc(100vh - 86px);

    }


    .fale-comigo-body {

        padding: 14px;

    }


    .fale-form-group input,
    .fale-form-group select,
    .fale-form-group textarea {

        font-size: 16px !important;

    }

}