/* MODAL DO WHATSAPP (captura de lead antes de abrir o WhatsApp) */
.whats-lead[hidden] {
    display: none;
}

.whats-lead {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 15px 115px;
}

.whats-lead__fundo {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.whats-lead__caixa {
    position: relative;
    width: 340px;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: whats-lead-subir 0.25s ease-out;
}

.whats-lead__topo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #075e54;
    color: #fff;
}

.whats-lead__topo div {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.whats-lead__topo strong {
    font-size: 15px;
}

.whats-lead__topo span {
    font-size: 12px;
    opacity: 0.85;
}

.whats-lead__fechar {
    background: none;
    border: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.whats-lead__form {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #f0f2f5;
}

.whats-lead__texto {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 0 8px 8px 8px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.whats-lead__form label {
    margin: 0 0 4px;
    font-size: 13px;
    color: #444;
}

.whats-lead__form input {
    height: 42px;
    margin-bottom: 10px;
    padding: 0 12px;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    /* o tema do site força cinza claro nos inputs */
    color: #222 !important;
    -webkit-text-fill-color: #222 !important;
}

.whats-lead__form input:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
}

.whats-lead__oculto {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
}

.whats-lead__erro {
    min-height: 18px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #c0392b;
}

.whats-lead__enviar {
    height: 44px;
    border: 0;
    border-radius: 22px;
    background: #25d366;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.whats-lead__enviar:hover {
    background: #1ebe5b;
}

.whats-lead__enviar:disabled {
    opacity: 0.7;
    cursor: default;
}

.whats-lead__aviso {
    margin-top: 10px;
    font-size: 11px;
    color: #666;
    text-align: center;
}

.whats-lead__aviso a {
    color: #075e54;
    text-decoration: underline;
}

@keyframes whats-lead-subir {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* celular: sobe do rodapé ocupando a largura, sem cobrir a tela inteira */
@media (max-width: 575px) {
    .whats-lead {
        padding: 0;
        justify-content: center;
    }

    .whats-lead__caixa {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .whats-lead__form input {
        font-size: 16px; /* evita o zoom automático do iOS */
    }
}
