/* OMNISHIELD – okno „Chcę otrzymać katalog” (catalog.js). Pola formularza z contact.css (osc-). Prefiks osk-. */

/* Okno jest dołączane do <body>, poza kontenerem .osh, więc nie dziedziczy jego zmiennych –
   kopia tokenów z home.css (.osh). Bez tego przycisk „Wyślij” ma przezroczyste tło. */
.osk {
  --osh-ink: #111111;
  --osh-text: #555555;
  --osh-muted: #666666;
  --osh-accent: #3841be;
  --osh-btn: #4c56e6;
  --osh-btn-hover: #3841be;
  --osh-tint: #efeffe;
  --osh-card: #ffffff;
  --osh-shadow: 0 1px 2px 0 rgba(69, 69, 69, 0.24), 0 0 0 1px rgba(71, 71, 71, 0.08);
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.osk *, .osk *::before, .osk *::after { box-sizing: border-box; }

.osk {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--osh-card, #fff);
  color: var(--osh-ink, #111);
  box-shadow: 0 30px 80px -20px rgba(20, 25, 90, 0.45);
  overflow: auto;
  overscroll-behavior: contain;
}
.osk::backdrop { background: rgba(17, 17, 40, 0.55); backdrop-filter: blur(2px); }
.osk-form, .osk-done { padding: 36px 32px 32px; }
.osk h2 { padding-right: 40px; font-size: clamp(24px, 3vw, 28px); line-height: 1.2; font-weight: 600; }
.osk h2 span { color: var(--osh-accent, #3841be); }
.osk-lead { margin-top: 8px !important; font-size: 15px; line-height: 1.55; color: var(--osh-muted, #666); }

.osk-close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--osh-tint, #efeffe); color: var(--osh-accent, #3841be);
  cursor: pointer;
}
.osk-close svg { width: 20px; height: 20px; }
.osk-close:hover { background: #e3e4fd; }
.osk-close:focus-visible { outline: 3px solid rgba(76, 86, 230, 0.35); outline-offset: 2px; }

.osk-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.osk-choice legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; color: var(--osh-ink, #111); }
.osk-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(56, 65, 190, 0.22);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.osk-opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--osh-btn, #4c56e6); }
.osk-opt:has(input:checked) { background: var(--osh-tint, #efeffe); box-shadow: inset 0 0 0 2px var(--osh-btn, #4c56e6); }
.osk-opt:has(input:focus-visible) { outline: 3px solid rgba(76, 86, 230, 0.35); outline-offset: 2px; }

.osk .osc-fields { margin-top: 18px; }
.osk .osc-check { margin-top: 14px; font-size: 13px; }
.osk-actions { display: flex; margin-top: 22px; }
.osk .osh-btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.osk form[data-busy] button[type="submit"] { opacity: 0.7; pointer-events: none; }

.osk-done { text-align: center; }
.osk-done h2 { padding: 0 24px; }
.osk-done p { margin-top: 12px !important; font-size: 15px; line-height: 1.55; color: var(--osh-muted, #666); }
.osk-done strong { color: var(--osh-ink, #111); word-break: break-all; }
.osk-done .osh-btn { margin-top: 24px; }
.osk-done:focus { outline: none; }

@media (max-width: 560px) {
  .osk-form, .osk-done { padding: 28px 20px 22px; }
  .osk-choice, .osk .osc-fields { grid-template-columns: 1fr; }
}
