/* Ninjible intake-widget — alle regels scoped onder .nj-intake / .nj-modal-overlay
   Tokens komen 1-op-1 van ninjible2026 (UnoCSS): orange #FE8100, orange-light #FAF6F2,
   gray-brown #7D5535, gray-brown-dark #2F1B0A. Fonts: DegularDisplay + Roboto. */

.nj-intake,
.nj-modal-overlay {
  --nj-orange: #fe8100;
  --nj-cream: #faf6f2;
  --nj-brown: #7d5535;
  --nj-dark: #2f1b0a;
  --nj-white: #ffffff;
  --nj-font-display: 'DegularDisplay', system-ui, -apple-system, sans-serif;
  --nj-font-ui: 'Roboto', system-ui, sans-serif;
  font-family: var(--nj-font-display);
  color: var(--nj-dark);
  box-sizing: border-box;
}

.nj-intake *,
.nj-modal-overlay *,
.nj-intake *::before,
.nj-modal-overlay *::before,
.nj-intake *::after,
.nj-modal-overlay *::after {
  box-sizing: inherit;
}

/* ---------- Hero-element ---------- */
.nj-intake {
  background: var(--nj-cream);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.nj-titlebox {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nj-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--nj-brown);
}

.nj-title .nj-accent {
  color: var(--nj-orange);
}

.nj-modalbtn {
  font-family: var(--nj-font-ui);
  border-radius: 9999px;
  background-color: rgba(254, 129, 0, var(--un-bg-opacity));
  padding: 13px 22px;
  text-align: center;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  margin-left: auto;
  --un-text-opacity: 1;
  color: rgba(1, 1, 1, var(--un-text-opacity));
}

.nj-inputwrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1220px;
}

.nj-inputwrap textarea {
  flex: 1;
  resize: none;
  outline: none;
  background: transparent;
  font-family: var(--nj-font-ui);
  line-height: 1.4;
  color: var(--nj-dark);
  display: block;
  background: var(--nj-white);
  border: 1px solid var(--nj-orange);
  padding: 16px 20px;
}

.nj-inputwrap textarea::placeholder {
  color: #8a7a6c;
}

.nj-send {
  border-radius: 100%;
  width: 52px;
  height: 52px;
  border: 0;
  background: var(--nj-orange);
  color: var(--nj-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.nj-send:hover {
  transform: scale(1.06);
}

.nj-send svg {
  width: 24px;
  height: 24px;
}

.nj-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 20px;
  row-gap: 16px;
  max-width: 1280px;
}

.nj-chip {
  font-family: var(--nj-font-ui);
  line-height: 1;
  color: #000;
  background: transparent;
  border: 1px solid var(--nj-brown);
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nj-chip:hover {
  background: #ece1c8;
}

.nj-more {
  font-family: var(--nj-font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(254, 129, 0, var(--un-bg-opacity));
  background: var(--nj-white);
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
}

.nj-more:hover {
  background: #ece1c8;
}

/* ---------- Modal ---------- */
.nj-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(150, 160, 155, 0.31);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.nj-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: min(80vh, 760px);
  background: #fafaf3;
  border-radius: 35px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nj-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
}

.nj-modal-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  color: var(--nj-brown);
}

.nj-modal-head h2 .nj-accent {
  color: var(--nj-orange);
}

.nj-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nj-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--nj-brown);
  padding: 4px 8px;
}

.nj-close:hover {
  color: var(--nj-orange);
}

.nj-iconbtn {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--nj-brown);
  padding: 6px;
  display: flex;
  align-items: center;
}

.nj-iconbtn svg {
  width: 20px;
  height: 20px;
}

.nj-iconbtn:hover {
  color: var(--nj-orange);
}

.nj-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nj-msg {
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 20px;
  font-family: var(--nj-font-ui);
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.nj-msg strong {
  font-weight: 700;
}

.nj-msg-bot a {
  color: var(--nj-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nj-msg-bot a:hover {
  color: var(--nj-brown);
}

.nj-msg-user {
  align-self: flex-end;
  background: var(--nj-orange);
  color: var(--nj-white);
  border-bottom-right-radius: 6px;
}

.nj-msg-bot {
  align-self: flex-start;
  background: var(--nj-white);
  color: var(--nj-dark);
  border-bottom-left-radius: 6px;
}

.nj-modal-empty {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
}

.nj-modal-empty .nj-chips {
  justify-content: center;
}

.nj-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 0 4px;
}

.nj-quick-btn {
  font-family: var(--nj-font-ui);
  font-size: 15px;
  color: #000;
  background: transparent;
  border: 1px solid var(--nj-brown);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nj-quick-btn:hover {
  background: #ece1c8;
}

.nj-typing {
  display: inline-flex;
  gap: 5px;
  padding: 6px 2px;
}

.nj-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nj-brown);
  opacity: 0.4;
  animation: nj-blink 1.2s infinite;
}

.nj-typing i:nth-child(2) {
  animation-delay: 0.2s;
}

.nj-typing i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes nj-blink {

  0%,
  80%,
  100% {
    opacity: 0.25;
  }

  40% {
    opacity: 1;
  }
}

.nj-error {
  align-self: center;
  text-align: center;
  font-family: var(--nj-font-ui);
  font-size: 14px;
  color: var(--nj-brown);
  background: #fff;
  border: 1px solid var(--nj-orange);
  border-radius: 12px;
  padding: 12px 18px;
}

.nj-error a {
  color: var(--nj-orange);
}

/* Scope card */
.nj-scope {
  align-self: stretch;
  background: var(--nj-white);
  border: 1px solid var(--nj-orange);
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nj-scope-label {
  font-family: var(--nj-font-ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--nj-brown);
}

.nj-scope h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--nj-dark);
}

.nj-scope p {
  margin: 0;
  font-family: var(--nj-font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--nj-dark);
}

.nj-scope-approach {
  color: var(--nj-brown);
}

.nj-badge {
  align-self: flex-start;
  font-family: var(--nj-font-ui);
  font-size: 13px;
  color: var(--nj-dark);
  background: var(--nj-cream);
  border: 1px solid var(--nj-brown);
  border-radius: 999px;
  padding: 6px 14px;
}

.nj-scope-tagline {
  margin: 10px 0 0 !important;
  font-family: var(--nj-font-display) !important;
  font-size: 24px !important;
  font-weight: 600;
  color: var(--nj-brown) !important;
}

.nj-scope-tagline .nj-accent {
  color: var(--nj-orange);
}

.nj-scope-question {
  margin: 6px 0 0 !important;
  font-family: var(--nj-font-ui);
  font-weight: 500;
  color: var(--nj-brown);
}

.nj-cta {
  margin-top: 6px;
  align-self: flex-start;
  font-family: var(--nj-font-ui);
  font-size: 16px;
  color: #000;
  background: var(--nj-orange);
  border: 0;
  border-radius: 999px;
  padding: 12px 30px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.nj-cta:hover {
  transform: scale(1.03);
}

/* Chat-invoer onderin modal */
.nj-modal-input {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 28px 20px;
  background: #fafaf3;
}

.nj-modal-input textarea {
  flex: 1;
  height: auto !important;
  border: 1px solid var(--nj-brown);
  border-radius: 16px;
  padding: 12px 16px;
  font-family: var(--nj-font-ui);
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  background: var(--nj-white);
  color: var(--nj-dark);
  max-height: 140px;
  overflow-y: auto;
}

.nj-modal-input textarea:focus {
  border-color: var(--nj-orange);
}

.nj-modal-input .nj-send {
  position: static;
  flex: 0 0 auto;
}

/* Lead form (slide-in paneel) */
.nj-lead {
  position: absolute;
  inset: 0;
  background: #fafaf3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.nj-lead.nj-open {
  transform: translateY(0);
}

.nj-lead form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.nj-lead h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  color: var(--nj-brown);
}

.nj-lead p {
  margin: -8px 0 0;
  font-family: var(--nj-font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nj-dark);
}

.nj-lead label {
  font-family: var(--nj-font-ui);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nj-brown);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nj-lead input {
  border: 1px solid var(--nj-brown);
  border-radius: 12px;
  padding: 15px 18px;
  font-family: var(--nj-font-ui);
  font-size: 16px;
  background: var(--nj-white);
  color: var(--nj-dark);
  outline: none;
}

.nj-lead input:focus {
  border-color: var(--nj-orange);
}

.nj-lead-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 6px;
}

.nj-lead-back {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--nj-font-ui);
  font-size: 14px;
  color: var(--nj-brown);
  text-decoration: underline;
}

.nj-lead-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.nj-lead-thanks img {
  width: min(450px, 70%);
  max-height: min(450px, 40vh);
  object-fit: contain;
  height: auto;
  margin-bottom: 8px;
}

.nj-lead-thanks h3 {
  font-size: 40px;
}

.nj-lead-thanks .nj-cta {
  align-self: center;
  margin-top: 16px;
}

.nj-lead-thanks p {
  margin: 0;
  font-family: var(--nj-font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--nj-dark);
}

/* ---------- Mobiel ---------- */
@media (max-width: 768px) {
  .nj-intake {
    padding: 24px 16px;
    gap: 16px;
  }

  .nj-title {
    width: 100%;
    text-align: center;
  }

  .nj-titlebox {
    justify-content: center;
  }

  .nj-modalbtn {
    margin-left: 0;
  }

  .nj-inputwrap {
    display: none;
    /* padding: 18px 74px 18px 18px; */
  }

  .nj-inputwrap textarea {
    font-size: 17px;
    min-height: 80px;
  }

  .nj-chips {
    column-gap: 10px;
    row-gap: 10px;
  }

  .nj-chip {
    font-size: 14px;
    padding: 10px 18px;
  }

  .nj-modal-overlay {
    padding: 0;
  }

  .nj-modal {
    max-width: none;
    height: 100dvh;
    border-radius: 0;
  }

  .nj-msg {
    font-size: 16px;
  }

  .nj-lead {
    padding: 36px 24px;
  }

  .nj-lead form {
    gap: 20px;
  }
}