/* ===============================================================
   Ajeer — Shared Contact Modal (Zoho form)
   =============================================================== */

.aj-contact-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 48, .55);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.aj-contact-backdrop.aj-open {
  opacity: 1;
  pointer-events: auto;
}

.aj-contact-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  background: #FBFAF6;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(10, 18, 48, .45);
  transform: translateY(20px) scale(.98);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}
.aj-contact-backdrop.aj-open .aj-contact-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.aj-contact-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E6E0D0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}
.aj-contact-title {
  font-size: 20px;
  font-weight: 700;
  color: #0A1230;
  letter-spacing: -.008em;
}
.aj-contact-subtitle {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #5C6480;
  letter-spacing: .08em;
  margin-top: 4px;
}

.aj-contact-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #EBE7DC;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s, transform .18s;
  color: #0A1230;
}
.aj-contact-close:hover {
  background: #0A1230;
  color: #fff;
  transform: rotate(90deg);
}
.aj-contact-close svg { width: 18px; height: 18px; }

.aj-contact-body {
  flex: 1;
  overflow: auto;
  background: #fff;
  position: relative;
  min-height: 480px;
}
.aj-contact-body iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: 0;
  display: block;
}

.aj-contact-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5C6480;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.aj-contact-loading::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid #D8D2C2;
  border-top-color: #035DFC;
  border-radius: 50%;
  animation: ajContactSpin .8s linear infinite;
  margin-inline-end: 10px;
}
@keyframes ajContactSpin { to { transform: rotate(360deg); } }

@media (max-width: 540px) {
  .aj-contact-backdrop { padding: 0; align-items: stretch; }
  .aj-contact-modal { border-radius: 22px 22px 0 0; max-height: 95vh; margin-top: 5vh; }
}
