.paragraph.new-newsletter {
  background: linear-gradient(125deg, #6ea5cf 0%, #2d79b7 48%, #0f5f9f 100%);
  border-radius: 10px 10px 0 0;
  color: #ffffff;
  margin: 0;
  overflow: hidden;
  padding: 38px 50px 42px;
  position: relative;
  transition: all ease-in-out .5s;
}

@supports (content-visibility: auto) {
  .paragraph.new-newsletter .new-newsletter__form {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
  }
}

.paragraph.new-newsletter.is-reveal-ready {
  transform: translate3d(0, 100%, 0);
}

.paragraph.new-newsletter.is-reveal-ready.is-visible {
  transform: translate3d(0, 0, 0);
}

.new-newsletter__summary {
  display: block;
  max-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}
button.new-newsletter__toggle {
  display: block;
  right: 10px;
  position: absolute;
  top: 19px;
  z-index: 120;
}
.new-newsletter__summary-title {
  display: block;
}

.new-newsletter__toggle {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  color: #002f4f;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  height: 45px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 45px;
}

.new-newsletter__toggle:hover,
.new-newsletter__toggle:focus {
  background: #e9edf1;
  color: #001f34;
}

.new-newsletter__icon-collapsed {
  display: none;
}

.paragraph--type--new-newsletter.is-collapsed .new-newsletter__icon-expanded {
  display: none;
}

.paragraph--type--new-newsletter.is-collapsed .new-newsletter__icon-collapsed {
  display: inline-block;
}

.new-newsletter__content {
  max-height: none;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.new-newsletter__inner {
  width: 100%;
}

.new-newsletter__default {
  align-items: start;
  display: grid;
  gap: 75px;
  grid-template-columns: minmax(0, 317px) minmax(0, 1fr);
}

.new-newsletter__title {
  color: #ffffff;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 22px;
  max-width: 250px;
}

.new-newsletter__title h1,
.new-newsletter__title h2,
.new-newsletter__title h3,
.new-newsletter__title p {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
}

.new-newsletter__description {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  max-width: 380px;
  opacity: 1;
}

.new-newsletter__description p {
  margin: 0;
}

.new-newsletter__form .container-fluid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  max-width: 100%;
  padding: 0;
}

.new-newsletter__form .container-fluid > fieldset.footer-newsletter-block.form-group {
  margin: 0 !important;
  width: 100%;
}

.new-newsletter__form .container-fluid > fieldset.footer-newsletter-block.form-group:nth-of-type(-n + 2) {
  grid-column: span 1;
}

.new-newsletter__form .container-fluid > fieldset.footer-newsletter-block.form-group:nth-of-type(n + 3) {
  grid-column: 1 / -1;
}

.new-newsletter__form .container-fluid > .captcha.captcha-type-challenge--recaptcha,
.new-newsletter__form .container-fluid > div#edit-actions {
  grid-column: 1 / -1;
}

.new-newsletter__form .form-group label {
  color: #ffffff;
  display: none;
  font-size: 0.9rem;
  margin: 0 0 6px;
}

.new-newsletter__form .form-group.floating-label {
  position: relative;
}

.new-newsletter__form .form-group.floating-label label {
  color: #666666;
  display: block;
  font-size: 16px;
  font-weight: 500;
  left: 17px;
  line-height: 1;
  margin: 0;
  pointer-events: none;
  position: absolute;
  top: 19px;
  transition: all 150ms ease;
  z-index: 1;
}

.new-newsletter__form .form-group .form-control:not(.button) {
  background: #f2f3f6;
  border: 0;
  border-radius: 8px;
  color: #666666;
  font-size: 16px;
  height: auto;
  min-height: auto;
  padding: 0px 17px 15px;
  font-weight: 500;
  line-height: 1;
}

.new-newsletter__form .form-group.floating-label .form-control:not(.button) {
  padding-top: 18px;
}

.new-newsletter__form .form-group .form-control:not(.button)::placeholder {
  color: #5f646c;
  opacity: 1;
}

.new-newsletter__form .form-group.floating-label .form-control:not(.button)::placeholder {
  color: transparent;
}

.new-newsletter__form .form-group.floating-label:focus-within label,
.new-newsletter__form .form-group.floating-label.is-filled label {
  font-size: 0.8rem;
  opacity: 0;
  top: 0.25rem;
}

.new-newsletter__form div#edit-actions {
  justify-self: self-start;
  margin: 3px 0 0;
  width: min(100%, 252px);
}

.new-newsletter__form div#edit-actions .webform-button--submit {
  background: #f9d100;
  border: 0;
  border-radius: 8px;
  color: #000000;
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  min-height: 52px;
  padding: 12px 18px 10px;
  text-transform: uppercase;
  width: 100%;
}

.new-newsletter__form div#edit-actions .webform-button--submit:hover,
.new-newsletter__form div#edit-actions .webform-button--submit:focus {
  background: #e7bf00;
  color: #000000;
}

.new-newsletter__success {
  display: none;
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
}

.new-newsletter__success-icon {
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 18px;
}

.new-newsletter__success-icon i {
  display: inline-block;
}

.new-newsletter__success-title {
  color: #ffffff;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 12px;
}

.new-newsletter__success-title h1,
.new-newsletter__success-title h2,
.new-newsletter__success-title h3,
.new-newsletter__success-title p {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
}

.new-newsletter__success-body {
  color: #ffffff;
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  line-height: 1.35;
}

.new-newsletter__success-body p {
  margin: 0;
}

.paragraph--type--new-newsletter.is-submitted .new-newsletter__default {
  display: none;
}

.paragraph--type--new-newsletter.is-submitted .new-newsletter__success {
  display: block;
}

.paragraph--type--new-newsletter.is-collapsed {
  border-radius: 10px 10px 0 0;
  padding: 0;
}
.paragraph--type--new-newsletter.is-collapsed .new-newsletter__summary {
  opacity: 1;
  max-height: 140px;
}
.paragraph--type--new-newsletter.is-collapsed .new-newsletter__summary {
  justify-content: space-between;
  left: 0;
  padding: 26px 0;
  position: relative;
  top: 0;
  width: 100%;
}

.paragraph--type--new-newsletter .new-newsletter__summary-title {
  color: #ffffff;
  display: inline-block;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.paragraph--type--new-newsletter.is-collapsed .new-newsletter__toggle {
  margin-left: auto;
}

.paragraph--type--new-newsletter.is-collapsed .new-newsletter__content {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.paragraph--type--new-newsletter:has(.new-newsletter__form .webform-confirmation) .new-newsletter__default,
.paragraph--type--new-newsletter:has(.new-newsletter__form .webform-confirmation__message) .new-newsletter__default {
  display: none;
}

.paragraph--type--new-newsletter:has(.new-newsletter__form .webform-confirmation) .new-newsletter__success,
.paragraph--type--new-newsletter:has(.new-newsletter__form .webform-confirmation__message) .new-newsletter__success {
  display: block;
}

@media (max-width: 991.98px) {
  .paragraph.new-newsletter {
    padding: 30px 24px 30px;
  }
  .paragraph.new-newsletter.paragraph--type--new-newsletter.paragraph--view-mode--default.is-collapsed {
    padding-top:0;
    padding-bottom:0;
  }
  .new-newsletter__summary {
    .container {
      padding-left:0;
      padding-right: 0;
    }
  }

  .new-newsletter__default {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
  }

  .new-newsletter__description {
    max-width: none;
    padding: 0 0 20px;
}

  .paragraph--type--new-newsletter.is-collapsed .new-newsletter__summary-title {
    font-size: 30px;
  }
  .new-newsletter__title {
    color: #ffffff;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 10px;
    max-width: 100%;
  }
  .new-newsletter__default {
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .paragraph.new-newsletter {
    padding: 40px 50px;
    .container {
      padding:0;
    }
  }

}

@media (prefers-reduced-motion: reduce) {
  .paragraph.new-newsletter.is-reveal-ready {
    opacity: 1;
    transform: none;
  }
}
