/* Newsletter no rodapé público
   v4 - estilos do componente. Largura final controlada por public_largura_padrao.css. */
.public-footer {
  flex-direction: column;
  align-items: stretch;
}

.newsletter-footer {
  width: 100%;
  margin: 0 0 26px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 42px rgba(34, 21, 7, .06);
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(640px, 1.55fr);
  gap: 30px;
  align-items: center;
  box-sizing: border-box;
}

.newsletter-copy .kicker {
  display: inline-flex;
  margin-bottom: 9px;
}

.newsletter-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
  letter-spacing: -.045em;
  line-height: 1.05;
}

.newsletter-copy p {
  margin: 7px 0 0;
  line-height: 1.42;
  max-width: none;
  white-space: nowrap;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, .9fr) minmax(210px, 1.25fr) auto;
  gap: 11px;
  align-items: center;
}

.newsletter-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 15px;
  color: var(--text);
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
}

.newsletter-form input:focus {
  border-color: rgba(214, 151, 38, .75);
  box-shadow: 0 0 0 4px rgba(214, 151, 38, .14);
}

.newsletter-form button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e9b44c, #d8941d);
  color: #16120b;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-form button:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.newsletter-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.newsletter-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 14px;
  border-radius: 16px;
  font-weight: 800;
}

.newsletter-status-ok {
  color: #14532d;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .24);
}

.newsletter-status-error {
  color: #7f1d1d;
  background: rgba(239, 68, 68, .10);
  border: 1px solid rgba(239, 68, 68, .24);
}

.public-footer-bottom {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

@media (max-width: 1180px) {
  .newsletter-footer {
    grid-template-columns: minmax(240px, .8fr) minmax(540px, 1.45fr);
    gap: 22px;
  }

  .newsletter-form {
    grid-template-columns: minmax(120px, 1fr) minmax(120px, .9fr) minmax(170px, 1.2fr) auto;
  }
}

@media (max-width: 1060px) {
  .newsletter-footer {
    grid-template-columns: 1fr;
  }

  .newsletter-copy p {
    max-width: none;
    white-space: normal;
  }

  .newsletter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .newsletter-footer {
    padding: 18px;
    border-radius: 22px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .public-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
