.nl-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nl-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 30, 58, 0.55);
  backdrop-filter: blur(4px);
}

.nl-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 640px);
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(11, 30, 58, 0.2);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-modal.is-open .nl-modal__panel {
  transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
  .nl-modal__panel {
    grid-template-columns: 1fr 1fr;
    max-height: min(88vh, 520px);
  }
}

.nl-modal__visual {
  min-height: 200px;
  background: #0b1e3a;
}

.nl-modal__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nl-modal__content {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .nl-modal__content {
    padding: 2rem 2rem 1.75rem;
  }
}

.nl-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0b1e3a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.nl-modal__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0b1e3a;
  line-height: 1.25;
  padding-right: 2rem;
}

.nl-modal__subtitle {
  font-size: 0.875rem;
  color: #667085;
  line-height: 1.5;
}

.nl-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.nl-modal__input {
  width: 100%;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
  outline: none;
}

.nl-modal__input:focus {
  border-color: #0b1e3a;
  box-shadow: 0 0 0 3px rgba(11, 30, 58, 0.08);
}

.nl-modal__submit {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  background: #0b1e3a;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nl-modal__submit:hover {
  opacity: 0.92;
}

.nl-modal__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.nl-modal__msg {
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1.25rem;
}

.nl-modal__msg.is-ok { color: #027a48; }
.nl-modal__msg.is-err { color: #b42318; }
