:root{
  --rk-bg:#f4f5f7;
  --rk-card:#ffffff;
  --rk-line:#dde3ee;
  --rk-text:#0f172a;
  --rk-muted:#64748b;

  --rk-primary:#3aa5d5;
  --rk-primary2:#0c2340;

  --rk-ok:#0f8a2d;
  --rk-danger:#b91c1c;
  --rk-warn:#b45309;

  --rk-shadow:0 16px 45px rgba(0,0,0,.10);
  --rk-radius:18px;
}

.rk-wrap{ width:min(1000px,85%) !important; margin: 26px auto; padding: 0 14px; }
.rk-card{
  background:var(--rk-card);
  border:1px solid var(--rk-line);
  border-radius:var(--rk-radius);
  box-shadow:var(--rk-shadow);
  overflow:hidden;
}
.rk-topbar{
  padding:14px 16px;
  border-bottom:1px solid var(--rk-line);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background: linear-gradient(180deg, #ffffff, #fbfbff);
}
.rk-pill{
  font-size:12px; font-weight:800;
  color:var(--rk-primary2);
  background: #e1e1e11c;
  border:1px solid rgba(31,79,214,.18);
  padding:8px 10px; border-radius:999px; white-space:nowrap;
}
.rk-progress{
  flex:1; height:10px; background:#eef2ff;
  border-radius:999px; overflow:hidden;
  border:1px solid rgba(31,79,214,.15);
}
#rkProgressBar{
  height:100%; width:0%;
  background: linear-gradient(90deg, #3aa5d5, #0c2340);
  border-radius:999px;
  transition: width .25s ease;
}

.rk-content{ padding:16px; display:grid; gap:12px; }

.rk-step{
  border:1px solid var(--rk-line);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.rk-stepHead{
  padding:12px 14px; display:flex; align-items:center; justify-content:space-around; gap:10px;
  background:#fbfcff; border-bottom:1px solid var(--rk-line);
}
.rk-stepTitle{ display:flex; gap:10px; align-items:center; font-weight:900; font-size:17px; letter-spacing:.2px; color:var(--rk-text); }
.rk-badgeNum{
  width:26px; height:26px; border-radius:999px; display:grid; place-items:center;
  background: #e1e1e11c;
  color: var(--rk-primary2);
  border:1px solid rgba(31,79,214,.18);
  font-weight:1000;
}
.rk-stepHint{ color:var(--rk-muted); font-size:12px; font-weight:600; }
.rk-stepBody{ padding:12px 14px; display:grid; gap:10px; }

.rk-field{ display:grid; gap:6px; padding:10px 0; border-bottom:1px dashed #eef0f6; }
.rk-field:last-child{ border-bottom:none; }
.rk-label{ font-size:14px; color:#111827; font-weight:800; text-align:center; }
.rk-control{ display:flex; justify-content:center; gap:10px; align-items:center; }
.rk-control input{
  width:65%; padding:11px 12px;
  border:1px solid #cfd6e0; border-radius:14px;
  font-size:15px; outline:none; background:#fff;
  color: #040404 !important;
}

#rkFRateOld {gap: 15px;}

.rk-control input:focus{
  border-color:#7aa7ff;
  box-shadow:0 0 0 4px rgba(122,167,255,.18);
}
.rk-suffix{ font-size:12px; color:var(--rk-muted); white-space:nowrap; font-weight:700; }

.rk-options{ display:flex; justify-content:center; gap:10px; margin-top:2px; }
.rk-radio{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 10px;
  border:1px solid var(--rk-line);
  border-radius:14px;
  background:#fff; cursor:pointer;
}
.rk-radio:hover{ border-color: rgba(31,79,214,.25); background: rgba(31,79,214,.04); }
.rk-radio input{ accent-color: var(--rk-primary); margin-top:2px; }
.rk-radio b{ font-size:14px; }
.rk-desc{ color:var(--rk-muted); font-size:12px; margin-top:2px; }

.rk-msg{
  font-size:12px; padding:10px 12px; border-radius:14px;
  border:1px solid var(--rk-line); background:#fff;
}
.rk-msg.rk-err{ border-color: rgba(185,28,28,.25); background: rgba(185,28,28,.06); color: var(--rk-danger); font-weight:700; }
.rk-msg.rk-warn{ border-color: rgba(180,83,9,.25); background: rgba(180,83,9,.06); color: var(--rk-warn); font-weight:700; }
.rk-msg.rk-ok{ border-color: rgba(15,138,45,.25); background: rgba(15,138,45,.06); color: var(--rk-ok); font-weight:700; }

.rk-hidden{ display:none !important; }

.rk-appear{ animation: rkFadeInUp .18s ease both; }
@keyframes rkFadeInUp{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ====== checkboxy stałe / zmienne ====== */
.rk-rateTypeRow{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.rk-checkPill{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--rk-line);
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  user-select:none;
  transition: .15s ease;
}
.rk-checkPill:hover{
  border-color: rgba(31,79,214,.28);
  background: rgba(31,79,214,.04);
}
.rk-checkPill input{
  width:18px;
  height:18px;
}
.rk-checkPill span{
  font-size:13px;
  font-weight:900;
  color: var(--rk-text);
}
.rk-hintSmall{
  margin-top:6px;
  color: var(--rk-muted);
  font-size:12px;
  font-weight:650;
}

/* === BENEFITS UX === */
.rk-benefitsWrap{
  border:2px solid #1f4fd6;
  border-radius:22px;
  background:#f7faff;
  padding:18px;
}
.rk-benefitsTitleMain{
  text-align:center;
  font-weight:1000;
  font-size:18px;
  margin-bottom:14px;
  color: #0f172a;
}
.rk-benefitsTopGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:stretch;
}
.rk-benefitsCard{
  border-radius:18px;
  padding:16px;
  border:1px solid rgba(15,23,42,.15);
  background:#fff;
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
}
.rk-benefitsCardGreen{
  border:2px solid rgba(15,138,45,.55);
  background:#ecfff2;
}
.rk-benefitsCardLabel{
  text-align:center;
  font-size:14px;
  font-weight:900;
  letter-spacing:.6px;
  color: rgba(15,23,42,.6);
  text-transform:uppercase;
}
.rk-benefitsCardValue{
  text-align:center;
  font-size:28px;
  font-weight:700;
  color:#0f172a;
  margin-top:8px;
}
.rk-benefitsCardValueGreen{
  text-align:center;
  font-size:32px;
  font-weight:1200;
  color:#0f8a2d;
  margin-top:8px;
}
.rk-benefitsCardSub{
  text-align:center;
  margin-top:10px;
  font-size:12px;
  color:#64748b;
  font-weight:700;
}

/* === VISUAL COMPARISON CHARTS (DONUT) === */
.rk-visual-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}
.rk-v-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.rk-v-head {
    font-weight: 900;
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--rk-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rk-v-chart-wrap {
    position: relative;
    width: 160px;
    margin: 0 auto 15px;
}
.rk-v-chart {
    transform: rotate(-90deg);
    border-radius: 50%;
}
.rk-v-bg {
    fill: none;
    stroke: #94c947;
    stroke-width: 3.8;
}
.rk-v-segment {
    fill: none;
    stroke: #4f46e5;
    stroke-width: 3.8;
    stroke-linecap: flat;
    transition: stroke-dasharray 0.6s ease;
}
.rk-v-chart-info {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}
.rk-v-chart-info span {
    display: block;
    font-weight: 1000;
    font-size: 14px;
    color: var(--rk-text);
    line-height: 1.2;
}
.rk-v-chart-info small {
    font-size: 10px;
    color: var(--rk-muted);
    font-weight: 700;
}
.rk-v-legend {
    display: grid;
    gap: 8px;
    text-align: left;
    font-size: 13px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}
.rk-v-l-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--rk-muted);
}
.rk-v-l-item strong { color: var(--rk-text); }
.rk-dot { width: 10px; height: 10px; border-radius: 3px; }
.rk-cap-dot { background: #94c947; }
.rk-int-dot { background: #4f46e5; }

.rk-cutBanner{
  margin-top:14px;
  border-radius:18px;
  padding:16px;
  background: linear-gradient(180deg, #1f4fd6, #163aa8);
  color:#fff;
  display:flex;
  gap:14px;
  align-items:center;
  box-shadow: 0 16px 40px rgba(31,79,214,.25);
}
.rk-cutIcon{
  width:54px; height:54px;
  border-radius:999px;
  background: rgba(255,255,255,.16);
  display:grid; place-items:center;
  font-size:22px;
}
.rk-cutSmall{ font-size:14px; opacity:.95; font-weight:800; }
.rk-cutBig{ font-size:34px; font-weight:1200; line-height:1.05; margin-top:2px; }
.rk-cutSmall2{ margin-top:2px; font-size:13px; opacity:.95; font-weight:700; }

.rk-benefitsBottom{
  margin-top:12px;
  text-align:center;
  font-size:13px;
  color:#64748b;
  font-weight:800;
}
.rk-footNote{
  margin-top:12px;
  font-size:13px;
  font-weight:800;
  color:#0f172a;
  text-align:center;
}

/* ===== LEAD / CTA (UPGRADE) ===== */
.rk-lead{
  border:1px solid var(--rk-line);
  border-radius:18px;
  background:#fff;
  padding:16px;
  display:grid;
  gap:12px;
}
.rk-leadTitle{
  font-size:22px;
  font-weight:700;
  color:var(--rk-text);
  margin-bottom:0;
  text-align: center;
}

.rk-leadSubtitle{
  margin-top:0;
  font-size:13px;
  font-weight:750;
  color: var(--rk-muted);
}

.rk-leadTiles{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.rk-leadTile{
  width:100%;
  text-align:center;
  border:1px solid rgba(15,23,42,.12);
  background: white;
  border-radius:5px;
  padding:20px 14px;
  cursor:pointer;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
  transition: transform .10s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  position:relative;
  overflow:hidden;
}

.rk-leadTile:hover{
  transform: translateY(-1px);
  border-color: rgba(31,79,214,.35);
  box-shadow: 0 18px 40px rgba(31,79,214,.12);
}

.rk-leadTile:active{ transform: translateY(0); }

.rk-leadTileTop{
  gap:12px;
  align-items:flex-start;
}

.rk-leadTileTitle{
  font-weight:700;
  font-size:14px;
  color: var(--rk-text);
  line-height:1.25;
}

.rk-leadTileDesc{
  margin-top:6px;
  font-size:12px;
  font-weight:750;
  color: var(--rk-muted);
}

.rk-leadTile:hover .rk-leadTileTitle  {
    color: white;
}

.rk-leadTile.is-active:hover .rk-leadTileTitle {
    color:var(--rk-text);
}

.rk-leadTile.is-active{
  border-color: rgba(31,79,214,.75);
  background-color: white;
  box-shadow: 0 10px 10px rgba(31, 80, 214, 0.068);
}

.rk-leadForm{
  margin-top:12px;
  padding-top:10px;
  border-top:1px dashed rgba(15,23,42,.14);
  display:grid;
  gap:10px;
}

.rk-check{
  display:flex; gap:10px; align-items:flex-start;justify-content:center;
  padding:10px 10px;
  border:1px dashed #eef0f6;
  border-radius:14px;
  color:var(--rk-muted);
  font-size:12px;
}
.rk-check input{ margin-top:2px; accent-color: var(--rk-primary); }

.rk-btn{
 margin: 15px auto;
  width:65%;
  padding:16px 20px;
  border:none;
  border-radius: 5px;
  font-weight:1000;
  cursor:pointer;
  background: #3aa5d5;
  color:#fff;
  font-size:14px;
  letter-spacing:.3px;
  box-shadow: 0 16px 35px rgba(31,79,214,.22);
  transition: transform .10s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}
.rk-btn:hover{
  background: #0c2340;
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(31,79,214,.28);
}
.rk-btn:disabled{ opacity:.6; cursor:not-allowed; }

.rk-btn.is-loading{
  opacity:.8;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.g-recaptcha {justify-items: center;}

/* ===================== MOBILE UX ===================== */
@media(max-width:720px){
  .rk-wrap{ margin: 14px auto; padding: 0 5px; width: 100% !important;}
  .rk-topbar{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .rk-stepTitle { font-size: 18px; }
  .rk-label { font-size: 15px; }
  .rk-options { flex-direction: column; }
  .rk-pill{ text-align:center; white-space:normal; }
  .rk-content{ padding:5px; gap:10px; }
  .rk-stepHead{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .rk-control{ grid-template-columns: 1fr; gap:8px; }
  .rk-suffix{ justify-self:start; padding-left:4px; }
  .rk-control input{ font-size:16px; padding:12px 12px; width:100%; }
  .rk-benefitsTopGrid{ grid-template-columns: 1fr; }
  .rk-cutBanner{ flex-direction:column; align-items:flex-start; }
  .rk-footNote { text-align: center; }
  .rk-cutIcon{ width:48px; height:48px; }
  .rk-cutBig{ font-size:30px; }
  .rk-benefitsCardValue{ font-size:26px; }
  .rk-benefitsCardValueGreen{ font-size:30px; }
  .rk-leadTiles{ grid-template-columns: 1fr; }
  .rk-lead { padding: 20px 10px; }
  .rk-leadTileTitle { font-size: 13px; }
  .rk-visual-comparison { grid-template-columns: 1fr; }
}

/* =========================
   PODZIAŁ 1 RATY
========================= */
.rk-firstRateBox{
  margin-top:18px;
  border:1px solid #dbe5f1;
  border-radius:18px;
  background:#fff;
  padding:18px;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.rk-firstRateHeader{
  font-size:22px;
  font-weight:1000;
  line-height:1.2;
  color:#0f172a;
  margin-bottom:14px;
  text-align: center;
}

.rk-firstRateCompare{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.rk-firstRateCard{
  border:1px solid #e7edf5;
  border-radius:14px;
  background:#f8fbff;
  padding:14px 16px;
}

.rk-firstRateCardNew{
  background:#f4f9ff;
}

.rk-firstRateCardTitle{
  font-size:15px;
  font-weight:1000;
  color:#0f172a;
  margin-bottom:10px;
}

.rk-firstRateRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid #e6edf5;
  font-size:14px;
  line-height:1.35;
}

.rk-firstRateRow:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.rk-firstRateRow span{
  color:#475569;
  font-weight:700;
}

.rk-firstRateRow strong{
  color:#0f172a;
  font-size:15px;
  font-weight:1000;
  white-space:nowrap;
  text-align:right;
}

@media(max-width:720px){
  .rk-firstRateBox{ padding:14px; }
  .rk-firstRateHeader{ font-size:18px; margin-bottom:12px; }
  .rk-firstRateCompare{ grid-template-columns:1fr; gap:12px; }
  .rk-firstRateCard{ padding:12px 14px; }
  .rk-firstRateRow{ font-size:13px; }
  .rk-firstRateRow strong{ font-size:14px; }
}