/* File: assets/popup.css */

#afm-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

#afm-popup.hidden {
  display: none;
}

#afm-popup .afm-box {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 380px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

#afm-popup h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

#afm-popup input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

#afm-popup button {
  width: 100%;
  background-color: #2563eb;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

#afm-popup button:hover {
  background-color: #1e40af;
}

#afm-msg {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* File: assets/popup.css */
#afm-popup{z-index:9999}
#afm-close{line-height:1;box-shadow:0 2px 6px rgba(0,0,0,.25)}

.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-block;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#afm-popup > div {
    width: 30%;
    padding: 50px;
}
#afm-popup #afm-close {
    background: #f00;
    color: var(--light-color);
    width: 20px;
    position: absolute;
    top: 20px;
    left: 20px;
}

#afm-popup button#afm-submit {
    background: var(--blue-color);
    color: var(--light-color);
    padding: 14px;
    cursor: pointer;
}

.form-inline input {
    border: 1px solid #444;
    border-radius: 30px;
    padding: 10px 15px;
}

.form-inline button {
    background: var(--blue-color);
    color: var(--light-color);
    border-radius: 40px;
    width: 100px;
    cursor: pointer;
}

#afm-popup .mb {
    flex-direction: row-reverse;
}

#afm-popup .mb span {
    background: var(--blue-color);
    color: var(--light-color);
    height: 37px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-inline-end: 6px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


@media(max-width: 768px) {
    #afm-popup > div {
    width: 95%;
    padding: 20px;
    padding-top: 60px;
}

}


/* تأثير الضباب عند فتح البوب أب */
#afm-popup {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
transition: opacity 0.45s ease, transform 0.45s ease, backdrop-filter 0.6s ease;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

#afm-popup.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
