/* Beta Subscribe Section */
#beta-subscribe {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 800px;
  position: relative;
  overflow: hidden;
}

.bs-container {
  padding: 2rem;
  text-align: center;
  position: relative;
}

.bs-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 50%, #f59e0b 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.bs-container h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.5rem;
  text-align: center;
}

.bs-container p {
  font-size: 1rem;
  color: #a16207;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.bs-form {
  display: flex;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
  align-items: stretch;
}

.bs-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  background: white;
  color: #374151;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  min-width: 0;
}

.bs-input:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
  transform: translateY(-1px);
}

.bs-input::placeholder {
  color: #9ca3af;
}

.bs-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.bs-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -8px rgba(245, 158, 11, 0.5);
}

.bs-button:active {
  transform: translateY(0);
}

.bs-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.bs-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.bs-button.loading {
  color: transparent;
}

.bs-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Success state */
.bs-container.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #10b981;
}

.bs-container.success::before {
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #10b981 100%);
}

.bs-container.success h3 {
  color: #065f46;
}

.bs-container.success p {
  color: #047857;
}

.bs-success-message {
  display: none;
  color: #065f46;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.bs-container.success .bs-success-message {
  display: block;
}

.bs-container.success .bs-form {
  opacity: 0.6;
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 640px) {
  #beta-subscribe {
    margin: 1rem;
    border-radius: 8px;
  }
  
  .bs-container {
    padding: 1.5rem;
  }
  
  .bs-container h3 {
    font-size: 1.25rem;
  }
  
  .bs-form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .bs-input,
  .bs-button {
    padding: 0.875rem 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .bs-container::before,
  .bs-button,
  .bs-input,
  .bs-button.loading::after {
    animation: none;
    transition: none;
  }
  
  .bs-button:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  #beta-subscribe {
    border: 2px solid #000;
  }
  
  .bs-input {
    border: 2px solid #000;
  }
  
  .bs-button {
    border: 2px solid #000;
    background: #000;
    color: #fff;
  }
}

/* Error state */
.bs-container.error .bs-input {
  border-color: #ef4444;
  background: #fef2f2;
}

.bs-error-message {
  display: none;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: left;
}

.bs-container.error .bs-error-message {
  display: block;
}

/* Focus visible for better keyboard navigation */
.bs-input:focus-visible,
.bs-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}