.nl-img-intake {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nl-img-intake.is-open {
  opacity: 1;
  visibility: visible;
}

.nl-img-intake[hidden] {
  display: none !important;
}

.nl-img-intake:not([hidden]).is-open {
  display: flex !important;
}

.nl-img-intake-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 6, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nl-img-intake-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92vh, 680px);
  overflow: auto;
  padding: 1.65rem 1.5rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 157, 0.35);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(168, 85, 247, 0.18), transparent 55%),
    linear-gradient(165deg, rgba(8, 18, 14, 0.98) 0%, rgba(4, 10, 8, 0.99) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(0, 255, 157, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #ecfff8;
}

.nl-img-intake-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.nl-img-intake-close:hover {
  border-color: rgba(0, 255, 157, 0.45);
  color: #00ff9d;
}

.nl-img-intake-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #faf5ff;
  background: linear-gradient(135deg, #c084fc, #7c3aed);
  border: 1px solid rgba(192, 132, 252, 0.5);
}

.nl-img-intake-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 800;
  color: #00ff9d;
  text-shadow: 0 0 18px rgba(0, 255, 157, 0.35);
}

.nl-img-intake-lead {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(236, 255, 248, 0.72);
}

.nl-img-intake-step-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 255, 157, 0.75);
}

.nl-img-intake-question {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.nl-img-intake-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  max-height: min(42vh, 280px);
  overflow: auto;
  padding-right: 0.15rem;
}

.nl-img-intake-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nl-img-intake-option:hover {
  border-color: rgba(0, 255, 157, 0.35);
  background: rgba(0, 255, 157, 0.06);
}

.nl-img-intake-option:has(input:checked) {
  border-color: rgba(0, 255, 157, 0.55);
  background: rgba(0, 255, 157, 0.1);
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.15);
}

.nl-img-intake-option-highlight:has(input:checked) {
  border-color: rgba(192, 132, 252, 0.65);
  background: rgba(168, 85, 247, 0.14);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.2);
}

.nl-img-intake-option input {
  flex-shrink: 0;
  accent-color: #00ff9d;
}

.nl-img-intake-textarea {
  width: 100%;
  min-height: 96px;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nl-img-intake-textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.nl-img-intake-textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.12);
}

.nl-img-intake-error {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: #ff8a9a;
}

.nl-img-intake-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.nl-img-intake-btn-primary {
  width: 100%;
  color: #04140e;
  background: linear-gradient(135deg, #00ff9d, #00d4aa);
  box-shadow: 0 8px 24px rgba(0, 255, 157, 0.25);
}

.nl-img-intake-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 255, 157, 0.32);
}

.nl-img-intake-actions {
  display: flex;
  gap: 0.65rem;
}

.nl-img-intake-actions .nl-img-intake-btn-primary {
  flex: 1;
  width: auto;
}

.nl-img-intake-btn-ghost {
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

.nl-img-intake-btn-ghost:hover {
  border-color: rgba(0, 255, 157, 0.4);
  color: #00ff9d;
}

html[data-theme="light"] .nl-img-intake-backdrop {
  background: rgba(245, 249, 247, 0.82);
}

html[data-theme="light"] .nl-img-intake-dialog {
  border-color: rgba(0, 122, 77, 0.28);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(168, 85, 247, 0.1), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f5fbf8 100%);
  box-shadow: 0 20px 50px rgba(0, 90, 60, 0.15);
  color: #102018;
}

html[data-theme="light"] .nl-img-intake-title {
  color: #007a4d;
  text-shadow: none;
}

html[data-theme="light"] .nl-img-intake-lead,
html[data-theme="light"] .nl-img-intake-option {
  color: #3d5348;
}

html[data-theme="light"] .nl-img-intake-question {
  color: #102018;
}

html[data-theme="light"] .nl-img-intake-option {
  background: #fff;
  border-color: rgba(0, 90, 60, 0.14);
}

html[data-theme="light"] .nl-img-intake-option:has(input:checked) {
  background: rgba(0, 255, 157, 0.08);
}

html[data-theme="light"] .nl-img-intake-textarea {
  background: #fff;
  color: #102018;
  border-color: rgba(0, 90, 60, 0.2);
}

html[data-theme="light"] .nl-img-intake-close {
  color: #3d5348;
  background: #fff;
}

@media (max-width: 480px) {
  .nl-img-intake-dialog {
    padding: 1.35rem 1.1rem 1.15rem;
    border-radius: 16px;
  }

  .nl-img-intake-actions {
    flex-direction: column-reverse;
  }

  .nl-img-intake-actions .nl-img-intake-btn {
    width: 100%;
  }
}
