/* /kalkulator-wyceny-firmy. Bolagsplatsen's calculator design (foretagsvardering_kalkylator.php) in the
   SprzedamBiznes landing-page colours: primary #317eff, hover #0f63ff, light background #eaf2ff, Open Sans. */
* { box-sizing: border-box; }
body.kalk-page { font-family: 'Open Sans', Arial, sans-serif; margin: 0; color: #171923; background: #f8f9fb; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.kalk-page a { color: #317eff; text-decoration: none; }
.kalk-page a:hover { text-decoration: underline; }
.kalk-page button { font-family: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.hidden { display: none !important; }

/* Minimal landing header (as /sprzedaj-firme): centred logo only, no navigation */
.bp-header { background: #fff; }
.bp-header .container { display: flex; justify-content: center; padding: 24px 20px; }
.bp-header img { width: 100%; max-width: 320px; }

/* Hero */
.hero { background: linear-gradient(96.87deg, #eaf2ff 0%, #f5f9ff 100%); text-align: center; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; line-height: 1.15; margin: 0 0 16px; }
.hero .subtitle { font-size: clamp(16px, 2.5vw, 19px); color: #54595f; max-width: 680px; margin: 0 auto 28px; }
.hero .subtitle strong { color: #171923; }
.hero-cta { display: inline-block; background: #317eff; border: 2px solid #5c9aff; color: #fff !important; font-weight: 700; font-size: 16px; padding: 14px 36px; border-radius: 10px; transition: all .2s; }
.hero-cta:hover { background: #0f63ff; text-decoration: none !important; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(49,126,255,.3); }

/* Trust bar */
.trust-bar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 20px 0; }
.trust-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.trust-stat { text-align: center; }
.trust-stat .number { display: block; font-size: 28px; font-weight: 800; color: #317eff; }
.trust-stat .label { font-size: 13px; color: #6b7280; font-weight: 600; }

/* Calculator card */
.calc-section { padding: 30px 20px 56px; scroll-margin-top: 20px; }
.calc-card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.08); border: 1px solid rgba(0,0,0,.06); overflow: hidden; }
.calc-inner { padding: 24px 28px 28px; }
@media (min-width: 640px) { .calc-inner { padding: 28px 36px 36px; } }
.progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.progress-label { font-size: 12px; font-weight: 700; color: #317eff; }
.progress-pct { font-size: 12px; color: #9ca3af; }
.progress-bar { width: 100%; height: 8px; background: #f3f4f6; border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.progress-fill { height: 100%; border-radius: 999px; background: #317eff; transition: width .5s ease; }
.step-content { animation: kalkFadeSlideIn .3s ease; }
@keyframes kalkFadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-title { font-size: clamp(20px, 3vw, 24px); font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.title-accent { color: #317eff; }
.step-subtitle { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
.step-options { margin-top: 20px; }

.option-btn { width: 100%; text-align: left; padding: 14px 18px; border: 2px solid #e5e7eb; border-radius: 12px; background: #fff; cursor: pointer; display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: #171923; transition: all .15s; margin-bottom: 10px; }
.option-btn:hover { border-color: #317eff; box-shadow: 0 2px 8px rgba(49,126,255,.12); }
.option-btn .emoji { font-size: 24px; flex-shrink: 0; }

.ind-count { font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.ind-list { position: relative; max-height: calc(5.5 * 46px + 5 * 6px); overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-right: 4px; padding-bottom: 24px; }
.ind-list::after { content: ""; position: sticky; display: block; bottom: -30px; left: 0; right: 0; height: 56px; margin-top: -56px; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.95) 70%, #fff 100%); pointer-events: none; transition: opacity .15s ease; }
.ind-list[data-scrolled="end"]::after { opacity: 0; }
.ind-btn { width: 100%; text-align: left; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; color: #171923; transition: all .15s; margin-bottom: 6px; }
.ind-btn:hover, .ind-btn.active { border-color: #317eff; background: #eaf2ff; }

/* Sliders */
.slider-value-display { text-align: center; margin: 28px 0 4px; }
.slider-value-number { font-size: 40px; font-weight: 800; color: #317eff; line-height: 1.1; }
.slider-value-unit { font-size: 16px; color: #6b7280; margin-left: 8px; font-weight: 600; }
.slider-margin-hint { text-align: center; font-size: 14px; color: #6b7280; margin: 0 0 20px; min-height: 20px; }
.kalk-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: #e5e7eb; outline: none; cursor: pointer; margin: 8px 0 4px; padding: 0; }
.kalk-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: #e5e7eb; }
.kalk-slider::-moz-range-track { height: 6px; border-radius: 999px; background: #e5e7eb; }
.kalk-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #317eff; cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(49,126,255,.35); margin-top: -10px; }
.kalk-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #317eff; cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(49,126,255,.35); }
.kalk-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(49,126,255,.2), 0 2px 8px rgba(49,126,255,.35); }
.kalk-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(49,126,255,.2), 0 2px 8px rgba(49,126,255,.35); }
.slider-scale { display: flex; justify-content: space-between; font-size: 13px; color: #9ca3af; margin-top: 6px; padding: 0 2px; }
.input-hint { font-size: 12px; color: #9ca3af; margin-top: 8px; }
.kalk-guess-ebit { display: block; margin: 20px auto 0; background: none; border: none; color: #317eff; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 4px 8px; }
.kalk-guess-ebit:hover { color: #0f63ff; }

/* Contact step */
.value-checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.value-checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 14px; color: #374151; }
.value-checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 999px; background: #eaf2ff; color: #317eff; font-size: 12px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.form-full { grid-column: 1 / -1; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.field-label .req { color: #317eff; }
.field-label .field-note { font-weight: 400; color: #9ca3af; }
.form-input { width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 15px; color: #171923; font-family: inherit; outline: none; transition: border .2s; }
.form-input:focus { border-color: #317eff; background: #eaf2ff; }
.form-input.parsley-error { border-color: #b00020; background: #fbeeee; }
.parsley-errors-list { list-style: none; margin: 0; padding: 0; }
.parsley-errors-list li { color: #b00020; font-size: 13px; line-height: 18px; padding: 4px 0 0; }
.g-recaptcha { display: flex; justify-content: center; margin: 10px 0; }
.form-error { margin: 4px 0 10px; font-size: 14px; color: #d62f2f; text-align: center; }
.form-error:empty { display: none; }
.consent { font-size: 12px; color: #9ca3af; margin-top: 10px; }
.consent a { color: #6b7280; text-decoration: underline; }

/* Navigation row */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid #f3f4f6; gap: 12px; }
.nav-row.no-divider { border-top: none; padding-top: 0; }
.back-btn { background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 600; color: #6b7280; padding: 8px 0; }
.back-btn:hover { color: #374151; }
.next-btn { padding: 12px 28px; border-radius: 10px; background: #317eff; border: 2px solid #5c9aff; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; transition: all .2s; }
.next-btn:hover { background: #0f63ff; box-shadow: 0 4px 16px rgba(49,126,255,.25); transform: translateY(-1px); }
.next-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }

.trust-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; text-align: center; max-width: 560px; margin: 32px auto 0; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trust-icon { font-size: 24px; }
.trust-label { font-size: 12px; font-weight: 600; color: #6b7280; }

/* Content sections */
.seo-section { padding: 56px 0; background: #fff; }
.seo-section.alt { background: #f8f9fb; }
.seo-section h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
.seo-section p { font-size: 16px; color: #374151; margin: 0 0 16px; }
.step-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 28px 0 0; }
.step-card { background: #eaf2ff; border-radius: 12px; padding: 24px 20px; text-align: center; border: 1px solid #d4e4ff; }
.step-card .step-num { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: #317eff; color: #fff; border-radius: 50%; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.step-card p { font-size: 14px; color: #6b7280; margin: 0; }

.faq-list { margin: 24px 0 0; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq-question { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-size: 16px; font-weight: 700; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "▾"; font-size: 20px; color: #9ca3af; transition: transform .2s; }
.faq-item[open] .faq-question::after { transform: rotate(180deg); }
.faq-question:hover { background: #f8f9fb; }
.faq-answer { padding: 0 20px 16px; font-size: 15px; color: #374151; }

.cross-links { padding: 48px 0 64px; text-align: center; background: #fff; border-top: 1px solid #e5e7eb; }
.cross-links h2 { font-size: 26px; font-weight: 800; margin: 0 0 20px; }
.btn-outline { display: inline-block; border: 2px solid #317eff; color: #317eff; padding: 12px 28px; border-radius: 6px; margin: 6px 8px; font-weight: 700; }
.btn-outline:hover { background: #317eff; color: #fff !important; text-decoration: none !important; }

.bp-footer { padding: 24px 0; text-align: center; color: #999; font-size: 13px; background: #fff; }

/* Thank-you page */
.thank-you-hero { padding: 48px 0 40px; }
.thank-you-hero h1 { margin: 0; }
.result-badge { display: inline-flex; align-items: center; gap: 6px; background: #eaf2ff; color: #317eff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.result-heading { font-size: 18px; font-weight: 700; }
.result-box { margin: 16px 0 20px; padding: 24px 16px; border-radius: 16px; background: linear-gradient(135deg, #f5f9ff, #eaf2ff); border: 2px solid rgba(49,126,255,.15); text-align: center; }
.result-value { font-size: clamp(30px, 6vw, 38px); font-weight: 800; color: #317eff; line-height: 1.2; }
.result-method { font-size: 14px; color: #6b7280; margin: 8px 0 0; }
.result-details { background: #f9fafb; border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 4px 0; }
.detail-row[hidden] { display: none; }
.detail-label { color: #6b7280; }
.detail-value { font-weight: 600; text-align: right; }
.disclaimer { padding: 12px; border-radius: 8px; background: #fffbeb; border: 1px solid #fde68a; font-size: 12px; color: #92400e; }
.cta-btn { display: block; margin-top: 20px; padding: 14px; border-radius: 10px; background: #317eff; color: #fff !important; font-weight: 700; text-align: center; }
.cta-btn:hover { background: #0f63ff; text-decoration: none !important; }
.expert-card { display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 24px auto 0; background: #fff; padding: 18px 22px; border-radius: 12px; border-left: 3px solid #317eff; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.expert-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.expert-card p { margin: 0 0 6px; font-size: 14px; color: #374151; }
.expert-card p[hidden], .expert-card a[hidden] { display: none; }
.expert-card .expert-name { font-weight: 700; color: #171923; }
.expert-link { font-size: 14px; font-weight: 700; }

@media (max-width: 768px) {
  .bp-header .container { padding: 14px 20px; }
  .hero { padding: 28px 0 36px; }
  .hero .subtitle { font-size: 15px; margin-bottom: 18px; }
  .hero-cta { padding: 12px 26px; font-size: 15px; }
  .trust-bar-inner { gap: 8px; padding: 0 10px; }
  .trust-stat .number { font-size: 20px; }
  .trust-stat .label { font-size: 11px; line-height: 1.3; display: block; }
  .calc-section { padding: 16px 16px 40px; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .expert-card { align-items: flex-start; }
}
