/* ============================================================
 * TRUSTED CAPTAIN - STYLESHEET (Tailwind + SCSS Custom Builds)
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --gold-primary: #D4AF37;
  --gold-secondary: #AA771C;
  --gold-light: #FCF6BA;
  --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
  --gold-glow: rgba(212, 175, 55, 0.35);
  --bg-dark: #0A0A0C;
  --bg-surface: #12141C;
  --bg-card: rgba(20, 22, 31, 0.85);
  --bg-card-border: rgba(212, 175, 55, 0.25);
}

body {
  background-color: var(--bg-dark);
  color: #F8F9FA;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Metallic Gold Text Effect */
.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glassmorphism Luxury Card */
.glass-gold-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-gold-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(212, 175, 55, 0.25);
}

/* Creative Form Inputs */
.form-input-gold {
  background: rgba(10, 12, 18, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-input-gold:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
  background: rgba(18, 20, 28, 0.95);
}

.form-input-gold::placeholder {
  color: #6B7280;
}

/* Gold Gradient Button */
.btn-gold-action {
  background: var(--gold-gradient);
  color: #000000;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--gold-glow);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn-gold-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.55);
  filter: brightness(1.1);
}

.btn-gold-outline {
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.05);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gold-outline:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #FFFFFF;
  box-shadow: 0 0 18px var(--gold-glow);
}

/* Service Pill Tabs */
.tab-btn-gold {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9CA3AF;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.tab-btn-gold.active, .tab-btn-gold:hover {
  color: #000000;
  background: var(--gold-gradient);
  box-shadow: 0 2px 12px var(--gold-glow);
}

/* Pulsing Gold Glow Animation */
@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.gold-pulse-effect {
  animation: goldPulse 2s infinite;
}

/* Custom Modal Animation */
.modal-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A0A0C;
}
::-webkit-scrollbar-thumb {
  background: #252836;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ============================================================
 * CHATBOT WIDGET STYLES
 * ============================================================ */
.chatbot-window {
  position: fixed !important;
  bottom: 95px !important;
  right: 24px !important;
  width: 380px !important;
  max-width: calc(100vw - 32px) !important;
  height: 540px !important;
  max-height: calc(100vh - 120px) !important;
  z-index: 99999 !important;
  background: rgba(14, 16, 24, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.3) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  transform-origin: bottom right !important;
}

.chatbot-window.hidden-chat {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.8) translateY(30px) !important;
}

/* Chat Header */
.chatbot-header {
  background: linear-gradient(135deg, #181B26 0%, #0F111A 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Chat Messages Container */
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* Chat Bubbles */
.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.45;
  word-break: break-word;
  animation: chatPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chatPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble-bot {
  align-self: flex-start;
  background: rgba(26, 29, 42, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #E2E8F0;
  border-top-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
  color: #000000;
  font-weight: 600;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Quick Pills */
.chat-quick-pill {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FCF6BA;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  margin: 3px 2px;
}

.chat-quick-pill:hover {
  background: var(--gold-gradient);
  color: #000000;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Typing Indicator */
.chat-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}

.chat-typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

