/* =====================================================================
   מחשבון "כמה ביטוח חיים אני צריך" — SimulatorBituachHaim.aspx
   נטען *אחרי* life-insurance-modern.css, שממנו יורשים את משתני ה---mi-*,
   את הכרטיסים (mi-card), ה-chips, ה-segments, ה-stepper, mi-page-wide
   ו-gutter המובייל. כאן רק מה שייחודי לשאלון ולתצוגת התוצאה (nc-*).
   ⚠️ כל שינוי כאן → להקפיץ ?v= בתג ה-link שבדף.
   ===================================================================== */

/* ---------- כותרת השאלון + עוגן זמן ---------- */
.nc-wizard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nc-wizard-head .mi-section-title {
    margin-bottom: 0;
}

.nc-time-anchor {
    background: var(--mi-primary-light);
    color: var(--mi-primary-dark);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- progress bar ---------- */
.nc-progress {
    margin: 1rem 0 0.5rem;
}

.nc-progress-track {
    height: 6px;
    background: var(--mi-border);
    border-radius: 999px;
    overflow: hidden;
}

.nc-progress-bar {
    height: 100%;
    background: var(--mi-primary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.nc-progress-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0;
    gap: 0.25rem;
}

.nc-pstep {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--mi-text-muted);
    font-size: 0.85rem;
    min-width: 0;
}

.nc-pstep-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: var(--mi-border);
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
}

.nc-pstep.is-active {
    color: var(--mi-primary-dark);
    font-weight: 700;
}

.nc-pstep.is-active .nc-pstep-num,
.nc-pstep.is-done .nc-pstep-num {
    background: var(--mi-primary);
    color: #fff;
}

.nc-pstep-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- שלב ---------- */
.nc-step {
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    padding: 1rem;
    margin-top: 1rem;
    background: #fafbfc;
}

.nc-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.nc-step-lede {
    color: var(--mi-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.nc-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.nc-field-wide {
    grid-column: 1 / -1;
}

.nc-hint {
    color: var(--mi-text-muted);
    font-size: 0.85rem;
    margin: 0.4rem 0 0;
}

.nc-hint-inset {
    margin-right: 1.8rem;
}

/* ---------- input type=range נייטיבי (מחליף את סליידרי jQuery-UI) ---------- */
.nc-range-field {
    margin-top: 1.1rem;
}

.nc-range-field output {
    font-weight: 700;
    color: var(--mi-primary-dark);
}

/* ⚠️ גוצ'ה: `css/compareTables.css` (בבאנדל cssSupermarker שה-master טוען
   גלובלית) מגדיר כללים **לא-scoped** לסליידר הנייטיבי, משרידי המחשבונים
   הישנים — ‏`input[type=range]::-webkit-slider-thumb{background:#BCCC00}`
   (ליים) ו-`::-webkit-slider-runnable-track{background:white}` (מסילה לבנה
   שנעלמת על כרטיס לבן). הספציפיות שלהם 0,1,1 וגוברת על סלקטור מחלקה נטו,
   ולכן כל הכללים כאן נכתבים כ-`input[type="range"].nc-range` ‏(0,2,1).
   כל דף חדש באתר שמשתמש ב-input type=range ייתקל באותה בעיה. */
input[type="range"].nc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 420px;
    height: 6px;
    border-radius: 999px;
    background: var(--mi-border);
    border: none;
    outline: none;
    margin: 0.5rem 0 0;
    cursor: pointer;
}

input[type="range"].nc-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border: none;
    border-radius: 999px;
    background: transparent;
}

input[type="range"].nc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    margin-top: -10px;
    border-radius: 50%;
    background: var(--mi-primary);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.3);
    cursor: pointer;
}

input[type="range"].nc-range::-moz-range-track {
    height: 6px;
    border: none;
    border-radius: 999px;
    background: var(--mi-border);
}

input[type="range"].nc-range::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mi-primary);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.3);
    cursor: pointer;
}

/* הכלל הישן גם דורס focus עם border אפור — משוחזר לטבעת ירוקה */
input[type="range"].nc-range:focus,
input[type="range"].nc-range:hover {
    border: none;
    box-shadow: none;
}

input[type="range"].nc-range:focus-visible {
    box-shadow: 0 0 0 3px rgba(23, 118, 90, 0.25);
}

input[type="range"].nc-range:focus::-webkit-slider-runnable-track {
    background: transparent;
}

/* ---------- שדה גיל וגבהי קונטרולים ----------
   ⚠️ ב-life-insurance-modern.css הכללים האלה scoped ל-`#miCalc` (ה-id של טופס
   דף ההשוואה) — בלעדיהם ה-stepper נופל ל-display:block ומתפרק לשלוש שורות.
   משוכפלים כאן תחת `#ncWizard`. ה-!important נשמר מהמקור כדי לגבור על כללי
   legacy מהבאנדל של ה-master שמכוונים ל-div-ים בתוך טפסים. */
#ncWizard .mi-field select,
#ncWizard .mi-field input,
#ncWizard .nc-kid-chip select {
    min-height: 2.7rem;
    font-size: 1rem;
    line-height: 1.3;
}

#ncWizard .mi-age-stepper {
    display: inline-flex !important;
    align-items: stretch;
    border: 1.5px solid var(--mi-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    min-height: 2.7rem;
}

#ncWizard .mi-age-stepper:focus-within {
    border-color: var(--mi-primary);
}

#ncWizard .mi-field input.mi-age-input,
#ncWizard input.mi-age-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 72px;
    min-height: 2.7rem;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1f3a33;
}

#ncWizard input.mi-age-input:focus {
    outline: none;
}

/* ---------- ילדים ---------- */
.nc-kids {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--mi-border);
}

.nc-kids-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nc-kids-head .form-label {
    margin-bottom: 0;
}

.nc-kids-stepper {
    margin: 0;
}

.nc-kid-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.nc-kid-chip {
    background: #fff;
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nc-kid-chip label {
    font-size: 0.85rem;
    color: var(--mi-text-muted);
    margin: 0;
    white-space: nowrap;
}

.nc-kid-chip select {
    min-width: 70px;
    min-height: 44px;
}

/* ---------- checkbox ---------- */
.nc-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}

.nc-check input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    accent-color: var(--mi-primary);
    cursor: pointer;
}

/* ---------- ניווט ---------- */
.nc-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.nc-nav .btn {
    min-height: 48px;
}

/* ---------- כרטיס התוצאה ---------- */
.nc-headline-card {
    border-top: 4px solid var(--mi-primary);
    text-align: center;
}

.nc-headline-label {
    color: var(--mi-text-muted);
    margin-bottom: 0.25rem;
}

.nc-headline-sum {
    font-size: clamp(2rem, 8vw, 3.25rem);
    font-weight: 800;
    color: var(--mi-primary-dark);
    line-height: 1.1;
    margin: 0 0 0.35rem;
}

.nc-headline-term {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.nc-term-reason {
    color: var(--mi-text-muted);
    font-size: 0.9rem;
}

.nc-term-override {
    max-width: 420px;
    margin: 0 auto 1.25rem;
    text-align: right;
}

.nc-term-override .form-label {
    font-size: 0.9rem;
}

.nc-term-override output {
    font-weight: 700;
    color: var(--mi-primary-dark);
}

/* CTA ראשי — ירוק מלא, יעד יחיד דומיננטי */
.nc-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--mi-primary);
    color: #fff !important;
    border-radius: var(--mi-radius);
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none !important;
    min-height: 52px;
    transition: background 0.15s ease;
}

.nc-primary-cta:hover,
.nc-primary-cta:focus {
    background: var(--mi-primary-dark);
    color: #fff !important;
}

.nc-cta-time {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.nc-price-teaser {
    margin: 0.6rem 0 0;
    color: var(--mi-primary-dark);
    font-size: 0.95rem;
}

/* שורת הגשר: דף ההשוואה מציג קודם מחירון, וההנחות אחרי "השוו" (25/10/2026) */
.nc-price-teaser .nc-price-bridge {
    display: block;
    margin-top: 0.2rem;
    color: #3b4744;
    font-size: 0.88rem;
}

.nc-cap-note {
    margin: 0.6rem auto 0;
    max-width: 640px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--mi-radius);
    padding: 0.6rem 0.9rem;
    color: #9a3412;
    font-size: 0.88rem;
    text-align: right;
}

/* ---------- פירוק: bar מוערם + מקרא + טבלה ---------- */
.nc-bd-bar {
    display: flex;
    width: 100%;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mi-border);
    margin: 0.75rem 0 0.75rem;
}

.nc-bd-seg {
    display: block;
    height: 100%;
    min-width: 2px;
}

.nc-bd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.nc-bd-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nc-bd-legend-item i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    flex: 0 0 12px;
}

.nc-bd-table th {
    background: #f8f9fa;
    white-space: nowrap;
}

.nc-bd-note {
    color: var(--mi-text-muted);
    font-size: 0.85rem;
}

/* ⚠️ RTL: עמודת סכומים מבודדת ל-LTR — אחרת סימן המינוס (תו ניטרלי) נודד
   לסוף המספר ושורות הניכוי נראות חיוביות. */
.nc-bd-table td.nc-amt {
    direction: ltr;
    text-align: right;
    white-space: nowrap;
}

.nc-bd-negative td {
    color: #b91c1c;
}

.nc-bd-negative td:first-child {
    font-weight: 600;
}

.nc-bd-subtotal td {
    background: #f8f9fa;
    font-weight: 700;
}

.nc-bd-total td {
    background: var(--mi-primary-light);
    font-weight: 800;
    font-size: 1.05rem;
    border-top: 2px solid var(--mi-primary);
}

/* ---------- תרחישים ---------- */
.nc-scenario-result {
    margin-top: 0.9rem;
    background: var(--mi-primary-light);
    border-right: 4px solid var(--mi-primary);
    border-radius: var(--mi-radius);
    padding: 0.7rem 1rem;
}

.nc-restart-wrap {
    text-align: center;
    margin: 1rem 0 1.5rem;
}

.nc-restart-wrap .btn {
    min-height: 44px;
}

/* ---------- על מה מבוסס החישוב ---------- */
.nc-formula {
    background: #f8f9fa;
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    padding: 0.8rem 1rem;
    font-weight: 600;
    line-height: 1.7;
}

.nc-method-list,
.nc-sources {
    padding-right: 1.2rem;
    line-height: 1.8;
}

.nc-method-list li,
.nc-sources li {
    margin-bottom: 0.55rem;
}

.nc-badge-updated {
    display: inline-block;
    background: var(--mi-primary-light);
    color: var(--mi-primary-dark);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.nc-method-caveats {
    background: #f8f9fa;
    border-radius: var(--mi-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #475569;
}

.nc-sources-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.25rem;
}

/* ---------- שדות חוזה ה-DOM של קונטרול הליד ----------
   ⚠️ גוצ'ת RTL: אסור left:-9999px להסתרה — בדף RTL הקנבס מתרחב שמאלה
   והדף נהיה רחב ~10,000px. דפוס visually-hidden בלי היסטים שליליים. */
.nc-dom-contract {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- גריד המאמרים ---------- */
.nc-article-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.nc-article-grid li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem;
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.nc-article-grid li a:hover,
.nc-article-grid li a:focus {
    border-color: var(--mi-primary);
    background: var(--mi-primary-light);
}

.nc-article-grid img {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: cover;
    border-radius: 8px;
}

.nc-article-grid span {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ---------- מובייל ---------- */
@media (max-width: 575.98px) {
    .nc-progress-steps {
        gap: 0.15rem;
    }

    .nc-pstep-label {
        display: none;
    }

    .nc-fields {
        grid-template-columns: 1fr;
    }

    .nc-nav {
        justify-content: stretch;
    }

    .nc-nav .btn {
        flex: 1 1 auto;
    }

    .nc-bd-legend {
        gap: 0.35rem 0.8rem;
        font-size: 0.82rem;
    }

    .nc-term-override {
        text-align: right;
    }

    .nc-primary-cta {
        width: 100%;
    }

    .nc-hint-inset {
        margin-right: 0;
    }
}
