/* US — płynna wysyłka zgłoszeń: stan przycisku i potwierdzenie w miejscu formularza.
 * Wersja: 2026-11-05.1 — patrz us-submit-flow.js
 */

/* ---------- 1. Stan „Wysyłam…" ---------- */

.cf7mls-btns-last-step {
  position: relative;
}

.us-wysylka .wpcf7-submit {
  cursor: progress;
  opacity: .92;
  pointer-events: none;
}

/* „Wstecz" w trakcie wysyłki nie może cofnąć kroku. */
.us-wysylka .cf7mls_prev {
  pointer-events: none;
  opacity: .45;
}

.us-wysylka-spin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(248, 248, 248, .35);
  border-top-color: #F8F8F8;
  border-radius: 50%;
  box-sizing: border-box;
  animation: us-spin .7s linear infinite;
  pointer-events: none;
  z-index: 2;
}

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

@media (prefers-reduced-motion: reduce) {
  .us-wysylka-spin { animation-duration: 1.6s; }
}

/* ---------- 2. Potwierdzenie: nakładka na stronie ---------- */

html.us-wyslano-otwarte,
html.us-wyslano-otwarte body {
  overflow: hidden;
}

.us-wyslano {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(248, 248, 248, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: us-wyslano-in .16s ease-out both;
}

@keyframes us-wyslano-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.us-wyslano-karta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(440px, 100%);
  padding: 40px 32px 32px;
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(16, 16, 16, .16);
  animation: us-karta-in .22s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes us-karta-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.us-wyslano-ikona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(101, 93, 220, .12);
  color: #655DDC;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}

.us-wyslano-tytul {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: #101010;
}

.us-wyslano-numer {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.us-wyslano-numer strong {
  font-weight: 600;
  color: #655DDC;
  white-space: nowrap;
}

.us-wyslano-info {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

.us-wyslano-pasek {
  display: block;
  width: 120px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: rgba(101, 93, 220, .15);
  overflow: hidden;
  position: relative;
}

.us-wyslano-pasek::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 3px;
  background: #655DDC;
  animation: us-wyslano-pasek 1s ease-in-out infinite;
}

@keyframes us-wyslano-pasek {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@media (max-width: 560px) {
  .us-wyslano-karta { padding: 32px 20px 26px; border-radius: 20px; }
  .us-wyslano-tytul { font-size: 22px; }
  .us-wyslano-ikona { width: 48px; height: 48px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .us-wyslano, .us-wyslano-karta { animation: none; }
  .us-wyslano-pasek::after { animation-duration: 2s; }
}
