/* ══════════════════════════════════════════════════════════════
   PR AGENCY — AI CHATBOT PANEL STYLES
   Controlled by Contact Hub Widget (bottom-right)
══════════════════════════════════════════════════════════════ */

/* Chat Panel Window */
#ai-chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: rgba(15, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(139, 92, 246, 0.2);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#ai-chat-panel.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Header */
.ai-chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.ai-chat-info h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.ai-chat-info span {
  font-size: 0.75rem;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-chat-info span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.ai-chat-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Messages Area */
.ai-chat-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.ai-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  word-break: break-word;
}

.ai-msg-assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F1F5F9;
  border-bottom-left-radius: 4px;
}

[dir="rtl"] .ai-msg-assistant {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}

.ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

[dir="rtl"] .ai-msg-user {
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 4px;
}

.ai-typing-indicator {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 14px;
  display: none;
  align-items: center;
  gap: 4px;
}

.ai-typing-indicator span {
  width: 6px;
  height: 6px;
  background: #A855F7;
  border-radius: 50%;
  animation: typing-dots 1.4s infinite ease-in-out both;
}

.ai-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-dots {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* In-Chat Lead Form */
.ai-lead-form {
  margin-top: 10px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-lead-form h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: #E2E8F0;
  font-weight: 700;
}

.ai-lead-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.ai-lead-input:focus {
  outline: none;
  border-color: #A855F7;
}

.ai-lead-btn {
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ai-lead-btn:hover {
  opacity: 0.9;
}

/* Input Area */
.ai-chat-input-row {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 24px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.ai-chat-field:focus {
  border-color: #8B5CF6;
}

.ai-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.ai-chat-send-btn:hover {
  transform: scale(1.05);
}

.ai-chat-send-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

[dir="ltr"] .ai-chat-send-btn svg {
  transform: rotate(180deg);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT HUB WIDGET — Unified bottom-right floating menu
══════════════════════════════════════════════════════════════ */
#contact-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Main trigger button */
#contact-hub-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  position: relative;
}

#contact-hub-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

#contact-hub-btn .hub-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #A855F7;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.8; }
  50%  { transform: scale(1.3);  opacity: 0;   }
  100% { transform: scale(1.3);  opacity: 0;   }
}

#contact-hub-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

#contact-hub-btn.open svg {
  transform: rotate(45deg);
}

/* Options menu */
#contact-hub-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#contact-hub-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Each option item */
.hub-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.hub-option-label {
  background: rgba(15, 10, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hub-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.hub-option:hover .hub-option-icon {
  transform: scale(1.1);
}

.hub-option-icon.ai-icon   { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.hub-option-icon.wa-icon   { background: #25D366; }
.hub-option-icon.call-icon { background: linear-gradient(135deg, #3B82F6, #06B6D4); }

/* RTL: flip label and icon order */
[dir="rtl"] .hub-option { flex-direction: row-reverse; }
[dir="rtl"] #contact-hub { right: 24px; left: auto; align-items: flex-end; }
[dir="rtl"] #ai-chat-panel { right: 24px; left: auto; }

@media (max-width: 480px) {
  #ai-chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  #contact-hub {
    bottom: 16px;
    right: 16px;
  }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE FIXES (v71)
══════════════════════════════════════════════════════════════ */

/* 2a: Move Contact Hub to bottom-LEFT on mobile so it doesn't overlap hero CTA */
@media (max-width: 768px) {
  #contact-hub {
    bottom: 16px;
    left: 16px;
    right: auto;
  }

  #contact-hub-btn {
    width: 52px;
    height: 52px;
  }

  /* Menu opens up from bottom-left */
  #contact-hub-menu {
    align-items: flex-start;
  }

  /* Hub option labels: keep label left of icon on mobile too */
  .hub-option {
    flex-direction: row;
  }

  /* RTL override: keep same layout on mobile RTL */
  [dir="rtl"] #contact-hub {
    left: 16px;
    right: auto;
  }

  [dir="rtl"] .hub-option {
    flex-direction: row;
  }

  /* Chat panel full-screen on mobile (already set, confirm right/left) */
  #ai-chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
  }
}

/* 2b: Hide hero logo layer on mobile only — keep on desktop */
@media (max-width: 768px) {
  .hero-logo-layer,
  .hero-brand-lockup {
    display: none !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   PHASE 1: CRO (Conversion Rate Optimization) STYLES
══════════════════════════════════════════════════════════════ */



/* Multi-Step 3-Step Styles */
.cro-step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 580px) {
  .cro-step-grid {
    grid-template-columns: 1fr;
  }
}
.cro-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.cro-choice-card:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
}
.cro-choice-card.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8B5CF6;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}
.cro-choice-card input[type="radio"] {
  accent-color: #8B5CF6;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.cro-choice-card span {
  font-size: 0.92rem;
  font-weight: 600;
  color: #F8FAFC;
}

/* Social Proof Section */
.section-social-proof {
  padding: 90px 24px 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 40px;
}
.social-proof-container {
  max-width: 1200px;
  margin: 0 auto;
}
.social-proof-header {
  text-align: center;
  margin-bottom: 48px;
}
.social-proof-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.social-proof-sub {
  color: #94A3B8;
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Client Logos Marquee / Row */
.social-proof-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin-bottom: 60px;
  padding: 24px;
  background: rgba(15, 10, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}
.social-proof-logo-item {
  height: 52px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.2);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.social-proof-logo-item:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.08);
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.testimonial-stars {
  color: #F59E0B;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}
.testimonial-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.testimonial-author-name {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 0.95rem;
}
.testimonial-author-role {
  color: #94A3B8;
  font-size: 0.8rem;
}





