/* Riyadh district typeahead — Forminator form 77, field text-3 */
.naqliatak-wp .forminator-custom-form-77 #text-3,
.naqliatak-wp .forminator-custom-form-77 #text-3 .forminator-field,
.naqliatak-wp #forminator-module-77 #text-3 {
  position: relative;
  overflow: visible !important;
  z-index: 4;
}
.naqliatak-wp .forminator-custom-form-77 #text-3.is-nq-loc-open,
.naqliatak-wp .forminator-custom-form-77 #text-3.is-nq-loc-open .forminator-field {
  z-index: 80;
}

.nq-loc-wrap {
  position: relative;
}

.nq-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block-end: 12px;
}
.nq-zone-field {
  display: grid;
  gap: 7px;
  color: #0b2c3a;
  font: 700 14px/1.45 "IBM Plex Sans Arabic", Tahoma, sans-serif;
}
.nq-zone-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #c7d9e0;
  border-radius: 10px;
  background: #fff;
  color: #0b2c3a;
  font: 500 15px/1.4 "IBM Plex Sans Arabic", Tahoma, sans-serif;
}
.nq-zone-field select:disabled {
  background: #eef4f6;
  color: #708690;
  cursor: not-allowed;
}
.nq-zone-field select:focus-visible {
  outline: 3px solid rgba(26, 167, 196, 0.28);
  border-color: #1aa7c4;
}

.nq-loc-panel {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 1000050;
  display: none;
  background: #ffffff;
  border: 1px solid #d0dee4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(11, 44, 58, 0.18),
    0 2px 8px rgba(11, 44, 58, 0.08);
  padding: 6px 0;
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, sans-serif;
  color: #0b2c3a;
  isolation: isolate;
  transform-origin: top center;
  animation: nq-loc-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nq-loc-panel.is-open {
  display: block;
}
.nq-loc-panel.is-above {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom center;
  animation-name: nq-loc-in-above;
}

.nq-loc-kicker {
  margin: 4px 12px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #5b7380;
}

.nq-loc-list {
  list-style: none;
  margin: 0;
  padding: 4px 6px;
  max-height: min(260px, calc(100dvh - 200px - env(safe-area-inset-bottom, 0px)));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #1aa7c4 transparent;
}
.nq-loc-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.nq-loc-list::-webkit-scrollbar-track {
  background: transparent;
}
.nq-loc-list::-webkit-scrollbar-thumb {
  background: #1aa7c4;
  border-radius: 99px;
}
.nq-loc-list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.nq-loc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #0b2c3a;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  margin: 2px 0;
  min-height: 44px;
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-align: inherit;
  cursor: pointer;
  border-inline-start: 3px solid transparent;
}
.nq-loc-item:hover,
.nq-loc-item.is-active {
  background: #e6f7fb;
  color: #0b2c3a;
  border-inline-start-color: #1aa7c4;
}
.nq-loc-item.is-selected,
.nq-loc-item.is-selected.is-active {
  background: #1aa7c4;
  color: #ffffff;
  font-weight: 700;
  border-inline-start-color: #0b2c3a;
}
.nq-loc-alias {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.72;
  white-space: nowrap;
}

.nq-loc-empty {
  margin: 8px 14px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: #5b7380;
}

@keyframes nq-loc-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nq-loc-in-above {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .nq-zone-grid {
    grid-template-columns: 1fr;
  }
  .nq-loc-list {
    max-height: min(240px, calc(100dvh - 180px - env(safe-area-inset-bottom, 0px)));
  }
  .nq-loc-item {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nq-loc-panel {
    animation: none;
  }
}

.naqliatak-wp .forminator-custom-form-77 .nq-whatsapp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-block-start: 10px;
  padding: 12px 18px;
  border: 1px solid #158f69;
  border-radius: 12px;
  background: #159b78;
  color: #fff;
  font: 800 16px/1.4 "IBM Plex Sans Arabic", Tahoma, sans-serif;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.naqliatak-wp .forminator-custom-form-77 .nq-whatsapp-submit:hover {
  background: #108262;
}
.naqliatak-wp .forminator-custom-form-77 .nq-whatsapp-submit:focus-visible {
  outline: 3px solid rgba(21, 155, 120, 0.3);
  outline-offset: 3px;
}
.nq-whatsapp-submit svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
.nq-whatsapp-status {
  margin: 8px 0 0;
  color: #a53b20;
  font-size: 13px;
  font-weight: 700;
}
