:root {
    --wa-green: #25D366;
    --wa-green-dark: #1fb95a;
    --wa-card: #111b21;
    --wa-card-2: #0f1a20;
    --wa-text: #e9edef;
    --wa-muted: #aebac1;
    --wa-border: rgba(233, 237, 239, .10);
    --wa-shadow: 0 26px 80px rgba(0, 0, 0, .55);
    --wa-ring: rgba(37, 211, 102, .28);
    --wa-danger: rgba(255, 99, 99, .9);
}

/* BOTÃO */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: var(--wa-green);
    z-index: 999999;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

/* ÍCONE: maior e central */
.wa-float svg {
    width: 34px;
    height: 34px;
    display: block;
}

.wa-float:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 18px 42px rgba(37, 211, 102, .24);
    filter: saturate(1.05);
}

/* BACKDROP */
.wa-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 18px;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* MODAL */
.wa-modal {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, var(--wa-card) 0%, var(--wa-card-2) 100%);
    border-radius: 18px;
    box-shadow: var(--wa-shadow);
    border: 1px solid var(--wa-border);
    overflow: hidden;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    transform: translateY(8px);
    animation: waIn .16s ease-out forwards;
}

@keyframes waIn {
    to {
        transform: translateY(0);
    }
}

/* HEADER */
.wa-modal h3 {
    margin: 0;
    padding: 14px 16px 10px;
    font-size: 16px;
    font-weight: 800;
    color: #06120a;
    background: linear-gradient(180deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
    letter-spacing: -0.2px;
    text-align: center;
}

.wa-modal p {
    margin: 0;
    padding: 12px 16px 0;
    color: var(--wa-muted);
    font-size: 13.5px;
    line-height: 1.45;
}

/* FORM */
#waForm {
    padding: 14px 16px 16px;
}

.wa-modal label {
    display: block;
    margin: 12px 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--wa-muted);
}

.wa-modal input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(233, 237, 239, .10);
    background: rgba(255, 255, 255, .04);
    color: var(--wa-text);
    font-size: 14px;
    outline: none;
    transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.wa-modal input::placeholder {
    color: rgba(174, 186, 193, .75);
}

.wa-modal input:focus {
    border-color: rgba(37, 211, 102, .55);
    box-shadow: 0 0 0 4px var(--wa-ring);
    background: rgba(255, 255, 255, .06);
}

/* AUTOCOMPLETE (WhatsApp-style) */
.wa-autocomplete {
    position: relative;
}

.wa-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(17, 27, 33, .98);
    border: 1px solid rgba(233, 237, 239, .10);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    overflow: hidden;
    display: none;
    z-index: 9999999;
}

.wa-suggest.open {
    display: block;
}

.wa-suggest-header {
    padding: 10px 12px;
    font-size: 12px;
    color: rgba(174, 186, 193, .95);
    border-bottom: 1px solid rgba(233, 237, 239, .08);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.wa-suggest-list {
    max-height: 220px;
    overflow: auto;
}

.wa-suggest-item {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--wa-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wa-suggest-item:hover,
.wa-suggest-item.active {
    background: rgba(37, 211, 102, .12);
}

.wa-suggest-item small {
    color: rgba(174, 186, 193, .85);
    font-size: 12px;
}

.wa-suggest-list::-webkit-scrollbar {
    width: 10px;
}

.wa-suggest-list::-webkit-scrollbar-thumb {
    background: rgba(233, 237, 239, .18);
    border-radius: 10px;
}

.wa-pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(233, 237, 239, .12);
    color: rgba(174, 186, 193, .95);
    white-space: nowrap;
}

.wa-inline-note {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(174, 186, 193, .9);
    display: none;
}

.wa-inline-note.show {
    display: block;
}

/* ERROR */
.wa-error {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 99, 99, .25);
    background: rgba(255, 99, 99, .08);
    color: #ffd6d6;
    font-size: 12px;
    line-height: 1.35;
}

.wa-error.show {
    display: block;
}

/* ACTIONS */
.wa-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.wa-btn {
    flex: 1;
    border: 0;
    border-radius: 12px;
    padding: 12px 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s ease, filter .18s ease, opacity .18s ease;
}

.wa-btn:active {
    transform: translateY(1px);
}

.wa-btn-cancel {
    background: rgba(255, 255, 255, .08);
    color: var(--wa-text);
}

.wa-btn-cancel:hover {
    filter: brightness(1.06);
}

.wa-btn-send {
    background: linear-gradient(180deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
    color: #06120a;
}

.wa-btn-send:hover {
    filter: saturate(1.05) brightness(1.02);
}

.wa-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.wa-small {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(233, 237, 239, .10);
    font-size: 12px;
    color: rgba(174, 186, 193, .92);
    line-height: 1.45;
    text-align: center;
}

/* MOBILE */
@media (max-width: 480px) {
    .wa-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }

    .wa-float svg {
        width: 32px;
        height: 32px;
    }

    .wa-modal {
        max-width: 100%;
        border-radius: 16px;
    }

    .wa-actions {
        flex-direction: column;
    }
}

@media (hover:none) {
    .wa-float:hover {
        transform: none;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
        filter: none;
    }
}