.elementor-3885 .elementor-element.elementor-element-42d439f{--display:flex;}/* Start custom CSS for container, class: .elementor-element-42d439f */:root {
  --navy:    #0F1E33;
  --navy2:   #1A3560;
  --bg:      #F4F5F8;
  --border:  #DDE3EE;
  --font:    'Rubik', sans-serif;
  --gold-bg: #FFF8E8;
  --gold:    #C8973C;
  --muted:   #6B7A94;
  --surface: #FFFFFF;
  --radius:  10px;
  --shadow:  0 2px 12px rgba(15,30,51,.09);
  --red:     #D93030;
  --text:    #0F1E33;
  --success: #1a7a4a;
  --success-bg: #eaf5ee;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg); direction: rtl;
  -webkit-font-smoothing: antialiased;
}

/* PAGE TITLE */
.page-title-bar { background: var(--bg); padding: 28px 32px 20px; }
.page-title-bar h1 { font-size: 1.6em; font-weight: 800; color: var(--navy); margin-bottom: 6px; letter-spacing: -0.3px; }
.page-title-bar p { font-size: 0.9em; color: var(--muted); line-height: 1.5; }

/* WRAP + CARD */
.main-wrap { max-width: 900px; margin: 0 auto 52px; padding: 0 20px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.calc-body { padding: 26px 28px 22px; }
.section-divider { height: 1px; background: var(--border); margin: 22px 0; }
.section-heading {
  font-size: 0.82em; font-weight: 700; color: var(--navy);
  margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1.5px solid var(--border);
}

/* BORROWER TILES */
.borrower-tiles { display: flex; gap: 10px; margin-bottom: 0; flex-wrap: wrap; align-items: stretch; }
.borrower-tile {
  flex: 0 0 auto; width: 72px; padding: 14px 10px 12px;
  border: 2px solid var(--border); border-radius: var(--radius);
  text-align: center; cursor: pointer; background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none; font-family: var(--font);
}
.borrower-tile:hover { border-color: #b0b8cc; background: #eef0f6; }
.borrower-tile:focus-visible { outline: 2px solid var(--navy2); outline-offset: 2px; }
.borrower-tile.selected {
  border-color: var(--navy2); background: #EFF5FF;
  box-shadow: 0 0 0 3px rgba(26,53,96,0.12);
}
.borrower-tile .bt-num {
  font-size: 1.8em; font-weight: 900; color: var(--navy); line-height: 1;
}
.borrower-tile.selected .bt-num { color: var(--navy2); }
.borrower-tile .bt-lbl {
  font-size: 0.68em; font-weight: 500; color: var(--muted); margin-top: 3px; line-height: 1.3;
}
.borrower-tile.selected .bt-lbl { color: var(--navy); font-weight: 600; }
.borrower-add-btn {
  flex: 0 0 auto; width: 72px; box-sizing: border-box; padding: 14px 10px 12px;
  border: 2px dashed var(--border); border-radius: var(--radius);
  text-align: center; cursor: pointer; background: transparent;
  transition: border-color .15s, background .15s;
  font-family: var(--font); appearance: none; -webkit-appearance: none;
  margin: 0; line-height: normal;
}
.borrower-add-btn:hover { border-color: var(--navy2); background: #EFF5FF; }
.borrower-add-btn:focus-visible { outline: 2px solid var(--navy2); outline-offset: 2px; }
.borrower-add-btn .bt-num { font-size: 1.8em; font-weight: 900; color: var(--muted); line-height: 1; }
.borrower-add-btn .bt-lbl { font-size: 0.68em; font-weight: 500; color: var(--muted); margin-top: 3px; line-height: 1.3; }

/* TWO COLUMNS */
.io-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.io-col { display: flex; flex-direction: column; }
.io-col-heading {
  font-size: 0.82em; font-weight: 700; color: var(--navy);
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1.5px solid var(--border);
}
.io-col .col-total { margin-top: auto; }

/* SUB-FIELDS */
.subfields-list { display: flex; flex-direction: column; gap: 7px; }
.subfield-group { display: flex; flex-direction: column; gap: 3px; }
.subfield-group label { font-size: 0.76em; font-weight: 500; color: var(--muted); }
.subfield-group input[type="number"] {
  font-family: var(--font); font-size: 0.88em; color: var(--text);
  width: 100%; padding: 7px 10px; border: 1.5px solid var(--border);
  border-radius: 7px; background: var(--bg); outline: none;
  transition: border-color .15s, box-shadow .15s;
  text-align: right; direction: rtl; appearance: none; -webkit-appearance: none;
}
.subfield-group input[type="number"]:hover { border-color: #b0b8cc; }
.subfield-group input[type="number"]:focus {
  border-color: var(--navy2); box-shadow: 0 0 0 2px rgba(26,53,96,0.10);
  background: var(--surface);
}

/* Additional borrower income rows inside income column */
.extra-borrower { display: none; margin-top: 8px; }
.extra-borrower.visible { display: flex; align-items: center; gap: 6px; }
.extra-borrower-inner { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.extra-borrower label { font-size: 0.76em; font-weight: 600; color: var(--navy2); }
.extra-borrower input[type="number"] {
  font-family: var(--font); font-size: 0.88em; color: var(--text);
  width: 100%; padding: 7px 10px;
  border: 1.5px solid var(--navy2); border-radius: 7px;
  background: #EFF5FF; outline: none;
  transition: border-color .15s, box-shadow .15s;
  text-align: right; direction: rtl; appearance: none; -webkit-appearance: none;
}
.extra-borrower input[type="number"]:focus {
  box-shadow: 0 0 0 2px rgba(26,53,96,0.12); background: var(--surface);
}
.btn-remove-borrower {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #fdecea; border: none; cursor: pointer; color: var(--red);
  font-size: 0.85em; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background .12s; margin-top: 18px;
}
.btn-remove-borrower:hover { background: #f5c0bc; }

/* LEAD FORM */
.lead-card { margin-top: 0; }
.lead-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 13px 24px;
}
.lead-header-label { font-size: 0.76em; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .9px; }
.lead-header h3 { font-size: 1.05em; font-weight: 700; color: #fff; margin-top: 4px; }
.lead-body { padding: 22px 28px; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.lead-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 0; }
.lead-field { display: flex; flex-direction: column; gap: 5px; }
.lead-field label { font-size: 0.82em; font-weight: 600; color: var(--navy); }
.lead-field input {
  font-family: var(--font); font-size: 0.95em; color: var(--text);
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg); outline: none;
  transition: border-color .15s, box-shadow .15s;
  text-align: right; direction: rtl;
}
.lead-field input:hover { border-color: #b0b8cc; }
.lead-field input:focus { border-color: var(--navy2); box-shadow: 0 0 0 3px rgba(26,53,96,0.12); background: var(--surface); }
.lead-error { font-size: 0.82em; color: var(--red); background: #fdecea; border: 1px solid #f5c0bc; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; display: none; }
.lead-error.visible { display: block; }
.lead-success { font-size: 0.88em; color: var(--success); background: var(--success-bg); border: 1px solid #a8d5bc; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; display: none; }
.lead-success.visible { display: block; }
.btn-lead {
  font-family: var(--font); display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 28px; background: var(--gold); border: none;
  border-radius: var(--radius); color: #fff; font-size: .95em; font-weight: 700;
  cursor: pointer; transition: background .15s, box-shadow .15s;
}
.btn-lead:hover { background: #b07a2a; box-shadow: 0 4px 14px rgba(200,151,60,.3); }
.lead-note { font-size: .71em; color: var(--muted); margin-top: 10px; }
@media (max-width: 480px) {
  .lead-fields { grid-template-columns: 1fr; }
  .lead-body { padding: 16px 12px; }
}

/* PENSION NOTE */
.pension-note {
  font-size: 0.69em; color: var(--gold);
  background: var(--gold-bg); border: 1px solid rgba(200,151,60,0.3);
  border-radius: 6px; padding: 5px 9px; margin-top: 6px; line-height: 1.45;
  display: none;
}

/* COLUMN TOTAL */
.col-total {
  margin-top: 20px !important;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 7px;
  border: 1.5px solid var(--navy2); background: #EFF5FF; margin-top: 16px;
}
.col-total-label { font-size: 0.74em; font-weight: 600; color: var(--muted); }
.col-total-value { font-size: 1.05em; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }

/* DISPOSABLE SUMMARY ROW */
.disposable-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 18px; }
.summary-cell {
  padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  display: flex; flex-direction: column; gap: 3px;
}
.summary-cell.highlight-cell { border-color: var(--navy2); background: var(--navy); }
.summary-cell-label { font-size: 0.72em; font-weight: 600; color: var(--muted); }
.summary-cell.highlight-cell .summary-cell-label { color: rgba(255,255,255,.6); }
.summary-cell-value { font-size: 1.15em; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1; }
.summary-cell.highlight-cell .summary-cell-value { color: #fff; }

/* GENERAL FIELD */
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label { font-size: 0.82em; font-weight: 600; color: var(--navy); }
.field-group input[type="number"], .field-group select {
  font-family: var(--font); font-size: 0.95em; color: var(--text);
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg); outline: none;
  transition: border-color .15s, box-shadow .15s;
  text-align: right; direction: rtl; appearance: none; -webkit-appearance: none;
}
.field-group input[type="number"]:hover, .field-group select:hover { border-color: #b0b8cc; }
.field-group input[type="number"]:focus, .field-group select:focus {
  border-color: var(--navy2); box-shadow: 0 0 0 3px rgba(26,53,96,0.12);
  background: var(--surface);
}

/* PTI */
.pti-label { font-size: 0.82em; font-weight: 600; color: var(--navy); margin-bottom: 9px; }
.pti-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.pti-btn {
  position: relative; padding: 22px 10px 14px;
  border: 2px solid var(--border); border-radius: var(--radius);
  text-align: center; cursor: pointer; background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  user-select: none;
}
.pti-btn:hover { border-color: #b0b8cc; background: #eef0f6; }
.pti-btn:focus-visible { outline: 2px solid var(--navy2); outline-offset: 2px; }
.pti-btn.selected { border-color: var(--navy2); background: #EFF5FF; box-shadow: 0 0 0 3px rgba(26,53,96,0.12); }
.pti-btn.selected .pct { color: var(--navy2); }
.pti-btn.selected .lbl { color: var(--navy); font-weight: 600; }
.pti-btn .pct { font-size: 1.75em; font-weight: 900; color: var(--navy); line-height: 1; }
.pti-btn .lbl { font-size: 0.68em; font-weight: 500; color: var(--muted); text-align: center; line-height: 1.35; }
.pti-btn.aico { border-color: var(--gold); background: var(--gold-bg); padding-top: 22px; }
.pti-btn.aico:hover { background: #fff3d6; border-color: #b07a2a; }
.pti-btn.aico.selected { background: var(--gold-bg); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,151,60,0.2); }
.pti-btn.aico .pct { color: var(--gold); }
.pti-btn.aico.selected .pct { color: var(--gold); }
.pti-btn.aico.selected .lbl { color: var(--gold); font-weight: 600; }
.badge-aico {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: 0.60em; font-weight: 700;
  padding: 2px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none;
}
.pti-btn.custom { gap: 5px; padding-top: 17px; }
.custom-input-row { display: flex; align-items: center; gap: 4px; justify-content: center; direction: ltr; }
.pti-btn.custom input[type="number"] { -webkit-appearance: none; -moz-appearance: textfield; appearance: textfield; }
.pti-btn.custom input[type="number"]::-webkit-inner-spin-button,
.pti-btn.custom input[type="number"]::-webkit-outer-spin-button { display: none; }
.custom-num-wrap {
  display: flex; align-items: stretch; border: none; outline: 1.5px solid var(--border);
  border-radius: 6px; overflow: hidden; background: var(--surface);
  transition: border-color .15s;
}
.custom-num-wrap:focus-within { outline-color: var(--navy2); }
.custom-spinners { display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.spin-btn {
  font-family: var(--font); width: 22px; flex: 1; background: #f0f2f7;
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--muted); font-size: 0.6em;
  line-height: 1; transition: background .12s, color .12s; padding: 0;
}
.spin-btn:hover { background: #e2e6ef; color: var(--navy); }
.pti-btn.custom input[type="number"] {
  font-family: var(--font); font-size: 1.75em; font-weight: 900; color: var(--navy);
  width: 68px; padding: 2px 6px; border: none; text-align: right;
  background: var(--surface); outline: none; direction: ltr; line-height: 1;
}
.pct-sign { font-size: 1.75em; font-weight: 900; color: var(--navy); line-height: 1; }

/* ERROR + BUTTON */
.error-msg {
  font-size: 0.82em; color: var(--red); background: #fdecea;
  border: 1px solid #f5c0bc; border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 10px; display: none;
}
.error-msg.visible { display: block; }
.btn-calc {
  font-family: var(--font); width: 100%; padding: 13px; background: var(--navy);
  border: none; border-radius: var(--radius); font-size: 0.97em; font-weight: 700;
  color: #fff; cursor: pointer; margin-top: 4px;
  transition: background .18s, transform .1s;
}
.btn-calc:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-calc:active { transform: none; }
.btn-calc:focus-visible { outline: 2px solid var(--navy2); outline-offset: 2px; }

/* RESULTS */
.results-card { display: none; }
.results-card.visible { display: block; }
.results-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 13px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.results-header-label { font-size: 0.76em; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .9px; }
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px; font-size: .80em; font-weight: 600;
}
.status-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.status-badge.ok   { background: var(--success-bg); color: var(--success); }
.status-badge.warn { background: #fff8e2; color: #a06a00; }
.status-badge.bad  { background: #fdecea; color: var(--red); }
.results-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.result-cell { padding: 20px 22px; border-left: 1px solid var(--border); }
.result-cell:last-child { border-left: none; }
.r-label { font-size: .77em; font-weight: 500; color: var(--muted); margin-bottom: 7px; line-height: 1.3; }
.r-value { font-size: 1.5em; font-weight: 900; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.r-value.highlight { color: var(--gold); }
.results-footer {
  padding: 16px 22px; border-top: 1px solid var(--border); background: #F9FAFD;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.btn-sec {
  font-family: var(--font); padding: 10px 18px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  color: var(--muted); font-size: .84em; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s; white-space: nowrap;
  text-decoration: none; display: inline-block;
}
.btn-sec:hover { border-color: var(--navy2); color: var(--navy); }
.btn-gold {
  font-family: var(--font); display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; background: var(--gold); border: none;
  border-radius: var(--radius); color: #fff; font-size: .84em; font-weight: 700;
  cursor: pointer; transition: background .15s, box-shadow .15s;
  white-space: nowrap; text-decoration: none;
}
.btn-gold:hover { background: #b07a2a; box-shadow: 0 4px 14px rgba(200,151,60,.3); }
.btn-gold svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.disclaimer { font-size: .71em; color: var(--muted); margin-right: auto; line-height: 1.4; }

/* COPYRIGHT FOOTER */
.site-footer {
  text-align: center; padding: 20px; font-size: 0.78em;
  color: var(--muted); border-top: 1px solid var(--border);
  margin-top: 8px; user-select: none;
}

/* COPY PROTECTION */
.results-body, .disposable-row { user-select: none; }

/* PRINT HEADER (logo + copyright, hidden on screen) */
.print-header { display: none; }

@media print {
  @page { margin: 12mm 14mm; size: A4 portrait; }
  html, body { font-size: 11px; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-header {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 0 0 10px; border-bottom: 2px solid #C8973C; margin-bottom: 14px;
  }
  .print-header img { height: 80px; width: auto; }
  .print-header-text { text-align: left; }
  .print-header-text h2 { font-size: 1.2em; font-weight: 800; color: #0F1E33; margin-bottom: 2px; }
  .print-header-text p { font-size: 0.78em; color: #6B7A94; }
  .print-footer {
    display: block !important; text-align: center;
    font-size: 0.78em; color: #6B7A94;
    border-top: 1px solid #DDE3EE; padding-top: 8px; margin-top: 12px;
  }
  .btn-calc, .results-footer, .lead-card, .borrower-add-btn,
  .section-heading, .borrower-tiles, .section-divider,
  .pti-label, .pti-options, .fields-row, #error-msg,
  .site-footer { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; margin-bottom: 8px; }
  .results-card { display: block !important; }
  .main-wrap { max-width: 100%; padding: 0; margin: 0; }
  .page-title-bar { padding: 0 0 8px; }
  .page-title-bar h1 { font-size: 1.3em; }
  .page-title-bar p { font-size: 0.82em; }
  .calc-body { padding: 14px 16px; }
  .io-col-heading { font-size: 0.78em; margin-bottom: 6px; padding-bottom: 4px; }
  .subfields-list { gap: 5px; }
  .subfield-group label { font-size: 0.72em; }
  .subfield-group input { padding: 5px 8px; font-size: 0.82em; }
  .col-total { padding: 6px 10px; margin-top: 10px !important; }
  .col-total-value { font-size: 0.95em; }
  .disposable-row { gap: 8px; margin-top: 10px; }
  .summary-cell { padding: 8px 12px; }
  .summary-cell-value { font-size: 1em; }
  .result-cell { padding: 12px 16px; }
  .r-value { font-size: 1.2em; }
  .results-header { padding: 8px 18px; }
}

@media (max-width: 480px) {
  /* הכנסות / התחייבויות — שני עמודות תמיד */
  .io-columns { gap: 10px; }
  .subfield-group label { font-size: 0.70em; }
  .subfield-group input[type="number"] { font-size: 0.82em; padding: 6px 7px; }
  .io-col-heading { font-size: 0.75em; }
  .col-total { padding: 6px 8px; }
  .col-total-label { font-size: 0.68em; }
  .col-total-value { font-size: 0.92em; }

  /* סיכום */
  .disposable-row { gap: 7px; }
  .summary-cell { padding: 8px 10px; }
  .summary-cell-label { font-size: 0.67em; }
  .summary-cell-value { font-size: 0.95em; }

  /* PTI — 3 ריבועים בשורה */
  .pti-options { gap: 7px; }
  .pti-btn { padding: 12px 6px 10px; }
  .pti-btn .pct { font-size: 1.4em; }
  .pti-btn .lbl { font-size: 0.62em; }

  /* תקופה + ריבית — 2 עמודות */
  .fields-row { gap: 10px; }
  .field-group label { font-size: 0.78em; }
  .field-group input { padding: 9px 9px; font-size: 0.88em; }

  /* תוצאות — 3 עמודות */
  .results-body { gap: 0; }
  .result-cell { padding: 12px 10px; }
  .r-label { font-size: 0.68em; }
  .r-value { font-size: 1.15em; }

  /* כפתורי footer */
  .results-footer { flex-wrap: wrap; gap: 8px; }
  .disclaimer { margin-right: 0; width: 100%; }

  /* טופס ליד */
  .lead-actions { grid-template-columns: 1fr 1fr; }

  /* כללי */
  .page-title-bar { padding: 16px 12px 12px; }
  .calc-body { padding: 16px 12px 14px; }
  .page-title-bar h1 { font-size: 1.3em; }
  .main-wrap { padding: 0 10px; }
  .borrower-tile, .borrower-add-btn { width: 62px; padding: 11px 6px 10px; }
  .borrower-tile .bt-num { font-size: 1.5em; }
  .borrower-tile .bt-lbl { font-size: 0.62em; }
}/* End custom CSS */