/* ==========================================================================
   Nomád Mackó – Kapcsolat popup
   A foglalási naptár dizájnjával közös: DM Sans törzs, Garet gombok,
   törtfehér papír, #BF9C72 hover.
   ========================================================================== */

.nmk-app {
  --paper:    #ffffff;
  --ink:      #1c1c1a;
  --ink-soft: #3b3b37;
  --muted:    #7a776f;
  --line:     #e6e2d8;
  --accent:   #BF9C72;
  --font:     "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --btn-font: "Garet", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nmk-app, .nmk-app * { box-sizing: border-box; }

/* ---------- Modal háttér + doboz ---------- */
.nmk-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 26, .45);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.nmk-modal-bg.show { display: flex; }

.nmk-modal {
  position: relative;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(28, 28, 26, .25);
  width: 100%;
  max-width: 520px;
  padding: 34px 36px;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.6;
  animation: nmk-pop .18s ease;
}
@keyframes nmk-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.nmk-modal h2 {
  font-family: var(--btn-font) !important;
  font-weight: 300 !important;
  font-size: 26px !important;
  line-height: 1.25 !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  letter-spacing: .01em !important;
  color: var(--ink) !important;
  white-space: nowrap;
}
.nmk-modal .sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }

.nmk-modal .x {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
}
.nmk-modal .x:hover { color: var(--ink); }

/* ---------- Mezők ---------- */
.nmk-field { margin-bottom: 14px; }
.nmk-field label {
  display: block;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.nmk-field input,
.nmk-field textarea {
  width: 100%;
  border: 1px solid var(--ink) !important;
  border-radius: 8px;
  background: #fdfcf9;
  padding: 12px 14px;
  font-family: var(--font) !important;
  font-size: .95rem;
  color: var(--ink);
  outline: none;
}
.nmk-field input:focus,
.nmk-field textarea:focus { border-color: var(--accent) !important; }
.nmk-field textarea { min-height: 110px; resize: vertical; }

.nmk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .nmk-row2 { grid-template-columns: 1fr; } }

/* honeypot: teljesen a látótéren kívül */
.nmk-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ---------- Gomb (a naptáréval azonos) ---------- */
.nmk-btn {
  display: inline-block;
  border: 1px solid var(--ink) !important;
  background: transparent !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  font-family: var(--btn-font) !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  border-radius: 0;
}
.nmk-btn.solid {
  display: block;
  width: 100%;
  padding: 14px 12px;
  font-size: .9rem;
  line-height: 1.4;
  white-space: normal;
}
.nmk-btn.small { padding: 10px 22px; font-size: 13px; }
.nmk-btn:hover:not(:disabled) {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.nmk-btn:disabled { opacity: .4; cursor: default; }

/* ---------- Hiba / siker ---------- */
.nmk-error {
  display: none;
  background: #f9e8e8;
  border: 1px solid #e4adad;
  color: #8a3a3a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .9rem;
  margin-bottom: 14px;
}
.nmk-error.show { display: block; }

.nmk-ok {
  text-align: center;
  background: #eef6e4;
  border: 1px solid #cbe6b1;
  color: #3f6029;
  border-radius: 8px;
  padding: 18px 16px;
  font-size: 1rem;
}
