/**
 * Anti-Spam Enhanced Styles
 * Phone CTAs, Sticky Call Button, and Mobile Optimizations
 */

/* ============================================
   STICKY CALL BUTTON (Desktop & Mobile)
   ============================================ */
.sticky-call-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: linear-gradient(135deg, var(--cta-green) 0%, var(--cta-green-dark) 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 20px var(--cta-green-alpha-40);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse-glow 2s infinite;
}

.sticky-call-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px var(--cta-green-alpha-50);
  background: linear-gradient(135deg, var(--cta-green-dark) 0%, var(--cta-green-darker) 100%);
}

.sticky-call-btn svg {
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 20px var(--cta-green-alpha-40);
  }
  50% {
    box-shadow: 0 4px 30px var(--cta-green-alpha-50);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sticky-call-btn {
    bottom: 80px;
    right: 15px;
    padding: 14px 20px;
    font-size: 15px;
  }

  .sticky-call-btn span {
    display: none; /* Hide text on mobile, show icon only */
  }

  .sticky-call-btn {
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* ============================================
   HERO PHONE CTA SECTION
   ============================================ */
.hero-phone-cta {
  display: flex;
  gap: 15px;
  margin: 25px 0 15px 0;
  flex-wrap: wrap;
}

.btn-hero-call,
.btn-hero-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-hero-call {
  background: linear-gradient(135deg, var(--cta-green) 0%, var(--cta-green-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px var(--cta-green-alpha-30);
}

.btn-hero-call:hover {
  background: linear-gradient(135deg, var(--cta-green-dark) 0%, var(--cta-green-darker) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--cta-green-alpha-50);
}

.btn-hero-text {
  background: white;
  color: var(--cta-green);
  border: 2px solid var(--cta-green);
}

.btn-hero-text:hover {
  background: var(--cta-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--cta-green-alpha-30);
}

@media (max-width: 768px) {
  .hero-phone-cta {
    gap: 12px;
    margin: 20px 0 12px 0;
  }

  .btn-hero-call,
  .btn-hero-text {
    padding: 14px 22px;
    font-size: 16px;
    flex: 1;
    justify-content: center;
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .btn-hero-call,
  .btn-hero-text {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   NAVIGATION PHONE LINK
   ============================================ */
.nav-phone {
  color: var(--cta-green) !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--cta-green-alpha-10);
  transition: all 0.3s ease;
}

.nav-phone:hover {
  background: var(--cta-green-alpha-20);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-phone {
    display: block;
    text-align: center;
    margin: 10px 0;
  }
}

/* ============================================
   MOBILE LEAD BAR ENHANCEMENTS
   ============================================ */
.mobile-lead-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px var(--black-alpha-10);
  z-index: 1000;
  padding: 10px;
}

.mlb-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 8px;
}

.mlb-container a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--gray-text);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mlb-container a:first-child {
  background: linear-gradient(135deg, var(--cta-green) 0%, var(--cta-green-dark) 100%);
  color: white;
}

.mlb-container a:first-child:active {
  background: linear-gradient(135deg, var(--cta-green-dark) 0%, var(--cta-green-darker) 100%);
  transform: scale(0.98);
}

.mlb-container a:not(:first-child):active {
  background: var(--black-alpha-05);
  transform: scale(0.98);
}

.mlb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  .mobile-lead-bar {
    display: none; /* Hide on desktop */
  }
}

/* ============================================
   FORM LOADING SPINNER
   ============================================ */
.form-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   EMAIL OBFUSCATION
   ============================================ */
.email-encoded {
  color: inherit;
  text-decoration: underline;
}

.email-encoded:hover {
  color: var(--cta-green);
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
.sticky-call-btn:focus,
.btn-hero-call:focus,
.btn-hero-text:focus,
.nav-phone:focus {
  outline: 3px solid var(--cta-green);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .sticky-call-btn,
  .btn-hero-call {
    border: 2px solid white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .sticky-call-btn,
  .btn-hero-call,
  .btn-hero-text,
  .nav-phone {
    transition: none;
    animation: none;
  }
}
