/* ============================================================
   Sekcja 12b — „Newsletter" (pattern: newsletter.php, klasa .tech-newsletter)
   Ciemny box 2-kol: obraz / nagłówek + formularz. Zapis do Edrone:
   inc/newsletter.php + assets/js/newsletter.js (form[data-collibre-nl]).
   ============================================================ */

/* Wspólne dla WSZYSTKICH formularzy newslettera (stopka, blog/artykuł, strona główna) — ciemne tło. */
.tech-nlf__consent { display: flex; align-items: flex-start; gap: .625rem; margin: 0; font-size: .6875rem; line-height: 1.5; color: rgba(255,255,255,.55); cursor: pointer; text-align: left; }
.tech-nlf__consent input { flex: 0 0 auto; margin-top: .15rem; }
.tech-nlf__consent a { color: inherit; text-decoration: underline; }
.tech-nlf__consent a:hover { color: var(--tech-white); }
.tech-nlf__msg { margin: 0; font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-white); }
.tech-nlf__msg.is-error { color: #ffb4a8; }
.tech-nlf__msg[hidden] { display: none; }

.tech-newsletter { padding-block: 0 var(--tech-section-y-lg); }

.tech-nl__box {
  display: flex !important;
  background: var(--tech-ink);
  color: var(--tech-white);
  border-radius: var(--tech-radius-lg);
  overflow: hidden !important;
  align-items: stretch !important;
  padding: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
}
@media (max-width: 1023px) { .tech-nl__box { flex-direction: column; } }

/* Obraz — flush, na całą wysokość */
.tech-nl__media { display: flex !important; padding: 0 !important; }
.tech-nl__img { margin: 0; flex: 1; display: flex; }
.tech-nl__img img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }

/* Treść — realny padding (Spectra wymusza 10px), własne odstępy */
.tech-nl__content {
  padding: 2.25rem !important;
  display: flex !important; flex-direction: column; justify-content: center;
  row-gap: 0 !important;
}
@media (min-width: 640px) { .tech-nl__content { padding: 3.5rem !important; } }
.tech-newsletter .wp-block-uagb-advanced-heading { margin: 0 !important; }

.tech-nl__title h2.uagb-heading-text {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: var(--tech-fw-bold);
  line-height: var(--tech-lh-snug);
  color: var(--tech-white);
}

/* Formularz (Edrone) */
.tech-nl__form { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.tech-nl__row { display: flex; gap: .75rem; }
.tech-nl__form [hidden] { display: none !important; } /* ukryte pole Urodziny — Astra nadaje inputom display */
@media (max-width: 640px) { .tech-nl__row { flex-direction: column; } }
.tech-nl__form .tech-nl__input {
  flex: 1; min-width: 0;
  padding: .85rem 1.5rem !important;
  border-radius: var(--tech-radius-pill) !important;
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: var(--tech-white) !important;
  font-size: var(--tech-fs-sm) !important;
  box-shadow: none !important;
}
.tech-nl__form .tech-nl__input::placeholder { color: rgba(255,255,255,.5) !important; opacity: 1; }
.tech-nl__form .tech-nl__input:focus { outline: none !important; border-color: rgba(255,255,255,.4) !important; }
.tech-nl__form .tech-nl__submit {
  padding: .85rem 2rem !important;
  border: 0 !important; border-radius: var(--tech-radius-pill) !important;
  background: var(--tech-white) !important; color: var(--tech-ink) !important;
  font-size: var(--tech-fs-sm) !important; font-weight: var(--tech-fw-semibold);
  white-space: nowrap; cursor: pointer;
  transition: background .2s ease;
}
.tech-nl__form .tech-nl__submit:hover { background: var(--tech-mist) !important; }
.tech-nl__consent { display: flex; align-items: flex-start; gap: .75rem; margin-top: .5rem; font-size: var(--tech-fs-sm); color: rgba(255,255,255,.7); }
.tech-nl__consent input { margin-top: .2rem; }
.tech-nl__req { margin: 0; font-size: .6875rem; color: rgba(255,255,255,.4); }
.tech-nl__note { margin: 1.5rem 0 0; font-size: .6875rem; line-height: var(--tech-lh-normal); color: rgba(255,255,255,.4); }
