@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.form-section {
  position: relative;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
  background: url('https://5968576.fs1.hubspotusercontent-na1.net/hubfs/5968576/bg-form-v2.jpg') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.form-section-gradient-top,
.form-section-gradient-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 1;
}

.form-section-gradient-top {
  top: 0;
  background: linear-gradient(#121519 0%, transparent 100%);
}

.form-section-gradient-bottom {
  bottom: 0;
  background: linear-gradient(to top, #121519 0%, transparent 100%);
}

.form-section-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.form-heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.form-subheading {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #ffffff;
}

/* ✅ BANER */
.form-banner {
  display: flex;
  align-items: stretch;
  background-image: url('https://5968576.fs1.hubspotusercontent-na1.net/hubfs/5968576/ng-baner.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  margin-bottom: 40px;
  overflow: hidden;
  min-height: 252px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.form-banner-text {
  flex: 1 1 auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.form-banner-text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #ffffff;
}

.form-banner-text p {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  color: #ffffff;
}

.form-banner-image img {
  width: 276px;
  height: 100%;
  object-fit: cover;
  border-radius: 0 20px 20px 0;
  display: block;
}

/* ✅ FORMULARZ */
.form-wrapper {
  background: linear-gradient(129deg, #303240 0%, #0F0F0F 100%);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: left;
}

.form-note {
  margin-top: 20px;
}

.form-note p {
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
}

.form-note a {
  color: #ffffff;
  text-decoration: underline;
}

/* ✅ RESPONSYWNOŚĆ */
@media (max-width: 1023px) {
  .form-heading {
    font-size: 30px;
  }

  .form-subheading {
    font-size: 18px;
  }

  .form-banner-text h3 {
    font-size: 22px;
    margin-top: 4px;
  }
#newsletter-form-pl {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 100px;
}

  .form-banner-text p {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .form-heading {
    font-size: 26px;
  }

  .form-subheading {
    font-size: 16px;
  }

  .form-banner {
    flex-direction: column;
    min-height: auto;
  }

  .form-banner-text {
    text-align: center;
    padding: 20px;
  }

  .form-banner-image img {
    width: 100%;
    height: auto;
    border-radius: 0 0 20px 20px;
  }
}

/* ✅ Global font enforcement */
body,
input,
select,
textarea,
label,
h1,
h2,
h3,
p,
span,
.form-section * {
  font-family: 'Poppins', sans-serif !important;
}

h2, h3, p {
  color: #ffffff;
}
.form-banner {
  display: flex;
  align-items: stretch;
  background-image: url('https://5968576.fs1.hubspotusercontent-na1.net/hubfs/5968576/ng-baner.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  margin-bottom: 40px;
  overflow: hidden;
  min-height: 252px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  padding-left: 15px
}

.form-banner-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 15px;
}

.form-banner-text {
  flex: 1 1 auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.form-banner-text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.form-banner-text p {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  color: #ffffff;
}

.form-banner-image {
  width: 276px;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.form-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 20px 20px 0;
}

/* Mobile */
@media (max-width: 767px) {
  .form-banner {
    flex-direction: column;
    min-height: auto;
  }

  .form-banner-text {
    text-align: center;
    padding: 20px;
  }

  .form-banner-image {
    width: 100%;
    height: auto;
  }

  .form-banner-image img {
    border-radius: 0 0 20px 20px;
  }

  .form-banner-icon {
    margin-left: auto;
    margin-right: auto;
  }
}
.form-banner {
  display: flex;
  align-items: stretch;
  background-image: url('https://5968576.fs1.hubspotusercontent-na1.net/hubfs/5968576/ng-baner.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  margin-bottom: 40px;
  overflow: hidden;
  min-height: 252px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.form-banner-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 15px;
}

.form-banner-text {
  flex: 1 1 auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.form-banner-image {
  width: 276px;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.form-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* <--- to ważne: przycinanie przy prawej */
  border-radius: 0 20px 20px 0;
  display: block;
}

/* Mobile */
@media (max-width: 767px) {
  .form-banner {
    flex-direction: column;
    min-height: auto;
    padding-left: 0 !important;
  }

  .form-banner-text {
    text-align: center;
    padding: 20px;
  }

  .form-banner-image {
    width: 100%;
    height: auto;
  }

  .form-banner-image img {
    object-position: center;
    border-radius: 0 0 20px 20px;
  }

  .form-banner-icon {
    margin-left: auto;
    margin-right: auto;
  }
}
.form-banner-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1px; /* wcześniej 15px, teraz ciaśniej z tekstem */
}
.form-banner-text img.form-banner-icon {
  margin-top: -4px; /* opcjonalnie: lekko podnosi ikonkę */
}
@media (max-width: 1023px) {
  .form-banner-visual img {
    max-width: 140px;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .form-banner-visual {
    width: 100%;
    max-height: 150px;
    display: flex;
    justify-content: center;
    padding: 10px 0;
  }

  .form-banner-visual img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  @media (max-width: 767px) {
  .form-banner-image {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
  }

  .form-banner-image img {
    width: auto;
    max-width: 90%; /* ogranicza szerokość obrazka */
    height: auto;   /* zachowuje proporcje */
    object-fit: contain;
    object-position: center;
    border-radius: 0 0 20px 20px;
  }
}
@media (max-width: 767px) {
  .form-banner-image {
    align-self: stretch; /* 🧲 rozciąga do wysokości tekstu */
    display: flex;
    align-items: flex-end; /* 📌 przykleja Craiga do dołu */
    justify-content: center;
    padding: 0;
  }

  .form-banner-image picture,
  .form-banner-image img {
    width: auto;
    max-height: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 0 0 20px 20px;
  }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .form-banner-image img {
    max-height: 100%;
    object-fit: cover;
    object-position: bottom right;
    display: block;
  }
@media (max-width: 1023px) and (min-width: 768px) {
  .form-banner {
    align-items: stretch !important;
    padding-left: 0 !important;
  }

  .form-banner-image {
    height: auto !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
  }

  .form-banner-image img {
    height: 100% !important;
    width: auto !important;
    object-fit: cover !important;
    object-position: bottom right !important;
    display: block !important;
  }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .form-banner {
    min-height: 252px; /* upewniamy się, że coś ustala wysokość */
    align-items: stretch;
    padding-left: 0 !important;
  }

  .form-banner-image {
    height: auto; /* nadpisujemy height: 100% */
    display: flex;
    align-items: flex-end; /* 📌 obrazek schodzi do dołu */
    justify-content: flex-end;
  }

  .form-banner-image img {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: bottom right;
    display: block;
  }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .form-banner {
    align-items: stretch !important;
    padding-left: 0 !important;
  }

  .form-banner-image {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end;
  }

  .form-banner-image picture {
    display: flex;
    align-items: flex-end;
    height: 100%;
    width: 100%;
  }

  .form-banner-image img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    object-position: bottom right !important;
    display: block;
  }
}

