.codenexa-newsletter {
  max-width: 520px;
}

.section-newsletter {
  position: relative;
  z-index: 2;
}

.section-newsletter__card {
  padding: 40px 36px;
  border-radius: 28px;
  background:
	radial-gradient(circle at top right, rgba(198, 255, 77, 0.16), transparent 42%), 
	linear-gradient(135deg, #126bfc 0%, #cbccd5 100%);
    /* radial-gradient(
      circle at top right,
      rgba(198, 255, 77, 0.16),
      transparent 42%
    ),
    linear-gradient(135deg, #0f1020 0%, #1f2238 100%); */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(15, 16, 32, 0.2);
}

.section-newsletter__content .heading-sub {
  margin-bottom: 12px;
  color: #126bfc;
  display: flex;
  position: relative;
  width: max-content;
  border-radius: 8px;
  color: var(--brand);
  padding: 6px 16px 6px 30px;
  background:
    radial-gradient(
      62.56% 62.56% at 28.14% -10.42%,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(0deg, #f5f5f5, #f5f5f5);
  box-shadow:
    0px -3px 0px 0px #e9e9e9 inset,
    0px 1px 0px 0px rgba(255, 255, 255, 0.6980392157) inset,
    0px 3px 3px 0px rgba(0, 0, 0, 0.1411764706);
  margin-bottom: 32px;
}
.section-newsletter__content .heading-sub::before {
  position: absolute;
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--brand);
}

.section-newsletter__content .heading-title {
  margin-bottom: 12px;
  color: #fff;
}

.section-newsletter__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section-newsletter .codenexa-newsletter {
  width: 100%;
  max-width: 100%;
}

.section-newsletter .codenexa-newsletter__row {
  flex-wrap: nowrap;
}

.section-newsletter .codenexa-newsletter__input {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.25);
}

.section-newsletter .codenexa-newsletter__consent {
  color: rgba(255, 255, 255, 0.74);
}

.section-newsletter .codenexa-newsletter__consent a {
  color: #fff;
}

.codenexa-newsletter__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
}

.codenexa-newsletter__desc {
  margin: 0 0 18px;
  color: var(--neutral-500, #6b7280);
}

.codenexa-newsletter__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.codenexa-newsletter__input {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: var(--neutral-900, #111);
}

.codenexa-newsletter__input:focus {
  outline: none;
  border-color: var(--primary, #0f1020);
  box-shadow: 0 0 0 3px rgba(15, 16, 32, 0.08);
}

.codenexa-newsletter__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.codenexa-newsletter__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--neutral-500, #6b7280);
  cursor: pointer;
}

.codenexa-newsletter__consent input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.codenexa-newsletter__consent a {
  text-decoration: underline;
}

.codenexa-newsletter__notice {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.codenexa-newsletter__notice--success {
  background: #e7f6ec;
  color: #1d6b38;
  border: 1px solid #b6e2c4;
}

.codenexa-newsletter__notice--error {
  background: #fdeaea;
  color: #a12525;
  border: 1px solid #f3c4c4;
}

.codenexa-newsletter__feedback {
  margin-top: 12px;
  font-size: 14px;
}

.codenexa-newsletter__feedback.is-success {
  color: #1d6b38;
}

.codenexa-newsletter__feedback.is-error {
  color: #a12525;
}

.codenexa-newsletter.is-loading .codenexa-newsletter__btn {
  opacity: 0.7;
  pointer-events: none;
}

/* Honeypot – visually and from assistive tech, kept out of layout. */
.codenexa-newsletter__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .section-newsletter__card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .section-newsletter .codenexa-newsletter__row {
    flex-wrap: wrap;
  }

  .section-newsletter .codenexa-newsletter__btn {
    width: 100%;
    justify-content: center;
  }
}
