/* Assistente de atendimento — Kléscia de Jesus */
.chatbot-launcher {
    position: fixed;
    right: 22px;
    bottom: 88px;
    z-index: 1091;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 54px;
    padding: 0 19px;
    border: 2px solid var(--gold, #b98e44);
    border-radius: 999px;
    background: var(--gold, #b98e44);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 32px rgba(0,0,0,.20);
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.chatbot-launcher:hover,
.chatbot-launcher:focus-visible {
    background: #fff;
    color: var(--gold, #b98e44) !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(0,0,0,.25);
}
.chatbot-launcher:focus-visible,
.chatbot-close:focus-visible,
.chatbot-option:focus-visible,
.chatbot-action:focus-visible,
.chatbot-back:focus-visible {
    outline: 3px solid rgba(185,142,68,.32);
    outline-offset: 3px;
}
.chatbot-launcher i { font-size: 1.25rem; }

.chatbot-panel {
    position: fixed;
    right: 22px;
    bottom: 154px;
    z-index: 1092;
    width: min(390px, calc(100vw - 28px));
    max-height: min(690px, calc(100vh - 185px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(185,142,68,.35);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(12,21,27,.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}
.chatbot-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.chatbot-header {
    position: relative;
    padding: 21px 58px 18px 22px;
    background: linear-gradient(135deg, #152833 0%, #0e1b22 100%);
    color: #fff;
}
.chatbot-header .chatbot-kicker {
    display: block;
    margin-bottom: 3px;
    color: #d7b979;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.chatbot-header h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 21px;
    line-height: 1.25;
}
.chatbot-header p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    line-height: 1.45;
}
.chatbot-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 20px;
    transition: background-color .2s ease, border-color .2s ease;
}
.chatbot-close:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }

.chatbot-progress-wrap { padding: 14px 22px 0; background: #fff; }
.chatbot-progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: #72777c; font-size: 11px; }
.chatbot-progress { height: 4px; overflow: hidden; border-radius: 999px; background: #ece8e1; }
.chatbot-progress span { display: block; height: 100%; width: 20%; border-radius: inherit; background: var(--gold, #b98e44); transition: width .25s ease; }

.chatbot-body {
    overflow-y: auto;
    padding: 20px 22px 22px;
    overscroll-behavior: contain;
}
.chatbot-step { display: none; animation: chatbotFade .22s ease both; }
.chatbot-step.is-active { display: block; }
@keyframes chatbotFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chatbot-question { margin: 0 0 14px; color: #152833; font-family: var(--alt-font, serif); font-size: 21px; line-height: 1.3; }
.chatbot-help { margin: -6px 0 15px; color: #737a7f; font-size: 13px; line-height: 1.55; }
.chatbot-options { display: grid; gap: 9px; }
.chatbot-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid #ded8ce;
    border-radius: 13px;
    background: #fff;
    color: #26353e;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.chatbot-option i { width: 24px; color: var(--gold, #b98e44); font-size: 18px; text-align: center; }
.chatbot-option:hover,
.chatbot-option.is-selected { border-color: var(--gold, #b98e44); background: #fbf8f2; color: #152833; transform: translateX(2px); }
.chatbot-option.is-selected { box-shadow: inset 3px 0 0 var(--gold, #b98e44); }

.chatbot-field { margin-bottom: 13px; }
.chatbot-field label { display: block; margin-bottom: 6px; color: #2a3941; font-size: 12px; font-weight: 700; }
.chatbot-field input,
.chatbot-field select,
.chatbot-field textarea {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    border: 1px solid #d8d3ca;
    border-radius: 11px;
    background: #fff;
    color: #26353e;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.chatbot-field textarea { min-height: 90px; resize: vertical; }
.chatbot-field input:focus,
.chatbot-field select:focus,
.chatbot-field textarea:focus { border-color: var(--gold, #b98e44); box-shadow: 0 0 0 3px rgba(185,142,68,.14); outline: none; }
.chatbot-field [aria-invalid="true"] { border-color: #b42318; }
.chatbot-error { min-height: 18px; margin: 7px 0 0; color: #b42318; font-size: 12px; line-height: 1.4; }
.chatbot-notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #f6f3ef; color: #667076; font-size: 11px; line-height: 1.5; }
.chatbot-summary { margin: 0 0 15px; padding: 14px; border-left: 3px solid var(--gold, #b98e44); border-radius: 0 11px 11px 0; background: #f8f5ef; color: #536068; font-size: 13px; line-height: 1.65; }
.chatbot-summary strong { color: #152833; }
.chatbot-nav { display: flex; align-items: center; gap: 9px; margin-top: 16px; }
.chatbot-action,
.chatbot-back {
    min-height: 44px;
    padding: 0 17px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.chatbot-action { flex: 1; border: 2px solid var(--gold, #b98e44); background: var(--gold, #b98e44); color: #fff; }
.chatbot-action:hover { background: #fff; color: var(--gold, #b98e44); transform: translateY(-1px); }
.chatbot-back { border: 1px solid #d6d0c7; background: #fff; color: #697278; }
.chatbot-back:hover { border-color: #9b9286; color: #26353e; }

@media (max-width: 576px) {
    .chatbot-launcher { right: 14px; bottom: 80px; width: 54px; height: 54px; min-height: 54px; justify-content: center; padding: 0; }
    .chatbot-launcher span { display: none; }
    .chatbot-panel { right: 14px; bottom: 145px; width: calc(100vw - 28px); max-height: calc(100vh - 160px); border-radius: 18px; }
    .chatbot-header { padding: 18px 54px 16px 18px; }
    .chatbot-body { padding: 18px; }
    .chatbot-progress-wrap { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-panel, .chatbot-launcher, .chatbot-option, .chatbot-step, .chatbot-progress span { transition: none !important; animation: none !important; }
}
