/**
 * Newsletter Form Block Styles
 */

.be-newsletter-form-block {
  margin: 40px 0;
}

.newsletter-form-container {
  position: relative;
  background: #ac5bad;
  border-radius: 10px;
  padding: 20px 20px 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-form-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.newsletter-form-heading {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 30px 0;
  font-family: "BrandonTextWeb-Bold", "Open Sans", sans-serif;
}

.be-subscription-form {
  position: relative;
}

.newsletter-form-fields {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

@media screen and (min-width: 769px) {
  .newsletter-form-fields {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
  }

  input.newsletter-email-input {
    width: 63% !important;
  }

  .newsletter-submit-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
    max-width: 250px;
    white-space: nowrap;
  }
}
.sidebar input.newsletter-email-input {
  width: 100% !important;
}
input.newsletter-email-input {
  width: 100%;
  padding: 20px 16px !important;
  background: #ffffff;
  border: none;
  border-radius: 8px !important;
  font-size: 18px;
  margin-bottom: 0 !important;
  color: #2d3e3f;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.newsletter-email-input::placeholder {
  color: #c4c4c4;
}

.newsletter-email-input:focus {
  box-shadow: 0 0 0 3px rgba(45, 62, 63, 0.1);
}

.newsletter-submit-btn {
  width: 100%;
  padding: 8px 24px;
  background: #31293e;
  color: #ffffff;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.newsletter-submit-btn:hover {
  background: #232832;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 41, 62, 0.3);
}

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

.newsletter-submit-btn:disabled {
  background: #7fa591;
  cursor: not-allowed;
  transform: none;
}

.newsletter-cat-image {
  position: absolute;
  right: -8px;
  bottom: -23px;
  width: 100px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.be-subscription-form__messages {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.be-subscription-form__messages p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
}

.be-subscription-form__messages .be-error {
  background: #ffe5e5;
  color: #d8000c;
  border-left: 4px solid #d8000c;
}

.be-subscription-form__messages .be-success {
  background: #e5f7e5;
  color: #2e5e4b;
  border-left: 4px solid #2e5e4b;
}

/* Success message after form is removed */
.be-newsletter-form-block > p {
  background: #e5f7e5;
  color: #2e5e4b;
  padding: 20px 24px;
  border-radius: 12px;
  border-left: 4px solid #2e5e4b;
  margin: 0;
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .newsletter-form-container {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .newsletter-form-heading {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .newsletter-email-input,
  .newsletter-submit-btn {
    font-size: 16px;
    padding: 16px 20px;
  }
}

@media screen and (max-width: 480px) {
  .newsletter-form-container {
    padding: 30px 20px 140px 20px;
  }

  .newsletter-form-heading {
    font-size: 24px;
  }
}
