/* ============================================================
   NxtGen Network — Universal signup popup styles
   Locked tokens: bg #0D0D0D, card #141414, accent #F05A28,
   body text #CCCCCC, Montserrat headers, Open Sans body.
   ============================================================ */

#ngn-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
#ngn-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

#ngn-popup .ngn-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#ngn-popup .ngn-popup__card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #141414;
  border: 1px solid rgba(240, 90, 40, 0.18);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform: translateY(10px) scale(0.98);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  color: #CCCCCC;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#ngn-popup.is-open .ngn-popup__card {
  transform: translateY(0) scale(1);
}

#ngn-popup .ngn-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #888888;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
  padding: 0;
}
#ngn-popup .ngn-popup__close:hover,
#ngn-popup .ngn-popup__close:focus-visible {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

#ngn-popup .ngn-popup__body {
  padding: 26px 28px 22px;
}

#ngn-popup .ngn-popup__eyebrow {
  margin: 0 0 10px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F05A28;
}

#ngn-popup .ngn-popup__title {
  margin: 0 0 6px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  letter-spacing: -0.005em;
}

#ngn-popup .ngn-popup__sub {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #A8A8A8;
}

/* ---- Form ---- */
#ngn-popup .ngn-popup__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ngn-popup .ngn-popup__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#ngn-popup .ngn-popup__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#ngn-popup .ngn-popup__label {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B8B8B8;
}

#ngn-popup input[type="text"],
#ngn-popup input[type="email"],
#ngn-popup select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #0D0D0D;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  color: #FFFFFF;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
#ngn-popup select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23F05A28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

#ngn-popup input:focus,
#ngn-popup select:focus {
  border-color: #F05A28;
  background: #101010;
  box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.18);
}

#ngn-popup input::placeholder {
  color: #6E6E6E;
}

/* ---- Group (radios / checkboxes) ---- */
#ngn-popup .ngn-popup__group {
  margin-top: 6px;
}
#ngn-popup .ngn-popup__group-label {
  display: block;
  margin: 0 0 8px 2px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B8B8B8;
}
#ngn-popup .ngn-popup__group-box {
  border: 1px solid #232323;
  border-radius: 10px;
  padding: 10px 14px;
  background: #101010;
}

#ngn-popup .ngn-popup__radio,
#ngn-popup .ngn-popup__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: #DDDDDD;
  line-height: 1.4;
}
#ngn-popup .ngn-popup__radio input,
#ngn-popup .ngn-popup__check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #F05A28;
  margin: 0;
  cursor: pointer;
}
#ngn-popup .ngn-popup__radio:hover,
#ngn-popup .ngn-popup__check:hover {
  color: #FFFFFF;
}

#ngn-popup .ngn-popup__other-field {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed #2A2A2A;
}
#ngn-popup [hidden] {
  display: none !important;
}

/* Honeypot — invisible to humans, filled by bots */
#ngn-popup .ngn-popup__honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Textarea (Information on… message) */
#ngn-popup textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0D0D0D;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  color: #FFFFFF;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 72px;
  transition: border-color 150ms ease;
}
#ngn-popup textarea:focus {
  border-color: #F05A28;
  outline: none;
}
#ngn-popup textarea::placeholder {
  color: #6E6E6E;
}
#ngn-popup .ngn-popup__info-field {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed #2A2A2A;
}

/* ---- Submit button ---- */
#ngn-popup .ngn-popup__submit {
  margin-top: 6px;
  height: 46px;
  background: #F05A28;
  border: none;
  border-radius: 8px;
  color: #FFFFFF;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease, box-shadow 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
}
#ngn-popup .ngn-popup__submit:hover:not(:disabled) {
  background: #C94820;
  box-shadow: 0 6px 18px rgba(240, 90, 40, 0.28);
}
#ngn-popup .ngn-popup__submit:active:not(:disabled) {
  transform: translateY(1px);
}
#ngn-popup .ngn-popup__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
#ngn-popup .ngn-popup__submit.is-loading {
  background: #C94820;
}

#ngn-popup .ngn-popup__legal {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6E6E6E;
  text-align: center;
}

/* ---- Success state ---- */
#ngn-popup .ngn-popup__success {
  text-align: center;
  padding: 12px 0 8px;
}
#ngn-popup .ngn-popup__success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(240, 90, 40, 0.12);
  color: #F05A28;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ngn-popup .ngn-popup__success-title {
  margin: 0 0 8px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}
#ngn-popup .ngn-popup__success-msg {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #A8A8A8;
}
#ngn-popup .ngn-popup__socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
#ngn-popup .ngn-popup__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: transparent;
  border: 1px solid #F05A28;
  border-radius: 8px;
  color: #F05A28;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
#ngn-popup .ngn-popup__social:hover {
  background: #F05A28;
  color: #FFFFFF;
}

/* ---- Body lock when open ---- */
body.ngn-popup-open {
  overflow: hidden;
}

/* ---- Mobile ---- */
@media (max-width: 560px) {
  #ngn-popup { padding: 0; align-items: flex-end; }
  #ngn-popup .ngn-popup__card {
    max-width: none;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    transform: translateY(30px);
  }
  #ngn-popup.is-open .ngn-popup__card {
    transform: translateY(0);
  }
  #ngn-popup .ngn-popup__body { padding: 28px 22px 22px; }
  #ngn-popup .ngn-popup__title { font-size: 20px; }
  #ngn-popup .ngn-popup__row { grid-template-columns: 1fr; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  #ngn-popup,
  #ngn-popup .ngn-popup__card {
    transition: none !important;
  }
  #ngn-popup .ngn-popup__card { transform: none !important; }
}
