/* Homepage hero video. The existing hero picture remains underneath as a fallback. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 699px), (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* Put the solid form away from the actor while preserving logical source order. */
@media (min-width: 700px) {
  .hero .hero-inner {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 28px;
  }

  .hero .form-card {
    grid-column: 1;
    grid-row: 1;
  }

  .hero .hero-text {
    grid-column: 2;
    grid-row: 1;
  }

  .hero .hero-overlay {
    background: linear-gradient(250deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.74) 52%, rgba(0, 0, 0, 0.42) 100%);
  }
}

@media (min-width: 1025px) {
  .hero .hero-inner {
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 56px;
  }
}

/* Keep homepage trust icons and copy aligned on narrow screens. */
@media (max-width: 768px) {
  .trust-bar .trust-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
    text-align: left;
  }

  .trust-bar .trust-item svg {
    margin-top: 1px;
  }
}

@media (max-width: 480px) {
  .trust-bar .trust-item {
    grid-template-columns: 30px minmax(0, 220px);
    justify-content: center;
  }
}
