.nhp-popup-overlay,
.nhp-popup-overlay * {
  box-sizing: border-box;
  font-family: "Vazirmatn", "IRANSans", Tahoma, sans-serif;
}

.nhp-popup-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999999;
  direction: rtl;
}

.nhp-popup-overlay.nhp-is-visible {
  display: flex;
}

.nhp-popup-card {
  width: min(390px, 100%);
  background: #f2f2f2;
  border-radius: 28px;
  padding: 42px 28px 28px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: nhpPopupShow 0.35s ease;
}

@keyframes nhpPopupShow {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nhp-close-popup {
  position: absolute;
  top: 15px;
  left: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #222222;
  font-size: 24px;
  line-height: 34px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: 0.25s ease;
  padding: 0;
}

.nhp-close-popup:hover {
  background: #ff2537;
  color: #ffffff;
  transform: rotate(90deg);
}

.nhp-popup-icon {
  position: absolute;
  top: 25px;
  right: 26px;
  font-size: 28px;
  color: #ff2537;
}

.nhp-popup-title {
  font-size: 25px;
  font-weight: 900;
  color: #111111;
  margin: 0 0 8px;
  line-height: 1.6;
}

.nhp-popup-title strong {
  color: #ff2537;
  font-weight: 900;
}

.nhp-popup-subtitle {
  color: #555555;
  font-size: 14px;
  margin: 0 0 28px;
}

.nhp-popup-offer {
  color: #f11928;
  font-size: 15px;
  font-weight: 900;
  margin: 0 0 24px;
}

.nhp-phone-input {
  width: 100%;
  height: 52px;
  border: none;
  outline: none;
  border-radius: 28px;
  background: #ffffff;
  padding: 0 22px;
  text-align: center;
  color: #333333;
  font-size: 15px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.nhp-phone-input::placeholder {
  color: #b8b8b8;
}

.nhp-submit-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff3d4f, #ed121f);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(241, 25, 40, 0.32);
  transition: 0.25s ease;
}

.nhp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(241, 25, 40, 0.42);
}

.nhp-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.nhp-popup-note {
  margin: 18px 0 0;
  color: #777777;
  font-size: 12.5px;
  line-height: 1.8;
}

.nhp-message {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  display: none;
}

.nhp-message.nhp-success {
  display: block;
  color: #16a34a;
}

.nhp-message.nhp-error {
  display: block;
  color: #dc2626;
}

@media (max-width: 420px) {
  .nhp-popup-card {
    padding: 42px 22px 24px;
  }

  .nhp-popup-title {
    font-size: 22px;
  }
}
