/* ── Kalkulator kredytowy — widget inline pod cenę ─────────────────────── */
.mc-widget {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.mc-widget__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.mc-widget__ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b61ff 0%, #1e40af 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mc-widget__title {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
  margin: 0;
}
.mc-widget__sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 18px;
}

/* Two-column layout — sliders+result po lewej, lead form po prawej */
.mc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.mc-col--left  { min-width: 0; }
.mc-col--right { min-width: 0; }

/* W prawej kolumnie (lead form) CTA nie potrzebuje już border-top
   bo jest wizualnie odseparowany od lewej kolumny przez grid gap */
.mc-col--right .mc-cta {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  /* Stylowa karta-w-karcie żeby się odróżniało wizualnie */
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 18px 20px;
}

/* Suwaki */
.mc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin-bottom: 8px;
  align-items: baseline;
}
.mc-row__label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mc-row__value {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  text-align: right;
  white-space: nowrap;
}
.mc-row__slider {
  grid-column: 1 / -1;
}
.mc-row__slider input[type=range] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none; appearance: none;
  background: #e5e7eb;
  border-radius: 99px;
  outline: none;
  margin: 4px 0 2px;
}
.mc-row__slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #0b61ff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11,97,255,.4);
  border: 2px solid #fff;
}
.mc-row__slider input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #0b61ff;
  cursor: pointer;
  border: 2px solid #fff;
}

/* Wynik */
.mc-result {
  margin-top: 18px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  text-align: center;
}
.mc-result__label {
  font-size: 11px;
  font-weight: 800;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.mc-result__value {
  font-size: 29px;
  font-weight: 900;
  color: #0b61ff;
  line-height: 1.1;
  margin-bottom: 2px;
}
.mc-result__meta {
  font-size: 10px;
  color: #1e40af;
}

/* Lead form */
.mc-cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
}
.mc-cta__title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px;
}
.mc-cta__sub {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 12px;
}
.mc-cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mc-cta__form input,
.mc-cta__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.mc-cta__form input:focus,
.mc-cta__form textarea:focus {
  border-color: #0b61ff;
}
.mc-cta__form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 60px;
}
.mc-cta__submit {
  grid-column: 1 / -1;
  background: #f59e0b;
  color: #fff;
  border: 0;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mc-cta__submit:hover { background: #d97706; }
.mc-cta__submit:disabled { background: #9ca3af; cursor: not-allowed; }
.mc-cta__msg {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}
.mc-cta__msg.ok { color: #16a34a; }
.mc-cta__msg.err { color: #dc2626; }

/* Partner CTA — dyskretny linijka pod formą */
.mc-partner {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e5e7eb;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
}
.mc-partner a {
  color: #6b7280;
  text-decoration: underline;
  font-weight: 600;
}
.mc-partner a:hover { color: #0b61ff; }

.mc-disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
}

/* Tablet — 2 kolumny ciasno, fonty niżej */
@media (max-width: 980px) and (min-width: 769px) {
  .mc-cols { gap: 20px; }
  .mc-widget { padding: 20px; }
}

/* Mobile — stack pionowo, single column */
@media (max-width: 768px) {
  .mc-cols { grid-template-columns: 1fr; gap: 22px; }
  /* Lead form: usuwamy wewnętrzną kartę-w-karcie żeby nie dublować boxów */
  .mc-col--right .mc-cta {
    background: transparent;
    border: 0;
    padding: 0;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
  }
}

@media (max-width: 560px) {
  .mc-widget { padding: 16px 18px; margin: 16px 0; }
  .mc-result__value { font-size: 26px; }
  .mc-cta__form { grid-template-columns: 1fr; }
}
