.dnp-modal,
.dnp-modal * { box-sizing: border-box; }

.dnp-wrap { margin: 18px 0; }

.dnp-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #d4af37;
  color:#fff;
  cursor: pointer;
  font-weight: 600;
}

.dnp-btn:hover {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  color:#008089;
  cursor: pointer;
  font-weight: 600;
}

.dnp-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2147483647;
  pointer-events: none;
}

.dnp-modal.is-open {
  display: block;
  pointer-events: auto;
}

.dnp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2147483646;
}

/* IMPORTANT: no internal scroll */
.dnp-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 20px));
  background: #fff;
  border-radius: 18px;
  padding: 10px 12px 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  z-index: 2147483647;
  overflow: visible; /* NO SCROLLER */
}

/* After drag, use explicit left/top instead of transform */
.dnp-dialog.is-dragged {
  transform: none !important;
}

.dnp-handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 5px;
  border-radius: 12px;
  background: rgba(0,0,0,0.06);
  user-select: none;
  cursor: move;
  color:#ccc;
  width: fit-content;
  margin-bottom: 8px; /* tighter */
  touch-action: none;
}

.dnp-handle-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  display: inline-block;
}

.dnp-handle-text {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
}

.dnp-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* Tight image spacing + shrink to fit viewport */
.dnp-art {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 3px 0 4px; /* tighter gap */
}

.dnp-art img {
  width: min(500px, 100%);
  height: auto;
  max-height: min(500px, 45vh); /* shrink instead of scrolling */
  border-radius: 14px;
  display: block;
  object-fit: cover;
}

.dnp-title {
  margin: 4px 0 4px;
  font-size: 30px;
  line-height: 1.2;
  color:#d4af37;
  text-align: center;
}

.dnp-desc {
  margin: 0 0 5px;
  opacity: 0.78;
  font-size: 13px;
  color:#000;
  text-align: center;
}

/* Form layout */
.dnp-form { display: grid; gap: 4px; }

.dnp-label {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.9;
  margin-bottom: 0;
  color:#d4af37;
  text-align: center;
}

/* Input + button side by side */
.dnp-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.dnp-input {
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  outline: none;
  width: 100%;
  min-width: 0;
}

.dnp-input:focus { border-color: rgba(0,0,0,0.35); }

.dnp-submit {
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  background: #d3b044; /* your gold-ish button */
  color: #fff;
  white-space: nowrap;
}

.dnp-msg {
  min-height: 16px;
  font-size: 13px;
  padding-top: 2px;
}

.dnp-msg.ok { color: #0b6b2f; font-weight: 700; }
.dnp-msg.err { color: #b00020; font-weight: 700; }

.dnp-fineprint {
  font-size: 12px;
  opacity: 0.65;
}

/* Mobile: still side-by-side if possible, but fallback stack if too tight */
@media (max-width: 420px) {
  .dnp-row { grid-template-columns: 1fr; }
  .dnp-submit { width: 100%; }
}

/* Lock background scroll when modal open */
body.dnp-modal-open { overflow: hidden; }
