/**
 * Email Capture System Styles
 * Styles for email forms, popups, and related elements
 */

/* Base Email Form Styles */
.email-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background-color: white;
  border-radius: 2rem;
  padding: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
}

.email-form input[type="text"],
.email-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 1.5rem;
  font-size: 1rem;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}

.email-form input[type="email"]:focus,
.email-form input[type="text"]:focus {
  outline: none;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.email-form button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 1.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.email-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.2);
}

.email-form button:active {
  transform: translateY(-1px);
}

.email-form button i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.email-form button:hover i {
  transform: translateX(3px);
}

.form-disclaimer {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.75rem;
  padding: 0 1rem;
}

.subscriber-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

.subscriber-counter i {
  color: #3b82f6;
}

.email-capture-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 2rem;
  margin: 2rem 0;
  padding: 3rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.email-capture-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.email-capture-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.email-capture-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .email-form {
    flex-direction: column;
    padding: 1rem;
  }
  
  .email-form input[type="email"],
  .email-form input[type="text"] {
    width: 100%;
  }
  
  .email-form button {
    width: 100%;
    justify-content: center;
  }
}

.form-error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: none;
  background-color: rgba(239, 68, 68, 0.1);
  padding: 0.75rem;
  border-radius: 0.375rem;
  border-left: 3px solid var(--error-color);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success p {
  color: var(--success-color);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Inline Form Styles - used on several pages */
.email-form[data-form-type="inline"] {
  margin: 3rem 0;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
}

/* Sidebar Form Styles - used on several pages */
.email-form[data-form-type="sidebar"] {
  padding: 1.5rem;
  margin-bottom: 2rem;
} 