/* Newsletter – Nasim Sahel (v2) */

.ns-nl-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  background: #e11d48;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.ns-nl-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Modal */
.ns-nl-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.ns-nl-modal.is-open {
  display: block;
}

.ns-nl-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.ns-nl-dialog {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 60px auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  direction: rtl;
  text-align: right;
}

.ns-nl-close {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  background: #f3f3f3;
}

.ns-nl-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.ns-nl-form {
  display: grid;
  gap: 10px;
}

.ns-nl-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #333;
}

.ns-nl-field input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.ns-nl-field input:focus {
  border-color: #999;
}

.ns-nl-hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: #666;
}

.ns-nl-submit {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 14px;
  background: #e11d48;
  color: #fff;
}

.ns-nl-msg {
  min-height: 20px;
  font-size: 13px;
  margin-top: 2px;
}

.ns-nl-msg.is-ok { color: #0a7a2f; }
.ns-nl-msg.is-err { color: #b00020; }

/* وقتی مودال باز است، اسکرول صفحه قفل شود */
html.ns-nl-modal-open,
html.ns-nl-modal-open body {
  overflow: hidden;
}
