/* Conversa e resposta ocupam áreas distintas. Azul identifica respostas enviadas. */
.lead-form.contact-chat {
 --chat-surface: #fbfaf7;
 display: flex;
 flex-direction: column;
 height: 560px;
 color: var(--ink);
 background: var(--chat-surface);
 border: 1px solid rgb(255 255 255 / 48%);
 border-radius: 16px;
 box-shadow: 0 20px 60px #10283e24;
}
.hero .hero-chat {display: none}
.contact-chat .chat-header {
 flex: 0 0 auto;
 min-height: 76px;
 padding: 16px 20px;
 gap: 12px;
 background: var(--chat-surface);
}
.contact-chat .chat-identity {gap: 10px}
.contact-chat .chat-mark {width: 36px; height: 36px; padding: 8px; border-radius: 11px}
.contact-chat .chat-identity strong {font-size: 15px; font-weight: 550}
.contact-chat .chat-identity span:not(.chat-mark) {font-size: 12px; margin-top: 3px}
.contact-chat .chat-header .chat-back {
 min-height: 44px;
 padding: 8px 0 8px 8px;
 font-size: 12px;
 border: 0;
 border-radius: 4px;
 color: var(--muted);
}
.contact-chat .chat-back:hover {color: var(--navy)}
.contact-chat .chat-messages {
 flex: 1 1 auto;
 height: auto;
 min-height: 0;
 padding: 22px 20px;
 gap: 12px;
 background: var(--sage);
 scrollbar-gutter: stable;
 scroll-padding: 20px;
}
.contact-chat .chat-messages > :first-child {margin-top: auto}
.contact-chat .chat-bubble {
 max-width: 94%;
 padding: 12px 15px;
 font-size: 15px;
 line-height: 1.55;
 border-radius: 5px 14px 14px;
 box-shadow: none;
}
.contact-chat .chat-bubble.welcome {background: transparent; color: var(--muted); padding: 0 2px; max-width: 100%; font-size: 14px}
.contact-chat[data-chat-step=name] .chat-messages {justify-content: center}
.contact-chat[data-chat-step=name] .chat-bubble.welcome {margin-top: 0; margin-bottom: 8px; font-size: 25px; line-height: 1.3; letter-spacing: -.035em; color: var(--ink); max-width: 280px}
.contact-chat .chat-bubble.is-current {font-size: 17px; color: var(--ink)}
.contact-chat .chat-bubble.user {border-radius: 14px 5px 14px 14px; color: #fff; background: var(--navy)}
.contact-chat .chat-bottom {flex: 0 0 auto; padding: 16px 20px 18px; border-top: 1px solid var(--line); background: var(--chat-surface)}
.chat-progress-track {display: flex; gap: 5px; margin-bottom: 10px}
.chat-progress-track span {height: 3px; flex: 1; border-radius: 4px; background: var(--line)}
.chat-progress-track .is-complete {background: var(--navy)}
.chat-progress-track .is-current {background: var(--gold)}
.contact-chat .chat-step {justify-content: space-between; min-height: 20px; gap: 12px; margin-bottom: 10px}
.contact-chat .chat-step-label {font-size: 13px; line-height: 1.4; font-weight: 500}
.contact-chat .chat-progress {font-size: 11px; color: var(--muted); white-space: nowrap}
.contact-chat .chat-composer {gap: 8px; align-items: stretch}
.contact-chat .chat-field {border-radius: 9px; border-color: #b6bdc1; background: #fff; overflow: visible}
.contact-chat .chat-field:focus-within {outline: 2px solid var(--navy); outline-offset: 2px}
.contact-chat .chat-field:has([aria-invalid=true]) {border-color: #9b422e; outline-color: #9b422e}
.contact-chat .chat-field input {height: 46px; min-height: 46px; padding: 11px 12px; border-radius: 9px; font-size: 16px; color: var(--ink)}
.contact-chat .chat-field input::placeholder {color: #737c83; opacity: 1}
.contact-chat .chat-country {padding-left: 10px; font-size: 12px; gap: 5px}
.contact-chat button.chat-send {width: 46px; height: 46px; min-height: 46px; flex: 0 0 46px; border-radius: 9px; padding: 12px; background: var(--navy); color: #fff}
.contact-chat button.chat-send:hover {background: var(--navy-deep)}
.contact-chat .chat-response-hint {margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.4}
.contact-chat .chat-answer-options {display: grid; width: 100%; gap: 7px; margin: 0; align-self: stretch}
.contact-chat .chat-answer-options .chat-choice {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 width: 100%;
 min-height: 46px;
 padding: 11px 13px;
 border: 1px solid #b6bdc1;
 border-radius: 8px;
 background: #fff;
 color: var(--ink);
 font-size: 14px;
 line-height: 1.4;
 font-weight: 450;
 text-align: left;
 transition: background .18s, border-color .18s;
}
.contact-chat .chat-choice svg {width: 17px; height: 17px; flex: 0 0 17px; color: var(--muted)}
.contact-chat .chat-answer-options .chat-choice:hover,
.contact-chat .chat-answer-options .chat-choice[aria-pressed=true] {background: #eef1f3; border-color: var(--navy); color: var(--navy)}
.contact-chat .chat-whatsapp {min-height: 50px; border-radius: 9px; padding: 12px 14px; font-size: 14px; background: #167348; color: #fff}
.contact-chat .chat-whatsapp svg {width: 22px; height: 22px}
.contact-chat .chat-feedback {font-size: 13px; line-height: 1.5; margin: 10px 0 0; color: #923f2e}
.contact-chat[aria-busy=true] .chat-feedback {color: var(--muted)}
.contact-chat button:disabled {opacity: .65; cursor: wait}
.contact-chat button:focus-visible,.contact-chat a:focus-visible {outline: 2px solid var(--navy); outline-offset: 3px}
.contact-chat .chat-bottom > small {font-size: 11px; line-height: 1.5; margin-top: 12px; color: var(--muted)}
@media(min-width:901px) {.hero .hero-chat {display: flex}}
@media(max-width:640px) {
 .lead-form.contact-chat {height: 550px; border-radius: 13px}
 .contact-chat .chat-header {padding: 14px 16px; min-height: 72px}
 .contact-chat .chat-identity strong {font-size: 14px}
 .contact-chat .chat-identity span:not(.chat-mark) {font-size: 11px}
 .contact-chat .chat-messages {height: auto; padding: 18px 16px; gap: 10px}
 .contact-chat .chat-bubble {font-size: 15px; padding: 11px 13px}
 .contact-chat .chat-bubble.is-current {font-size: 17px}
 .contact-chat .chat-bottom {padding: 14px 16px 16px}
 .contact-chat .chat-bottom > small {font-size: 11px}
}
@media(prefers-reduced-motion:reduce) {.contact-chat .chat-choice {transition: none}}
