/* Frontend Newsletter Form Styles */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Roboto+Slab:wght@300;400;500;700&display=swap");

.weorex-newsletter-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: "Roboto", sans-serif;
}

.weorex-newsletter-form {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(20, 108, 218, 0.1);
  border: 1px solid rgba(20, 108, 218, 0.1);
  position: relative;
  overflow: hidden;
}

.weorex-newsletter-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #146cda 0%, #171d27 100%);
}

.weorex-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.weorex-form-title {
  font-family: "Roboto Slab", serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: #171d27;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.weorex-form-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  font-weight: 300;
}

.weorex-form-group {
  margin-bottom: 1.5rem;
}

.weorex-form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  transition: all 0.3s ease;
  background: #ffffff;
  box-sizing: border-box;
}

.weorex-form-group input:focus {
  outline: none;
  border-color: #146cda;
  box-shadow: 0 0 0 3px rgba(20, 108, 218, 0.1);
  transform: translateY(-1px);
}

.weorex-form-group input::placeholder {
  color: #9ca3af;
  font-weight: 300;
}

.weorex-submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #146cda 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.weorex-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20, 108, 218, 0.3);
}

.weorex-submit-btn:active {
  transform: translateY(0);
}

.weorex-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.weorex-form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
  display: none;
}

.weorex-form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.weorex-form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .weorex-newsletter-container {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .weorex-newsletter-form {
    padding: 2rem 1.5rem;
  }

  .weorex-form-title {
    font-size: 1.5rem;
  }

  .weorex-form-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .weorex-newsletter-form {
    padding: 1.5rem 1rem;
  }

  .weorex-form-title {
    font-size: 1.25rem;
  }
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}
