/* Form validation / error styling */

/* Django can render inline errors like:
   <span id="error_1_id_field"><strong>…</strong></span>
*/
span[id^="error_"] {
  color: #dc3545; /* Bootstrap danger */
}

span[id^="error_"] strong {
  color: inherit;
  font-weight: 600;
}

/* Django default error list */
ul.errorlist,
ol.errorlist {
  color: #dc3545;
  margin: 0.25rem 0 0;
  padding-left: 0;
  list-style: none;
}

/* Landing hero: improve text readability when image is behind content (mobile/tablet) */
@media (max-width: 991.98px) {
  .landing-hero-panel {
    background: rgba(0, 0, 0, 0.55);
    padding: 1.25rem 1.25rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .landing-hero-panel h1,
  .landing-hero-panel .lead {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
  }

  .landing-hero-panel .lead {
    opacity: 0.95;
  }
}


.bank-qr-code {
  max-width: 280px;
}

.img-header-wrap {
  overflow: hidden;
}

.img-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ratio > .ratio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}