.newsletter-form-container {
  padding: 2rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  max-width: 600px;
  margin: 3rem auto;
}

.newsletter-form-container h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.newsletter-form-container .form-description {
  text-align: center;
  color: var(--md-default-fg-color--light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form-group input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.25rem;
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--md-primary-fg-color);
}

.altcha-widget {
  display: none;
}

.submit-button {
  padding: 0.75rem 1.5rem;
  background: var(--md-primary-fg-color);
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-button:hover {
  opacity: 0.9;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-loader {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

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

.form-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--md-default-fg-color--light);
  margin: 0;
}

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: #10b981;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.success-description {
  font-size: 1.125rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.success-note {
  font-size: 0.875rem;
  color: var(--md-default-fg-color--light);
  margin: 0;
}

.resend-link {
  color: var(--md-primary-fg-color);
  text-decoration: underline;
  cursor: pointer;
}

.resend-link:hover {
  color: var(--md-accent-fg-color);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

.hidden {
  display: none !important;
}

.email-input {
  text-align: center;
}

@media (max-width: 768px) {
  .newsletter-form-container {
    padding: 1.5rem;
  }

  .form-group {
    flex-direction: column;
  }

  .form-group input {
    min-width: 100%;
  }
}
