/* WyliczOdszkodowanie - Kalkulator (scoped to .wko-shell) v1.1 */

.wko-shell {
    --navy: #BE4846;
    --navy-dark: #9A3733;
    --navy-light: #D26966;
    --navy-tint: #FBEEED;
    --gold: #8B6F47;
    --gold-dark: #6B5535;
    --paper: #FAF7F4;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #5F6B7A;
    --text-light: #94A0AE;
    --border: #DCD5CE;
    --border-light: #EAE4DC;
    --divider: #F2EEE7;
    --error: #8B1F2F;
    --success: #2D5A3D;
    --shadow-sm: 0 1px 2px rgba(26,26,26,0.04);
    --shadow-md: 0 4px 16px rgba(26,26,26,0.06), 0 1px 3px rgba(26,26,26,0.05);
    --shadow-lg: 0 24px 60px -20px rgba(48,30,28,0.22), 0 8px 24px -12px rgba(48,30,28,0.14);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(1100px 420px at 50% -180px, #F3ECE6 0%, rgba(243,236,230,0) 70%),
        var(--paper);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 48px 16px;
}
.wko-shell *, .wko-shell *::before, .wko-shell *::after { box-sizing: border-box; }
.wko-shell h1, .wko-shell h2, .wko-shell h3, .wko-shell p { margin: 0; padding: 0; }

.wko-shell .k-wrap { max-width: 900px; margin: 0 auto; }
.wko-shell .k-doc {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 60px 68px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.wko-shell .k-doc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 60%, var(--gold) 100%); border-radius: 4px 4px 0 0; }

.wko-shell .k-masthead { border-bottom: 1px solid var(--divider); padding-bottom: 34px; margin-bottom: 40px; }
.wko-shell .k-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 20px; }
.wko-shell .k-meta-label { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); }
.wko-shell .k-meta-label::before { content: ''; width: 18px; height: 1.5px; background: var(--navy); display: inline-block; }
.wko-shell .k-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 34px; font-weight: 600; line-height: 1.18; color: var(--navy); letter-spacing: -0.6px; margin-bottom: 14px; }
.wko-shell .k-subtitle { font-size: 15px; color: var(--text-muted); max-width: 620px; line-height: 1.7; }

.wko-shell .k-stepper { display: flex; gap: 0; margin-bottom: 14px; }
.wko-shell .k-stepper-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px; font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-light); font-weight: 600; text-align: center; transition: color 0.3s; }
.wko-shell .k-stepper-item.active { color: var(--navy); }
.wko-shell .k-stepper-item.done { color: var(--gold); }
.wko-shell .k-stepper-num { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--white); font-family: 'Source Serif 4', serif; font-size: 15px; font-style: italic; font-weight: 600; color: var(--text-light); transition: all 0.3s; }
.wko-shell .k-stepper-item.active .k-stepper-num { border-color: var(--navy); color: var(--white); background: var(--navy); box-shadow: 0 4px 12px -2px rgba(190,72,70,0.45); }
.wko-shell .k-stepper-item.done .k-stepper-num { border-color: var(--gold); color: var(--gold); background: var(--white); }
.wko-shell .k-stepper-label { display: block; line-height: 1.3; }

.wko-shell .k-progress { height: 3px; background: var(--divider); margin-bottom: 40px; position: relative; border-radius: 2px; overflow: hidden; }
.wko-shell .k-progress-fill { position: absolute; left: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--navy-light)); transition: width 0.45s cubic-bezier(0.4,0,0.2,1); border-radius: 2px; }

.wko-shell .k-step { display: none; }
.wko-shell .k-step.active { display: block; animation: wko-fade 0.45s cubic-bezier(0.16,1,0.3,1); }
@keyframes wko-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wko-shell .k-section-head { margin-bottom: 32px; }
.wko-shell .k-section-num { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.wko-shell .k-section-title { font-family: 'Source Serif 4', serif; font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.22; margin-bottom: 10px; letter-spacing: -0.4px; }
.wko-shell .k-section-lead { font-size: 14px; color: var(--text-muted); max-width: 580px; line-height: 1.65; }

.wko-shell .k-fieldset { margin-bottom: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--divider); }
.wko-shell .k-fieldset:last-of-type { border-bottom: none; padding-bottom: 0; }
.wko-shell .k-fieldset-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 16px; letter-spacing: 0.1px; }
.wko-shell .k-fieldset-hint { font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 12px; line-height: 1.55; padding-left: 14px; border-left: 2px solid var(--border-light); }

.wko-shell .k-grid { display: grid; gap: 10px; }
.wko-shell .k-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wko-shell .k-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wko-shell .k-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.wko-shell .k-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.wko-shell .k-opt { padding: 14px 16px; border: 1px solid var(--border); border-radius: 3px; background: var(--white); cursor: pointer; transition: all 0.18s cubic-bezier(0.4,0,0.2,1); font-size: 13.5px; font-weight: 500; color: var(--text); text-align: left; user-select: none; display: flex; align-items: center; gap: 11px; line-height: 1.4; }
.wko-shell .k-opt:hover { border-color: var(--navy-light); background: var(--navy-tint); }
.wko-shell .k-opt.selected { border-color: var(--navy); background: var(--navy); color: var(--white); box-shadow: 0 6px 16px -6px rgba(190,72,70,0.5); }
.wko-shell .k-opt input { display: none; }
.wko-shell .k-opt-marker { width: 16px; height: 16px; border: 1.5px solid var(--border); flex-shrink: 0; border-radius: 50%; background: var(--white); position: relative; transition: all 0.18s; }
.wko-shell .k-opt:hover .k-opt-marker { border-color: var(--navy); }
.wko-shell .k-opt.selected .k-opt-marker { border-color: var(--white); background: var(--white); }
.wko-shell .k-opt.selected .k-opt-marker::after { content: ''; position: absolute; top: 3px; left: 3px; width: 7px; height: 7px; background: var(--navy); border-radius: 50%; }

.wko-shell .k-opt-card { padding: 26px 24px; flex-direction: column; align-items: flex-start; gap: 0; min-height: 168px; position: relative; }
.wko-shell .k-opt-card .k-opt-marker { position: absolute; top: 24px; right: 24px; }
.wko-shell .k-opt-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-tint); color: var(--navy); margin-bottom: 16px; transition: all 0.18s; }
.wko-shell .k-opt-icon svg { width: 24px; height: 24px; }
.wko-shell .k-opt-card:hover .k-opt-icon { background: var(--white); }
.wko-shell .k-opt-card.selected .k-opt-icon { background: rgba(255,255,255,0.16); color: var(--white); }
.wko-shell .k-opt-card-title { font-family: 'Source Serif 4', serif; font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--navy); margin-bottom: 6px; letter-spacing: -0.2px; }
.wko-shell .k-opt-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; font-weight: 400; }
.wko-shell .k-opt-card.selected .k-opt-card-title { color: var(--white); }
.wko-shell .k-opt-card.selected .k-opt-card-desc { color: rgba(255,255,255,0.82); }

.wko-shell .k-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 3px; background: var(--white); cursor: pointer; transition: all 0.18s; font-size: 13.5px; }
.wko-shell .k-check:hover { border-color: var(--navy-light); background: var(--navy-tint); }
.wko-shell .k-check.checked { border-color: var(--navy); background: var(--navy-tint); }
.wko-shell .k-check input { margin: 1px 0 0; width: 16px; height: 16px; accent-color: var(--navy); flex-shrink: 0; cursor: pointer; }
.wko-shell .k-check-text { font-weight: 500; color: var(--text); line-height: 1.4; }
.wko-shell .k-check.checked .k-check-text { color: var(--navy-dark); }

.wko-shell .k-input { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 3px; background: var(--white); font-size: 14.5px; font-family: inherit; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.wko-shell .k-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(190,72,70,0.12); }
.wko-shell .k-input::placeholder { color: var(--text-light); }
.wko-shell .k-input-wrap { position: relative; }
.wko-shell .k-input-wrap[data-suffix]::after { content: attr(data-suffix); position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; font-weight: 600; pointer-events: none; }

.wko-shell .k-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--divider); }
.wko-shell .k-btn { padding: 15px 34px; font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: 1.5px solid var(--navy); border-radius: 3px; background: var(--white); color: var(--navy); cursor: pointer; transition: all 0.18s cubic-bezier(0.4,0,0.2,1); display: inline-flex; align-items: center; gap: 9px; }
.wko-shell .k-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.wko-shell .k-btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px -8px rgba(190,72,70,0.6); }
.wko-shell .k-btn-primary:hover:not(:disabled) { background: var(--navy-dark); border-color: var(--navy-dark); box-shadow: 0 10px 26px -8px rgba(190,72,70,0.7); }
.wko-shell .k-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.wko-shell .k-btn-ghost { border-color: var(--border); color: var(--text-muted); }
.wko-shell .k-btn-ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--navy); }
.wko-shell .k-btn-arrow { width: 15px; height: 15px; }

.wko-shell .k-result { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 130%); color: var(--white); padding: 52px 56px; margin-bottom: 24px; border-radius: 4px; position: relative; overflow: hidden; box-shadow: 0 20px 48px -16px rgba(190,72,70,0.5); }
.wko-shell .k-result::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border: 1.5px solid rgba(255,255,255,0.12); border-radius: 50%; }
.wko-shell .k-result::before { content: ''; position: absolute; right: -10px; bottom: -90px; width: 200px; height: 200px; border: 1.5px solid rgba(255,255,255,0.08); border-radius: 50%; }
.wko-shell .k-result-inner { position: relative; z-index: 1; }
.wko-shell .k-result-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2.6px; color: rgba(255,255,255,0.78); font-weight: 600; margin-bottom: 18px; }
.wko-shell .k-result-amount { font-family: 'Source Serif 4', serif; font-size: 60px; font-weight: 600; line-height: 1; letter-spacing: -2px; margin-bottom: 14px; }
.wko-shell .k-result-range { font-size: 13.5px; color: rgba(255,255,255,0.74); font-weight: 400; }
.wko-shell .k-result-range strong { color: var(--white); font-weight: 600; }

.wko-shell .k-breakdown { background: var(--white); border: 1px solid var(--border-light); border-radius: 4px; padding: 34px 38px; margin-bottom: 20px; box-shadow: var(--shadow-md); }
.wko-shell .k-breakdown-title { font-family: 'Source Serif 4', serif; font-size: 18px; font-weight: 600; color: var(--navy); padding-bottom: 16px; border-bottom: 1px solid var(--border-light); margin-bottom: 4px; letter-spacing: -0.2px; }
.wko-shell .k-breakdown-item { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dotted var(--border-light); font-size: 13.5px; gap: 24px; }
.wko-shell .k-breakdown-item:last-of-type { border-bottom: none; }
.wko-shell .k-bd-label { color: var(--text); flex: 1; line-height: 1.5; }
.wko-shell .k-bd-art { display: inline-block; font-size: 11px; color: var(--text-light); margin-left: 6px; font-style: italic; }
.wko-shell .k-bd-value { font-family: 'Source Serif 4', serif; font-weight: 600; color: var(--navy); white-space: nowrap; font-size: 15px; }
.wko-shell .k-bd-value.negative { color: var(--error); }
.wko-shell .k-breakdown-total { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; margin: 12px -38px -34px; background: var(--navy-tint); border-top: 2px solid var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: var(--navy); border-radius: 0 0 4px 4px; }
.wko-shell .k-breakdown-total .k-bd-value { font-size: 24px; }

.wko-shell .k-disclaimer { background: var(--paper); border: 1px solid var(--border-light); border-left: 3px solid var(--gold); border-radius: 3px; padding: 22px 28px; margin-bottom: 32px; font-size: 12.5px; color: var(--text-muted); line-height: 1.75; }
.wko-shell .k-disclaimer-label { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--gold-dark); font-weight: 700; margin-bottom: 9px; }
.wko-shell .k-disclaimer-label svg { width: 14px; height: 14px; }

.wko-shell .k-contact { background: var(--white); border: 1px solid var(--border-light); border-radius: 4px; padding: 44px 48px; box-shadow: var(--shadow-md); }
.wko-shell .k-contact-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 2.2px; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.wko-shell .k-contact-title { font-family: 'Source Serif 4', serif; font-size: 23px; font-weight: 600; color: var(--navy); margin-bottom: 10px; letter-spacing: -0.3px; }
.wko-shell .k-contact-lead { font-size: 13.5px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.65; max-width: 540px; }
.wko-shell .k-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wko-shell .k-form-row { margin-bottom: 0; }
.wko-shell .k-form-row.full { grid-column: 1 / -1; }
.wko-shell .k-form-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); font-weight: 700; margin-bottom: 7px; }
.wko-shell .k-form-label .k-required { color: var(--error); }
.wko-shell .k-rodo { display: flex; align-items: flex-start; gap: 11px; padding: 20px 0 22px; cursor: pointer; }
.wko-shell .k-rodo input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; flex-shrink: 0; }
.wko-shell .k-rodo-text { font-size: 11.5px; color: var(--text-muted); line-height: 1.65; }
.wko-shell .k-rodo-text a { color: var(--navy); text-decoration: underline; }

.wko-shell .k-confirm { text-align: center; padding: 64px 24px; }
.wko-shell .k-confirm-mark { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--navy-tint); margin-bottom: 24px; color: var(--navy); }
.wko-shell .k-confirm-mark svg { width: 32px; height: 32px; }
.wko-shell .k-confirm-title { font-family: 'Source Serif 4', serif; font-size: 25px; font-weight: 600; color: var(--navy); margin-bottom: 10px; letter-spacing: -0.3px; }
.wko-shell .k-confirm-lead { font-size: 14px; color: var(--text-muted); max-width: 400px; margin: 0 auto; line-height: 1.65; }

.wko-shell .k-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--divider); font-size: 11px; color: var(--text-light); letter-spacing: 0.4px; }
.wko-shell .k-footer svg { width: 13px; height: 13px; opacity: 0.6; }

@media print {
    @page { margin: 16mm 14mm; size: A4; }
    /* Ukryj cala strone WordPress - drukuj tylko raport kalkulatora */
    body * { visibility: hidden !important; }
    .wko-shell, .wko-shell * { visibility: visible !important; }
    .wko-shell { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; }
    body { background: #fff !important; }
    .wko-shell { background: #fff; padding: 0; font-size: 11pt; line-height: 1.5; color: #000; }
    .wko-shell .k-wrap { padding: 0; max-width: 100%; }
    .wko-shell .k-doc { border: none; padding: 0; box-shadow: none; }
    .wko-shell .k-doc::before { display: none; }
    .wko-shell .k-stepper,
    .wko-shell .k-progress,
    .wko-shell .k-actions,
    .wko-shell .k-btn,
    .wko-shell .k-contact,
    .wko-shell .k-confirm,
    .wko-shell .k-step:not([data-step="6"]),
    .wko-shell .k-fieldset-hint { display: none !important; }
    .wko-shell .k-step[data-step="6"] { display: block !important; }
    .wko-shell .k-step[data-step="6"] .k-section-num { display: none; }
    .wko-shell .k-masthead { border-bottom: 2px solid #000; padding-bottom: 14pt; margin-bottom: 20pt; }
    .wko-shell .k-title { font-size: 22pt; color: #000; }
    .wko-shell .k-section-title { font-size: 16pt; color: #000; }
    .wko-shell .k-section-head { margin-bottom: 16pt; }
    .wko-shell .k-meta { color: #000; }
    .wko-shell .k-meta-label { color: var(--navy); }
    .wko-shell .k-result { background: #fff; color: #000; border: 2px solid #000; border-left: 4px solid var(--navy); padding: 20pt 24pt; page-break-inside: avoid; margin-bottom: 14pt; box-shadow: none; }
    .wko-shell .k-result::after, .wko-shell .k-result::before { display: none; }
    .wko-shell .k-result-label { color: var(--navy); }
    .wko-shell .k-result-amount { color: #000; font-size: 32pt; }
    .wko-shell .k-result-range { color: #333; }
    .wko-shell .k-result-range strong { color: #000; }
    .wko-shell .k-breakdown { background: #fff; border: 1px solid #000; padding: 16pt 20pt; page-break-inside: avoid; margin-bottom: 14pt; box-shadow: none; }
    .wko-shell .k-breakdown-title { color: #000; border-bottom-color: #000; }
    .wko-shell .k-bd-label, .wko-shell .k-bd-value { color: #000; }
    .wko-shell .k-bd-art { color: #444; }
    .wko-shell .k-breakdown-total { color: #000; border-top-color: #000; background: #f0f0f0; margin: 12pt 0 0; }
    .wko-shell .k-disclaimer { background: #fff; border: 1px solid #888; border-left: 4px solid var(--navy); color: #000; page-break-inside: avoid; margin-bottom: 14pt; }
    .wko-shell .k-disclaimer-label { color: var(--navy); }
    .wko-shell .k-footer { color: #444; border-top: 1px solid #888; margin-top: 16pt; padding-top: 10pt; font-size: 9pt; }
    .wko-shell a { color: #000; text-decoration: none; }
}

@media (max-width: 720px) {
    .wko-shell { padding: 20px 6px; }
    .wko-shell .k-doc { padding: 32px 22px; }
    .wko-shell .k-title { font-size: 25px; }
    .wko-shell .k-section-title { font-size: 21px; }
    .wko-shell .k-result { padding: 34px 26px; }
    .wko-shell .k-result-amount { font-size: 42px; }
    .wko-shell .k-breakdown, .wko-shell .k-contact { padding: 26px 22px; }
    .wko-shell .k-breakdown-total { margin-left: -22px; margin-right: -22px; }
    .wko-shell .k-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .wko-shell .k-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .wko-shell .k-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .wko-shell .k-grid.cols-2 { grid-template-columns: 1fr; }
    .wko-shell .k-form-grid { grid-template-columns: 1fr; }
    .wko-shell .k-stepper-label { display: none; }
    .wko-shell .k-stepper-num { width: 32px; height: 32px; font-size: 13px; }
    .wko-shell .k-actions { flex-direction: column-reverse; align-items: stretch; }
    .wko-shell .k-btn { width: 100%; justify-content: center; }
}