/* Barb chat card ("Need a quick answer?"), shared by inner pages.
   Copied from the home page hero card (index.html keeps its own copy for now).
   Each page adds <section class="qa-card" data-barb-chat> and loads /assets/js/barb-chat.js. */
.qa-col { display: flex; align-items: center; position: relative; }
.qa-card { width: 100%; max-width: 500px; margin-left: auto; box-sizing: border-box; padding: 26px 24px 20px; background: var(--cream); color: var(--ink); border-radius: 16px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.qa-title { font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif; font-weight: 700; font-size: 36px; line-height: 1; text-transform: uppercase; margin: 0; color: var(--ink); }
.qa-log { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #9aa290 transparent; }
.qa-log::-webkit-scrollbar { width: 6px; } .qa-log::-webkit-scrollbar-thumb { background: #9aa290; border-radius: 3px; }
.qa-hello { display: flex; align-items: flex-start; gap: 10px; }
.qa-hello img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: block; }
.qa-hello .qa-msg { max-width: none; }
.qa-meta { display: block; margin: 4px 0 0 4px; font-size: 12px; color: #5b6352; }
.qa-msg { max-width: 86%; padding: 10px 14px; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.qa-msg.barb { align-self: flex-start; background: #e2e7d6; color: var(--ink); border-radius: 18px 18px 18px 4px; }
.qa-msg.me { align-self: flex-end; background: var(--green); color: var(--cream); border-radius: 18px 18px 4px 18px; }
.qa-msg a { color: var(--green); font-weight: 600; text-decoration: underline; }
.qa-msg.me a { color: var(--cream); }
.qa-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: #e2e7d6; border-radius: 18px 18px 18px 4px; }
.qa-typing i { width: 7px; height: 7px; border-radius: 4px; background: #5b6352; animation: qa-dot 1.2s infinite ease-in-out; }
.qa-typing i:nth-child(2) { animation-delay: .15s; } .qa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes qa-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .qa-typing i { animation: none; opacity: .7; } .qa-log { scroll-behavior: auto; } }
.qa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-chips[hidden] { display: none; }
.qa-chips button { min-height: 40px; padding: 8px 14px; background: transparent; border: 1px solid var(--green-2); border-radius: 20px; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.qa-chips button:hover { background: #e2e7d6; }
.qa-chips button.qa-book { background: var(--green); border-color: var(--green); color: var(--cream); font-weight: 600; }
.qa-chips button.qa-book:hover { background: var(--green-2); }
.qa-form { display: flex; gap: 8px; align-items: center; padding: 4px 4px 4px 16px; background: #ffffff; border: 1px solid #6f7766; border-radius: 26px; }
.qa-form:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(63,82,34,.25); }
.qa-form input { flex: 1 1 auto; min-width: 0; height: 42px; background: transparent; border: none; outline: none; color: var(--ink); font: inherit; font-size: 16px; }
.qa-form input::placeholder { color: #6f7766; }
.qa-form input:focus-visible { outline: none; }
.qa-form button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; border: none; background: var(--green); color: var(--cream); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qa-form button:disabled { opacity: .5; cursor: default; }
.qa-alt { margin: 0; font-size: 13px; color: #5b6352; }
.qa-alt a { color: var(--green-2); font-weight: 600; text-decoration: underline; }

/* Compact "Rather we call you?" form, lower on the page. Same fields and endpoint as the old hero form. */
.callback { max-width: 760px; margin: 0 auto; }
.callback .quote { box-shadow: none; padding: 26px 28px 22px; }
.callback .quote .d { font-size: 28px; }
.callback .form .row3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }

@media (max-width: 1000px) {
  /* Phones and tablets: answer first, then the chat, then the call buttons (hero needs class has-chat). */
  .hero.has-chat .wrap.split { display: flex; flex-direction: column; gap: 22px; }
  .hero.has-chat .wrap.split > .stack { display: contents; }
  .hero.has-chat .stack > * { order: 1; }
  .hero.has-chat .qa-col { order: 2; }
  .hero.has-chat .stack > .ctas { order: 3; }
  .hero.has-chat .stack > .byline { order: 4; }
  .qa-card { max-width: none; margin: 0; box-shadow: none; }
  .qa-log { max-height: 46vh; }
}
@media (max-width: 760px) {
  .qa-title { font-size: 30px; }
  .qa-card { padding: 20px 16px 16px; gap: 14px; }
  .callback .quote { padding: 20px 16px 18px; }
  .callback .form .row3 { grid-template-columns: 1fr; }
}
