/* Contact popup – shared by civilerdek.hu and godollo.civilerdek.hu.
   Self-contained (own tokens, uz- prefix) so it looks the same on the plain-CSS
   main site and on the Tailwind sub-sites. Loaded together with /js/uzenet.js. */
.uz-modal {
  --uz-ink: #0f1f17;
  --uz-muted: #4b5d53;
  --uz-green: #14532d;
  --uz-green-2: #1f7a45;
  --uz-paper: #f6f4ee;
  --uz-line: #ddd8cc;
  --uz-red: #b42318;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--uz-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 24px 60px rgba(15, 31, 23, .28);
  overflow: auto;
}
.uz-modal::backdrop { background: rgba(15, 31, 23, .55); }
.uz-modal *, .uz-modal *::before, .uz-modal *::after { box-sizing: border-box; }
.uz-modal [hidden] { display: none !important; }

.uz-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px 28px;
  background: #fff;
  border-bottom: 1px solid var(--uz-line);
}
.uz-title { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.uz-close {
  flex: none;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--uz-paper);
  color: var(--uz-ink);
  font: inherit;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.uz-close:hover { background: var(--uz-line); }
.uz-close:focus-visible { outline: 3px solid var(--uz-green-2); outline-offset: 2px; }
.uz-close:disabled { opacity: .4; cursor: not-allowed; }

.uz-body { padding: 20px 28px 28px; }
.uz-field { margin: 0 0 16px; }
.uz-field label { display: block; margin: 0 0 6px; font-weight: 600; }
.uz-optional { font-weight: 400; color: var(--uz-muted); }
.uz-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #c9c3b5;
  border-radius: 10px;
  background: #fff;
  color: var(--uz-ink);
  font: inherit;
}
textarea.uz-input { resize: vertical; min-height: 140px; }
input[type="file"].uz-input { padding: 9px 12px; }
.uz-input:focus-visible { outline: 3px solid var(--uz-green-2); outline-offset: 1px; border-color: var(--uz-green-2); }
.uz-input[aria-invalid="true"] { border-color: var(--uz-red); }
.uz-hint { margin: 4px 0 0; font-size: .9rem; color: var(--uz-muted); }
.uz-error { margin: 4px 0 0; font-size: .9rem; color: var(--uz-red); }
.uz-error:empty { display: none; }

.uz-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.uz-turnstile { min-height: 65px; margin: 4px 0 12px; }
.uz-note { margin: 0 0 12px; font-size: .9rem; color: var(--uz-muted); }
.uz-progress { display: block; width: 100%; height: 8px; margin: 0 0 12px; accent-color: var(--uz-green); }
.uz-status { margin: 0 0 12px; font-weight: 600; }
.uz-status:empty { display: none; }
.uz-status.is-error { color: var(--uz-red); }

.uz-btn {
  display: inline-block;
  margin: 0;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--uz-green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.uz-btn:hover { background: var(--uz-green-2); }
.uz-btn:focus-visible { outline: 3px solid var(--uz-green-2); outline-offset: 3px; }
.uz-btn:disabled { opacity: .6; cursor: wait; }

.uz-eyebrow { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--uz-green-2); }
.uz-success h3 { margin: 0 0 12px; font-size: 1.4rem; font-weight: 800; }
.uz-success p:last-child { margin: 0; color: var(--uz-muted); }

@media (max-width: 560px) {
  .uz-head { padding: 14px 12px 10px 18px; }
  .uz-body { padding: 16px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { .uz-btn { transition: none; } }
