/* Reusable pieces: chat window, floating chips, plan card, marquee chips, FAQ and contact form. */

/* chat */
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: .9375rem; }
.chat-head small { color: var(--ok); font-weight: 600; font-size: .8125rem; display: inline-flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-head .badge-ex { margin-left: auto; }
.av { width: 40px; height: 40px; border-radius: 12px; background: var(--noite); display: grid; place-items: center; flex: none; }
.av svg { width: 26px; height: 26px; }
.msgs { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.m { max-width: 84%; padding: 11px 15px; border-radius: 18px; font-size: .9375rem; line-height: 1.45; animation: bubble-in .45s var(--ease-soft); }
.m.me { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 6px; }
.m.us { align-self: flex-start; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.m.us b { display: block; margin-bottom: 3px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing-dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.compose a:first-child { flex: 1; display: flex; align-items: center; padding: 12px 16px; border-radius: 999px; background: var(--sunk); color: var(--muted); text-decoration: none; font-size: .9375rem; min-width: 0; }
.compose .send { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; }
.compose .send svg { width: 18px; height: 18px; }

/* floating status chips */
.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
  font-weight: 600; font-size: .875rem; text-align: left;
  animation: bob 6s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }

/* mini cards used in the offers */
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mini .msgs { padding: 16px; background: var(--sunk); }
.plan { padding: 22px; display: grid; gap: 14px; }
.plan-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-top b { font-size: 1.0625rem; }
.plan-top .badge-ex { margin-left: auto; }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: var(--sunk); font-weight: 600; }
.tog { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; color: var(--ok); }
.tog i { width: 36px; height: 21px; border-radius: 999px; background: var(--ok); position: relative; }
.tog i::after { content: ""; position: absolute; right: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.plan .points { margin: 0; }

/* marquee chips */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.mchip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: .9375rem; white-space: nowrap; }

/* FAQ */
.faq { margin: 40px auto 0; display: grid; gap: 12px; max-width: 860px; text-align: left; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .3s, transform .3s; }
.faq details:hover { transform: translateX(4px); }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 1.0625rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--primary); font-size: 1.2rem; flex: none; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 16px; }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq details[open] .ans { animation: rise .5s var(--ease-out); }

/* contact card + form */
.contact-card { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.3fr; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.contact-card aside { padding: 36px; background: var(--sunk); display: flex; flex-direction: column; gap: 16px; }
.contact-card aside h3 { margin: 0; font-size: 1.375rem; }
.contact-card aside p { margin: 0; color: var(--muted); }
.chan { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
a.chan { color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.chan:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); }
a.chan:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.chan .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sunk); color: var(--primary); flex: none; }
.chan .ic svg { width: 20px; height: 20px; }
.chan .t { display: grid; flex: 1; min-width: 0; }
.chan .k { font-size: .75rem; color: var(--muted); }
.chan .v { font-weight: 600; overflow-wrap: anywhere; }
.contact-card form { padding: 36px; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border-radius: var(--radius-field); border: 1px solid var(--line); background: var(--bg); outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 132px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.field input:focus, .field textarea:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.field.is-filled label::after { content: " ✓"; color: var(--ok); }
.field .err { min-height: 1.2em; font-size: .8125rem; color: var(--danger); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-notice { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); font-size: .9375rem; outline: none; }

@media (max-width: 960px) {
  .contact-card, .row2 { grid-template-columns: 1fr; }
  .contact-card aside, .contact-card form { padding: 24px; }
}

.form-notice.is-ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.form-notice.is-err { border-color: var(--danger); }
.btn[disabled] { opacity: .65; cursor: progress; }
