/* Podoblock Newsletter: compact signup band above the footer. */

.pbnl {
  --pbnl-accent: var(--pdb-purple, #5b57a2);
  --pbnl-support: var(--pdb-green, #64ccc9);
  --pbnl-ink: var(--pdb-text, #4f5055);
  --pbnl-muted: #6f7080;
  --pbnl-border: #dcdbea;
  position: relative;
  overflow: hidden;
  background: var(--pbnl-accent);
  color: #fff;
}

/* Large brand mark bleeding off the right edge. */
.pbnl::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -70px;
  width: 340px;
  height: 340px;
  background: var(--pbnl-mark) center / contain no-repeat;
  opacity: 0.08;
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

.pbnl__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  grid-template-areas:
    'intro form'
    'legal form';
  gap: 12px 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.pbnl .pbnl__title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.pbnl__text {
  max-width: 400px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.6;
}

.pbnl__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pbnl form {
  margin: 0;
}

/* Topics */
.pbnl__lists .form__label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.pbnl .pbnl__label {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.pbnl__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pbnl .entry__choice {
  margin: 0;
}

.pbnl .pbnl__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
  user-select: none;
}

.pbnl__chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.pbnl__chip .checkbox {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.15s, border-color 0.15s;
}

.pbnl__chip:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pbnl__chip:has(input:checked) {
  border-color: var(--pdb-orange, #ff7c10);
  background: var(--pdb-orange, #ff7c10);
  color: #fff;
}

.pbnl__chip:has(input:checked) .checkbox {
  border-color: #fff;
  background: #fff;
}

.pbnl__chip:has(input:checked) .checkbox::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4.5px;
  width: 4px;
  height: 7px;
  border: solid var(--pdb-orange, #ff7c10);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pbnl__chip:has(input:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Email + button */
.pbnl__field {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 6px 0 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px -12px rgba(20, 18, 70, 0.55);
  transition: box-shadow 0.15s;
}

.pbnl__field:focus-within {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 10px 28px -12px rgba(20, 18, 70, 0.55);
}

.pbnl .pbnl__field input.input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 16px;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pbnl-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.pbnl .pbnl__field input.input::placeholder {
  color: var(--pbnl-muted);
  font-weight: 300;
  opacity: 1;
}

.pbnl .pbnl__btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--pbnl-support);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.pbnl .pbnl__btn:hover,
.pbnl .pbnl__btn:focus-visible {
  background: var(--pbnl-accent);
  color: #fff;
}

.pbnl .pbnl__btn[disabled],
.pbnl .sib-form-block__button-disabled {
  opacity: 0.7;
  cursor: wait;
}

.pbnl .progress-indicator__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  animation: pbnl-spin 0.8s linear infinite;
}

.pbnl .sib-hide-loader-icon {
  display: none;
}

@keyframes pbnl-spin {
  to { transform: rotate(360deg); }
}

/* Validation and result messages (toggled by Brevo's script) */
.pbnl .entry__error {
  display: inline-block;
  margin: 8px 0 0;
  padding: 3px 10px;
  border-radius: 6px;
  background: #fdecea;
  color: #8c1d18;
  font-size: 13px;
}

.pbnl .entry__error:empty {
  display: none;
}

.pbnl .sib-form-message-panel {
  display: none;
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
}

.pbnl .sib-form-message-panel--active {
  display: block;
}

.pbnl__msg--success {
  background: #e3f6ee;
  color: #1c6b44;
}

.pbnl__msg--error {
  background: #fdecea;
  color: #8c1d18;
}

.pbnl .input--hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pbnl__legal {
  grid-area: legal;
  align-self: start;
  max-width: 400px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.5;
}

.pbnl__legal a {
  color: #fff;
  text-decoration: underline;
}

.pbnl__intro {
  grid-area: intro;
  align-self: end;
}

.pbnl__form {
  grid-area: form;
}

/* The badge is replaced by the notice above, as Google allows. */
.grecaptcha-badge {
  visibility: hidden;
}

@media (max-width: 991px) {
  .pbnl__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'intro'
      'form'
      'legal';
    gap: 20px;
    padding: 32px 20px;
  }

  .pbnl__legal {
    max-width: none;
    margin-top: -8px;
  }
}

@media (max-width: 767px) {
  .pbnl::after {
    top: auto;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    transform: rotate(-8deg);
  }
}

@media (max-width: 480px) {
  .pbnl .pbnl__btn {
    padding: 0 16px;
  }



  .pbnl .pbnl__title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pbnl .progress-indicator__icon {
    animation: none;
  }
}
