/* Ensures popup is above all elements */
.mfp-bg {
  z-index: 100000 !important; /* behind modal content */
}

.mfp-wrap {
  z-index: 100001 !important; /* on top of everything */
}

body.mfp-open {
  overflow: hidden !important;
  position: relative;
  height: 100vh;
}

.white-popup-block {
  background: #fff;
  padding: 30px;
  max-width: 400px;
  margin: 40px auto;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1051; /* extra safety */
}

.waitlist-form {
  position: relative;
}

.waitlist-form h2 {
  font-size: 24px;
  font-weight: bold;
}

.waitlist-form p {
  font-size: 14px;
  color: #555;
}

.form-control.custom-input {
  font-size: 14px;
  padding: 10px 12px;
  height: auto;
  border-radius: 6px;
}

.btn-purple {
  background-color: var(--primery);
  border: none;
  color: #fff;
  transition: background-color 0.3s;
  padding: 0.7rem;
  font-size: 14px;
  border-radius: 6px;
}

.btn-purple:hover {
  background-color: #5939cc;
}

.bg-primery {
  background-color: var(--primery);
}

.is-invalid {
  border-color: #dc3545 !important;
}

/* Overlay styles */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#waitlist-form.submitting + .overlay {
  display: flex;
}

/* Show when form is submitting */
#contact-form.submitting + .overlay {
  display: flex;
}

#our-app-image {
  max-height: 300px;
  width: 100%;
  max-width: 398px;
  object-fit: cover;
  overflow: hidden;
  object-position: top center;
}

@media screen and (min-width: 400px) {
  #our-app-image {
    max-height: 400px;
  }
}

@media screen and (min-width: 480px) {
  #our-app-image {
    max-height: 500px;
  }
}

@media screen and (min-width: 992px) {
  #our-app-image {
    max-height: 517px;
  }
}

.accordion .card .card-body {
  font-size: 0.85rem;
}

.accordion .card .card-header button {
  font-size: 1.1rem;
}

.used_app ul li {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.used_app ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
