.latest-newsletter-bg {
  background-color: #FAFAFA;
      padding-bottom: 100px;
}

/*latest-newsletter area start*/
.latest-newsletter__pen-shape {
  position: absolute;
  top: 10px;
  right: -25px;
}

.latest-newsletter__pen-shape img {
  width: 100%;
  height: auto;
}

@media only screen and (min-width: 1400px) and (max-width: 1600px), only screen and (min-width: 1200px) and (max-width: 1399px), only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
  .latest-newsletter__pen-shape {
    display: none;
  }
}

.latest-newsletter__bg-shape {
  position: absolute;
  left: -345px;
  top: 15px;
}

.latest-newsletter__bg-shape img {
  width: 100%;
  height: auto;
}

@media only screen and (min-width: 1400px) and (max-width: 1600px), only screen and (min-width: 1200px) and (max-width: 1399px), only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
  .latest-newsletter__bg-shape {
    display: none;
  }
}

.latest-newsletter__content h2 {
  color: var(--rr-heading-primary);
  font-weight: var(--rr-fw-bold);
  line-height: var(--rr-lh-h2);
  margin-bottom: 14px;
}

span.wpcf7-not-valid-tip {
  text-align: left;
  padding: 4px 0 0 2px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .latest-newsletter__content h2 {
    font-size: 38px;
    line-height: 50px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .latest-newsletter__content h2 {
    font-size: 40px;
    line-height: 52px;
  }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  .latest-newsletter__content h2 {
    font-size: 40px;
    line-height: 52px;
  }
}

@media (max-width: 575px) {
  .latest-newsletter__content h2 {
    font-size: 30px;
    line-height: 42px;
  }
}

@media (max-width:450px) {
  .latest-newsletter__content h2 {
    font-size: 27px;
    line-height: 37px;
  }
}

.latest-newsletter__content .description {
  max-width: 717px;
  margin: auto;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 30px;
}

/* CF7 form: outer wrappers take full width */
.latest-newsletter__content .wpcf7,
.latest-newsletter__content .wpcf7-form,
.latest-newsletter__content .form-inner {
  width: 100%;
}

/* The actual flex row: input + button */
.latest-newsletter__content .custom-form {
  max-width: 826px;
  height: 60px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
  position: relative;
  border: 1px solid rgba(0, 29, 8, 0.1);
  background: var(--rr-common-white);
  align-items: center;
}

/* Tel span: grow to fill remaining width */
.latest-newsletter__content .custom-form .wpcf7-form-control-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Tel input */
.latest-newsletter__content .custom-form input[type="tel"] {
  width: 100%;
  height: 100%;
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
  padding-left: 20px;
  outline: none;
  box-shadow: none;
}

.latest-newsletter__content .custom-form input[type="tel"]::placeholder {
  color: var(--rr-text-body);
}

/* Submit button */
.latest-newsletter__content .custom-form input.wpcf7-submit {
  flex-shrink: 0;
  height: 85%;
  margin-right: 5px;
  cursor: pointer;
}

/* Hide spinner (shows after submit, not needed inline) */
.latest-newsletter__content .custom-form .wpcf7-spinner {
  display: none;
}

/* Mobile: cancel fullwidth-100vw for newsletter section */
@media (max-width: 767px) {
  .latest-newsletter__area.fullwidth-100vw {
    width: auto;
    position: static;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile: stack input and button vertically */
@media (max-width: 767px) {
  .latest-newsletter__content .custom-form {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 8px;
  }

  .latest-newsletter__content .custom-form .wpcf7-form-control-wrap {
    height: 48px;
    width: 100%;
  }

  .latest-newsletter__content .custom-form input[type="tel"] {
    border: 1px solid rgba(0, 29, 8, 0.1) !important;
    border-radius: 4px;
    padding-left: 12px;
    height: 48px;
  }

  .latest-newsletter__content .custom-form input.wpcf7-submit {
    width: 100%;
    height: 48px;
    margin-right: 0;
  }
}

span.wpcf7-form-control.wpcf7-acceptance {
  display: block;
}

.wp-block-lazyblock-latest-newsletter {
  margin-bottom: 0px;
}

.latest-newsletter__content .rr-btn {
  display: inline-flex;
  padding: 10px 28px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  .latest-newsletter__content .rr-btn {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 575px) {
  .latest-newsletter__content .rr-btn {
    padding-left: 35px;
    padding-right: 35px;
  }
}

@media (max-width:450px) {
  .latest-newsletter__content .rr-btn {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width:320px) {
  .latest-newsletter__content .rr-btn {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.latest-newsletter__content .rr-btn:before {
  background-color: var(--rr-heading-primary);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.latest-newsletter__content .rr-btn:hover {
  color: var(--rr-common-white);
  box-shadow: none !important;
}
