.newsletter-type-3 {
  background-repeat: no-repeat;
  background-size: 63%;
  min-height: 442px;
  background-position: right;
  position: relative;
  background-image: url("https://phasesuibuilder.s.cmshelp.dk/media/dxrppveg/image-15.jpg");
}

.newsletter-type-3 .newsletter-container {
  position: relative;
  max-width: 572px;
  margin: 0 auto;
  padding: 40px 0;
  max-width: var(--max-width, 1140px);
  padding-left: var(--site-padding, 80px);
}

.newsletter-type-3 .newsletter-bg {
  width: 60%;
  min-height: 442px;
  margin-left: auto;
}

.newsletter-type-3 .newsletter-bg + .newsletter-container {
  position: absolute;
  top: 20%;
  left: 20%;
}

/* Glassmorphism effect */
.newsletter-type-3 .newsletter-content {
  padding: 30px;
  max-width: 572px;
  border: 1px solid rgba(28, 31, 37, 0.2);
  background:  #fff;
}

.newsletter-type-3 .newsletter-content-inner {
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-type-3 .newsletter-form {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 21px;
}

.newsletter-type-3 .newsletter-form input[type="email"] {
  padding: 18px 10px;
  border-radius: var(--input-border-radius, 4px) 0 0 var(--input-border-radius, 4px);
  font-size: 1rem;
  outline: none;
  color: var(--input-text-color, #222);
  width: calc(100% - 145px);
  font-family: var(--body-text-font, var(--text-font, "Inter", sans-serif));
  transition: all 0.3s ease;
}

.newsletter-type-3 .newsletter-form input[type="email"]:focus {
  border-color: var(--input-focus-border, #685dff);
  box-shadow: 0 0 0 2px rgba(104, 93, 255, 0.1);
}

.newsletter-type-3 .newsletter-form .subscribe-button {
  padding: 18px 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.16px;
  outline: none;
  width: 145px;
  cursor: pointer;
  font-family: var(--body-text-font, var(--text-font, "Inter", sans-serif));
  transition: all 0.2s;
  overflow: hidden;
}


/* Tablet styles */
@media (min-width: 768px) and (max-width: 1024px) {
  .newsletter-type-3 {
    background-size: cover;
    display: flex;
    align-items: center;
  }

  .newsletter-type-3 .newsletter-content {
    padding: 24px 12px;
    max-width: 100%;
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  .newsletter-type-3 {
    background-size: cover;
    display: flex;
    align-items: center;
  }

  .newsletter-type-3 .newsletter-content {
    padding: 24px 12px;
    max-width: 100%;
  }

  .newsletter-type-3 .newsletter-form input[type="email"],
  .newsletter-type-3 .newsletter-form .subscribe-button {
    padding: 10px;
  }

  .newsletter-type-3 .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-type-3 .newsletter-form input[type="email"] {
    border-radius: var(--input-border-radius, 4px);
    width: -webkit-fill-available;
  }

  .newsletter-type-3 .newsletter-form .subscribe-button {
    width: 100%;
  }

  .newsletter-type-3 .newsletter-container {
    padding: 15px;
  }
}
