/* ================ CALENDLY CONSULT POPUP ================ */
/* Bottom-right slide-in card. Appears after either:
   - 3 minutes of cumulative time on the site (tracked across page loads), or
   - 90 seconds on any /articles/ page.
   Dismissal persists for 7 days via localStorage. */

.gm-consult-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: min(380px, calc(100vw - 32px));
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 54, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(11, 23, 54, 0.18), 0 2px 8px rgba(11, 23, 54, 0.06);
  padding: 22px 24px;
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0B1736;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s;
  pointer-events: none;
}
.gm-consult-popup.gm-consult-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.gm-consult-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(11, 23, 54, 0.5);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gm-consult-close:hover {
  background: rgba(11, 23, 54, 0.08);
  color: #0B1736;
}

.gm-consult-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #006EE9;
  margin-bottom: 8px;
}
.gm-consult-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #006EE9;
  border-radius: 50%;
  animation: gm-consult-pulse 2s ease-in-out infinite;
}
@keyframes gm-consult-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

.gm-consult-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #0B1736;
}
/* Italic emphasis shimmers — same effect as the "You earn" text on the
   partner page, tuned for a white card with a navy-to-blue gradient. */
.gm-consult-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(
    110deg,
    #0B1736 0%,
    #1F3A6E 25%,
    #5896E8 47%,
    #A6CAFB 50%,
    #5896E8 53%,
    #1F3A6E 75%,
    #0B1736 100%
  );
  background-size: 240% 100%;
  background-position: 240% 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  /* 5s shimmer, starts in phase. CTA below uses a different duration and
     negative delay so the two never animate in lock-step. */
  animation: gm-consult-shimmer 5s ease-in-out infinite;
  display: inline-block;
  padding: 0 0.04em;
}
@keyframes gm-consult-shimmer {
  0%   { background-position: 240% 0; }
  50%  { background-position: -140% 0; }
  100% { background-position: -240% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-consult-title em {
    animation: none;
    background: none;
    -webkit-text-fill-color: #006EE9;
    color: #006EE9;
  }
}
.gm-consult-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(11, 23, 54, 0.72);
  margin-bottom: 16px;
}
/* CTA button uses the same sliding-gradient animation as the italic shimmer
   above the button. Colours kept dark enough that the white text retains
   contrast at every animation frame. Hover transitions to a brighter blue
   shimmer that keeps animating. */
.gm-consult-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(
    110deg,
    #0B1736 0%,
    #142654 28%,
    #2A56A8 47%,
    #3A6FC2 50%,
    #2A56A8 53%,
    #142654 72%,
    #0B1736 100%
  );
  background-size: 240% 100%;
  background-position: 240% 0;
  color: #FFFFFF !important;
  padding: 11px 18px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  /* 6.5 s loop + -2 s start offset so the CTA shimmers out of phase with
     the italic title text above it (which loops at 5 s, no delay). The
     different durations also prevent them from ever syncing back up. */
  animation: gm-consult-shimmer 6.5s ease-in-out infinite;
  animation-delay: -2s;
  transition: background-image 0.25s, transform 0.2s, box-shadow 0.2s;
}
.gm-consult-cta:hover {
  background-image: linear-gradient(
    110deg,
    #006EE9 0%,
    #2186F4 28%,
    #5BA8FB 47%,
    #7CBDFC 50%,
    #5BA8FB 53%,
    #2186F4 72%,
    #006EE9 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 110, 233, 0.22);
  text-decoration: none;
}
.gm-consult-cta .arrow {
  transition: transform 0.2s;
}
.gm-consult-cta:hover .arrow {
  transform: translateX(2px);
}
@media (prefers-reduced-motion: reduce) {
  .gm-consult-cta {
    animation: none;
    background: #0B1736;
  }
  .gm-consult-cta:hover { background: #006EE9; }
}
.gm-consult-meta {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(11, 23, 54, 0.5);
}

/* Mobile: bottom bar style, full width */
@media (max-width: 540px) {
  .gm-consult-popup {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 18px 20px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-consult-popup { transition: opacity 0.2s; }
  .gm-consult-eyebrow::before { animation: none; }
}
