/* ==========================================================================
   LeaseCalc LZ v2.1.0 — Styles
   Kolory: zielony #10b981 / #059669 | tło #f9fafb | border #e5e7eb
   ========================================================================== */

/* Wrapper */
.lz-calc-wrapper {
    max-width: 860px;
    margin: 0 auto 48px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
    overflow: visible;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #1f2937;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   PRZEŁĄCZNIK TRYBÓW
-------------------------------------------------------------------------- */
.lz-mode-toggle {
    display: flex;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}
.lz-mode-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.18s, border-bottom 0.18s, background 0.18s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    letter-spacing: 0.01em;
}
.lz-mode-btn:hover {
    color: #10b981;
    background: #f0fdf4;
}
.lz-mode-btn.active {
    color: #059669;
    border-bottom-color: #10b981;
    background: #fff;
}

/* --------------------------------------------------------------------------
   Pasek postępu (tryb uproszczony)
-------------------------------------------------------------------------- */
.lz-progress {
    background: #e5e7eb;
    position: relative;
}
.lz-progress-fill {
    height: 6px;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.4s ease;
}
.lz-progress-label {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    padding: 8px 0 6px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Kroki (tryb uproszczony)
-------------------------------------------------------------------------- */
.lz-step { display: none; padding: 32px 36px 28px; }
.lz-step.active {
    display: block;
    animation: lzFadeIn 0.28s ease;
}
@keyframes lzFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lz-step-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.3;
}
.lz-step-sub {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 26px;
}

/* --------------------------------------------------------------------------
   KROK 1 — Siatka kart
-------------------------------------------------------------------------- */
.lz-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.lz-radio-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 10px 14px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select: none;
}
.lz-radio-card input[type="radio"] { position: absolute; opacity: 0; width: 0; }
.lz-radio-card:hover {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
}
.lz-radio-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.18);
}
.lz-radio-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.45;
}
.lz-radio-label small { display: block; font-weight: 400; color: #9ca3af; margin-top: 2px; }

/* --------------------------------------------------------------------------
   KROK 2 — Slider wartości
-------------------------------------------------------------------------- */
.lz-slider-wrap { margin-bottom: 24px; }
.lz-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
    padding: 0 2px;
}
.lz-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
}
.lz-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
    transition: transform 0.15s;
}
.lz-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.lz-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
}
.lz-slider-sm {
    height: 6px;
    margin-top: 10px;
}
.lz-slider-sm::-webkit-slider-thumb { width: 20px; height: 20px; }
.lz-slider-sm::-moz-range-thumb { width: 20px; height: 20px; }
.lz-slider-display {
    text-align: center;
    margin-top: 18px;
}
.lz-slider-display span {
    font-size: 30px;
    font-weight: 800;
    color: #10b981;
    letter-spacing: -0.5px;
}
.lz-range-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    padding: 0 2px;
}

/* --------------------------------------------------------------------------
   KROKI 3 i 4 — Lista radio
-------------------------------------------------------------------------- */
.lz-radio-list { margin-bottom: 18px; }
.lz-radio-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: border-color 0.18s, background 0.18s;
    user-select: none;
}
.lz-radio-item input[type="radio"] { position: absolute; opacity: 0; width: 0; }
.lz-radio-item:hover  { border-color: #10b981; background: #f0fdf4; }
.lz-radio-item.checked { border-color: #10b981; background: #ecfdf5; }
.lz-item-highlight { border-color: #d1fae5; background: #f0fdf4; }
.lz-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s;
}
.lz-radio-item.checked .lz-dot { background: #10b981; border-color: #10b981; }
.lz-badge {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #d1fae5;
    color: #065f46;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Info boxy
-------------------------------------------------------------------------- */
.lz-info-box {
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}
.lz-info-box strong { display: block; margin-bottom: 6px; color: #1e40af; }
.lz-info-box p { margin: 4px 0; color: #374151; }
.lz-info-green { background: #f0fdf4; border-color: #86efac; }
.lz-info-green strong { color: #065f46; }
.lz-info-yellow { background: #fffbeb; border-color: #fcd34d; }
.lz-info-yellow strong { color: #92400e; }
.lz-cta-urgent { font-size: 0.95rem; margin-top: 10px !important; color: #b45309 !important; }
.lz-divider { border: none; border-top: 1px solid #fcd34d; margin: 12px 0; }

/* VAT Alert */
.lz-vat-alert {
    border: 2px solid #fbbf24;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 14px 0 20px;
    background: #fffbeb;
    font-size: 14px;
}
.lz-vat-alert strong { display: block; margin-bottom: 8px; color: #92400e; }
.lz-vat-alert p { margin: 5px 0; color: #78350f; }
.lz-vat-alert a { color: #d97706; font-weight: 600; text-decoration: underline; }

/* --------------------------------------------------------------------------
   KROK 5 — Formularz (tryb uproszczony + pełny)
-------------------------------------------------------------------------- */
.lz-form-group { margin-bottom: 20px; }
.lz-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 7px;
}
.lz-form-group input[type="text"],
.lz-form-group input[type="tel"],
.lz-form-group input[type="email"],
.lz-form-group input[type="number"],
.lz-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.18s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.lz-form-group input:focus,
.lz-form-group select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.lz-field-err {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

/* RODO */
.lz-rodo-group { background: #f9fafb; border-radius: 8px; padding: 14px 16px; }
.lz-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1.5;
}
.lz-check-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #10b981; }
.lz-check-label a { color: #10b981; }

/* Status */
.lz-status { padding: 12px 16px; border-radius: 8px; margin-top: 14px; font-size: 14px; }
.lz-status-ok  { background: #d1fae5; color: #065f46; border: 1px solid #86efac; }
.lz-status-err { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

/* --------------------------------------------------------------------------
   Nawigacja — przyciski
-------------------------------------------------------------------------- */
.lz-nav {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
    align-items: center;
}
.lz-btn {
    padding: 12px 22px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.lz-btn:hover { border-color: #10b981; color: #10b981; }
.lz-btn:disabled {
    opacity: 0.45; cursor: not-allowed;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    background: #fff !important;
}
.lz-btn-next, .lz-btn-primary {
    margin-left: auto;
    background: #10b981;
    color: #fff !important;
    border-color: #10b981;
}
.lz-btn-next:hover:not(:disabled),
.lz-btn-primary:hover:not(:disabled) { background: #059669; border-color: #059669; }
.lz-btn-primary { padding: 14px 30px; font-size: 16px; }
.lz-btn-block { width: 100%; margin-left: 0; justify-content: center; }

/* --------------------------------------------------------------------------
   KROK 6 — Wyniki (tryb uproszczony)
-------------------------------------------------------------------------- */
.lz-result-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 28px 30px;
    margin-bottom: 18px;
}
.lz-result-row { margin-bottom: 20px; }
.lz-result-row:last-child { margin-bottom: 0; }
.lz-result-lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #065f46;
    margin-bottom: 5px;
}
.lz-result-val { display: block; font-size: 36px; font-weight: 800; color: #064e3b; line-height: 1.1; }
.lz-result-val-sm { font-size: 24px; }
.lz-disclaimer { font-size: 12px; color: #9ca3af; margin-bottom: 20px; line-height: 1.5; }
.lz-result-confirm {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 18px 20px;
    font-size: 15px;
}
.lz-result-confirm p { margin: 6px 0; }
.lz-result-confirm a { color: #10b981; font-weight: 700; text-decoration: none; }
.lz-result-confirm a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   TRYB PEŁNY — Zakładki produktów
-------------------------------------------------------------------------- */
.lz-product-tabs {
    display: flex;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    gap: 0;
}
.lz-product-tab {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.18s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    letter-spacing: 0.01em;
}
.lz-product-tab:hover { color: #10b981; background: #f0fdf4; }
.lz-product-tab.active {
    color: #059669;
    border-bottom-color: #10b981;
    background: #fff;
}

/* --------------------------------------------------------------------------
   TRYB PEŁNY — Layout 2-kolumnowy
-------------------------------------------------------------------------- */
.lz-product-panel { animation: lzFadeIn 0.25s ease; }
.lz-full-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
}
.lz-full-inputs {
    padding: 28px 30px;
    border-right: 1px solid #e5e7eb;
}
.lz-full-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 22px;
}
.lz-full-results {
    padding: 28px 24px;
    background: #f9fafb;
    position: sticky;
    top: 0;
}
.lz-wykup-row { margin-top: 10px; }

/* --------------------------------------------------------------------------
   TRYB PEŁNY — Live results karta
-------------------------------------------------------------------------- */
.lz-live-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 14px;
    padding: 22px 20px;
    margin-bottom: 18px;
}
.lz-live-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #065f46;
    margin-bottom: 14px;
}
.lz-live-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid #a7f3d0;
    gap: 10px;
}
.lz-live-row:last-of-type { border-bottom: none; }
.lz-live-highlight { background: rgba(255,255,255,0.55); border-radius: 6px; padding: 8px 8px; }
.lz-live-lbl { font-size: 12px; color: #065f46; flex-shrink: 0; }
.lz-live-val {
    font-size: 15px;
    font-weight: 700;
    color: #064e3b;
    text-align: right;
}
.lz-live-big {
    font-size: 22px;
    font-weight: 800;
    color: #064e3b;
    letter-spacing: -0.5px;
}
.lz-live-disclaimer {
    font-size: 11px;
    color: #6b7280;
    margin-top: 12px;
    text-align: center;
}

/* CTA box pod wynikiem */
.lz-cta-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    text-align: center;
    font-size: 14px;
    color: #374151;
}
.lz-cta-box p { margin: 0 0 12px; }
.lz-cta-box strong { color: #111827; }

/* --------------------------------------------------------------------------
   TRYB PEŁNY — Formularz kontaktowy
-------------------------------------------------------------------------- */
.lzf-contact-form {
    animation: lzFadeIn 0.28s ease;
}
.lzf-form-inner {
    padding: 32px 36px 28px;
}
.lzf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.lzf-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}
.lzf-form-actions .lz-btn-primary { margin-left: auto; }

/* --------------------------------------------------------------------------
   TRYB PEŁNY — Potwierdzenie
-------------------------------------------------------------------------- */
.lzf-confirm {
    padding: 28px 36px;
    animation: lzFadeIn 0.28s ease;
}

/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */
@media (max-width: 720px) {
    .lz-full-layout { grid-template-columns: 1fr; }
    .lz-full-inputs  { border-right: none; border-bottom: 1px solid #e5e7eb; padding: 24px 18px; }
    .lz-full-results { padding: 20px 18px; position: static; }
    .lzf-form-grid { grid-template-columns: 1fr; }
    .lzf-form-inner  { padding: 24px 18px 20px; }
    .lzf-confirm { padding: 20px 18px; }
    .lz-full-title { font-size: 16px; }
}

@media (max-width: 600px) {
    .lz-step { padding: 24px 18px 20px; }
    .lz-radio-grid { grid-template-columns: repeat(2, 1fr); }
    .lz-step-title { font-size: 19px; }
    .lz-slider-display span { font-size: 24px; }
    .lz-result-val { font-size: 26px; }
    .lz-result-val-sm { font-size: 20px; }
    .lz-live-big { font-size: 18px; }
    .lz-mode-btn { font-size: 13px; padding: 12px 10px; }
    .lz-product-tab { font-size: 13px; padding: 12px 10px; }
}

@media (max-width: 380px) {
    .lz-radio-grid { grid-template-columns: 1fr 1fr; }
    .lz-btn-primary { font-size: 15px; padding: 13px 20px; }
}

/* ==========================================================================
   v2.0.0 — NOWE KLASY (9 kategorii, Krok 1b, BIK kolory, legal, próg 250k)
   ========================================================================== */

.lz-card-icon {
    font-size: 30px;
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}
.lz-radio-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* KROK 1b — Wybór produktu */
.lz-product-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.lz-product-card {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 18px 20px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select: none;
    position: relative;
}
.lz-product-card:hover {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.14);
}
.lz-product-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 3px 14px rgba(16, 185, 129, 0.20);
}
.lz-product-card--recommended { border-color: #10b981; }
.lz-prod-icon { font-size: 38px; display: block; margin-bottom: 10px; line-height: 1; }
.lz-prod-title { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 6px; }
.lz-prod-desc { font-size: 13px; color: #6b7280; line-height: 1.55; margin: 0; }
.lz-prod-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 100px;
    background: #d1fae5; color: #065f46; white-space: nowrap; letter-spacing: 0.03em;
}
.lz-badge--blue { background: #dbeafe; color: #1e40af; }

/* VAT warning */
.lz-vat-warning {
    border: 2px solid #fbbf24; border-radius: 10px; padding: 16px 18px;
    margin-top: 16px; background: #fffbeb; font-size: 14px; color: #78350f;
}
.lz-vat-warning strong { display: block; margin-bottom: 6px; color: #92400e; }
.lz-vat-warning p { margin: 4px 0; }

/* Próg 250k */
.lz-threshold-wrap {
    margin-top: 18px; padding: 14px 16px; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 8px;
}
.lz-threshold-wrap > label {
    display: flex; align-items: center; gap: 10px; font-size: 14px;
    color: #374151; cursor: pointer; font-weight: 600; margin-bottom: 0;
}
.lz-threshold-wrap input[type="checkbox"] {
    accent-color: #10b981; width: 17px; height: 17px; flex-shrink: 0; cursor: pointer;
}
#lz-value-manual-wrap { margin-top: 12px; }

/* BIK kropki */
.lz-dot--green  { background: #10b981; border-color: #10b981; }
.lz-dot--gray   { background: #9ca3af; border-color: #9ca3af; }
.lz-dot--yellow { background: #f59e0b; border-color: #f59e0b; }
.lz-dot--orange { background: #f97316; border-color: #f97316; }
.lz-dot--red    { background: #ef4444; border-color: #ef4444; }

.lz-radio-hint {
    font-size: 12px; color: #6b7280; margin: -4px 0 10px 44px; line-height: 1.5;
}
.lz-label-opt { font-weight: 400; color: #9ca3af; font-size: 12px; margin-left: 6px; }

/* Disclaimer prawny */
.lz-disclaimer--legal {
    font-size: 11px; color: #9ca3af; line-height: 1.65; padding: 14px 16px;
    background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; margin-bottom: 18px;
}
.lz-disclaimer--legal strong { color: #6b7280; display: block; margin-bottom: 4px; }

.lz-res-ltv .lz-result-lbl { color: #1e40af; }
.lz-res-ltv .lz-result-val { color: #1e3a8a; font-size: 28px; }

/* Warn boxy — min-height zapobiega skakaniu layoutu gdy warning pojawia/znika */
.lz-warn-box { padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-top: 8px; line-height: 1.4; min-height: 38px; }
.lz-warn-orange { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.lz-warn-blue   { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* Field hint */
.lz-field-hint { font-size: 12px; color: #9ca3af; margin-top: 4px; line-height: 1.4; }

/* Responsive uzupełnienia */
@media (max-width: 720px) {
    .lz-product-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .lz-radio-grid--3col { grid-template-columns: repeat(2, 1fr); }
    .lz-card-icon { font-size: 24px; }
    .lz-product-cards { gap: 10px; }
    .lz-prod-icon { font-size: 30px; }
    .lz-prod-title { font-size: 14px; }
    .lz-prod-desc { font-size: 12px; }
}
@media (max-width: 400px) {
    .lz-product-cards { grid-template-columns: 1fr; }
    .lz-radio-grid--3col { grid-template-columns: repeat(2, 1fr); }
}
