/* Bloco de subscrição por e-mail — secção Walking Updates (#noticias) */

.wp-updates-newsletter {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  text-align: left;
}

@media (min-width: 40rem) {
  .wp-updates-newsletter {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    text-align: center;
  }
}

.wp-updates-newsletter h3 {
  margin-bottom: 0.4rem;
}

.wp-newsletter-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wp-newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

@media (min-width: 40rem) {
  .wp-newsletter-form {
    flex-direction: row;
  }
}

.wp-newsletter-input {
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.5);
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #f1f5f9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wp-newsletter-input::placeholder {
  color: #64748b;
}

.wp-newsletter-input:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.wp-newsletter-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25);
}

.wp-newsletter-submit {
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  box-shadow: 0 4px 16px -4px rgba(22, 163, 74, 0.5);
  transition: filter 0.2s, transform 0.2s;
}

.wp-newsletter-submit:hover {
  filter: brightness(1.08);
}

.wp-newsletter-submit:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

.wp-newsletter-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: none;
}

.wp-newsletter-feedback-msg:not(.hidden) {
  color: #67e8f9;
}

.wp-newsletter-feedback-msg.is-error {
  color: #fca5a5;
}

/* Bloco de e-mail na faixa final (#cta-ecossistema) */
.wp-cta-ribbon__btns--newsletter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 40rem) {
  .wp-cta-ribbon__btns--newsletter {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    max-width: 56rem;
    gap: 1rem 1.5rem;
  }
}

.wp-updates-newsletter--cta {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  text-align: left;
  flex: 1 1 18rem;
  min-width: 0;
}

@media (min-width: 40rem) {
  .wp-updates-newsletter--cta {
    text-align: center;
  }
}
