/* Gradient Border Button Styles for Monia Lead Form - "Prova Monia" Style */

.gradient-border-button {
  position: relative;
  background: #0a0a0a; /* Very dark background */
  color: white;
  border: 3px solid transparent;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  background-clip: padding-box;
  z-index: 1;
}

/* Animated gradient border effect */
.gradient-border-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  margin: -3px;
  border-radius: inherit;
  background: linear-gradient(45deg, 
    #ff0080, #ff8c00, #40e0d0, #ff0080, 
    #8a2be2, #00ff7f, #ff1493, #00bfff
  );
  background-size: 400% 400%;
  animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

.gradient-border-button:hover {
  background: #1a1a1a; /* Lighter dark on hover */
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.gradient-border-button:hover::before {
  animation-duration: 1.5s; /* Faster animation on hover */
  background-size: 500% 500%;
}

.gradient-border-button:active {
  background: #171717;
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gradient-border-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background: #171717;
  transform: none !important;
  box-shadow: none;
}

.gradient-border-button:disabled::before {
  animation: none;
  background: #404040;
}

.gradient-border-button:disabled:hover {
  background: #171717;
  transform: none !important;
}

/* Loading state animation */
.gradient-border-button.loading {
  pointer-events: none;
}

.gradient-border-button.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Secondary gradient button variant */
.gradient-button-secondary {
  background: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
  background-size: 200% 200%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gradient-button-secondary:hover {
  background-position: 100% 0;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Success state */
.gradient-border-button.success {
  background: #10b981;
  animation: successPulse 0.6s ease-out;
}

.gradient-border-button.success::before {
  background: #10b981;
  animation: none;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Error state */
.gradient-border-button.error {
  background: #dc2626;
  animation: errorShake 0.6s ease-out;
}

.gradient-border-button.error::before {
  background: #dc2626;
  animation: none;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .gradient-border-button {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
  }
}

/* Focus states for accessibility */
.gradient-border-button:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gradient-border-button {
    background: #000000;
    border: 3px solid #ffffff;
  }
  
  .gradient-border-button::before {
    background: #ffffff;
    animation: none;
  }
  
  .gradient-border-button:hover {
    background: #333333;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .gradient-border-button,
  .gradient-border-button:hover,
  .gradient-border-button:active {
    transition: none;
    transform: none;
  }
  
  .gradient-border-button::before {
    animation: none;
    background: linear-gradient(45deg, #10b981, #06d6a0);
  }
}