/**
 * Sticky CTA Buttons for Mobile Devices
 * This file contains styles for the sticky footer buttons
 */

.sticky-cta {
  display: none; /* Hidden by default, shown on mobile and via JS */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color, #4F46E5); /* Explicit fallback */
  color: var(--text-on-primary, #ffffff);
  padding: 0.75rem 1rem;
  z-index: 999; /* Ensure it's above everything else */
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  display: inline-block;
  margin: 0 0.75rem;
  padding: 0.75rem 1.25rem;
  background-color: #ffffff;
  color: var(--primary-color, #4F46E5);
  border: 2px solid #ffffff;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  font-size: 1rem;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0.5px;
}

.sticky-cta .btn:hover,
.sticky-cta .btn:focus {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.sticky-cta .btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Add a highlight effect to make buttons more noticeable */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Apply pulse animation to the first button */
.sticky-cta .btn:first-child {
  animation: buttonPulse 2s infinite;
}

/* Show sticky CTA only on mobile devices */
@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
  }
}

/* Adjust for very small screens */
@media (max-width: 360px) {
  .sticky-cta .btn {
    padding: 0.5rem 0.75rem;
    min-width: 100px;
    font-size: 0.9rem;
  }
}
