/* nn-modal.css — confirmation dialog shown after a form is submitted. */

.nn-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(35, 31, 32, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nn-modal-overlay.is-open { opacity: 1; visibility: visible; }

.nn-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  padding: 48px 52px 40px;
  background: #FCF9F2;
  border: 1px solid #DFD3BE;
  border-radius: 3px;
  text-align: center;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 24px 60px rgba(35, 31, 32, 0.22);
}
.nn-modal-overlay.is-open .nn-modal { transform: none; }

@media (max-width: 680px) {
  .nn-modal { padding: 42px 32px 34px; }
  .nn-modal h3 { font-size: 30px; }
}

@media (max-width: 480px) {
  .nn-modal { padding: 36px 24px 30px; }
  .nn-modal h3 { font-size: 26px; }
  .nn-modal p { font-size: 14.5px; }
}

/* lotus / kbach mark above the message */
.nn-modal-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  display: block;
}

.nn-modal h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 1.14;
  color: #603620;
  text-wrap: balance;
  text-wrap: pretty;
}

.nn-modal p {
  margin: 0 auto;
  max-width: 46ch;
  font-family: "Manrope", sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: #6B615A;
  text-wrap: balance;
  text-wrap: pretty;
}

.nn-modal .nn-modal-note {
  margin-top: 14px;
  max-width: 50ch;
  font-size: 13px;
  line-height: 1.65;
  color: #9A8F86;
}

.nn-modal-close {
  margin-top: 28px;
  padding: 15px 34px;
  background: #B56637;
  border: none;
  border-radius: 2px;
  color: #FCF9F2;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.nn-modal-close:hover { background: #E2B98F; color: #231F20; }
.nn-modal-close:focus-visible { outline: 2px solid #603620; outline-offset: 3px; }

/* small × in the corner */
.nn-modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  color: #9A8F86;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease;
}
.nn-modal-x:hover { color: #B56637; }
.nn-modal-x:focus-visible { outline: 2px solid #B56637; outline-offset: 2px; }

/* error variant */
.nn-modal.is-error .nn-modal h3,
.nn-modal.is-error h3 { color: #B54B37; }

body.nn-modal-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nn-modal-overlay,
  .nn-modal { transition: none; }
}
