/* =========================================
   Bongoto Newsletter Bar (INLINE / FOOTER)
   Beautiful + balanced + stable layout
========================================= */

/* Outer wrapper: controls left/right gap on page */
.bgnl-bar{
  position: relative;
  width: 100%;
  padding: 0 20px;              /* <-- left/right page gap (change here) */
  margin: 0 auto 22px;          /* space before footer */
  box-sizing: border-box;
}

/* Inner card */
.bgnl-bar__inner{
  max-width: 980px;             /* <-- card max width (change here) */
  margin: 0 auto;
  border-radius: 18px;
  padding: 22px 24px;

  /* nicer background */
  background: linear-gradient(135deg, #0b1220 0%, #0a1020 40%, #070d18 100%);
  color: #fff;

  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 18px 45px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.05);

  display: flex;
  align-items: center;
  gap: 22px;

  box-sizing: border-box;
}

/* Left text block */
.bgnl-bar__text{
  flex: 1 1 48%;
  min-width: 260px;
}

.bgnl-bar__title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: .2px;
}

.bgnl-bar__desc{
  font-size: 14px;
  opacity: .86;
  line-height: 1.45;
  margin: 0;
}

/* Right form block */
.bgnl-bar__form{
  flex: 1 1 52%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  /* keep message below without layout jump */
  flex-wrap: wrap;
  min-width: 320px;
  box-sizing: border-box;
}

/* Input */
.bgnl-bar__input{
  flex: 1 1 360px;
  min-width: 260px;

  height: 46px;
  padding: 0 14px;
  border-radius: 12px;

  box-sizing: border-box;

  color: #111827 !important;
  background: #ffffff !important;
  border: 1px solid rgba(17,24,39,.16) !important;

  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.bgnl-bar__input::placeholder{
  color: #6b7280 !important;
  opacity: 1 !important;
}

/* Focus looks premium */
.bgnl-bar__input:focus{
  border-color: rgba(37,99,235,.55) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}

/* Button */
.bgnl-bar__button{
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;

  background: linear-gradient(180deg, #2b6df6 0%, #1f58d6 100%);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;

  box-shadow: 0 10px 18px rgba(37,99,235,.22);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.bgnl-bar__button:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37,99,235,.28);
}

.bgnl-bar__button:active{
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(37,99,235,.22);
}

.bgnl-bar__button:disabled{
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Message always below input/button (no jumping) */
.bgnl-bar__msg{
  flex: 0 0 100%;
  width: 100%;
  min-height: 18px;
  margin: 6px 0 0;

  font-size: 13px;
  opacity: .92;
}

/* Optional: success / error colors (if you set class in JS) */
.bgnl-bar__msg.is-success{ color: #34d399; }
.bgnl-bar__msg.is-error{ color: #f87171; }

/* Honeypot */
.bgnl-hp{
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Mobile */
@media (max-width: 768px){
  .bgnl-bar{
    padding: 0 14px; /* smaller outer padding on mobile */
  }

  .bgnl-bar__inner{
    max-width: 100%;
    padding: 18px 16px;
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .bgnl-bar__text{
    min-width: 0;
  }

  .bgnl-bar__form{
    min-width: 0;
    justify-content: stretch;
  }

  .bgnl-bar__input{
    flex: 1 1 auto;
    min-width: 0;
  }

  .bgnl-bar__button{
    width: 100%;
  }
}
