/* Site additions: AI chat composer, built-in booking calendar, industry pages.
   Plain CSS (no Tailwind rebuild needed). */

/* ---------- AI chat widget ---------- */
.hx-chat-compose { display: flex; align-items: flex-end; gap: 8px; border-top: 1px solid #E2E6F0; padding: 10px 12px; background: #fff; }
.hx-chat-input { flex: 1; resize: none; max-height: 120px; min-height: 40px; border: 1px solid #E2E6F0; border-radius: 14px; padding: 9px 12px; font-size: 14.5px; line-height: 1.4; color: #0F1530; background: #F7F8FB; outline: none; }
.hx-chat-input:focus { border-color: rgb(var(--brand)); background: #fff; box-shadow: 0 0 0 3px rgb(var(--brand) / .14); }
.hx-chat-send { flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgb(var(--brand)); color: #fff; transition: filter .15s; }
.hx-chat-send:hover { filter: brightness(1.1); }
.hx-chat-foot { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 10px; background: #fff; font-size: 11.5px; color: #8A91A8; }
.hx-chat-foot button { align-self: flex-start; font-weight: 600; color: rgb(var(--brand)); font-size: 12px; }
.hx-chat-foot button:hover { text-decoration: underline; }
.hx-chat-typing { display: inline-flex !important; gap: 4px; align-items: center; width: auto; max-width: 70px; }
.hx-chat-typing span { width: 6px; height: 6px; border-radius: 999px; background: #A3AAC0; animation: hxDot 1.2s infinite ease-in-out; }
.hx-chat-typing span:nth-child(2) { animation-delay: .15s; }
.hx-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hxDot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
#chat-body .chat-bot a, #chat-body .chat-user a { word-break: break-word; }
#chat-body .chat-bot, #chat-body .chat-user { white-space: normal; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .hx-chat-typing span { animation: none; } }

/* ---------- Booking calendar ---------- */
.hx-book-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 20px; scrollbar-width: thin; }
.hx-book-day { flex: 0 0 auto; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 12px; border-radius: 14px; border: 1px solid #E2E6F0; background: #fff; color: #0F1530; cursor: pointer; transition: border-color .15s, background .15s; }
.hx-book-day:hover { border-color: rgb(var(--brand) / .5); }
.hx-book-day[aria-selected="true"] { background: #121A3A; border-color: #121A3A; color: #fff; }
.hx-book-day .hx-dow { font-size: 12px; font-weight: 600; opacity: .7; }
.hx-book-day .hx-dnum { font-size: 16px; font-weight: 700; }
.hx-book-day .hx-dcount { font-size: 11px; opacity: .6; }
.hx-book-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 14px; }
.hx-book-time { padding: 11px 8px; border-radius: 12px; border: 1px solid rgb(var(--brand) / .35); background: #fff; color: rgb(var(--brand)); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .15s, color .15s; }
.hx-book-time:hover, .hx-book-time:focus-visible { background: rgb(var(--brand)); color: #fff; }
.hx-book-empty { margin-top: 18px; font-size: 14.5px; color: #5B6380; background: #F5F7FC; border-radius: 14px; padding: 14px 16px; }
.hx-book-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgb(var(--brand)); }
.hx-book-when { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 18px; padding: 14px 16px; border-radius: 14px; background: rgb(var(--mint) / .1); border: 1px solid rgb(var(--mint) / .35); color: #0F1530; font-weight: 600; font-size: 15px; line-height: 1.45; }
.hx-book-when svg { color: #0E8A66; margin-top: 2px; flex-shrink: 0; }
.hx-book-error { margin-top: 12px; font-size: 14px; font-weight: 600; color: #BE123C; background: #FFF1F2; border-radius: 12px; padding: 10px 14px; }
[data-book] [hidden] { display: none !important; }

/* ---------- Industry pages ---------- */
.hx-ind-form { background: #fff; color: #0F1530; border-radius: 26px; padding: 26px; box-shadow: 0 30px 70px -30px rgb(4 8 24 / .7); }
.hx-ind-form h2 { color: #121A3A; }
@media (min-width: 1024px) { .hx-ind-form { padding: 32px; } }
.hx-pains { display: grid; gap: 12px; }
.hx-pain { display: grid; gap: 10px; align-items: stretch; }
@media (min-width: 900px) { .hx-pain { grid-template-columns: 1fr 36px 1fr; } }
.hx-pain-today, .hx-pain-fix { display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; font-size: 15.5px; line-height: 1.55; }
.hx-pain-today { background: #F4F5F8; color: #3A4160; }
.hx-pain-today svg { margin-top: 4px; color: #9AA0B4; }
.hx-pain-fix { background: rgb(var(--mint) / .08); border: 1px solid rgb(var(--mint) / .3); color: #0F1530; font-weight: 500; }
.hx-pain-fix svg { margin-top: 4px; color: #12A27A; }
.hx-pain-lbl { display: block; font-size: 12px; font-weight: 700; color: #6B7393; margin-bottom: 2px; }
.hx-pain-fix .hx-pain-lbl { color: #0E8A66; }
.hx-pain-arrow { display: none; align-items: center; justify-content: center; color: #A3AAC0; }
@media (min-width: 900px) { .hx-pain-arrow { display: flex; } }

/* White panels inside dark sections: keep headings dark, and let wide content scroll inside the panel */
.ink .panel h2, .ink .panel h3, .ink .hx-ind-form h2 { color: #0F1530; }
.ink .panel { min-width: 0; }
.hx-book { min-width: 0; }
