/* ═══════════════════════════════════════════════════════════════════════════
   TASHKA HEALTHCARE — RESPONSIVE & AI CHATBOT STYLESHEET (responsive.css)
   Mobile-First & Adaptive Responsiveness + Clinical AI Chatbot System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. GLOBAL ROOT VARIABLES FOR CHATBOT & RESPONSIVENESS ──────────────── */
:root {
  --tk-blue: #2563eb;
  --tk-blue-dark: #1d4ed8;
  --tk-blue-light: #eff6ff;
  --tk-blue-border: #bfdbfe;
  --tk-teal: #0d9488;
  --tk-green: #10b981;
  --tk-green-dark: #059669;
  --tk-green-light: #ecfdf5;
  --tk-navy: #0f172a;
  --tk-navy-light: #1e293b;
  --tk-gray-50: #f8fafc;
  --tk-gray-100: #f1f5f9;
  --tk-gray-200: #e2e8f0;
  --tk-gray-300: #cbd5e1;
  --tk-gray-500: #64748b;
  --tk-gray-700: #334155;
  --tk-gray-900: #0f172a;
  --tk-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --tk-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --tk-shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.22), 0 10px 15px -5px rgba(15, 23, 42, 0.12);
  --tk-shadow-glow: 0 0 25px rgba(37, 99, 235, 0.35);
  --tk-radius-sm: 8px;
  --tk-radius-md: 14px;
  --tk-radius-lg: 20px;
  --tk-radius-full: 9999px;
  --tk-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tk-z-chatbot: 999999;
}

/* ── 2. GENERAL WEBSITE RESPONSIVE ENHANCEMENTS ─────────────────────────── */
@media (max-width: 1200px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 991px) {
  .header-cta-wrapper {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-ham {
    display: flex !important;
  }

  /* Grid adjustments for tablets */
  .footer-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
  }

  .solutions-grid,
  .cases-grid,
  .blog-grid,
  .invest-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .prod-hero-content,
  .hero-v4-content {
    padding: 40px 0 !important;
  }
}

@media (max-width: 767px) {
  .footer-row {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .solutions-grid,
  .cases-grid,
  .blog-grid,
  .invest-grid,
  .g2-grid,
  .sec-grid,
  .int-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .section-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  .section-subtitle {
    font-size: 1rem !important;
  }

  .btn-demo,
  .header-btn {
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
  }

  /* Responsive Tables */
  .table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .nav-logo img {
    height: 34px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 2.5. CONTACT PAGE, HERO, FORM & G2 REVIEW STYLES ──────────────────────
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page Hero ───────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  padding: 70px 0 60px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 6px 16px;
  border-radius: var(--tk-radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.page-hero h1 {
  font-size: 2.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.page-hero h1 span {
  color: #2563eb;
}

.page-hero p {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

.ph-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-buttons.justify-content-center {
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff !important;
  padding: 12px 26px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  text-decoration: none !important;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b !important;
  padding: 12px 26px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  text-decoration: none !important;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
  transform: translateY(-2px);
}

/* ── Contact Section Grid ────────────────────────────────────────────────── */
.contact-page {
  padding: 64px 0 84px;
  background: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.contact-admin-photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.quick-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.quick-option {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.22s ease;
  color: inherit;
  text-decoration: none !important;
}

.quick-option:hover {
  border-color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.quick-option-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.quick-option h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.quick-option p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.trust-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.process-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #bfdbfe;
}

.step-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.step-text p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.offices {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.office {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.office-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.office h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.office p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 4px 0;
  line-height: 1.5;
}

.office a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.office a:hover {
  text-decoration: underline;
}

/* ── Contact Form Card ───────────────────────────────────────────────────── */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 38px 34px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.015em;
}

.contact-form-card > p {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
  min-height: 105px;
  resize: vertical;
}

.btn-primary.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
}

.form-note {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: 14px;
}

/* ── G2 Reviews Section ──────────────────────────────────────────────────── */
.g2-section {
  padding: 72px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.trust-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.g2-logo-badge {
  background: #ff492c;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.g2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.g2-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.g2-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.g2-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.g2-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g2-name {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.g2-role {
  font-size: 11.5px;
  color: #64748b;
}

.g2-badge-wrap {
  margin-left: auto;
}

.g2-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #fee2e2;
}

.g2-stars {
  color: #f59e0b;
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.g2-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  font-style: italic;
}

.g2-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

.g2-aggregate {
  display: flex;
  align-items: center;
  gap: 14px;
}

.g2-big-score {
  font-size: 2.3rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.g2-stars-row {
  color: #f59e0b;
  font-size: 15px;
}

.g2-subtext {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.g2-badges-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.g2-award-badge,
.capterra-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: #f8fafc;
}

.g2-read-more {
  color: #2563eb;
  font-weight: 700;
  font-size: 13.5px;
}

.g2-read-more:hover {
  text-decoration: underline;
}

/* ── Success Popup Modal ─────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 38px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--tk-shadow-lg);
  animation: tk-pop-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.popup-box h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.popup-box p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 22px;
}

.popup-box button {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 11px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.popup-box button:hover {
  background: #1d4ed8;
}

/* ── Responsive rules for Contact Page ───────────────────────────────────── */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-form-card {
    padding: 30px 24px;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 50px 0 40px;
  }

  .page-hero h1 {
    font-size: 1.85rem;
  }

  .quick-options {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 24px 18px;
  }

  .g2-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 3. TASHKA CLINICAL AI CHATBOT WIDGET STYLES ───────────────────────────
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Floating Launcher Container ─────────────────────────────────────────── */
.tk-chat-launcher-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--tk-z-chatbot);
  font-family: var(--tk-font);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.tk-chat-launcher-wrap * {
  box-sizing: border-box;
}

/* ── Proactive Teaser Prompt Bubble ──────────────────────────────────────── */
.tk-chat-teaser {
  pointer-events: auto;
  margin-bottom: 12px;
  background: var(--tk-gray-900);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  box-shadow: var(--tk-shadow-lg);
  max-width: 290px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  cursor: pointer;
  transform-origin: bottom right;
  animation: tk-pop-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.tk-chat-teaser:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.tk-chat-teaser.tk-hidden {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  display: none;
}

.tk-teaser-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  flex-shrink: 0;
}

.tk-teaser-body {
  flex: 1;
}

.tk-teaser-title {
  font-weight: 700;
  font-size: 12px;
  color: #60a5fa;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tk-teaser-title .tk-online-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.tk-teaser-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s ease;
}

.tk-teaser-close:hover {
  color: #ffffff;
}

/* ── Floating Launcher Button ────────────────────────────────────────────── */
.tk-chat-launcher-btn {
  pointer-events: auto;
  width: 62px;
  height: 62px;
  border-radius: var(--tk-radius-full);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0d9488 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
}

.tk-chat-launcher-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tk-chat-launcher-btn:active {
  transform: scale(0.96);
}

/* Pulsing rings around launcher */
.tk-launcher-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #2563eb;
  top: 0;
  left: 0;
  pointer-events: none;
  animation: tk-pulse-ring 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.tk-chat-launcher-btn.is-active .tk-launcher-pulse {
  display: none;
}

/* Badge Indicator */
.tk-chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: tk-bounce-badge 2s infinite ease-in-out;
}

.tk-launcher-icon-chat,
.tk-launcher-icon-close {
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-size: 24px;
}

.tk-launcher-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.tk-chat-launcher-btn.is-active .tk-launcher-icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.tk-chat-launcher-btn.is-active .tk-launcher-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 4. CHATBOT WINDOW CONTAINER & INTERFACE ────────────────────────────────
   ═══════════════════════════════════════════════════════════════════════════ */

.tk-chatbot-window {
  pointer-events: auto;
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 410px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: var(--tk-radius-lg);
  box-shadow: var(--tk-shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  z-index: var(--tk-z-chatbot);
  font-family: var(--tk-font);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.94);
  transform-origin: bottom right;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s;
}

.tk-chatbot-window.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Expanded state for power users */
.tk-chatbot-window.is-expanded {
  width: 580px;
  height: 760px;
  max-height: calc(100vh - 110px);
}

/* ── Chat Header ─────────────────────────────────────────────────────────── */
.tk-chat-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1d4ed8 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  user-select: none;
}

.tk-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tk-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  position: relative;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.tk-avatar-status {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  background: #10b981;
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.tk-header-info {
  display: flex;
  flex-direction: column;
}

.tk-header-title {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.tk-header-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tk-header-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.tk-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-h-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tk-h-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.tk-h-btn.is-active {
  background: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}

/* ── Chat Messages Body ──────────────────────────────────────────────────── */
.tk-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.tk-chat-body::-webkit-scrollbar {
  width: 5px;
}

.tk-chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.tk-chat-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.tk-chat-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Date / Status Badges */
.tk-chat-timestamp-badge {
  align-self: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin: 4px 0;
}

/* Message Rows */
.tk-msg-row {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: tk-fade-up 0.25s ease-out;
}

.tk-msg-row.bot-row {
  align-self: flex-start;
}

.tk-msg-row.user-row {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.tk-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: var(--tk-shadow-sm);
  margin-top: 4px;
}

.tk-msg-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tk-msg-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1e293b;
  word-break: break-word;
  position: relative;
}

.bot-row .tk-msg-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.user-row .tk-msg-bubble {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tk-msg-bubble p {
  margin: 0 0 8px 0;
}

.tk-msg-bubble p:last-child {
  margin-bottom: 0;
}

.tk-msg-bubble ul,
.tk-msg-bubble ol {
  margin: 6px 0 6px 18px;
  padding: 0;
}

.tk-msg-bubble li {
  margin-bottom: 4px;
}

.tk-msg-bubble strong {
  font-weight: 700;
  color: #0f172a;
}

.user-row .tk-msg-bubble strong {
  color: #ffffff;
}

.tk-msg-bubble a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

.user-row .tk-msg-bubble a {
  color: #93c5fd;
}

.tk-msg-time {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  align-self: flex-start;
}

.user-row .tk-msg-time {
  align-self: flex-end;
}

/* ── Interactive Action Chips / Buttons ──────────────────────────────────── */
.tk-quick-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tk-chip-btn {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.tk-chip-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.16);
}

/* Rich Cards inside Bot Bubbles */
.tk-bot-card {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #e2e8f0;
}

.tk-bot-card-title {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tk-action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.tk-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.tk-btn-primary {
  background: #2563eb;
  color: #ffffff !important;
}

.tk-btn-primary:hover {
  background: #1d4ed8;
}

.tk-btn-wa {
  background: #25d366;
  color: #ffffff !important;
}

.tk-btn-wa:hover {
  background: #1ebd5a;
}

.tk-btn-outline {
  background: #ffffff;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
}

.tk-btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* ── Interactive Inline Lead Form ────────────────────────────────────────── */
.tk-lead-form {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
  box-shadow: var(--tk-shadow-sm);
}

.tk-lead-form h5 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tk-form-group {
  margin-bottom: 8px;
}

.tk-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 3px;
}

.tk-form-input,
.tk-form-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  background: #f8fafc;
}

.tk-form-input:focus,
.tk-form-select:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tk-form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tk-form-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.tk-form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Interactive ROI Bed Calculator Widget ───────────────────────────────── */
.tk-roi-calculator {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
}

.tk-roi-slider-wrap {
  margin: 10px 0;
}

.tk-roi-val-badge {
  font-size: 16px;
  font-weight: 800;
  color: #2563eb;
  text-align: center;
  margin-bottom: 6px;
}

.tk-roi-range {
  width: 100%;
  accent-color: #2563eb;
}

.tk-roi-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.tk-roi-stat-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.tk-roi-stat-num {
  font-size: 15px;
  font-weight: 800;
  color: #1e40af;
}

.tk-roi-stat-lbl {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

/* ── Typing Indicator ────────────────────────────────────────────────────── */
.tk-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  border-top-left-radius: 4px;
  width: fit-content;
}

.tk-typing-dot {
  width: 7px;
  height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: tk-typing-bounce 1.3s infinite ease-in-out;
}

.tk-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.tk-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* ── Chat Input Footer ───────────────────────────────────────────────────── */
.tk-chat-footer {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.tk-input-wrapper {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 24px;
  padding: 4px 6px 4px 14px;
  transition: all 0.2s ease;
}

.tk-input-wrapper:focus-within {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tk-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  padding: 6px 4px;
  resize: none;
  max-height: 80px;
  line-height: 1.4;
}

.tk-chat-input::placeholder {
  color: #94a3b8;
}

.tk-input-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-input-btn {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.tk-input-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tk-input-btn.tk-mic-btn.is-recording {
  background: #fee2e2;
  color: #ef4444;
  animation: tk-pulse-mic 1.2s infinite;
}

.tk-send-btn {
  background: #2563eb !important;
  color: #ffffff !important;
}

.tk-send-btn:hover {
  background: #1d4ed8 !important;
  transform: scale(1.05);
}

.tk-chat-disclaimer {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 5. RESPONSIVE CHATBOT STYLES (MOBILE & TABLET ADAPTATIONS) ─────────────
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .tk-chat-launcher-wrap {
    bottom: 16px;
    right: 16px;
  }

  .tk-chat-launcher-btn {
    width: 56px;
    height: 56px;
  }

  .tk-chat-teaser {
    max-width: calc(100vw - 32px);
    right: 0;
  }

  /* Full Screen App Experience on Mobile */
  .tk-chatbot-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    transform: translateY(100%) !important;
    box-shadow: none !important;
  }

  .tk-chatbot-window.is-open {
    transform: translateY(0) !important;
  }

  .tk-chat-header {
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
    border-radius: 0;
  }

  .tk-chat-footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .tk-msg-row {
    max-width: 94%;
  }

  .tk-msg-bubble {
    font-size: 13.5px;
    padding: 10px 13px;
  }

  .tk-h-btn.tk-expand-btn {
    display: none; /* Expand not needed on fullscreen mobile */
  }
}

/* Tablet view */
@media (min-width: 601px) and (max-width: 991px) {
  .tk-chatbot-window {
    width: 390px;
    height: 580px;
    bottom: 88px;
    right: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 6. KEYFRAME ANIMATIONS ─────────────────────────────────────────────────
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes tk-pop-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tk-fade-up {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tk-pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes tk-bounce-badge {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.1);
  }
}

@keyframes tk-typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

@keyframes tk-pulse-mic {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Print styling */
@media print {
  .tk-chat-launcher-wrap,
  .tk-chatbot-window {
    display: none !important;
  }
}
