:root {
  --bg: #04091f;
  --bg-deep: #020513;
  --panel: rgba(8, 18, 49, 0.76);
  --panel-strong: rgba(7, 15, 43, 0.94);
  --panel-border: rgba(150, 178, 255, 0.18);
  --panel-border-strong: rgba(125, 184, 255, 0.34);
  --text: #f6f8ff;
  --muted: #b8c5ee;
  --muted-dark: #7f8bb4;
  --blue: #3b8cff;
  --blue-soft: #7db8ff;
  --purple: #8e5dff;
  --purple-soft: #b08cff;
  --danger: #ff8caa;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #081540 0%, var(--bg) 50%, var(--bg-deep) 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("../assets/profile.png") center 18% / cover no-repeat;
  filter: blur(32px) saturate(1.08) brightness(0.58);
  transform: scale(1.12);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 4%, rgba(59, 140, 255, 0.25), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(142, 93, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(4, 9, 31, 0.63), rgba(2, 5, 19, 0.95));
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 12px;
}

.form-shell {
  width: min(1120px, 100%);
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(150, 178, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(59, 140, 255, 0.11), transparent 33%),
    radial-gradient(circle at top right, rgba(142, 93, 255, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(4, 9, 31, 0.96), rgba(3, 8, 26, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.back-link {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  background: rgba(125, 184, 255, 0.08);
}

.back-link svg {
  width: 19px;
  height: 19px;
}


.form-intro {
  padding: 4px 10px 10px;
  text-align: center;
}

.form-shell.is-compact .form-intro {
  display: none;
}

.form-intro .eyebrow,
.success-screen .eyebrow {
  margin: 0 0 5px;
  color: var(--blue-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-intro h1 {
  margin: 0 0 5px;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.form-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.progress {
  margin-bottom: 10px;
  padding: 9px 12px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 15px;
  background: rgba(8, 18, 49, 0.58);
}

.progress__topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.progress__topline strong {
  color: var(--text);
  font-size: 12px;
}

.progress__topline span:last-child {
  text-align: right;
}

.progress__track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(184, 197, 238, 0.1);
}

.progress__track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 0 16px rgba(59, 140, 255, 0.42);
  transition: width 0.25s ease;
}

.form-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  border: 1px solid var(--panel-border);
  border-radius: 21px;
  background: rgba(8, 18, 49, 0.56);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.form-step {
  min-width: 0;
  padding: 16px 16px 12px;
  animation: step-in 0.22s ease;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.step-heading--compact {
  margin-bottom: 11px;
}

.step-heading__number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid rgba(125, 184, 255, 0.25);
  border-radius: 12px;
  background: rgba(59, 140, 255, 0.1);
  color: var(--blue-soft);
  font-size: 11px;
  font-weight: 900;
}

.step-heading__eyebrow {
  margin: 0 0 1px;
  color: var(--purple-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.1;
}

.field-grid {
  display: grid;
  gap: 13px;
}

.field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.field-group {
  min-width: 0;
}

.field--full,
.field-group--full {
  grid-column: 1 / -1;
}

.field label,
.field-group legend {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.field-group {
  padding: 0;
  border: 0;
}

.field-group--compact {
  align-self: start;
}

.field input,
.field textarea,
.conditional-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(150, 178, 255, 0.19);
  border-radius: 13px;
  outline: 0;
  background: rgba(2, 7, 26, 0.64);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 176px;
  resize: vertical;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder,
.conditional-field input::placeholder {
  color: var(--muted-dark);
}

.field input:focus,
.field textarea:focus,
.conditional-field input:focus {
  border-color: rgba(125, 184, 255, 0.7);
  background: rgba(4, 12, 39, 0.82);
  box-shadow: 0 0 0 3px rgba(59, 140, 255, 0.12);
}

.choice-row {
  display: flex;
  gap: 8px;
}

.choice-row--wrap {
  flex-wrap: wrap;
}

.choice-row--small {
  gap: 6px;
}

.choice-chip {
  position: relative;
  cursor: pointer;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(150, 178, 255, 0.18);
  border-radius: 11px;
  background: rgba(2, 7, 26, 0.48);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.choice-row--small .choice-chip span {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 10px;
}

.choice-chip:hover span,
.choice-chip input:focus-visible + span {
  border-color: rgba(125, 184, 255, 0.46);
  color: var(--text);
}

.choice-chip input:checked + span {
  border-color: rgba(125, 184, 255, 0.62);
  background: linear-gradient(135deg, rgba(59, 140, 255, 0.23), rgba(142, 93, 255, 0.19));
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 140, 255, 0.12);
}

.conditional-field {
  margin-top: 9px;
  max-width: 330px;
}

.phone-control,
.instagram-control {
  display: flex;
  min-width: 0;
}

.phone-control > input {
  min-width: 0;
  border-radius: 0 13px 13px 0;
}

.dial-select {
  position: relative;
  width: 116px;
  min-width: 116px;
  min-height: 44px;
  display: grid;
  grid-template-columns: 27px 1fr 16px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(150, 178, 255, 0.19);
  border-right: 0;
  border-radius: 13px 0 0 13px;
  background: rgba(2, 7, 26, 0.78);
  color: var(--text);
  cursor: pointer;
}

.dial-select:focus-within {
  border-color: rgba(125, 184, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 140, 255, 0.12);
  z-index: 2;
}

.dial-select img {
  width: 27px;
  height: 19px;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.dial-select span {
  font-size: 12px;
  font-weight: 900;
}

.dial-select svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.dial-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.instagram-control {
  position: relative;
}

.instagram-control__prefix {
  min-width: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150, 178, 255, 0.19);
  border-right: 0;
  border-radius: 13px 0 0 13px;
  background: rgba(2, 7, 26, 0.78);
  color: var(--purple-soft);
  font-size: 16px;
  font-weight: 900;
}

.instagram-control input {
  min-width: 0;
  border-radius: 0;
}

.instagram-control button {
  min-width: 92px;
  padding: 0 13px;
  border: 1px solid rgba(150, 178, 255, 0.19);
  border-left: 0;
  border-radius: 0 13px 13px 0;
  background: rgba(59, 140, 255, 0.1);
  color: var(--blue-soft);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.instagram-control button:disabled {
  color: var(--muted-dark);
  cursor: default;
}

.field-hint,
.field-meta,
.field-error {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.field-hint a {
  color: var(--blue-soft);
  font-weight: 900;
  text-decoration: none;
}

.field-error {
  min-height: 14px;
  color: var(--danger);
}

.field-error:empty {
  display: none;
  min-height: 0;
  margin: 0;
}

.is-invalid {
  border-color: rgba(255, 140, 170, 0.8) !important;
}

.interest-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 10px;
}

.question-stack {
  display: grid;
  gap: 8px;
}

.question-panel {
  padding: 11px;
  border: 1px solid rgba(150, 178, 255, 0.14);
  border-radius: 14px;
  background: rgba(2, 7, 26, 0.35);
}

.question-panel legend {
  margin-bottom: 6px;
  font-size: 10.5px;
}

.reasons-panel {
  height: 100%;
}

.check-list {
  display: grid;
  gap: 6px;
}

.check-list--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.check-option input,
.consent-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-option > span,
.consent-card__check {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(150, 178, 255, 0.26);
  border-radius: 5px;
  background: rgba(2, 7, 26, 0.7);
}

.check-option input:checked + span,
.consent-card input:checked + .consent-card__check {
  border-color: var(--blue-soft);
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.check-option input:checked + span::after,
.consent-card input:checked + .consent-card__check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.check-option:has(input:checked) {
  color: var(--text);
}

.field--answer {
  max-width: 850px;
  margin: 0 auto;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.character-count {
  white-space: nowrap;
}

.consent-list {
  display: grid;
  gap: 9px;
}

.consent-card {
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(150, 178, 255, 0.14);
  border-radius: 14px;
  background: rgba(2, 7, 26, 0.38);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.42;
  cursor: pointer;
}

.consent-card__check {
  margin-top: 1px;
}

.consent-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 11.5px;
}

.consent-card b {
  color: var(--blue-soft);
}

.contact-notice-card {
  cursor: default;
  border-color: rgba(125, 184, 255, 0.24);
  background: rgba(59, 140, 255, 0.05);
}

.contact-notice-card__icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1px solid var(--blue-soft);
  border-radius: 50%;
  color: var(--blue-soft);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.consent-card:has(input:checked) {
  border-color: rgba(125, 184, 255, 0.34);
  background: rgba(59, 140, 255, 0.07);
}

.form-navigation {
  min-height: 58px;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--panel-border);
  background: rgba(3, 9, 31, 0.78);
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button svg {
  width: 17px;
  height: 17px;
}

.button--primary {
  justify-self: end;
  min-width: 150px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 12px 26px rgba(59, 140, 255, 0.22);
}

.button--secondary {
  justify-self: start;
  min-width: 118px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 18, 49, 0.72);
  color: var(--text);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.optional-note {
  margin: 0;
  color: var(--muted-dark);
  font-size: 9.5px;
  text-align: center;
}

.button__spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.button.is-loading .button__spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-alert {
  margin: 10px 12px 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 140, 170, 0.35);
  border-radius: 11px;
  background: rgba(104, 20, 51, 0.2);
  color: #ffd5e1;
  font-size: 11px;
}

.success-screen {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 21px;
  background: rgba(8, 18, 49, 0.56);
  text-align: center;
}

.success-screen__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 140, 255, 0.2), rgba(142, 93, 255, 0.2));
  color: var(--blue-soft);
  box-shadow: 0 16px 38px rgba(59, 140, 255, 0.18);
}

.success-screen__icon svg {
  width: 31px;
  height: 31px;
}

.success-screen h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.success-screen > p:last-of-type {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 900px) and (min-height: 680px) {
  body {
    overflow: hidden;
  }

  .page {
    height: 100dvh;
    min-height: 0;
    align-items: stretch;
  }

  .form-shell {
    height: calc(100dvh - 24px);
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .form-shell.is-compact {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .form-card,
  .success-screen {
    min-height: 0;
  }

  .form-step {
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 184, 255, 0.28) transparent;
  }
}

@media (max-width: 899px) {
  .page {
    padding: 8px;
  }

  .form-shell {
    padding: 10px;
    border-radius: 22px;
  }

  

  .field-grid--two,
  .interest-layout,
  .check-list--two {
    grid-template-columns: 1fr;
  }

  .form-step {
    padding: 14px 12px 10px;
  }

  .interest-layout {
    gap: 9px;
  }

  .form-navigation {
    position: sticky;
    bottom: 0;
    grid-template-columns: auto 1fr auto;
    padding: 8px;
    z-index: 5;
  }

  .optional-note {
    font-size: 8px;
  }
}

@media (max-width: 560px) {
  .form-intro {
    padding-inline: 4px;
  }

  .form-intro h1 {
    font-size: 26px;
  }

  .form-intro p:last-child {
    font-size: 12px;
  }

  .progress__topline strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .step-heading {
    margin-bottom: 13px;
  }

  .field-grid {
    gap: 12px;
  }

  .choice-chip span {
    min-height: 40px;
  }

  .phone-control {
    align-items: stretch;
  }

  .dial-select {
    width: 105px;
    min-width: 105px;
    grid-template-columns: 24px 1fr 14px;
    padding-inline: 8px;
  }

  .dial-select img {
    width: 24px;
    height: 17px;
  }

  .instagram-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    width: 100%;
  }

  .instagram-control button {
    min-width: 0;
    padding-inline: 7px;
  }

  .field textarea {
    min-height: 220px;
  }

  .consent-card {
    font-size: 10px;
  }

  .form-navigation {
    grid-template-columns: minmax(92px, auto) 1fr minmax(92px, auto);
    gap: 6px;
  }

  .button {
    min-width: 0;
    padding-inline: 11px;
  }

  .button--primary,
  .button--secondary {
    min-width: 0;
  }

  .optional-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   RESPONSYWNA WYSPA, WALIDACJA I TRYB TESTOWY
   ========================================================= */

.page {
  min-height: 100dvh;
  align-items: center;
  padding: clamp(18px, 4vh, 48px) 12px;
}

.form-shell {
  width: min(760px, 100%);
  height: auto;
  display: block;
  transition: width 0.24s ease;
}

.form-shell[data-active-step="3"],
.form-shell[data-active-step="4"],
.form-shell[data-active-step="5"] {
  width: min(760px, 100%);
}

.form-card {
  grid-template-rows: auto auto;
}

.form-step {
  overflow: visible;
}

.field-grid--two,
.interest-layout {
  grid-template-columns: minmax(0, 1fr);
}

.interest-layout {
  gap: 12px;
}

.question-stack {
  gap: 12px;
}

.field--answer {
  max-width: none;
}

.form-intro p strong {
  color: var(--danger);
}

.required-marker {
  color: var(--danger);
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.consent-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}


.form-navigation {
  grid-template-areas: "previous center action";
}

#previous-button {
  grid-area: previous;
}

.form-navigation__center {
  grid-area: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

#next-button,
#submit-button {
  grid-area: action;
}


.field-group.has-error > legend,
.consent-card.has-error strong {
  color: #ffd5e1;
}

.field-group.has-error .choice-chip span,
.field-group.has-error .check-option > span {
  border-color: rgba(255, 140, 170, 0.58);
}

.question-panel.has-error,
.consent-card.has-error {
  border-color: rgba(255, 140, 170, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 140, 170, 0.07);
}

.validation-error {
  display: block;
  margin-top: 7px;
  color: var(--danger);
}

.form-alert.is-info {
  border-color: rgba(125, 184, 255, 0.35);
  background: rgba(20, 58, 119, 0.2);
  color: #d9e9ff;
}

@media (min-width: 900px) and (min-height: 680px) {
  body {
    overflow-y: auto;
  }

  .page {
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
  }

  .form-shell,
  .form-shell.is-compact {
    height: auto;
    display: block;
  }

  .form-card,
  .success-screen {
    min-height: 0;
  }

  .form-step {
    overflow: visible;
  }
}

@media (max-width: 899px) {
  .page {
    align-items: flex-start;
  }

  .form-shell,
  .form-shell[data-active-step="3"],
  .form-shell[data-active-step="4"],
  .form-shell[data-active-step="5"] {
    width: 100%;
  }

}

@media (max-width: 620px) {
  

  .form-navigation__center {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .form-navigation {
    grid-template-columns: minmax(88px, auto) 1fr minmax(88px, auto);
  }

  .optional-note {
    display: none;
  }

  
}

/* =========================================================
   SEKCJA III — WIĘKSZA TYPOGRAFIA I PIONOWE WYŚRODKOWANIE
   ========================================================= */

.form-step--dense .step-heading h2 {
  font-size: 24px;
}

.form-step--dense .question-panel {
  padding: 14px;
}

.form-step--dense .question-panel legend {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.form-step--dense .field-hint {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
}

.form-step--dense .check-list {
  gap: 8px;
}

.form-step--dense .check-option {
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.4;
}

.form-step--dense .choice-row--small {
  gap: 8px;
}

.form-step--dense .choice-row--small .choice-chip span {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 11.5px;
}

@media (min-width: 900px) and (min-height: 680px) {
  .page {
    min-height: 100dvh;
    align-items: center;
  }

  .form-step--dense {
    min-height: 0;
    display: block;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .form-step--dense .step-heading--compact {
    margin-bottom: 8px;
  }

  .form-step--dense .interest-layout {
    width: 100%;
    align-self: auto;
    padding-block: 0;
    gap: 9px;
  }

  .form-step--dense .question-stack {
    gap: 9px;
  }
}

@media (min-width: 900px) and (max-height: 760px) {
  .page {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 560px) {
  .form-step--dense .step-heading h2 {
    font-size: 22px;
  }

  .form-step--dense .question-panel {
    padding: 12px;
  }

  .form-step--dense .question-panel legend {
    font-size: 12px;
  }

  .form-step--dense .check-option,
  .form-step--dense .choice-row--small .choice-chip span {
    font-size: 11px;
  }
}


/* =========================================================
   FLAGI I WYSZUKIWALNE LISTY KRAJÓW
   ========================================================= */

.country-shortcuts {
  gap: 9px;
}

.choice-chip--country span {
  gap: 8px;
  padding-inline: 11px 13px;
}

.choice-chip--country img {
  width: 27px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.conditional-field--country {
  width: 100%;
  max-width: none;
}

.country-picker-hint {
  margin: 0 0 8px;
}

.country-picker {
  position: relative;
  min-width: 0;
}


.country-picker__selected {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.country-picker__selected img {
  width: 30px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.country-picker__selected-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-picker__placeholder {
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 700;
}

.country-picker__menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 300px;
  padding: 8px;
  border: 1px solid rgba(125, 184, 255, 0.28);
  border-radius: 15px;
  background:
    radial-gradient(circle at top right, rgba(142, 93, 255, 0.13), transparent 38%),
    rgba(4, 10, 32, 0.985);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

.country-picker__menu[hidden] {
  display: none;
}

.country-picker__search {
  min-height: 40px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 0 10px;
  border: 1px solid rgba(150, 178, 255, 0.18);
  border-radius: 11px;
  background: rgba(1, 6, 23, 0.72);
  color: var(--muted);
}

.country-picker__search:focus-within {
  border-color: rgba(125, 184, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(59, 140, 255, 0.1);
}

.country-picker__search svg {
  width: 18px;
  height: 18px;
}

.country-picker__search input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.country-picker__search input::placeholder {
  color: var(--muted-dark);
}

.country-picker__options {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 184, 255, 0.34) transparent;
}

.country-picker__options::-webkit-scrollbar {
  width: 7px;
}

.country-picker__options::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(125, 184, 255, 0.28);
}

.country-picker__group-label {
  padding: 8px 10px 5px;
  color: var(--purple-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.country-picker__option {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.country-picker__option:hover,
.country-picker__option:focus-visible,
.country-picker__option.is-selected {
  outline: 0;
  background: linear-gradient(135deg, rgba(59, 140, 255, 0.16), rgba(142, 93, 255, 0.12));
}

.country-picker__option img {
  width: 30px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.26));
}

.country-picker__option-name {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-picker__option-code {
  color: var(--blue-soft);
  font-size: 11px;
  font-weight: 900;
}

.country-picker__option--manual {
  grid-template-columns: 32px minmax(0, 1fr);
  margin-top: 4px;
  border-top: 1px solid rgba(150, 178, 255, 0.1);
  border-radius: 0 0 10px 10px;
}

.country-picker__manual-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(142, 93, 255, 0.13);
  color: var(--purple-soft);
  font-size: 15px;
  font-weight: 900;
}

.country-picker__empty {
  margin: 0;
  padding: 16px 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.country-picker--dial {
  width: 120px;
  min-width: 120px;
}


.country-picker__menu--dial {
  width: 340px;
  max-width: min(340px, calc(100vw - 42px));
}

.country-manual {
  margin-top: 9px;
}

.country-manual[hidden] {
  display: none;
}

.country-manual label {
  display: block;
  margin: 0 0 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.country-manual input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(150, 178, 255, 0.19);
  border-radius: 13px;
  outline: 0;
  background: rgba(2, 7, 26, 0.64);
  color: var(--text);
}

.country-manual input:focus {
  border-color: rgba(125, 184, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 140, 255, 0.12);
}

@media (max-width: 560px) {
  .country-picker__menu,
  .country-picker__menu--dial {
    min-width: min(320px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  .country-picker--dial {
    width: 112px;
    min-width: 112px;
  }

  

  

  .choice-chip--country img {
    width: 24px;
    height: 18px;
  }
}

.country-picker__search::after {
  content: none !important;
}

/* Lista krajów może wychodzić poza dolną krawędź karty formularza. */
.form-card {
  overflow: visible;
}

/* Otwarta lista pozostaje nad nawigacją formularza również na telefonie. */
.form-step {
  position: relative;
  z-index: 2;
}

.form-navigation {
  position: relative;
  z-index: 1;
}

/* =========================================================
   COMBOBOX KRAJÓW, KAFELKI POWODÓW I DROBNE POPRAWKI UI
   ========================================================= */

body {
  min-height: 100dvh;
}


.step-heading__content {
  min-width: 0;
  flex: 1 1 auto;
}

.step-heading__line {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1px;
}

.step-heading__line .step-heading__eyebrow {
  margin: 0;
  flex: 0 0 auto;
}

.step-heading__required {
  min-width: 0;
  margin: 0;
  color: var(--muted-dark);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.country-picker-hint {
  margin: 0 0 7px;
}

.country-combobox {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(150, 178, 255, 0.2);
  border-radius: 13px;
  background: rgba(2, 7, 26, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.country-picker.is-open .country-combobox,
.country-combobox:focus-within {
  border-color: rgba(125, 184, 255, 0.7);
  background: rgba(4, 12, 39, 0.98);
  box-shadow: 0 0 0 3px rgba(59, 140, 255, 0.11);
}

.country-combobox:has(.country-combobox__input.is-invalid) {
  border-color: rgba(255, 140, 170, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 140, 170, 0.09);
}

.country-combobox__flag {
  width: 30px;
  height: 22px;
  margin-left: 11px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.country-combobox__flag[hidden] {
  display: none;
}

.conditional-field .country-combobox__input,
.field .country-combobox__input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 2px;
  border: 0 !important;
  border-radius: 0;
  outline: 0;
  background: transparent !important;
  color: var(--text);
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 750;
}

.country-combobox__input::placeholder {
  color: var(--muted-dark);
  font-weight: 700;
}

.country-combobox__toggle {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.country-combobox__toggle:disabled {
  cursor: default;
  opacity: 0.45;
}

.country-combobox__toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.country-picker.is-open .country-combobox__toggle svg {
  transform: rotate(180deg);
}

.country-picker__menu {
  top: calc(100% + 6px);
  min-width: 0;
  padding: 7px;
  border-color: rgba(125, 184, 255, 0.34);
  background: #050c27;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
}

.country-picker__options {
  max-height: 250px;
}

.country-picker--dial {
  width: 148px;
  min-width: 148px;
}

.country-combobox--dial {
  grid-template-columns: 29px minmax(0, 1fr) 30px;
  gap: 5px;
  border-right: 0;
  border-radius: 13px 0 0 13px;
}

.country-combobox--dial .country-combobox__flag {
  width: 29px;
  height: 21px;
  margin-left: 9px;
}

.field .country-combobox__input--dial {
  min-height: 42px;
  padding-inline: 0;
  font-size: 12px;
  font-weight: 900;
}

.country-combobox--dial .country-combobox__toggle {
  width: 30px;
}

.country-picker__menu--dial {
  width: 330px;
  max-width: min(330px, calc(100vw - 42px));
}

.reasons-panel legend {
  margin-bottom: 2px !important;
}

.reasons-panel > .field-hint {
  margin: 0 0 10px;
  font-size: 10.5px;
}

.reason-tile {
  position: relative;
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(150, 178, 255, 0.18);
  border-radius: 10px;
  background: rgba(2, 7, 26, 0.48);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.reason-tile:hover {
  border-color: rgba(125, 184, 255, 0.46);
  color: var(--text);
}

.reason-tile.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.reason-tile.is-disabled:hover {
  border-color: rgba(150, 178, 255, 0.18);
  color: var(--muted);
  transform: none;
}

.reason-tile.is-disabled * {
  cursor: not-allowed;
}

.reason-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reason-tile__check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150, 178, 255, 0.3);
  border-radius: 5px;
  background: rgba(2, 7, 26, 0.82);
}

.reason-tile__text {
  min-width: 0;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
}

.reason-tile input:focus-visible + .reason-tile__check {
  outline: 2px solid rgba(125, 184, 255, 0.7);
  outline-offset: 2px;
}

.reason-tile:has(input:checked) {
  border-color: rgba(125, 184, 255, 0.6);
  background: linear-gradient(135deg, rgba(59, 140, 255, 0.2), rgba(142, 93, 255, 0.15));
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 140, 255, 0.1);
}

.reason-tile input:checked + .reason-tile__check {
  border-color: var(--blue-soft);
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.reason-tile input:checked + .reason-tile__check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.field-group.has-error .reason-tile__check {
  border-color: rgba(255, 140, 170, 0.62);
}

.form-navigation__center {
  justify-content: center;
}

@media (max-width: 899px) {
  body {
    min-height: 100dvh;
  }

  .page {
    min-height: 100dvh;
    padding: 8px;
  }

  .form-navigation {
    position: static;
  }

  .step-heading__required {
    font-size: 8.5px;
  }
}

@media (max-width: 560px) {
  .step-heading {
    align-items: flex-start;
  }

  .step-heading__line {
    gap: 7px;
  }

  .step-heading__required {
    padding-top: 1px;
    font-size: 7.8px;
  }

  .country-picker--dial {
    width: 136px;
    min-width: 136px;
  }

  .country-combobox--dial {
    grid-template-columns: 27px minmax(0, 1fr) 27px;
  }

  .country-combobox--dial .country-combobox__flag {
    width: 27px;
    height: 20px;
    margin-left: 7px;
  }

  .country-picker__menu,
  .country-picker__menu--dial {
    min-width: 0;
    max-width: calc(100vw - 36px);
  }

  .country-picker__menu--dial {
    width: min(320px, calc(100vw - 36px));
  }

  .reason-tile__text,
  .form-step--dense .reason-tile__text {
    font-size: 11px;
  }
}


/* Final UI refinements */
.topbar {
  justify-content: flex-start;
}

.country-picker--residence .country-combobox {
  grid-template-columns: 40px auto minmax(0, 1fr);
  gap: 7px;
}

.country-picker--residence .country-combobox__toggle {
  grid-column: 1;
  grid-row: 1;
  width: 40px;
  border-right: 1px solid rgba(150, 178, 255, 0.14);
}

.country-picker--residence .country-combobox__flag {
  grid-column: 2;
  grid-row: 1;
  width: 28px;
  height: 21px;
  margin: 0;
}

.country-picker--residence .country-combobox__input {
  grid-column: 3;
  grid-row: 1;
  padding: 0 12px 0 0;
}

.country-picker--dial {
  width: 164px;
  min-width: 164px;
}

.country-combobox--dial {
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  gap: 4px;
}

.country-combobox--dial .country-combobox__flag {
  width: 29px;
  height: 21px;
  margin: 0 auto;
}

.field .country-combobox__input--dial {
  padding: 0 4px;
  text-align: left;
}

.instagram-control input {
  border-radius: 0 13px 13px 0;
}

.consent-toolbar {
  justify-content: flex-start;
}

.consent-all-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

.consent-all-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-all-control__check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(150, 178, 255, 0.32);
  border-radius: 5px;
  background: rgba(2, 7, 26, 0.72);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.consent-all-control:hover {
  color: var(--text);
}

.consent-all-control input:focus-visible + .consent-all-control__check {
  outline: 2px solid rgba(125, 184, 255, 0.72);
  outline-offset: 2px;
}

.consent-all-control input:checked + .consent-all-control__check {
  border-color: var(--blue-soft);
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.consent-all-control input:checked + .consent-all-control__check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.consent-all-control input:indeterminate + .consent-all-control__check {
  border-color: rgba(125, 184, 255, 0.62);
  background: rgba(59, 140, 255, 0.22);
}

.consent-all-control input:indeterminate + .consent-all-control__check::after {
  content: "";
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-soft);
}

.success-back-button {
  text-decoration: none;
}

@media (max-width: 560px) {
  .country-picker--dial {
    width: 118px;
    min-width: 118px;
  }

  .country-combobox--dial {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 2px;
  }

  .country-combobox--dial .country-combobox__flag {
    width: 24px;
    height: 18px;
    margin: 0 auto;
  }

  .country-combobox--dial .country-combobox__toggle {
    width: 24px;
  }

  .field .country-combobox__input--dial {
    padding-inline: 1px;
    font-size: 11px;
  }

  .phone-control > #phone {
    flex: 1 1 auto;
    width: 0;
  }
}

/* =========================================================
   SEKCJA III — STAŁE NEONOWE SEPARATORY
   Każdy separator jest normalnym elementem układu i zawsze
   zajmuje własne miejsce, niezależnie od szerokości i zoomu.
   ========================================================= */

.form-step[data-step="3"] .interest-layout,
.form-step[data-step="3"] .question-stack {
  gap: 0 !important;
}

.form-step[data-step="3"] .question-divider {
  display: block;
  align-self: stretch;
  width: auto;
  min-width: 0;
  height: 2px;
  min-height: 2px;
  margin: 18px 8%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(166, 92, 255, 0) 0%,
    rgba(166, 92, 255, 0.78) 18%,
    rgba(205, 125, 255, 1) 50%,
    rgba(127, 126, 255, 0.82) 82%,
    rgba(127, 126, 255, 0) 100%
  );
  box-shadow:
    0 0 5px rgba(190, 104, 255, 0.95),
    0 0 13px rgba(157, 89, 255, 0.62),
    0 0 22px rgba(112, 112, 255, 0.28);
  pointer-events: none;
}

/* Pierwszy separator był wcześniej ukrywany powyżej 899 px.
   Sekcja III jest jednak jednokolumnowa także przy większej
   szerokości, dlatego ma być widoczny zawsze. */
.form-step[data-step="3"] .question-divider--mobile {
  display: block;
}

/* =========================================================
   SEKCJA III — STAŁE NEONOWE SEPARATORY
   Każdy separator jest normalnym elementem układu i zawsze
   zajmuje własne miejsce, niezależnie od szerokości i zoomu.
   ========================================================= */

.form-step[data-step="3"] .interest-layout,
.form-step[data-step="3"] .question-stack {
  gap: 0 !important;
}

.form-step[data-step="3"] .question-divider {
  display: block;
  align-self: stretch;
  width: auto;
  min-width: 0;
  height: 2px;
  min-height: 2px;
  margin: 18px 8%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(166, 92, 255, 0) 0%,
    rgba(166, 92, 255, 0.78) 18%,
    rgba(205, 125, 255, 1) 50%,
    rgba(127, 126, 255, 0.82) 82%,
    rgba(127, 126, 255, 0) 100%
  );
  box-shadow:
    0 0 5px rgba(190, 104, 255, 0.95),
    0 0 13px rgba(157, 89, 255, 0.62),
    0 0 22px rgba(112, 112, 255, 0.28);
  pointer-events: none;
}

/* Pierwszy separator był wcześniej ukrywany powyżej 899 px.
   Sekcja III jest jednak jednokolumnowa także przy większej
   szerokości, dlatego ma być widoczny zawsze. */
.form-step[data-step="3"] .question-divider--mobile {
  display: block;
}


/* =========================================================
   SEKCJA V — KLAUZULA INFORMACYJNA I ZGODY
   ========================================================= */


.consent-all-control__text {
  display: grid;
  gap: 1px;
}

.consent-all-control__text strong {
  color: var(--text);
  font-size: 10.5px;
}

.consent-all-control__text small {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
}


@media (max-width: 560px) {
  

  
}

/* =========================================================
   KLAUZULA INFORMACYJNA — POPUP
   ========================================================= */

   body.is-dialog-open {
    overflow: hidden;
  }
  
  .consent-card--privacy {
    display: block;
    cursor: default;
  }
  
  .consent-card__label {
    display: grid;
    grid-template-columns: 19px 1fr;
    align-items: start;
    gap: 10px;
    cursor: pointer;
  }
  
  .privacy-link {
    margin: 8px 0 0 29px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue-soft);
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.4;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  
  .privacy-link:hover,
  .privacy-link:focus-visible {
    color: #fff;
  }
  
  .privacy-link:focus-visible {
    outline: 2px solid rgba(125, 184, 255, 0.72);
    outline-offset: 4px;
    border-radius: 3px;
  }
  
  .privacy-dialog {
    width: min(720px, calc(100% - 28px));
    max-height: min(86vh, 820px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(125, 184, 255, 0.28);
    border-radius: 22px;
    background: #08122d;
    color: var(--text);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  }
  
  .privacy-dialog::backdrop {
    background: rgba(1, 4, 16, 0.82);
    backdrop-filter: blur(7px);
  }
  
  .privacy-dialog__panel {
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 820px);
  }
  
  .privacy-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(150, 178, 255, 0.14);
    background: rgba(13, 29, 68, 0.96);
  }
  
  .privacy-dialog__eyebrow {
    margin: 0 0 5px;
    color: var(--blue-soft);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  
  .privacy-dialog__header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(17px, 2.5vw, 23px);
    line-height: 1.2;
  }
  
  .privacy-dialog__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0 0 3px;
    border: 1px solid rgba(150, 178, 255, 0.2);
    border-radius: 10px;
    background: rgba(2, 7, 26, 0.52);
    color: var(--muted);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
  }
  
  .privacy-dialog__close:hover,
  .privacy-dialog__close:focus-visible {
    border-color: rgba(125, 184, 255, 0.65);
    color: #fff;
  }
  
  .privacy-dialog__content {
    display: grid;
    gap: 17px;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.58;
  }
  
  .privacy-dialog__content section {
    display: grid;
    gap: 6px;
  }
  
  .privacy-dialog__content h3 {
    margin: 0;
    color: var(--text);
    font-size: 13px;
  }
  
  .privacy-dialog__content p {
    margin: 0;
  }
  
  .privacy-dialog__content strong {
    color: var(--blue-soft);
  }
  
  .privacy-dialog__footer {
    display: flex;
    justify-content: flex-end;
    padding: 13px 20px 17px;
    border-top: 1px solid rgba(150, 178, 255, 0.14);
    background: rgba(13, 29, 68, 0.96);
  }
  
  .privacy-dialog__footer .button {
    min-width: 130px;
  }
  
  @media (max-width: 560px) {
    .privacy-dialog {
      width: calc(100% - 18px);
      max-height: 91vh;
      border-radius: 17px;
    }
  
    .privacy-dialog__panel {
      max-height: 91vh;
    }
  
    .privacy-dialog__header {
      padding: 16px 15px 13px;
    }
  
    .privacy-dialog__content {
      padding: 16px 15px;
      font-size: 11px;
    }
  
    .privacy-dialog__footer {
      padding: 12px 15px 15px;
    }
  
    .privacy-dialog__footer .button {
      width: 100%;
    }
  }

/* =========================================================
   AUTOUZUPEŁNIANIE — CHROME / EDGE / OPERA GX
   ========================================================= */

   input:-webkit-autofill,
   input:-webkit-autofill:hover,
   input:-webkit-autofill:active,
   textarea:-webkit-autofill,
   textarea:-webkit-autofill:hover,
   textarea:-webkit-autofill:active {
     color-scheme: dark;
   
     -webkit-text-fill-color: var(--text) !important;
     caret-color: var(--text) !important;
   
     /*
      * Odcina domyślną jasną warstwę nakładaną przez Chromium.
      */
     -webkit-background-clip: text !important;
     background-clip: text !important;
   
     /*
      * Taki sam wizualny kolor jak w zwykłym polu.
      */
     -webkit-box-shadow:
       0 0 0 1000px #02091f inset,
       inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
   
     box-shadow:
       0 0 0 1000px #02091f inset,
       inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
   
     border-color: rgba(150, 178, 255, 0.19) !important;
     font: inherit !important;
   
     transition:
       background-color 999999s ease-in-out 0s,
       color 999999s ease-in-out 0s;
   }
   
   /* Autofill, gdy pole jest aktualnie aktywne */
   input:-webkit-autofill:focus,
   textarea:-webkit-autofill:focus {
     -webkit-text-fill-color: var(--text) !important;
     caret-color: var(--text) !important;
   
     -webkit-background-clip: text !important;
     background-clip: text !important;
   
     -webkit-box-shadow:
       0 0 0 1000px #040c27 inset,
       0 0 0 3px rgba(59, 140, 255, 0.12),
       inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
   
     box-shadow:
       0 0 0 1000px #040c27 inset,
       0 0 0 3px rgba(59, 140, 255, 0.12),
       inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
   
     border-color: rgba(125, 184, 255, 0.7) !important;
   }