/* WinWin – konfigurator oferty (strona Cennik). Stany i kontrolki, których Elementor 4 nie stylizuje natywnie. */
.cfg-form input.cfg-check,
.cfg-form input.cfg-toggle { margin: 0; flex: 0 0 auto; cursor: pointer; }

/* Checkboxy, tła zaznaczonych kafelków i wierszy: natywnie w klasach Elementora (cfg-check, cfg-need-tile, cfg-module-row, cfg-pill). */
.elementor .cfg-form input.cfg-check:focus-visible,
.elementor .cfg-form input.cfg-toggle:focus-visible { outline: 2px solid #009EC4; outline-offset: 2px; }
.cfg-module-row.is-recommended .cfg-badge { display: inline-block; }
.cfg-need-tile, .cfg-module-row, .cfg-pill, .cfg-slot { -webkit-user-select: none; user-select: none; }

/* Suwak liczby pracowników (dodawany przez JS) */
.cfg-range-wrap { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; min-width: 220px; }
.cfg-range-value { font-size: 15px; font-weight: 700; color: #001E29; }
.cfg-range-scale { display: flex; justify-content: space-between; font-size: 12px; color: #6B7280; }
.cfg-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(to right, #009EC4 var(--cfg-fill, 10%), #E5E7EB var(--cfg-fill, 10%)); }
.cfg-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF;
  border: 3px solid #009EC4; box-shadow: 0 2px 6px rgba(0, 119, 148, .3); }
.cfg-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; border: 3px solid #009EC4; }
.cfg-range:focus-visible { outline: 2px solid #009EC4; outline-offset: 4px; }
.cfg-has-range .cfg-employees, .cfg-has-range label.cfg-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Podpowiedź „Pasuje do…” (dodawana przez JS) */
.cfg-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px 12px 20px; background: #FFFFFF; border-top: 1px dashed #CFEFF7; font-size: 13px; color: #4B5563; }
.cfg-form button.cfg-hint-add { font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; color: #007794 !important; background: #FFFFFF !important; border: 1px solid #9ADFF0 !important; border-radius: 999px !important; padding: 4px 10px !important; cursor: pointer; box-shadow: none; text-transform: none; }
.cfg-form button.cfg-hint-add:hover, .cfg-form button.cfg-hint-add:focus { background: #E6F5FA !important; color: #007794 !important; }

/* Lista w podsumowaniu (dodawana przez JS) */
.cfg-sum-item { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; color: #001E29; }
.cfg-sum-item::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: #009EC4; }
.cfg-has-items .cfg-js-empty { display: none; }

.cfg-form button.cfg-sum-more, button.cfg-sum-more { align-self: flex-start; margin-top: 2px; padding: 2px 0 !important; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4;
  color: #007794 !important; background: none !important; border: 0 !important; box-shadow: none; cursor: pointer; text-transform: none; }
button.cfg-sum-more:hover, button.cfg-sum-more:focus-visible { color: #00627A !important; text-decoration: underline; }

/* FAQ: strzałka zamiast pustej ikony */
.cfg-faq-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.cfg-faq-head::-webkit-details-marker { display: none; }
.cfg-faq-head::after { content: ""; flex: 0 0 10px; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid #007794; border-bottom: 2px solid #007794; transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
details[open] > .cfg-faq-head::after { transform: rotate(-135deg) translateY(-3px); }

/* Pasek konfiguracji na telefonie/tablecie (dodawany przez JS) */
.cfg-mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 999; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; background: #001E29; color: #FFFFFF; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 30, 41, .3);
  transform: translateY(140%); transition: transform .3s; }
.cfg-mbar.is-visible { transform: translateY(0); }
.cfg-mbar-text { font-size: 14px; line-height: 1.3; }
.cfg-mbar-text strong { display: block; font-size: 15px; }
.cfg-mbar-btn { font: inherit; font-size: 14px; font-weight: 600; color: #FFFFFF; background: #009EC4; border: 0; border-radius: 10px; padding: 12px 16px; cursor: pointer; white-space: nowrap; }
@media (max-width: 1024px) { .cfg-mbar { display: flex; bottom: 60px; } }

/* Telefon: etykieta „Polecane” przy nazwie zamiast w kolumnie przełącznika */
@media (max-width: 767px) {
  .cfg-module-row { padding: 14px 16px !important; gap: 12px !important; }
  .cfg-module-row .cfg-badge { display: none !important; }
  .cfg-module-row.is-recommended .cfg-module-name::after { content: "Polecane"; display: inline-block; margin-left: 6px; vertical-align: 1px; font-size: 11px; font-weight: 600; line-height: 1.2; color: #007794; background: #E6F5FA; border: 1px solid #9ADFF0; border-radius: 999px; padding: 2px 8px; }
  .cfg-hint { padding: 10px 16px 12px 16px; }
  .cfg-facts { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cfg-form *, .cfg-mbar { transition: none !important; }
}

/* ===== Wycena: wysyłka i stan sukcesu ===== */
.cfg-form.cfg-sending button.cfg-submit { position: relative; color: transparent !important; pointer-events: none; }
.cfg-form.cfg-sending button.cfg-submit::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #FFFFFF; border-radius: 50%; animation: cfgSpin .7s linear infinite; }
@keyframes cfgSpin { to { transform: rotate(360deg); } }

.cfg-form.cfg-sent .cfg-msg { display: none !important; }
.cfg-form.cfg-sent .cfg-js-edit, .cfg-form.cfg-sent .cfg-divider:has(+ .cfg-js-edit) { display: none !important; }
.cfg-gone { display: none !important; }
.cfg-js-contact.cfg-is-leaving, .cfg-js-contact.cfg-is-sent { overflow: hidden; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.cfg-js-contact.cfg-is-leaving > * { opacity: 0; transform: translateY(-6px); transition: opacity .22s ease, transform .22s ease; }

.cfg-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 0 4px; }
.cfg-success-mark { position: relative; width: 72px; height: 72px; margin-bottom: 22px; }
.cfg-success-mark::before { content: ""; position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 158, 196, .25) 0%, rgba(0, 158, 196, 0) 65%); opacity: 0; transform: scale(.6); animation: cfgHalo 1.2s ease-out .45s forwards; }
.cfg-success-mark svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.cfg-mark-circle { fill: #009EC4; transform-origin: 36px 36px; transform: scale(0); animation: cfgPop .5s cubic-bezier(.34, 1.56, .64, 1) .1s forwards; }
.cfg-mark-line { fill: none; stroke: #FFFFFF; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 50); stroke-dashoffset: var(--len, 50); animation: cfgDraw .4s cubic-bezier(.65, 0, .35, 1) .45s forwards; }
@keyframes cfgPop { to { transform: scale(1); } }
@keyframes cfgDraw { to { stroke-dashoffset: 0; } }
@keyframes cfgHalo { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
.cfg-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 99999; }

/* Po wysyłce: panel boczny znika, karta na środku */
.cfg-form .cfg-summary.cfg-fade-out { opacity: 0; transition: opacity .22s ease; }
.cfg-form.cfg-centered .cfg-summary { display: none !important; }
.cfg-form.cfg-centered .cfg-layout { grid-template-columns: minmax(0, 720px) !important; justify-content: center !important; }
.cfg-form.cfg-centered .cfg-js-contact { width: 100%; }

.cfg-rise { opacity: 0; transform: translateY(10px); animation: cfgRise .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 80ms + .45s); }
@keyframes cfgRise { to { opacity: 1; transform: none; } }

.cfg-success-title { margin: 0 0 8px; font-size: 28px; line-height: 1.2; font-weight: 700; color: #001E29; outline: none; }
.cfg-success-lead { margin: 0 0 18px; max-width: 440px; font-size: 15px; line-height: 1.5; color: #4B5563; }
.cfg-success-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.cfg-success-chip { font-size: 13px; font-weight: 500; line-height: 1.3; color: #001E29; background: #F3FAFC; border: 1px solid #CFEFF7; border-radius: 999px; padding: 6px 12px; }
.cfg-success-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: #6B7280; }
.cfg-success-next, .cfg-success-more { width: 100%; max-width: 460px; text-align: left; }
.cfg-success-more { margin-top: 24px; padding-top: 20px; border-top: 1px solid #E5E7EB; display: flex; flex-direction: column; align-items: flex-start; }

.cfg-tl { list-style: none; margin: 0; padding: 0; }
.cfg-tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.cfg-tl-item:last-child { padding-bottom: 0; }
.cfg-tl-item:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 2px; background: #E5E7EB; }
.cfg-tl-item.is-done:not(:last-child)::before { background: linear-gradient(#009EC4, #E5E7EB); }
.cfg-tl-dot { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #007794; background: #FFFFFF; border: 1.5px solid #9ADFF0; }
.cfg-tl-item.is-done .cfg-tl-dot { color: #FFFFFF; background: #009EC4; border-color: #009EC4; }
.cfg-tl-dot svg { width: 16px; height: 16px; }
.cfg-tl-body { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.cfg-tl-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: #001E29; }
.cfg-tl-text { font-size: 14px; line-height: 1.45; color: #4B5563; }

a.cfg-success-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 15px; font-weight: 600; line-height: 1.3; color: #007794 !important;
  background: #FFFFFF; border: 1px solid #9ADFF0; border-radius: 8px; text-decoration: none !important; transition: background-color .15s, border-color .15s; }
a.cfg-success-cta:hover, a.cfg-success-cta:focus-visible { background: #E6F5FA; border-color: #009EC4; }
a.cfg-success-cta svg { flex: 0 0 20px; width: 20px; height: 20px; transition: transform .2s; }
a.cfg-success-cta:hover svg { transform: translateX(3px); }
a.cfg-success-home { margin-top: 12px; font-size: 14px; font-weight: 600; color: #007794 !important; text-decoration: none; }
a.cfg-success-home:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .cfg-success-title { font-size: 24px; }
  a.cfg-success-cta { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .cfg-rise, .cfg-mark-line, .cfg-mark-circle, .cfg-success-mark::before { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .cfg-success-mark::before { display: none; }
  .cfg-js-contact.cfg-is-leaving, .cfg-js-contact.cfg-is-sent { transition: none; }
}

/* Walidacja telefonu na „Wycenie” */
.cfg-form input.is-invalid, .cfg-form input.is-invalid:focus { border-color: #D92D20 !important; box-shadow: 0 0 0 3px rgba(217, 45, 32, .12) !important; }
.cfg-field-error { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #D92D20; }
.cfg-field-error[hidden] { display: none; }

/* Rabat ilościowy: drabinka w kroku 2 i badge w panelu */
.cfg-range-wrap .cfg-range-scale { position: relative; display: block; height: 16px; margin: 0 11px; }
.cfg-range-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.cfg-discount-badge { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: #FDE8E8; color: #C0362C; font-size: 12px; font-weight: 700; line-height: 1.4; vertical-align: 1px; }
@media (max-width: 767px) {
  .cfg-range-scale { font-size: 11px; }
}
.cfg-discount-badge.is-after { margin: 0 0 0 8px; }
