.jpnp-lock {
  overflow: hidden;
}

.jpnp-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 36, 56, 0.48);
}

.jpnp-overlay.jpnp-visible {
  display: flex;
}

.jpnp-dialog {
  position: relative;
  width: min(610px, 100%);
  box-sizing: border-box;
  padding: 28px 32px 24px;
  border: 2px solid #123f5d;
  border-radius: 14px;
  background: #f7f0de;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  text-align: center;
  color: #17364c;
}

.jpnp-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #123f5d;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.jpnp-ornament {
  margin-bottom: 2px;
  color: #b5913a;
  font-size: 30px;
  line-height: 1;
}

.jpnp-dialog h2 {
  margin: 2px 0 10px;
  color: #123f5d;
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 700;
  line-height: 1.05;
}

.jpnp-intro {
  margin: 0 auto 18px;
  max-width: 525px;
  color: #4f5a61;
  font-size: 16.5px;
  line-height: 1.45;
}

.jpnp-label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
  color: #17364c;
}

.jpnp-row {
  display: flex;
  gap: 10px;
}

.jpnp-email {
  flex: 1 1 390px;
  min-width: 0;
  height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #333;
  border-radius: 7px;
  background: #fffdf7;
  font-size: 16px;
}

.jpnp-email:focus {
  outline: 2px solid rgba(18, 63, 93, 0.22);
  outline-offset: 1px;
  border-color: #123f5d;
}

.jpnp-submit {
  flex: 0 0 auto;
  min-width: 145px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  background: #123f5d;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  white-space: nowrap;
}

.jpnp-submit:hover,
.jpnp-submit:focus {
  filter: brightness(1.08);
}

.jpnp-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.jpnp-message {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 14px;
}

.jpnp-message.jpnp-success {
  color: #176b35;
}

.jpnp-message.jpnp-error {
  color: #a32424;
}

.jpnp-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #4a545b;
}

@media (max-width: 640px) {
  .jpnp-dialog {
    width: min(94vw, 610px);
    padding: 26px 18px 22px;
  }

  .jpnp-row {
    flex-direction: column;
  }

  .jpnp-email,
  .jpnp-submit {
    width: 100%;
    min-width: 0;
  }
}
