/* ==========================================================================
   Formularz wyceny KADOM – wygląd 1:1 ze starego formularz.php
   (reguły skopiowane ze starego pliku; na końcu kilka dopasowań do nowej logiki).
   Bootstrap 5.3, Font Awesome 6 i font Plus Jakarta Sans ładuje parts/headScript.php –
   tak samo jak w starym formularzu. Bootstrap i Plus Jakarta Sans z CDN / Google Fonts zgoda.php zamienia
   na kopie z naszego serwera (assets/k2/vendor, assets/k2/fonts).
   ========================================================================== */

/* --- kolory marki (zielone przyciski Bootstrapa) --- */
.btn-outline-primary {
    --bs-btn-color: #157347 !important;
    --bs-btn-border-color: #157347 !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #157347 !important;
    --bs-btn-hover-border-color: #157347 !important;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #157347 !important;
    --bs-btn-active-border-color: #157347 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #157347 !important;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #157347 !important;
}
:root {
    --primary: #198754;
    --primary-light: #defff4;
    --secondary: #648b7c;
    --success: #00875A;
    --bg-body: #F4F5F7;
    --card-bg: #FFFFFF;
    --border: #DFE1E6;
    --focus-ring: rgba(0, 204, 27, 0.25);
    --radius: 12px;
    --gold-alert: #FFFBEB;
    --gold-border: #FCD34D;
    --bs-primary-rgb: #198754;
    --emerald: var(--primary);
    --slate-900: #0f172a;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #198754;
    --bs-btn-hover-border-color: #198754;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #198754;
    --bs-btn-active-border-color: #198754;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #198754;
    --bs-btn-disabled-border-color: #198754;
}
html, body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: #172B4D;
    min-height: 100vh;
    overscroll-behavior-y: none; /* blokada pull-to-refresh na telefonach */
}
[hidden] { display: none !important; }

/* --- WIZARD CONTAINER --- */
.wizard-wrapper {
    max-width: 800px;
    margin: 20px auto 40px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid #EBECF0;
    overflow: hidden;
    position: relative;
}
.wizard-header {
    padding: 25px 30px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

/* Pasek postępu */
.progress-steps { display: flex; justify-content: space-between; position: relative; }
.progress-steps::before {
    content: ''; position: absolute; top: 15px; left: 0; right: 0;
    height: 2px; background: var(--border); z-index: 0; margin: 0 20px;
}
.step-item { position: relative; z-index: 1; text-align: center; background: #fff; padding: 0 5px; }
.step-circle {
    width: 32px; height: 32px; background: #fff;
    border: 2px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 5px; font-weight: 700; color: var(--secondary);
    transition: all 0.3s ease;
}
.step-item.active .step-circle {
    border-color: var(--primary); background: var(--primary); color: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}
.step-item.completed .step-circle { border-color: var(--success); background: var(--success); color: #fff; }
.step-label {
    font-size: 11px; font-weight: 600; color: var(--secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.step-item.active .step-label { color: var(--primary); }

/* --- PASEK "ZAPISANO" (stary widget zapisu w stanie po zapisaniu) --- */
.modern-save-widget {
    display: block;
    margin: 0 0 35px 0;
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 50px -10px rgba(2, 132, 199, 0.15);
    border: 1px solid #e0f2fe;
    border-top: none;
    overflow: hidden;
    position: relative;
    padding: 8px;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.save-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: #dfffea;
    cursor: default;
}
@media(max-width: 876px) {
    .modern-save-widget { padding: 0; }
}
.trigger-title { display: block; font-size: 14px; font-weight: 400; color: #1b1b1b; }
.trigger-title b { font-weight: 700; }
.k2f-saved { font-size: 12px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* Content Area */
.wizard-content { padding: 30px; padding-bottom: 130px; }
.step-panel { display: block; animation: fadeIn 0.4s ease; }

h2.section-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #091E42; }
p.section-desc { color: var(--secondary); margin-bottom: 25px; line-height: 1.5; font-size: 14px; }

/* --- UI ELEMENTY --- */
.select-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; position: relative;
    background: #fff;
    min-height: 110px;
}
.select-card:hover { border-color: #B3D4FF; background: #F4F5F7; }
.select-card.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.select-card i { font-size: 24px; margin-bottom: 10px; color: var(--secondary); transition: color 0.2s; }
.select-card.selected i { color: var(--primary); }
.select-card-title { font-weight: 600; font-size: 14px; }
.check-badge {
    position: absolute; top: 8px; right: 8px; color: var(--primary);
    opacity: 0; transform: scale(0.5); transition: 0.2s;
}
.select-card.selected .check-badge { opacity: 1; transform: scale(1); }

.form-control, .form-select {
    padding: 12px 14px; border-radius: var(--radius);
    border: 1px solid var(--border); font-size: 15px; transition: 0.2s;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.form-label { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #344563; }

/* --- STOPKA (przyciski na dole ekranu) --- */
.wizard-footer {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; padding: 15px 0;
    border-top: 1px solid var(--border); z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}
.nav-container {
    max-width: 800px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.btn-nav {
    padding: 12px 25px; border-radius: 50px;
    font-weight: 600; font-size: 15px; border: none;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px;
}
.btn-prev { background: #F4F5F7; color: #42526E; }
.btn-next { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3); }
.btn-next:hover { background: #146841; transform: translateY(-2px); }
.btn-next:disabled { opacity: .75; cursor: wait; transform: none; }
.btn-submit { background: var(--success); color: #fff; }

@media(max-width: 768px) {
    .wizard-wrapper { margin: 0px; border-radius: 0px; }
    .wizard-header { padding: 15px 20px; }
    .step-label { display: none; }
    .wizard-content { padding: 20px; padding-bottom: 160px; }
    .save-trigger { padding: 10px 15px; }
}

@keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* --- PREMIUM UPLOAD --- */
.upload-container-premium { display: flex; flex-direction: column; gap: 12px; }
.upload-card-main {
    position: relative;
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 24px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    text-align: center;
    overflow: hidden;
}
.upload-card-main:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.08);
    transform: translateY(-2px);
}
.extra-small { font-size: 11px; }

/* --- TYPOGRAFIA I KOLORY --- */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.badge-number {
    width: 32px; height: 32px;
    background-color: #dbeafe; color: #3b82f6;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    flex-shrink: 0;
}
.input-group .form-control:focus { z-index: 3; }
.input-group-text { color: #94a3b8; border-color: #dee2e6; }
.form-control { border-color: #dee2e6; color: #1e293b; }
.form-control::placeholder { color: #94a3b8; font-weight: 400; }

.btn-ready {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* Miniaturki wgranych plików */
.preview-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.preview-thumb-box {
    position: relative; width: 100px; height: 130px; /* proporcje kartki A4/LStB */
    border-radius: 12px; box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
    animation: fadeIn 0.3s ease-out;
}
.preview-thumb-box:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 2; }
.preview-thumb-img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
    border: 2px solid #e2e8f0; cursor: pointer;
}
.remove-thumb-btn {
    position: absolute; top: -10px; right: -10px; background: #ef4444;
    color: white; border-radius: 50%; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer; border: 2px solid white; z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    padding: 0;
}
.remove-thumb-btn:hover { transform: scale(1.15); }

/* --- MODALE --- */
.custom-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.custom-modal-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(4px);
}
.custom-modal-content {
    position: relative; background: #fff; padding: 20px;
    border-radius: 20px; width: 90%; max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: zoomIn 0.3s ease; max-height: 90vh; overflow-y: auto;
}
@keyframes zoomIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* --- KARTY WYBORU ROKU --- */
.year-card-premium { display: block; cursor: pointer; width: 100%; margin-bottom: 12px; }
.year-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-wrapper {
    width: 48px; height: 48px;
    background: #f8fafc; color: #94a3b8;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}
.year-val { font-size: 1.25rem; }
.action-arrow { color: #cbd5e1; font-size: 1.1rem; transition: transform 0.3s ease, color 0.3s ease; }
.year-card-premium:hover .year-card-body { border-color: #e2e8f0; transform: translateY(-2px); }
.year-card-premium:active .year-card-body { transform: scale(0.98); }
.year-card-premium.selected .year-card-body {
    border-color: var(--primary);
    background: #f0fdf4;
    box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.15);
}
.year-card-premium.selected .year-card-body .icon-wrapper { background: var(--primary); color: #ffffff; }
.year-card-premium.selected .year-card-body .action-arrow { color: var(--primary); transform: translateX(6px); }

.bg-emerald-soft { background-color: #ecfdf5; }
.text-emerald { color: var(--primary); }
.tracking-wider { letter-spacing: 0.05em; }

/* --- KARUZELA OSTATNICH ZWROTÓW --- */
.success-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.success-carousel-track { display: flex; gap: 15px; width: max-content; animation: scrollSuccess 70s linear infinite; }
.success-carousel-wrapper:hover .success-carousel-track,
.success-carousel-wrapper:active .success-carousel-track { animation-play-state: paused; }
@keyframes scrollSuccess { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-100% + 100vw)); } }
.success-card {
    background: #f0fff8;
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 260px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

/* --- GWARANCJA --- */
.guarantee-card { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 20px; padding: 20px; }
.guarantee-icon-box {
    background: #ffffff;
    width: 45px; height: 45px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.text-slate-900 { color: #0f172a; }
.text-slate-800 { color: #1e293b; }
.text-slate-500 { color: #64748b; }

/* --- HISTORIA ZWROTÓW --- */
.transaction-item { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid #f1f5f9; }
.transaction-item:last-child { border-bottom: none; }
.t-icon {
    width: 40px; height: 40px;
    background: #ecfdf5; color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0; margin-right: 15px;
}
.t-info { flex-grow: 1; text-align: left; }
.t-title { display: block; font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.t-desc { display: block; font-size: 11px; color: #64748b; }
.t-amount {
    font-size: 16px; font-weight: 800; color: var(--primary);
    white-space: nowrap; letter-spacing: -0.5px; text-align: center; padding: 5px;
}
/* przykładowe zwroty w kroku „Dane” (ten sam zestaw co na stronie głównej i w mailach) */
.k2-examples { padding: 4px 16px; min-width: 0; }
.k2-examples .transaction-item { padding: 12px 0; }
.k2-examples .t-desc { font-size: 12px; line-height: 1.35; }
.k2-ex-tag {
    display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
    background: #e2e8f0; color: #64748b; font-size: 9px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px;
}

/* --- POLA FORMULARZA (FINTECH) --- */
.premium-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    margin-left: 2px;
}
.premium-input-clean {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px; /* 16px = brak automatycznego zoomu na iPhone */
    color: #0f172a;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.premium-input-clean:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); outline: none; }
.premium-input-clean::placeholder { color: #94a3b8; font-weight: 400; }
.premium-addon { border: 2px solid #e2e8f0; border-radius: 12px 0 0 12px; padding: 14px 16px; font-size: 15px; }
.input-group:focus-within .premium-addon,
.input-group:focus-within .premium-input-clean { border-color: var(--primary); }

/* --- SEKCJA ZGÓD --- */
.trust-box-clean { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; }
.checkbox-wrapper { display: inline-block; padding-top: 2px; }
.premium-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}
.premium-checkbox:checked { background-color: var(--primary); border-color: var(--primary); }
.premium-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.premium-checkbox:focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); outline: none; }

/* --- KAFELKI (transport / trasy kierowcy) --- */
.driver-route-card { cursor: pointer; display: block; }
.route-card-body { border: 2px solid #e2e8f0; border-radius: 14px; background: #f8fafc; transition: all 0.2s ease; }
.driver-route-card.selected .route-card-body {
    border-color: var(--primary);
    background: #f0fdf4;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}
.driver-route-card.selected .route-card-body i { color: var(--primary) !important; }
.fancy { color: var(--primary); font-weight: bold; }

/* --- PRZYCISK CZATU NA DOLNYM PASKU --- */
.btn-chat-bot {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--tax-light, #20c997), var(--tax-dark, #146c43));
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s, opacity 0.3s;
    color: #ffffff;
    font-weight: 600;
}
.btn-chat-bot:hover { color: #ffffff; border-color: #0ea5e9; transform: translateY(-2px); }
@media(max-width: 576px) {
    .btn-chat-bot { border-radius: 50%; padding: 15px; width: 50px !important; height: 50px !important; }
}
/* Czat ma własny przycisk na pasku – ukrywamy pływający przycisk widżetu */
#k2chat-launcher, .k2c-teaser { display: none !important; }
#tax-ai-toggle-btn, #tax-ai-invite { display: none !important; }

.tbb:hover { color: var(--primary) !important; }

/* --- WALIDACJA --- */
.input-error-glow {
    border-color: #ef4444 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}
.select-card.input-error-glow { transition: all 0.3s ease; }
.error-message-inline {
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
    margin-left: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideDown 0.3s ease;
}
.error-message-inline i { font-size: 14px; }

/* ==========================================================================
   Dopasowania do nowej logiki (kafelki to <button>, podkroki, wgrywanie, itp.)
   ========================================================================== */
button.select-card, button.year-card-premium, button.driver-route-card {
    font: inherit; color: inherit; width: 100%; -webkit-appearance: none; appearance: none;
}
button.select-card.selected { color: var(--primary); }
button.year-card-premium, button.driver-route-card { border: 0; background: none; padding: 0; text-align: left; }
button.driver-route-card { text-align: center; }
.select-card .k2-ico { font-size: 28px; }

/* podkroki (jedno pytanie na ekranie – jak w starym kroku 3) */
.substep.k2-off { display: none !important; }
.k2-anim-in { animation: k2FadeInRight .35s ease both; }
.k2-anim-back { animation: k2FadeInLeft .35s ease both; }
.k2-anim-down { animation: slideDown .3s ease-out both; }
@keyframes k2FadeInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes k2FadeInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* ikona w zaokrąglonym kwadracie (nagłówki kroków) */
.k2-icon-tile {
    display: inline-flex; align-items: center; justify-content: center;
    width: 65px; height: 65px; border-radius: 20px;
    background: #ecfdf5; color: var(--primary); font-size: 28px;
}
.k2-badge-year {
    font-weight: 700; font-size: 11px; letter-spacing: 0.5px;
    border: 1px solid rgba(25, 135, 84, 0.2);
}
.k2-cta { border-radius: 16px; font-size: 18px; background: var(--primary); border: none; }
.k2-cta:hover { background: #146841; }
.k2-btn-inline { border-radius: 14px; }
.k2-hint { font-size: 12px; color: #64748b; margin: 10px 2px 0; }
.k2-flag { width: 18px; height: 12px; vertical-align: middle; border-radius: 2px; box-shadow: 0 1px 5px rgb(0 0 0 / 35%); margin-top: -3px; margin-left: 2px; }
.k2-sublabel { font-size: 11px; color: #64748b; font-weight: 500; }
.input-group.k2-ig { border-radius: 12px; overflow: hidden; }
.input-group.k2-ig-box { border-radius: 12px; overflow: hidden; background: white; border: 1px solid #dee2e6; }
.input-group.k2-ig-box.input-error-glow { border-color: #ef4444 !important; }

/* honeypot */
.k2f-hp { opacity: 0; position: absolute; top: -9999px; left: -9999px; width: 1px; height: 1px; }

/* karta LStB */
.k2-lstb-card { border: 3px dashed #10b981; padding: 30px 20px; border-radius: 16px; background: #ecfdf5; cursor: default; }
.k2-lstb-card:hover { transform: none; border-color: #10b981; }
.k2-lstb-card.k2-drag { border-color: var(--primary); background: #dcfce7; }
.k2-lstb-card.has-files { border-style: solid; border-color: #10b981; background: #ffffff; }
.k2-req-badge {
    display: inline-block; background: #dc3545; color: #fff; padding: 8px 24px; border-radius: 50rem;
    font-weight: 700; font-size: 12px; letter-spacing: 0.5px; margin-bottom: 1rem; text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}
.k2-lstb-card.has-files .k2-req-badge { background: #10b981; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
.k2-info-box { display: block; margin-top: 1rem; padding: .5rem; text-align: left; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 12px; }
.k2-example {
    position: relative; padding: 0; border-radius: 12px; width: 140px; height: 100px; overflow: hidden;
    border: 2px solid #10b981; background: #fff center/cover no-repeat; transition: transform 0.2s; color: #fff;
}
.k2-example:hover { transform: translateY(-2px); }
.k2-example.k2-blue { border-color: #3b82f6; }
.k2-example::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.k2-example > span { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 12px; letter-spacing: .5px; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.k2-upload-btn { border-radius: 12px; font-size: 16px; background: #10b981; border: none; }
.k2-upload-btn:hover { background: #0e9f6e; }
.k2-lstb-card.has-files .k2-upload-btn { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.k2-lstb-card.has-files .k2-upload-btn:hover { color: var(--primary); background: #f0fdf4; }

.preview-thumb-box .k2-doc {
    width: 100%; height: 100%; border-radius: 12px; border: 2px solid #e2e8f0; background: #f8fafc;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 6px; color: #ef4444; font-size: 26px; overflow: hidden;
}
.preview-thumb-box .k2-doc span { font-size: 10px; font-weight: 600; color: #475569; word-break: break-all; line-height: 1.2; max-height: 3.6em; overflow: hidden; text-align: center; }
.preview-thumb-box .k2-prog {
    position: absolute; inset: 0; border-radius: 12px; background: rgba(255,255,255,.82);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: var(--primary); font-size: 11px; font-weight: 700;
}
.preview-thumb-box .k2-prog .bar { width: 70%; height: 6px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.preview-thumb-box .k2-prog .bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.preview-thumb-box.k2-failed .k2-prog { color: #ef4444; background: rgba(255,245,245,.92); text-align: center; padding: 6px; }

/* ekran "Wniosek przyjęty" */
.k2-done-ico {
    width: 85px; height: 85px; border-radius: 24px; background: #ecfdf5; color: var(--primary);
    font-size: 40px; border: 2px solid #d1fae5;
    display: inline-flex; align-items: center; justify-content: center;
}
.k2-akta { max-width: 480px; border-radius: 20px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; overflow: hidden; position: relative; }
.k2-akta-head { background: #f8fafc; border-color: #f1f5f9 !important; }
.k2-akta-label { display: block; font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; margin-bottom: .25rem; color: #6c757d; }
.k2-akta-blur { filter: blur(5px); opacity: 0.6; user-select: none; pointer-events: none; }
.k2-akta-blur .k2-ph { height: 18px; background: #cbd5e1; border-radius: 4px; }
.k2-akta-blur .k2-ph-doc { height: 40px; width: 35px; background: #94a3b8; border-radius: 6px; }
.k2-akta-hide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.k2-profile-btn { max-width: 480px; border-radius: 16px; background: var(--primary); color: white; font-size: 16px; transition: transform 0.2s; }
.k2-profile-btn:hover { color: #fff; background: #146841; transform: translateY(-3px); }

.k2-alert { border-radius: 12px; font-size: 14px; font-weight: 600; margin-top: 20px; }

/* ==========================================================================
   Test A/B formularza (wersja B „najpierw pytania”), zgoda pod przyciskiem, „nie wiem”
   ========================================================================== */
/* dopóki nie wiadomo, która wersja – bez podpisów kroków (różnią się między A i B) */
.k2-pending .step-label { visibility: hidden; }

/* kafelki w jednym wierszu (zasiłki, kierowca) */
.select-card.k2-row-card { flex-direction: row; justify-content: flex-start; min-height: 74px; }
.select-card.k2-row-card .k2-ico i { margin-bottom: 0; }

/* wersja B: szybkie pytania – jedno pytanie na ekranie */
.k2-qtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.k2-kicker {
    display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .2px;
    color: var(--primary); background: var(--primary-light); border-radius: 50rem; padding: 6px 12px;
}
.k2-dots { display: inline-flex; align-items: center; gap: 6px; }
.k2-dots i { display: block; width: 8px; height: 8px; border-radius: 8px; background: #e2e8f0; transition: all .25s ease; }
.k2-dots i.done { background: #86efac; }
.k2-dots i.on { width: 22px; background: var(--primary); }
.k2-b section[data-step="pytania"] .k2-qlabel {
    font-size: 1.55rem !important; font-weight: 800 !important; color: #0f172a; line-height: 1.25;
    margin-bottom: 1rem !important; letter-spacing: -.3px;
}
.k2-b section[data-step="pytania"] .k2-qhelp { font-size: 14px !important; }
.k2-b section[data-step="pytania"] .select-card { min-height: 118px; }
.k2-b section[data-step="pytania"] .select-card.k2-row-card { min-height: 74px; }
.k2-b section[data-step="pytania"] .select-card .fw-bold.small,
.k2-b section[data-step="pytania"] .select-card-title { font-size: 15px !important; }
@media (max-width: 576px) {
    .k2-b section[data-step="pytania"] .k2-qlabel { font-size: 1.3rem !important; }
}

/* wersja B: „Szczegóły” – przypomnienie wcześniejszej odpowiedzi */
.k2-recall { font-size: 14px; color: #475569; }
.k2-recall b { color: #0f172a; }
.k2-change, .k2-linkbtn {
    border: 0; background: none; padding: 0 2px; margin-left: 4px; color: var(--primary); font-weight: 700;
    text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit;
}
.k2-change:hover, .k2-linkbtn:hover { color: #146841; }
.k2-b section[data-step="szczegoly"] [data-fu].bg-light { background: #f8fafc !important; }

/* wersja B: nagłówek ekranu kontaktu i krótkie podsumowanie odpowiedzi (zwarte, żeby pola były od razu widoczne) */
.k2-b-title { line-height: 1.15; }
.k2-b-lead { font-size: 15px; }
.k2-summary {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 8px 10px;
}
.k2-summary-title { font-size: 12.5px; font-weight: 700; color: #14532d; margin-right: 2px; }
.k2-summary-list { list-style: none; margin: 0; padding: 0; display: contents; }
.k2-summary-list li {
    display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #1e293b;
    background: #fff; border: 1px solid #dcfce7; border-radius: 50rem; padding: 2px 9px; line-height: 1.35;
}
.k2-summary-list i { color: var(--primary); font-size: 11px; }
@media (max-width: 576px) {
    .k2-b-title { font-size: 1.6rem; }
    .k2-b-lead { font-size: 14px; }
    section[data-step="kontakt"] .k2-badge-year { margin-bottom: .6rem !important; }
}
/* ekran „Masz już u nas wniosek” */
.k2-locked-text { font-size: 16px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* zgoda na kontakt – tekst pod przyciskiem „Dalej” (zamiast pola wyboru) */
.k2-consent { font-size: 12.5px; color: #64748b; text-align: center; margin: 12px 4px 4px; line-height: 1.5; }
.k2-consent a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.k2-secure { font-size: 12px; color: #64748b; text-align: center; margin-top: 2px; }
/* Polityka / Regulamin / cookies – nisko pod formularzem, drobno i szaro, żeby nie rozpraszały */
.k2-legal { margin: 72px 4px 8px; font-size: 11px; color: #94a3b8; opacity: .85; }
.k2-legal a { color: #94a3b8; font-weight: 400; }
/* „Nie mam teraz dokumentu – wyślij bez niego” (krok zdjęć) */
.k2-skip-doc { text-align: center; }
.k2-skip-btn {
    display: inline-block; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #cbd5e1;
    background: #fff; color: #334155; font-size: 14px; font-weight: 600; cursor: pointer;
}
.k2-skip-btn:hover, .k2-skip-btn:focus-visible { border-color: #94a3b8; background: #f8fafc; }
.k2-skip-btn:disabled { opacity: .6; cursor: default; }
.k2-skip-note { margin: 6px 0 0; font-size: 12px; color: #64748b; }
.k2-skip-doc.k2-err .k2-skip-btn { border-color: #f59e0b; }

/* „Nie wiem teraz – uzupełnię później” przy dochodach w Polsce */
.k2-unknown { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; user-select: none; }
.k2-unknown .premium-checkbox { width: 20px; height: 20px; }
.k2-unknown-note {
    margin-top: 8px; font-size: 12px; line-height: 1.45; color: #92400e; background: #fffbeb;
    border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px;
}
.k2-ig .form-control:disabled { background: #f1f5f9; }

/* ukryte pole-pułapka na boty (kontener poza ekranem) */
div.k2f-hp { overflow: hidden; pointer-events: none; }

/* 27.10: krótka podpowiedź przy pytaniach o koszty i informacja „inny transport = bez kosztów” */
.k2-cost-tip { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #475569; }
.k2-cost-tip .fa-lightbulb { color: #f59e0b; }
.k2-info-note {
    font-size: 13px; line-height: 1.45; color: #92400e; background: #fffbeb;
    border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px;
}

/* 27.10: pierwszy ekran z linku polecającego (?ref=KOD) – do „Zaczynam” reszta formularza jest ukryta */
#k2f.k2-ref-open .step-panel { display: none !important; }
.k2-ref-intro { padding: 4px 0 8px; }
.k2-ref-deal { font-size: 16px; line-height: 1.5; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 10px 14px; margin: 12px 0 16px; }
.k2-ref-why { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #334155; }
.k2-ref-why li { display: flex; gap: 8px; margin-bottom: 6px; }
.k2-ref-why .fa-check { color: #10b981; margin-top: 4px; }
.k2-ref-how-t { font-weight: 700; color: #0f172a; margin: 0 0 6px; font-size: 14px; }
.k2-ref-how { padding-left: 20px; margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: #475569; }
