:root {
  --tip-glow: #ffd700;
  --tip-glow-soft: #fff7c5;
  --ai-blue: #42c8fa;
  --ai-blue-soft: #b5eaff;
  --tip-bg: #111;
  --tip-text: #ddd;
  --tip-accent: #ff00ff;
}

/* --- Animated Free Quote Button Styles --- */
.free-quote-btn-wrapper {
    display: flex;
    justify-content: flex-end;  /* Pushes the button to the right */
    align-items: center;
    width: 100%;                /* Spans the full width of header */
    margin: 0 2.5rem 1.5rem 0;  /* Adds space on the right, tweak as needed */
    padding: 0;
}

.free-quote-btn,
.free-quote-btn span {
    color: #2bf441 !important; /* neon green, will override below */
}

.free-quote-btn {
    display: inline-block;
    padding: 1em 2.6em;
    font-size: 1.28em;
    font-weight: 800;
    /* color: #fff; <-- REMOVE THIS LINE */
    background: linear-gradient(120deg, #3a71ff 35%, #ff00cc 80%);
    border: none;
    border-radius: 2.3em;
    box-shadow:
        0 6px 32px #5ee9ffe0,
        0 2px 18px #ff00ffaa,
        0 2px 8px #181a28cc;
    text-shadow: 0 2px 14px #fff7, 0 1px 0 #9ff;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.16s, background 0.23s;
    position: relative;
    overflow: hidden;
    outline: none;
    animation: quoteShake 7s infinite;
    /* Subtle default glow pulse */
    box-shadow: 0 0 18px #56f5f9a8, 0 0 24px #ff00ffa0;
}

.free-quote-btn:before {
    content: '';
    position: absolute;
    left: 13%;
    top: 10%;
    width: 74%;
    height: 38%;
    background: linear-gradient(120deg, #fff 55%, #fff3 100%);
    opacity: 0.5;
    border-radius: 100px 100px 60px 60px / 40px 70px 30px 40px;
    pointer-events: none;
    z-index: 1;
}

.free-quote-btn:hover, .free-quote-btn:focus {
    background: linear-gradient(120deg, #ff00cc 25%, #42e7fa 100%);
    transform: scale(1.06) rotate(-1deg);
    box-shadow:
        0 8px 38px #d700ffbb,
        0 4px 24px #0eefffbb,
        0 2px 8px #191b28aa;
    animation: quoteShake 0.4s;
}

.free-quote-btn span {
    position: relative;
    z-index: 2;
    letter-spacing: 0.04em;
}

/* --- Keyframes for periodic shake --- */
@keyframes quoteShake {
  0%, 94%, 100% { transform: none; }
  95% { transform: translateX(-2px) rotate(-2deg) scale(1.03);}
  96% { transform: translateX(2px)  rotate(2deg)  scale(1.03);}
  97% { transform: translateX(-2px) rotate(-3deg) scale(1.02);}
  98% { transform: translateX(2px)  rotate(2deg)  scale(1.01);}
  99% { transform: none; }
}

/* =============================
   💡 Tech Tip Button Styles
   ============================= */
.tip-button {
  width: 64px;
  height: 64px;
  background: url('/images/tip-button.png') center/contain no-repeat;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 12px 2px rgba(255, 215, 0, 0.20);
  transition: transform 0.18s, box-shadow 0.32s;
  outline: none;
  position: relative;
  overflow: visible;
}
.tip-button img {
  z-index: 1;
  position: relative;
  pointer-events: none;
}
.tip-button.active,
.tip-button:hover,
.tip-button:focus {
  animation: goldGlowPulse 2s infinite cubic-bezier(0.4,0,0.2,1);
  box-shadow:
    0 0 22px 7px var(--tip-glow-soft),
    0 0 40px 14px var(--tip-glow),
    0 0 7px 2px var(--tip-glow);
  transform: scale(1.04);
}
@keyframes goldGlowPulse {
  0% {
    box-shadow:
      0 0 10px 3px var(--tip-glow-soft),
      0 0 25px 7px var(--tip-glow),
      0 0 2px 1px var(--tip-glow);
  }
  50% {
    box-shadow:
      0 0 38px 18px var(--tip-glow-soft),
      0 0 75px 32px var(--tip-glow),
      0 0 14px 4px var(--tip-glow);
  }
  100% {
    box-shadow:
      0 0 10px 3px var(--tip-glow-soft),
      0 0 25px 7px var(--tip-glow),
      0 0 2px 1px var(--tip-glow);
  }
}

/* =============================
   🤖 AI Chat Button Styles
   ============================= */
.ai-chat-button {
  width: 64px;
  height: 64px;
  background: url('/images/btn_ai_chat.png') center/contain no-repeat;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 12px 2px rgba(66, 200, 250, 0.17);
  transition: transform 0.18s, box-shadow 0.32s;
  outline: none;
  position: relative;
  overflow: visible;
}
.ai-chat-button img {
  z-index: 1;
  position: relative;
  pointer-events: none;
}
.ai-chat-button.active,
.ai-chat-button:hover,
.ai-chat-button:focus {
  animation: blueGlowPulse 2s infinite cubic-bezier(0.4,0,0.2,1);
  box-shadow:
    0 0 20px 8px var(--ai-blue-soft),
    0 0 40px 16px var(--ai-blue),
    0 0 12px 4px var(--ai-blue);
  transform: scale(1.04);
}
@keyframes blueGlowPulse {
  0% {
    box-shadow:
      0 0 8px 3px var(--ai-blue-soft),
      0 0 18px 7px var(--ai-blue),
      0 0 3px 1px var(--ai-blue);
  }
  50% {
    box-shadow:
      0 0 34px 15px var(--ai-blue-soft),
      0 0 65px 28px var(--ai-blue),
      0 0 17px 6px var(--ai-blue);
  }
  100% {
    box-shadow:
      0 0 8px 3px var(--ai-blue-soft),
      0 0 18px 7px var(--ai-blue),
      0 0 3px 1px var(--ai-blue);
  }
}

/* =============================
   🗂️ Drawer, Panel, Utility Styles
   ============================= */

/* Drawer: size is always capped so no inner content can overflow */
.bubble-drawer {
  max-width: 360px;
  width: 100vw;
  min-width: 260px;
  box-sizing: border-box;
  /* Other base styles set in index.css */
}

/* Tip Panel: fills drawer, prevents overflow */
.bubble-drawer .tip-panel {
  width: 100%;
  max-width: 100%;
  background: var(--tip-bg);
  color: var(--tip-text);
  text-align: center;
  padding: 1rem;
  font-family: inherit;
  max-height: 42vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.bubble-drawer .tip-panel h4 {
  margin-bottom: 0.5rem;
  color: var(--tip-glow);
}

/* Lock the image and container to drawer width */
.bubble-drawer .tip-image-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto 1rem auto;
  max-height: 100px;
  box-sizing: border-box;
}
.bubble-drawer .tip-panel img {
  max-width: 95%;
  width: auto;
  height: auto;
  max-height: 100px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}

/* Description text */
.bubble-drawer .tip-panel p {
  line-height: 1.4;
  font-size: 0.95rem;
}


/* ========== Responsive Overrides ========== */
@media (max-width: 600px) {
  .bubble-drawer {
    width: 92vw;
    max-width: 98vw;
    min-width: unset;
    height: 320px;
    max-height: 320px;
    min-height: 320px;
    right: 4vw;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: top 0.1s ease-out;
    pointer-events: auto;
  }
  .bubble-drawer .tip-panel img {
    max-width: 98vw;
  }


}