/* Chatbot + Callbot launcher + Book-a-call button (shared site widgets).
   The widget CSS expects the main site's dark tokens, where --ink is the dark
   surface — this page uses --ink for text, so the tokens are scoped to the widgets. */
:root { --brand: #ff4d1f; --brand-bright: #ff6a3c; --ember: #ffb27a; }
.chatbot, .callbot { --ink: #0a0807; --ink-2: #120c09; --line: rgba(255, 255, 255, 0.1); }

/* ============================================================
   Shared site-wide widgets: AI Chatbot + Callbot launcher
   (verbatim from the main site's styles.css, plus the few tokens
   that widget CSS expects but this page doesn't define)
   ============================================================ */
:root {
  --white: #f7f4f2;
  --fog: #9a938e;
  --mist: #6e6661;
  --line-2: rgba(255, 77, 31, 0.28);
  --r-lg: 14px;
}
.brand__dot { color: var(--brand); }
.chatbot { position: fixed; right: 24px; bottom: 24px; z-index: 900; }
.chatbot__launcher { position: relative; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; background: radial-gradient(circle at 35% 30%, var(--brand-bright), var(--brand)); box-shadow: 0 12px 30px rgba(255, 77, 31, 0.4); display: grid; place-items: center; padding: 0; transition: transform 0.25s var(--ease); }
.chatbot__launcher:hover { transform: scale(1.06); }
.chatbot__launcher-mascot { width: 38px; height: 38px; object-fit: contain; }
.chatbot__launcher-ping { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--brand-bright); opacity: 0.55; animation: chatbotPing 2.4s var(--ease) infinite; }
@keyframes chatbotPing { 0% { transform: scale(0.85); opacity: 0.55; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.chatbot__panel { position: absolute; right: 0; bottom: 76px; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transform: scale(0.92) translateY(12px); opacity: 0; pointer-events: none; transition: transform 0.28s var(--ease), opacity 0.28s var(--ease); }
.chatbot.is-open .chatbot__panel { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.chatbot__header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--ink); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chatbot__header-mascot { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: rgba(255, 77, 31, 0.12); padding: 4px; }
.chatbot__header-copy { flex: 1; min-width: 0; }
.chatbot__header-name { font-size: 13.5px; font-weight: 600; color: var(--white); }
.chatbot__header-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--fog); margin-top: 2px; }
.chatbot__dot { width: 6px; height: 6px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 6px #35d07f; }
.chatbot__history-btn { border: none; background: transparent; color: var(--fog); cursor: pointer; padding: 4px; display: grid; place-items: center; flex-shrink: 0; transition: color 0.2s var(--ease); }
.chatbot__history-btn svg { width: 18px; height: 18px; }
.chatbot__history-btn:hover { color: var(--white); }
.chatbot__close { border: none; background: transparent; color: var(--fog); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.chatbot__close:hover { color: var(--white); }
.chatbot__messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chatbot__history-view { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.chatbot__history-head { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chatbot__history-back { border: none; background: transparent; color: var(--fog); cursor: pointer; padding: 4px; display: grid; place-items: center; flex-shrink: 0; transition: color 0.2s var(--ease); }
.chatbot__history-back svg { width: 18px; height: 18px; }
.chatbot__history-back:hover { color: var(--white); }
.chatbot__history-title { flex: 1; font-size: 14px; font-weight: 600; color: var(--white); }
.chatbot__history-new { display: flex; align-items: center; gap: 4px; border: none; background: transparent; color: var(--brand-bright); font-size: 12px; font-weight: 500; cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: background 0.2s var(--ease); }
.chatbot__history-new svg { width: 14px; height: 14px; }
.chatbot__history-new:hover { background: rgba(255, 77, 31, 0.1); }
.chatbot__history-list { flex: 1; overflow-y: auto; padding: 6px 0; display: flex; flex-direction: column; }
.chatbot__history-empty { padding: 24px 16px; text-align: center; font-size: 12.5px; color: var(--fog); }
.chatbot__history-item { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; cursor: pointer; padding: 10px 14px; text-align: left; transition: background 0.2s var(--ease); }
.chatbot__history-item:hover { background: rgba(255, 255, 255, 0.05); }
.chatbot__history-item-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: rgba(255, 77, 31, 0.12); padding: 5px; flex-shrink: 0; }
.chatbot__history-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chatbot__history-item-name { font-size: 13px; font-weight: 600; color: var(--white); }
.chatbot__history-item-preview { font-size: 12px; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatbot__history-item-time { font-size: 10.5px; color: var(--fog); flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.chatbot__messages[hidden], .chatbot__form[hidden], .chatbot__history-view[hidden] { display: none !important; }
.chatbot__msg { max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.chatbot__msg--bot { align-self: flex-start; background: rgba(255, 255, 255, 0.06); color: var(--white); border-bottom-left-radius: 4px; display: flex; align-items: flex-end; gap: 6px; }
.chatbot__msg-text { flex: 1; min-width: 0; }
.chatbot__msg-speak { flex-shrink: 0; width: 32px; height: 32px; margin: -6px -6px -6px 0; padding: 0; border: none; background: transparent; color: var(--mist); cursor: pointer; display: grid; place-items: center; transition: color 0.2s var(--ease); }
.chatbot__msg-speak svg { width: 16px; height: 16px; }
.chatbot__msg-speak:hover, .chatbot__msg-speak.is-speaking { color: var(--brand-bright); }
.chatbot__msg--user { align-self: flex-end; background: linear-gradient(180deg, var(--brand-bright), var(--brand)); color: #1a0a04; border-bottom-right-radius: 4px; }
.chatbot__msg--error { align-self: flex-start; background: rgba(255, 77, 31, 0.1); color: var(--ember, #ffb27a); border: 1px solid var(--line-2); }
.chatbot__typing { display: flex; gap: 4px; padding: 0 16px 10px; flex-shrink: 0; }
.chatbot__typing[hidden] { display: none; }
.chatbot__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); animation: chatbotTyping 1.1s ease-in-out infinite; }
.chatbot__typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatbotTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chatbot__form { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--ink); flex-shrink: 0; }
.chatbot__input { flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; color: var(--white); font-size: 16px; font-family: var(--sans); }
.chatbot__input:focus { outline: none; border-color: var(--line-2); }
.chatbot__input::placeholder { color: var(--mist); }
.chatbot__send { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--brand); color: var(--white); font-size: 16px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background 0.2s var(--ease); }
.chatbot__send:hover { background: var(--brand-bright); }
.chatbot__send:disabled { opacity: 0.5; cursor: not-allowed; }
.callbot { position: fixed; right: 96px; bottom: 24px; z-index: 900; }
.callbot__launcher { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; background: var(--ink-2); color: var(--brand-bright); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); display: grid; place-items: center; padding: 0; transition: transform 0.25s var(--ease); }
.callbot__launcher:hover { transform: scale(1.06); }
.callbot__launcher-icon { width: 22px; height: 22px; }
.callbot__panel { position: absolute; right: 0; bottom: 76px; width: 360px; max-width: calc(100vw - 32px); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); overflow: hidden; transform-origin: bottom right; transform: scale(0.92) translateY(12px); opacity: 0; pointer-events: none; transition: transform 0.28s var(--ease), opacity 0.28s var(--ease); }
.callbot.is-open .callbot__panel { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.callbot__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 4px; }
.callbot__header-title { font-size: 18px; font-weight: 600; color: var(--white); margin: 0 0 4px; }
.callbot__header-sub { font-size: 13px; color: var(--fog); margin: 0; }
.callbot__close { background: none; border: none; color: var(--fog); font-size: 24px; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0; transition: color 0.2s; }
.callbot__close:hover { color: var(--white); }
.callbot__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px 20px; }
.callbot__card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink); color: var(--white); text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.callbot__card:hover { border-color: var(--brand-bright); transform: translateY(-2px); }
.callbot__card-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 77, 31, 0.12); color: var(--brand-bright); display: grid; place-items: center; }
.callbot__card-icon svg { width: 20px; height: 20px; }
.callbot__card-title { font-size: 14px; font-weight: 600; }
.callbot__card-sub { font-size: 12px; color: var(--fog); }

@media (max-width: 480px) {
  .chatbot { right: 16px; bottom: 16px; }
  .callbot { right: 86px; bottom: 16px; }
  .callbot__launcher { width: 46px; height: 46px; }
  .callbot__panel { position: fixed; inset: 0; width: auto; max-width: none; border-radius: 0; border: none; display: flex; flex-direction: column; justify-content: center; }
  .callbot__header { padding: 24px 24px 8px; }
  .callbot__options { grid-template-columns: 1fr; padding: 20px 24px 24px; }
  html.callbot-open { overflow: hidden; }
  .chatbot__panel { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; border-radius: 0; border: none; }
  html.chatbot-open { overflow: hidden; }
  html.chatbot-open .callbot { display: none; }
}
