/**
 * Sticky CTA Component Styles
 * Responsive design for mobile, tablet, and desktop
 */

/* Container */
.sticky-cta-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Content wrapper */
.sticky-cta-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Button styles */
.sticky-cta-button {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
  white-space: nowrap;
  font-size: 16px;
  min-width: 120px;
}

/* Primary CTA */
.primary-cta {
  background-color: #0066FF; /* Match your brand color */
  color: white;
  box-shadow: 0 2px 5px rgba(0, 102, 255, 0.3);
}

.primary-cta:hover, .primary-cta:focus {
  background-color: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 102, 255, 0.4);
  color: white;
  text-decoration: none;
}

/* Secondary CTA */
.secondary-cta {
  background-color: white;
  color: #0066FF; /* Match your brand color */
  border: 2px solid #0066FF;
}

.secondary-cta:hover, .secondary-cta:focus {
  background-color: rgba(0, 102, 255, 0.05);
  transform: translateY(-2px);
  color: #0052cc;
  text-decoration: none;
}

/* Close button */
.sticky-cta-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #666;
  transition: all 0.2s ease;
}

.sticky-cta-close:hover {
  background-color: #e0e0e0;
  color: #333;
}

/* Hidden state */
.sticky-cta-container.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Hide when scrolling near footer */
.sticky-cta-container.scroll-hidden {
  transform: translateY(100%);
  opacity: 0;
}

/* Responsive styles */
@media (max-width: 767px) {
  .sticky-cta-container {
    padding: 10px 12px;
  }
  
  .sticky-cta-button {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 100px;
  }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 991px) {
  .sticky-cta-container {
    padding: 12px 20px;
  }
  
  .sticky-cta-content {
    max-width: 720px;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .sticky-cta-container {
    padding: 16px 24px;
  }
  
  .sticky-cta-content {
    max-width: 960px;
  }
  
  .sticky-cta-button {
    padding: 14px 28px;
    font-size: 16px;
  }
}
