/* صفحات شیشه‌ای نیل — هم‌عرض هدر/فوتر (۹۱٪) */
.nsp-page {
  --nsp-accent: #c4a484;
  --nsp-sand: #e4d5c3;
  width: 91%;
  max-width: 91%;
  margin: 1.5rem auto 2.5rem;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  color: #fff;
}

.nsp-glass {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 28px 70px -28px rgba(0, 0, 0, 0.4);
  padding: 2.5rem 2.75rem 2.75rem;
}

.nsp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.nsp-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nsp-accent);
}

.nsp-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fdfdfd;
}

.nsp-page h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--nsp-sand);
}

.nsp-page p,
.nsp-page li {
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}

.nsp-lead {
  margin: 0 0 1.75rem !important;
  font-size: 1.05rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.nsp-page ul,
.nsp-page ol {
  margin: 0.5rem 0 1rem;
  padding-inline-start: 1.25rem;
}

.nsp-page a {
  color: var(--nsp-sand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nsp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0.35rem 0.35rem 0.35rem 0;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: #fff !important;
  color: #111 !important;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.nsp-cta:hover {
  background: var(--nsp-sand) !important;
  color: #111 !important;
}

.nsp-cta--ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.nsp-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.nsp-note {
  margin-top: 1.15rem;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.nsp-contact-list,
.nsp-contact-tips {
  list-style: none;
  padding: 0 !important;
  margin: 0 0 1.5rem !important;
}

.nsp-contact-list li,
.nsp-contact-tips li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nsp-contact-tips li {
  padding-inline-start: 1rem;
  position: relative;
}

.nsp-contact-tips li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1.05rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nsp-accent);
}

/* چیدمان دو ستونه تماس */
.nsp-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.nsp-contact-form-wrap {
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nsp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 0.85rem;
  margin-top: 0.85rem;
}

.nsp-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.nsp-form__full {
  grid-column: 1 / -1;
}

.nsp-form input,
.nsp-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(0, 0, 0, 0.28) !important;
  color: #fff !important;
  padding: 0.78rem 0.95rem;
  font: inherit;
  line-height: 1.4;
  box-shadow: none !important;
  outline: none !important;
}

.nsp-form input:focus,
.nsp-form textarea:focus {
  border-color: rgba(196, 164, 132, 0.7) !important;
  background: rgba(0, 0, 0, 0.38) !important;
}

.nsp-form input::placeholder,
.nsp-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* غلبه بر Kill استایل Hello Elementor برای دکمه فرم */
html body .nsp-page .nsp-form button,
html body .nsp-page .nsp-form .nsp-submit,
html body .nsp-page button.nsp-submit,
html body .nsp-page .nsp-submit[type="submit"] {
  grid-column: 1 / -1;
  justify-self: stretch;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px !important;
  margin-top: 0.35rem;
  padding: 0.75rem 1.4rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #111111 !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.45) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body .nsp-page .nsp-form button:hover,
html body .nsp-page .nsp-form .nsp-submit:hover,
html body .nsp-page button.nsp-submit:hover {
  background: var(--nsp-sand) !important;
  background-color: var(--nsp-sand) !important;
  color: #111111 !important;
}

/* 404 */
.nsp-404 .nsp-code {
  margin: 0.25rem 0 0;
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(196, 164, 132, 0.35) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nsp-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.5rem 0 0.5rem;
}

.nsp-404-help {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nsp-404-help ul {
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .nsp-page {
    width: calc(100% - 1.5rem);
    max-width: none;
    margin: 1rem auto 1.75rem;
  }

  .nsp-glass {
    padding: 1.35rem 1.15rem 1.5rem;
    border-radius: 18px;
  }

  .nsp-contact-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .nsp-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nsp-page {
    width: calc(100% - 1rem);
  }

  .nsp-cta {
    width: 100%;
    margin-inline: 0;
  }

  .nsp-contact-form-wrap {
    padding: 1.1rem 1rem 1.2rem;
  }
}

/* مخفی کردن عنوان پیش‌فرض برگه وقتی ویجت شیشه‌ای هست */
body:has(.nsp-page) .entry-header,
body:has(.nsp-page) .page-header,
body:has(.nsp-page) h1.entry-title,
body:has(.nsp-page) .entry-title {
  display: none !important;
}

/* بدون فوتر در ۴۰۴ */
body.error404 .nft-frame,
body.error404 #neyl-footer-theme,
body.error404 .site-footer,
body.error404 #site-footer,
body.error404 .dynamic-footer,
body.error404 footer.elementor-location-footer {
  display: none !important;
}
