/* 
 * Harmonized CTA Elements
 * Consistent styling and categorization for all call-to-action elements
 */

/* CTA Button Base Styles */
.cta-button,
.action-offer-cta,
.offer-cta,
.submit-button,
.floating-cta-button {
  display: inline-block;
  padding: 1rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  outline: none;
}

/* Primary CTA - Gold/Yellow */
.cta-primary,
.cta-button.primary,
.action-offer-card:nth-child(1) .action-offer-cta,
.offer-card.recommended .offer-cta,
.submit-button,
.floating-cta-button {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 10px rgba(214, 158, 46, 0.25);
}

.cta-primary:hover,
.cta-button.primary:hover,
.action-offer-card:nth-child(1) .action-offer-cta:hover,
.offer-card.recommended .offer-cta:hover,
.submit-button:hover,
.floating-cta-button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(214, 158, 46, 0.3);
}

/* Secondary CTA - Blue */
.cta-secondary,
.cta-button.secondary,
.action-offer-card:nth-child(2) .action-offer-cta,
.offer-cta:not(.secondary) {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(26, 54, 93, 0.25);
}

.cta-secondary:hover,
.cta-button.secondary:hover,
.action-offer-card:nth-child(2) .action-offer-cta:hover,
.offer-cta:not(.secondary):hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(26, 54, 93, 0.3);
}

/* Tertiary CTA - Green */
.cta-tertiary,
.action-offer-card:nth-child(3) .action-offer-cta {
  background-color: #38A169;
  color: white;
  box-shadow: 0 4px 10px rgba(56, 161, 105, 0.25);
}

.cta-tertiary:hover,
.action-offer-card:nth-child(3) .action-offer-cta:hover {
  background-color: #48BB78;
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(56, 161, 105, 0.3);
}

/* Outline CTA - Transparent with border */
.cta-outline,
.cta-button.outline,
.offer-cta.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.cta-outline:hover,
.cta-button.outline:hover,
.offer-cta.secondary:hover {
  background-color: rgba(26, 54, 93, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(26, 54, 93, 0.1);
}

/* Light CTA - For dark backgrounds */
.cta-light,
.hero .cta-button.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: none;
}

.cta-light:hover,
.hero .cta-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(255, 255, 255, 0.1);
}

/* CTA Sizes */
.cta-large {
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
}

.cta-small {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

/* CTA with Icon */
.cta-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta-with-icon i {
  font-size: 1.125rem;
}

/* Ripple effect for all CTAs */
.cta-button::after,
.action-offer-cta::after,
.offer-cta::after,
.submit-button::after,
.floating-cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.cta-button:hover::after,
.action-offer-cta:hover::after,
.offer-cta:hover::after,
.submit-button:hover::after,
.floating-cta-button:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Floating CTA specific styles */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  transition: all 0.3s ease;
}

.floating-cta-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.floating-cta-button i {
  font-size: 1.25rem;
}

/* Accessibility focus states */
.cta-button:focus,
.action-offer-cta:focus,
.offer-cta:focus,
.submit-button:focus,
.floating-cta-button:focus {
  outline: 3px solid rgba(49, 130, 206, 0.5);
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-button,
  .action-offer-cta,
  .offer-cta,
  .submit-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  .cta-large {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }
  
  .cta-small {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
  
  .floating-cta {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .floating-cta-button {
    padding: 0.875rem 1.25rem;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .cta-button,
  .action-offer-cta,
  .offer-cta,
  .submit-button,
  .floating-cta-button {
    border: 2px solid currentColor;
  }
}
