/* Modal do botão flutuante do WhatsApp — ver footer.php e assets/js/modal-whatsapp.js */

html.modal-whatsapp-aberto,
html.modal-whatsapp-aberto body {
    overflow: hidden;
}

.modal-whatsapp {
    position: fixed;
    inset: 0;
    z-index: 1055; /* acima do header (500) e botões fixos (550); abaixo da lista de países do intl-tel-input (1060) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-whatsapp[hidden] {
    display: none;
}

.modal-whatsapp__fundo {
    position: absolute;
    inset: 0;
    background: rgba(38, 63, 57, 0.75); /* #263F39 */
}

.modal-whatsapp__caixa {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: 8px;
    border-top: 6px solid #930042;
    padding: 40px 35px 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modal-whatsapp-entrada 0.2s ease-out;
}

@keyframes modal-whatsapp-entrada {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: none; }
}

.modal-whatsapp__fechar {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: #3D3935;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}

.modal-whatsapp__fechar:hover,
.modal-whatsapp__fechar:focus-visible {
    background: #F7F7F7;
    color: #930042;
}

.modal-whatsapp__titulo {
    font-family: 'Ridley Grotesk Extrabold', sans-serif;
    font-size: 24px;
    line-height: 1.2;
    color: #263F39;
    margin: 0 0 10px;
}

.modal-whatsapp__titulo span {
    color: #25D366;
}

.modal-whatsapp__subtitulo {
    font-family: 'Ridley Grotesk Regular', sans-serif;
    font-size: 15px;
    color: #707070;
    margin: 0 0 20px;
}

.modal-whatsapp form {
    text-align: left;
}

.modal-whatsapp form p {
    margin: 0 0 15px;
}

.modal-whatsapp .wpcf7-form-control-wrap {
    display: block;
}

.modal-whatsapp .input-default {
    width: 100%;
    height: 44px;
    border: 0;
    border-bottom: 1px solid #9CBAA1;
    padding: 0 10px;
    background: none;
    font-size: 15px;
    color: #3D3935;
}

.modal-whatsapp .input-default:focus {
    outline: none;
    border-bottom-color: #263F39;
}

.modal-whatsapp .iti {
    width: 100%;
}

.modal-whatsapp .wpcf7-list-item {
    margin: 0;
}

.modal-whatsapp .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.modal-whatsapp .wpcf7-list-item input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: #263F39;
}

.modal-whatsapp .wpcf7-list-item-label {
    font-size: 12px;
    line-height: 1.5;
    color: #707070;
}

.modal-whatsapp .wpcf7-list-item-label a {
    color: #930042;
    font-weight: bold;
    text-decoration: underline;
}

.modal-whatsapp__submit {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 4px;
    background: #25D366;
    color: #FFFFFF;
    font-family: 'Ridley Grotesk Bold', sans-serif;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-whatsapp__submit:hover,
.modal-whatsapp__submit:focus-visible {
    background: #1DA851;
}

.modal-whatsapp__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Durante o envio o spinner substitui o ícone */
.modal-whatsapp__submit:disabled .modal-whatsapp__icone {
    display: none;
}

.modal-whatsapp__assinatura {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #F0F0F0;
}

.modal-whatsapp__assinatura img {
    max-width: 140px;
    height: auto;
}

@media (max-width: 480px) {
    .modal-whatsapp {
        padding: 12px;
    }

    .modal-whatsapp__caixa {
        padding: 36px 20px 20px;
        max-height: calc(100vh - 24px);
    }

    .modal-whatsapp__titulo {
        font-size: 21px;
    }
}
