.blocksy-subscribe-form {
  width: 100%;
  max-width: 85%;
  margin: 3rem auto 0rem auto;
  padding: 8rem 5rem;
  background: #1e1e1e;
  color: #fff;
  border-radius: 40px;
}

.blocksy-subscribe-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  width: 70%;
  margin: 0 auto;
  line-height: 1;
}

.blocksy-subscribe-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.blocksy-subscribe-form input[type="email"].valid {
  border-color: #4caf50;
}

.blocksy-subscribe-form input[type="email"].invalid {
  border-color: #f44336;
}

.blocksy-subscribe-form .subscribe-button {
  background-color: #4caf50;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.blocksy-subscribe-form .subscribe-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.blocksy-subscribe-form .subscribe-button.loading {
  position: relative;
  color: transparent;
}

.blocksy-subscribe-form .subscribe-button.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-right-color: transparent;
  animation: spin 0.75s linear infinite;
}

.subscribe-form {
  margin-top: 30px;
}

.subscribe-form-input {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-form-input input[type="email"] {
  width: 100%;
  padding: 16px 180px 16px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none !important;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  height: 50px;
  transition: all 0.3s ease;
}

.subscribe-form-input .subscribe-button {
  position: absolute;
  right: 5px;
  top: 25px;
  transform: translateY(-50%);
  background: #ccec41;
  color: #000 !important;
  padding: 5px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.subscribe-message.success {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

.subscribe-message.error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

.form-note {
  width: fit-content;
  margin: 0 auto;
  margin-top: 10px;
  font-size: 16px !important;
  color: rgb(182 183 179) !important;
}

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

/* Responsive styles for blocksy-subscribe-form */
@media screen and (max-width: 768px) {
  .blocksy-subscribe-form {
    padding: 3rem;
  }
}

@media screen and (max-width: 480px) {
  .blocksy-subscribe-form {
    padding: 3rem 2rem;
    border-radius: 12px;
  }
}
