/* ---------- Contato: botão flutuante, balão e modal ---------- */
.xc-contato-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9990;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(255, 43, 43, .35);
    cursor: pointer;
    transition: transform .2s, background .2s;
}
.xc-contato-btn:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
}
/* bolinha verde de "disponível" */
.xc-contato-btn:after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: #2ecc71;
}
.xc-contato-btn:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

.xc-balao {
    position: fixed;
    right: 96px;
    bottom: 28px;
    z-index: 9989;
    max-width: 240px;
    padding: 12px 34px 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px 12px 0 12px;
    background: var(--card);
    color: var(--gray);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.xc-balao.xc-visivel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.xc-balao strong {
    display: block;
    color: var(--white);
}
.xc-balao-fechar {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gray);
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
}

.xc-modal-fundo {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .7);
}
.xc-modal-fundo.xc-aberto {
    display: flex;
}
.xc-modal {
    position: relative;
    text-align: left;
    width: 100%;
    max-width: 440px;
    max-height: 100%;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.xc-modal-topo {
    padding: 20px 50px 16px 20px;
    border-bottom: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 12px 12px 0 0;
}
.xc-modal-topo h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.xc-modal-topo p {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.4;
}
.xc-modal-fechar {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    font-size: 22px;
    line-height: 32px;
    cursor: pointer;
}
.xc-modal form {
    padding: 18px 20px 20px;
}
.xc-campo {
    margin-bottom: 12px;
}
.xc-campo label {
    display: block;
    margin-bottom: 4px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
}
.xc-campo input,
.xc-campo textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
}
.xc-campo input::placeholder,
.xc-campo textarea::placeholder {
    color: rgba(255, 255, 255, .4);
}
.xc-campo textarea {
    min-height: 90px;
    resize: vertical;
}
.xc-campo input:focus,
.xc-campo textarea:focus {
    border-color: var(--red);
    outline: 0;
    box-shadow: 0 0 15px rgba(255, 43, 43, .15);
}
/* campo-isca anti-robô: fora da tela, invisível para pessoas */
.xc-isca {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.xc-lgpd {
    margin: 4px 0 14px;
    color: var(--gray);
    font-size: 12px;
    line-height: 1.4;
}
.xc-lgpd a {
    color: var(--white);
    text-decoration: underline;
}
.xc-enviar {
    display: block;
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 7px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
}
.xc-enviar:hover {
    background: var(--red-hover);
}
.xc-enviar[disabled] {
    opacity: .6;
    cursor: wait;
}
.xc-msg {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
}
.xc-msg.xc-erro {
    display: block;
    background: rgba(255, 43, 43, .12);
    color: #ff8a8a;
}
.xc-sucesso {
    display: none;
    padding: 30px 20px;
    text-align: center;
}
.xc-sucesso strong {
    display: block;
    margin-bottom: 8px;
    color: #2ecc71;
    font-size: 20px;
}
.xc-sucesso p {
    margin-bottom: 18px;
    color: var(--gray);
}

@media (max-width: 767px) {
    .xc-contato-btn {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }
    .xc-balao {
        right: 84px;
        bottom: 20px;
        max-width: 200px;
        font-size: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .xc-balao {
        transition: none;
    }
}
