@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');

:root {
  --gold-yellow: #F5A623;
  --bright-yellow: #F8D32A;
  --dark-blue: #02253D;
  --cta-height: 64px;
  --cta-collapsed-width: 70px;
  --cta-expanded-width: 220px;
}

/* ── Floating container ── */
.compliance-floating-cta {
  position: fixed;
  right: 0;
  top: 55%;
  height: var(--cta-height);
  width: var(--cta-collapsed-width);
  background: linear-gradient(to bottom, var(--gold-yellow) 0%, var(--bright-yellow) 100%);
  border-radius: 999px 0 0 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  overflow: hidden;
  cursor: pointer;
  transition:
    width 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
  text-decoration: none;
}

.compliance-floating-cta:hover {
  width: var(--cta-expanded-width);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* ── Default icon state ── */
.cta-default-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cta-collapsed-width);
  height: var(--cta-height);
  transition: opacity 0.18s ease, transform 0.25s ease;
  pointer-events: none;
}

.cta-default-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-left: 5px;
}

.compliance-floating-cta:hover .cta-default-icon {
  opacity: 0;
  transform: scale(0.7);
}

/* ── Hover content state ── */
.cta-hover-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px 0 16px; 
  gap: 8px;              
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.22s ease 0.18s,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) 0.14s;
  pointer-events: none;
  white-space: nowrap;
}

.compliance-floating-cta:hover .cta-hover-content {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  margin-left: 15px;
}

/* ── Label text ── */
.cta-label {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--dark-blue);
  text-transform: uppercase;
  line-height: 1.25;
  flex: 1;
}

/* ── Arrow circle ── */
.cta-arrow-btn {
  width: 40px;          
  height: 40px;
  min-width: 40px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.compliance-floating-cta:hover .cta-arrow-btn:hover {
  background: #f0f0f0;
  transform: scale(1.08);
}

.cta-arrow-btn svg {
  width: 14px;
  height: 14px;
  fill: var(--dark-blue);
  display: block;
}

/* ── Entry animation ── */
@keyframes ctaSlideIn {
  0%   { transform: translateX(80px); opacity: 0; }
  60%  { transform: translateX(-8px); opacity: 1; }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.compliance-floating-cta.cta-animate-in {
  animation: ctaSlideIn 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Pulse effect ── */
@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

.compliance-floating-cta.cta-pulse {
  animation: ctaPulse 1s ease-out;
}