/* ==========================================================================
   TV Kikinda — Kontakt: our details, the contact form and the full-width map
   ========================================================================== */

.kontakt {
  --k-error: #c81e23;
  --k-ok: #157a3c;
  --k-field: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kontakt { --k-error: #ff7b7f; --k-ok: #5fd68b; }
}
:root[data-theme="dark"] .kontakt { --k-error: #ff7b7f; --k-ok: #5fd68b; }

.kontakt__body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; /* both cards as tall as the taller one */
  padding-block: clamp(36px, 5vw, 72px);
}

/* ---------- Our details ---------- */
.kinfo {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 24px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--grad-v); color: #fff;
}
.kinfo::after {
  content: ''; position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 140px; height: 260px;
  background: var(--orange); opacity: .14; transform: skewX(var(--skew));
}
.kinfo__title { font: italic 900 clamp(1.8rem, 1.3rem + 1.2vw, 2.4rem)/1 var(--font-display); text-transform: uppercase; }
.kinfo__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.kinfo__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; }
.kinfo__list .ico { width: 24px; height: 24px; margin-top: 18px; color: var(--orange); stroke: var(--orange); }
.kinfo__list span { display: grid; gap: 3px; font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.kinfo__list small {
  font: 800 .74rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.kinfo__list a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.kinfo__list a:hover { color: var(--orange-300); text-decoration-color: currentColor; }
.kinfo__list .kinfo__desk { padding-left: 38px; grid-template-columns: minmax(0, 1fr); margin-top: -6px; }
.kinfo__list .kinfo__desk span { font-size: .98rem; }
.kinfo__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.kinfo__social a {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s, color .2s, transform .3s var(--ease-out);
}
.kinfo__social a:hover { background: var(--orange); color: var(--navy-950); transform: translateY(-2px); }
.kinfo__social .ico { width: 20px; height: 20px; }
.kinfo a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Form ---------- */
.kform {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.kform__title { font: italic 900 clamp(1.8rem, 1.3rem + 1.2vw, 2.4rem)/1 var(--font-display); text-transform: uppercase; margin-bottom: 22px; }
.kform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.kform__field { display: grid; gap: 7px; align-content: start; margin: 0; }
.kform__field--wide { grid-column: 1 / -1; }
.kform__field label { font-weight: 700; color: var(--ink); }
.kform__req { color: var(--orange-ink); }
.kform__opt { font-weight: 500; color: var(--muted); font-size: .9rem; }
.kform input:not([type="checkbox"]):not([type="hidden"]), .kform select, .kform textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line-strong);
  background: var(--k-field); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.kform textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.kform select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.kform input:hover, .kform select:hover, .kform textarea:hover { border-color: var(--muted); }
.kform input:focus-visible, .kform select:focus-visible, .kform textarea:focus-visible {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(247, 148, 29, .55);
}
.kform [aria-invalid="true"] { border-color: var(--k-error) !important; }
.kform__error { margin: 0; color: var(--k-error); font-size: .92rem; font-weight: 600; }
.kform__check { grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.kform__check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--orange); cursor: pointer; }
.kform__check label { font-weight: 500; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.kform__check .kform__error { grid-column: 2; }
.kform__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 26px 0 0; }
.kform__actions .btn { padding-inline: 32px; }
.kform__actions .btn .ico { width: 18px; height: 18px; }
.kform__note { color: var(--muted); font-size: .9rem; }
.kform__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.kform__notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; margin-bottom: 22px;
  padding: 14px 16px; border-radius: var(--r); border-left: 4px solid; background: var(--surface-2); color: var(--ink);
}
.kform__notice p { margin: 0; }
.kform__notice:focus { outline: none; }
.kform__notice--ok { border-color: var(--k-ok); }
.kform__notice--ok .ico { width: 22px; height: 22px; color: var(--k-ok); stroke: var(--k-ok); }
.kform__notice--error { border-color: var(--k-error); grid-template-columns: minmax(0, 1fr); }
.kform__notice ul { margin: 6px 0 0; padding-left: 18px; }
.kform__notice a { color: var(--k-error); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Map: full width, right above the footer ---------- */
.kmap { position: relative; height: clamp(360px, 42vw, 560px); background: var(--surface-2); }
.kmap__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.kmap.is-guarded .kmap__frame { pointer-events: none; }
.kmap__guard { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; cursor: grab; background: transparent; }
.kmap:not(.is-guarded) .kmap__guard { display: none; }
.kmap__guard span {
  padding: 10px 16px; border-radius: 999px; background: rgba(7, 7, 26, .82); color: #fff;
  font: 800 .8rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease-out);
}
.kmap__guard:hover span, .kmap__guard:focus-visible span { opacity: 1; transform: none; }
.kmap__guard:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.kmap__overlay { position: absolute; z-index: 2; inset: auto 0 clamp(24px, 4vw, 48px); pointer-events: none; }
.kmap__card {
  pointer-events: auto; display: grid; gap: 10px; width: min(380px, 100%);
  padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--orange);
}
.kmap__card .sec-head__eyebrow { margin: 0; }
.kmap__address { margin: 0; font: italic 900 1.5rem/1.05 var(--font-display); text-transform: uppercase; }
.kmap__links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; }

@media (max-width: 960px) {
  .kontakt__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .kform__grid { grid-template-columns: minmax(0, 1fr); }
  .kform__actions .btn { width: 100%; }
  .kmap { height: auto; display: flex; flex-direction: column; }
  .kmap__frame { position: relative; height: 340px; }
  .kmap__guard { bottom: auto; height: 340px; }
  .kmap__overlay { position: static; padding-block: 0; }
  .kmap__card { width: auto; margin-block: -40px 24px; position: relative; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .kinfo__social a, .kform input, .kform select, .kform textarea { transition: none; }
}
