/* =====================================================================
   השוואת ביטוח חיים — עיצוב מודרני (CompareLifeInsurance.aspx)
   מבוסס על mortgage-insurance-modern.css (אותן מחלקות mi-* בכוונה —
   מזעור סטיות בין שני הדפים); חוקי מסלולי ההלוואות שלא בשימוש כאן
   נשמרו כפי-שהם (אין אלמנטים תואמים = אפס השפעה). תוספות ייעודיות
   לדף בסוף הקובץ (chips סכום, קישורי מחיר, קופסת wizard).
   ===================================================================== */

:root {
    --mi-primary: #17765a;
    --mi-primary-dark: #115c46;
    --mi-primary-light: #e7f3ef;
    --mi-accent: #2563eb;
    --mi-border: #e2e8f0;
    --mi-text-muted: #64748b;
    --mi-radius: 12px;
}

/* ---------- כרטיס בסיס ---------- */
.mi-card {
    background: #fff;
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
}

.mi-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ---------- מחשבון ---------- */
.mi-calc-card {
    border-top: 4px solid var(--mi-primary);
}

.mi-updated {
    color: var(--mi-primary-dark);
    margin-bottom: 0.25rem;
}

.mi-intro {
    color: var(--mi-text-muted);
}

.mi-step {
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    padding: 1rem;
    margin-top: 1rem;
    background: #fafbfc;
}

.mi-step-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.mi-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--mi-primary);
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
}

.mi-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.mi-people-toggle {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---- segmented control (מספר מבוטחים) ---- */
.mi-seg {
    display: inline-flex;
    border: 1px solid var(--mi-primary);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.mi-seg-btn {
    border: 0;
    background: transparent;
    padding: 0.4rem 1.1rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--mi-primary-dark);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.mi-seg-btn.is-active {
    background: var(--mi-primary);
    color: #fff;
}

/* ---- פריסת מבוטחים: שני פאנלים זה-לצד-זה בדסקטופ ----
   גריד ייעודי (לא תלוי ב-grid של Bootstrap) */
.mi-persons-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .mi-persons-wrap {
        grid-template-columns: 1fr 1fr;
    }
}

.mi-person-panel {
    border: 1px solid var(--mi-border);
    border-radius: 10px;
    background: #fff;
    padding: 0.75rem;
}

.mi-person-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--mi-text-muted);
    margin-bottom: 0.5rem;
}

.mi-person-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.mi-field label,
.mi-field .form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mi-field select,
.mi-field input {
    width: 100%;
    min-width: 0;
}

/* ---- toggle בתוך שדה (מין / עישון) ---- */
.mi-seg-field {
    display: flex;
    width: 100%;
}

.mi-seg-field .mi-seg-btn {
    flex: 1 1 0;
    min-height: 2.7rem;
    padding: 0.35rem 0.3rem;
    font-size: 0.88rem;
    white-space: nowrap;
}

.mi-seg-icon {
    font-size: 1rem;
}

/* ---- פריסת מסלול הלוואה: שורה אחת בדסקטופ ---- */
.mi-track-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
    gap: 0.6rem;
    align-items: end;
}

@media (max-width: 767.98px) {
    .mi-track-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mi-track-row .mi-field-sum {
        grid-column: 1 / -1;
    }
}

/* שורות 2-4 (עם כפתור הסרה בפינה) מקבלות רווח עליון גדול יותר */
.mi-track-row + .mi-track-row {
    margin-top: 0.9rem;
    padding-top: 2.7rem; /* מקום לכפתור ההסרה האבסולוטי בפינת השורה */
    border-top: 1px dashed var(--mi-border);
}

/* כפתור הסרת מסלול — עדין אך נראה, בפינת השורה, מחוץ לגריד */
.mi-remove-track {
    position: absolute;
    top: 0.45rem;
    inset-inline-end: 0;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    min-height: 1.9rem;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.12s ease;
}

.mi-remove-track:hover {
    background: #fee2e2;
}

/* כפתור הוספת מסלול — בולט בעדינות, ברוחב מלא */
.mi-add-track {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.6rem;
    border: 1.5px dashed var(--mi-primary);
    border-radius: 10px;
    background: var(--mi-primary-light);
    color: var(--mi-primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.12s ease;
}

.mi-add-track:hover {
    background: #d8ece4;
}

/* ---- שלב 3: שאלת "איך נוכל לעזור" + שדות ליד (זרימת ההמרה) ---- */
#miHelpStep {
    border-color: #cfe8de;
    background: #fbfdfc;
}

.mi-help-label {
    cursor: pointer;
    margin: 0;
}

#selQHelp {
    max-width: 560px;
}

.mi-loaner {
    margin-top: 0.9rem;
    border: 1.5px solid var(--mi-primary);
    border-radius: 10px;
    background: var(--mi-primary-light);
    padding: 0.9rem;
}

.mi-loaner-title {
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.mi-loaner-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

@media (max-width: 767.98px) {
    .mi-loaner-fields {
        grid-template-columns: 1fr;
    }
}

.mi-loaner-trust {
    margin: 0.6rem 0 0 0;
    font-size: 0.85rem;
    color: var(--mi-text-muted);
}

.mi-loaner-success {
    margin-top: 0.6rem;
    background: #fff;
    border: 1px solid #a7d7c5;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    color: var(--mi-primary-dark);
}

.mi-insight-discount {
    background: #fff8e6;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
}

/* ---- שדה עם סימול פנימי (₪ / %) — RTL נקי בלי input-group ---- */
.mi-input-wrap {
    position: relative;
}

.mi-input-wrap input {
    padding-inline-end: 2.2rem;
}

.mi-suffix {
    position: absolute;
    inset-inline-end: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mi-text-muted);
    font-weight: 600;
    pointer-events: none;
}

/* גובה אחיד לכל הקונטרולים בטופס */
#miCalc .mi-field select,
#miCalc .mi-field input {
    min-height: 2.7rem;
    font-size: 1rem;
    line-height: 1.3;
}

/* =====================================================================
   נטרול CSS ישן מהבאנדל של ה-master (compareTables.css / supermarkerMobile.css)
   שמכוון ל-IDs הישנים שחייבים להישאר בדף (חוזה ה-DOM של LifeInsuranceLead.ascx):
   - compareTables.css:  #track1..#track4, #person1, #person2 { display:block }
                         .removeLoan { position:relative; bottom/right }
   - supermarkerMobile:  select height:26px, width:80%/8em !important,
                         #person1 div { display:inline }
   ה-ID נותן ספציפיות גבוהה + !important היכן שהישן משתמש בו.
   ===================================================================== */
#mortgageTracks .mi-track-row {
    display: grid !important;
}

#person1, #person2 {
    display: block !important;
    width: auto !important;
    padding-top: 0 !important;
    text-align: right !important;
}

#person1 div, #person2 div {
    display: block !important;
}

/* חריג לנטרול שמעל: ה-toggles של מין/עישון חייבים flex */
#person1 .mi-seg-field, #person2 .mi-seg-field {
    display: flex !important;
}

#person1 select, #person2 select {
    width: 100% !important;
    height: auto !important;
    min-height: 2.7rem !important;
    border-radius: var(--bs-border-radius, 6px) !important;
    margin-right: 0 !important;
    font-size: 1rem !important;
}

#track1 input, #track2 input, #track3 input, #track4 input,
#track1 select, #track2 select, #track3 select, #track4 select {
    width: 100% !important;
    height: auto !important;
    min-height: 2.7rem !important;
    margin-right: 0 !important;
    border-radius: var(--bs-border-radius, 6px) !important;
}

/* נטרול compareTables (.removeLoan{position:relative;bottom;right}) — אבל הכפתור
   החדש ממוקם absolute בפינת השורה, אז מנטרלים רק את ההיסטים הישנים */
#miCalc .removeLoan {
    position: absolute !important;
    top: 0.45rem !important;
    bottom: auto !important;
    right: auto !important;
    inset-inline-end: 0;
}

#selQHelp {
    width: 100% !important;
    height: auto !important;
    min-height: 2.7rem !important;
    border-radius: var(--bs-border-radius, 6px) !important;
}

#resultsLoader {
    margin-top: 1rem !important;
}

/* הסתרה מבוססת class — חייבת לנצח את חוקי ה-!important שמעל (אחרונה + ספציפית) */
#miCalc .mi-hidden {
    display: none !important;
}

/* ה-selects המסונכרנים (מין/עישון) קיימים רק עבור הליד המשותף וה-code-behind —
   מוסתרים; חייב ספציפיות שגוברת על #person1 select שמעל */
#miCalc select.mi-sync-select {
    display: none !important;
}

/* ---------- כפתור ראשי ---------- */
.mi-btn-primary {
    background: var(--mi-primary);
    border: 1px solid var(--mi-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
}

.mi-btn-primary:hover,
.mi-btn-primary:focus {
    background: var(--mi-primary-dark);
    border-color: var(--mi-primary-dark);
    color: #fff;
}

/* מצב "קיבלנו" — הגולש כבר מסר פרטים ולכן הלחיצה מאשרת במקום לנווט לטופס.
   מושבת בכוונה (הפעולה בוצעה), אבל בקונטרסט מלא ולא אפור-דהוי, כדי שייקרא
   כאישור ולא כ"הכפתור לא זמין". opacity מלא — ‏Bootstrap מעמעם :disabled. */
.mi-card-cta-done,
.mi-card-cta-done:disabled {
    background: var(--mi-primary-light);
    border-color: var(--mi-primary);
    color: var(--mi-primary-dark);
    opacity: 1;
    cursor: default;
}

.mi-cta-note {
    color: var(--mi-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.mi-spinner {
    color: var(--mi-primary);
    width: 3rem;
    height: 3rem;
}

/* ---------- תובנות ---------- */
.mi-insights-card {
    background: var(--mi-primary-light);
    border-color: #c9e5db;
}

.mi-insights-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.mi-insights-list {
    margin: 0;
    padding-inline-start: 1.2rem;
}

.mi-insights-list li {
    margin-bottom: 0.35rem;
}

.mi-example-note {
    background: #fff8e6;
    border: 1px solid #f5d98d;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
}

/* ---------- גרפים ---------- */
.mi-chart-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.mi-chart-subtitle {
    color: var(--mi-text-muted);
    font-size: 0.88rem;
}

.mi-chart-wrap {
    position: relative;
    height: 320px;
    max-width: 100%;
    overflow: hidden;
}

.mi-chart-wrap canvas {
    max-width: 100% !important;
}

.mi-card-chart .mi-chart-wrap {
    height: 240px;
}

/* ---------- גריד כרטיסי תוצאה ---------- */
/* טור יחיד תמיד: המחירים מיושרים אנכית והדירוג (הזול ראשון) חד-משמעי —
   כמו רשימות תוצאות באתרי השוואה מובילים */
.mi-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* דסקטופ: הכרטיס עצמו הופך לשורה רחבה — זהות | מחירים | פעולות.
   הסלקטור עם ההורה (.mi-results-grid) חייב ספציפיות גבוהה מהחוק הבסיסי
   .mi-result-card{display:flex} שמופיע מאוחר יותר בקובץ */
@media (min-width: 992px) {
    .mi-results-grid .mi-result-card {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.75fr) minmax(0, 220px);
        grid-template-areas:
            "header price actions"
            "insight insight insight"
            "chart chart chart"
            "details details details";
        column-gap: 1.5rem;
        align-items: center;
    }

    .mi-result-card .mi-card-header {
        grid-area: header;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .mi-result-card .mi-card-price-row {
        grid-area: price;
        margin: 0;
    }

    .mi-result-card .mi-card-actions {
        grid-area: actions;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        margin-top: 0;
    }

    .mi-result-card .mi-card-actions .mi-card-cta {
        margin-inline-start: 0;
    }

    .mi-result-card .mi-card-insight {
        grid-area: insight;
    }

    .mi-result-card .mi-card-chart {
        grid-area: chart;
    }

    .mi-result-card .mi-card-details {
        grid-area: details;
    }

    /* לוגו גדול יותר בדסקטופ — אות אמון, ומנצל את שטח עמודת הזהות */
    .mi-result-card .mi-card-logo {
        width: 120px;
        height: 78px;
    }

    .mi-result-card .mi-card-name {
        font-size: 1.15rem;
    }
}

.mi-result-card {
    background: #fff;
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: box-shadow 0.15s ease;
}

/* עוגן הזוכה — מסגרת ירוקה על כרטיס אחד בלבד בכל תוצאה */
.mi-result-card.is-winner {
    border: 2px solid var(--mi-primary);
    padding: calc(1rem - 1px) calc(1.1rem - 1px);
}

.mi-result-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.mi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mi-card-identity {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.mi-card-logo {
    width: 76px;
    height: 50px;
    object-fit: contain;
    border: 1px solid var(--mi-border);
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}

.mi-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.mi-card-company {
    color: var(--mi-text-muted);
    font-size: 0.88rem;
}

.mi-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.mi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* אייקון ה-badge (SVG inline) — יורש את צבע התווית דרך currentColor */
.mi-badge-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* הזוכה היחיד — ירוק מלא. בלעדי בעמוד, ולכן נושא את מלוא המשקל הוויזואלי */
.mi-badge-winner {
    background: var(--mi-primary);
    color: #fff;
}

/* הבחנות משניות — גוון ירוק בהיר, לא מתחרות בזוכה */
.mi-badge-best {
    background: var(--mi-primary-light);
    color: var(--mi-primary-dark);
}

.mi-badge-first5 {
    background: #dbeafe;
    color: #1e40af;
}

/* סייג, לא שבח: כיסוי שנגמר מוקדם מהאחרים (סה"כ נמוך מטעה) — גוון אזהרה
   ולא ירוק, שלא ייקרא כיתרון */
.mi-badge-stop {
    background: #fff4e5;
    color: #9a4f06;
}

.mi-badge-jump {
    background: #fef3c7;
    color: #92400e;
}

/* שורת מחיר */
.mi-card-price-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    border: 1px solid var(--mi-border);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    background: #fafbfc;
}

.mi-price-main .mi-price-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--mi-primary-dark);
    line-height: 1.1;
}

.mi-price-total .mi-price-value-sm {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.mi-price-label {
    display: block;
    font-size: 0.78rem;
    color: var(--mi-text-muted);
}

/* ממוצע חודשי על האופק — תת-כיתוב של הסה"כ (אותו נתון כמו במחשבון האוצר) */
.mi-price-avg {
    display: block;
    font-size: 0.74rem;
    color: var(--mi-text-muted);
    margin-top: 2px;
}

.mi-price-spark {
    margin-inline-start: auto;
    color: var(--mi-primary);
}

.mi-sparkline {
    display: block;
}

.mi-card-insight {
    background: var(--mi-primary-light);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    margin: 0;
}

.mi-card-desc {
    font-size: 0.9rem;
    color: #334155;
}

/* שורת מפרט (מדד שירות · גיל סיום) — נתונים שקיימים בכל כרטיס ולכן אינם badges */
.mi-card-meta {
    font-size: 0.85rem;
    color: var(--mi-text-muted);
}

.mi-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.mi-card-actions .mi-card-cta {
    margin-inline-start: auto;
}

.mi-card-details {
    border-top: 1px dashed var(--mi-border);
    padding-top: 0.6rem;
    font-size: 0.9rem;
}

.mi-detail-row {
    margin-bottom: 0.3rem;
}

.mi-detail-label {
    font-weight: 700;
}

/* ---------- דיסקליימר רגולטורי ----------
   .SMdisclaimer משותף ל-61 דפים באתר (compareTables.css: קופסה זית/חאקי,
   width:96%) — לא נוגעים בקובץ המשותף. Override page-scoped בלבד: מראה
   כרטיס עדין תואם ל-mi-card (לא צבעוני — זה טקסט רגולטורי, לא CTA),
   ברוחב מלא (100% + box-sizing) כמו שאר האזורים תחת mi-page-wide. */
.SMdisclaimer {
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    background: #f8f9fa;
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.SMdisclaimer p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--mi-text-muted);
    font-family: inherit;
}

/* ---------- טבלת דוגמת SSR ---------- */
.mi-example-table th {
    background: var(--mi-primary-light);
}

/* ---------- ליד ---------- */
.mi-lead-card {
    border-top: 4px solid var(--mi-primary); /* גוון המותג — כמו כרטיס המחשבון */
}

/* כותרת הליד: במקום פס ירוק מלא (הסגנון הישן) — טיפוגרפיה מודרנית עם קו מבטא */
#leadSection .leadTitle {
    background: none !important;
    border: 0 !important;
    color: #1f3a33 !important;
    min-height: 0 !important;
    padding: 0 0 0.4rem 0 !important;
    margin-bottom: 0.4rem;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    text-align: right !important;
    border-bottom: 3px solid var(--mi-primary) !important;
    border-radius: 0 !important;
    display: inline-block;
}

#leadSection .leadSubTitle {
    text-align: right !important;
    padding: 0 !important;
    color: var(--mi-text-muted) !important;
    font-weight: 400 !important;
}

#leadSection .checkList {
    padding-inline-start: 0;
    margin-top: 0.75rem;
}

#leadSection .checkList li {
    margin: 0 0 0.55rem 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.mi-trust-list li {
    margin-bottom: 0.3rem;
}

.mi-lead-form {
    background: #fafbfc;
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    padding: 0.75rem;
}

/* ---------- טופס הליד המשותף (LifeInsuranceLead.ascx) — שדרוג דסקטופ ----------
   הקונטרול עוצב לעמודת צד של 300px; ה-overrides האלה scoped ל-#leadSection
   (קיים רק בדף זה) ולדסקטופ בלבד — מובייל ודפים אחרים לא מושפעים. */
@media (min-width: 992px) {
    #leadSection .lead,
    #leadSection .mi-lead-form {
        width: 100%;
        max-width: 540px;
        margin-inline: auto;
    }

    #leadSection .mi-lead-form {
        padding: 1.5rem;
    }

    #leadSection #tableOffer,
    #leadSection #tableOffer tbody,
    #leadSection #tableOffer tr,
    #leadSection #tableOffer td {
        display: block;
        width: 100%;
        height: auto !important;
        text-align: right;
        padding: 0;
    }

    #leadSection #tableOffer tr {
        margin-bottom: 0.9rem;
    }

    #leadSection .tbLeadTD {
        width: 100% !important;
        text-align: right !important;
        text-indent: 0 !important;
    }

    #leadSection .leadFieldName {
        display: block;
        font-weight: 600;
        font-size: 0.9rem;
        /* הישן: .leadFieldName{margin-right:12%} — דוחף כל תווית אחרת */
        margin: 0 0 0.3rem 0 !important;
    }

    #leadSection .tbLead {
        width: 100% !important;
        height: 46px !important;
        box-sizing: border-box;
        border: 1px solid #ced4da !important;
        border-radius: 8px !important;
        text-indent: 10px;
        font-size: 1rem !important;
        background: #fff;
    }

    #leadSection .tbLead:focus {
        outline: none;
        border-color: var(--mi-primary) !important;
        box-shadow: 0 0 0 3px rgba(23, 118, 90, 0.15);
    }

    /* שורת התקנון: checkbox והטקסט באותה שורה */
    #leadSection #cbTnaim {
        width: 18px !important;
        height: 18px !important;
        display: inline-block;
        vertical-align: middle;
        margin-inline-end: 6px;
        accent-color: var(--mi-primary);
    }

    /* כפתור השליחה: רוחב מלא, בלי חיתוך טקסט */
    #leadSection #btnSendLead {
        display: block;
        width: 100% !important;
        padding: 0.7rem 1rem !important;
        font-size: 1.15rem !important;
        font-weight: 700;
        white-space: normal !important;
        border-radius: 8px !important;
        background: var(--mi-primary) !important;
        background-image: none !important;
        border: 1px solid var(--mi-primary-dark) !important;
        color: #fff !important;
        cursor: pointer;
        box-shadow: none !important;
        text-shadow: none !important;
        transition: background 0.12s ease;
    }

    #leadSection #btnSendLead:hover {
        background: var(--mi-primary-dark) !important;
    }

    /* מירכוז הספינר עכשיו מגיע מברירת המחדל של LifeInsuranceLead.ascx עצמו
       (position:absolute+transform, scoped ל-#loader) — כלל ה-position:static
       הישן כאן היה מתנגש איתו (transform עדיין חל גם על אלמנט static ומזיז
       אותו החוצה במקום למרכז) */

    /* יישור אחיד: מנטרל עטיפות inline ומרג'ינים ישנים בשדות */
    #leadSection #tableOffer td > div {
        display: block !important;
        width: 100%;
    }

    #leadSection #tableOffer .tbLead {
        margin: 0 !important;
        display: block;
    }

    /* שורת התקנון: טקסט קטן, מיושר ימין, checkbox בזרימת ה-RTL */
    #leadSection #tableOffer td.tbLeadTD {
        direction: rtl;
    }

    #leadSection #cbTnaim + br,
    #leadSection #cbTnaim ~ span br {
        display: none; /* שבירות שורה ישנות שמפזרות את משפט התקנון */
    }

    /* העמודה הימנית: flex כדי שהדמות תשב בתחתית, צמודה לטופס */
    #leadSection .mi-lead-right {
        display: flex;
        flex-direction: column;
    }

    .mi-lead-hero {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end; /* RTL: דוחף את הדמות לצד שמאל — צמוד לטופס */
        gap: 0.6rem;
        margin-top: auto;
        padding-top: 1.5rem;
    }

    .mi-lead-hero img {
        width: 150px;
        height: auto;
        flex: 0 0 auto;
    }

    .mi-lead-hero-bubble {
        position: relative;
        background: var(--mi-primary-light);
        border: 1px solid #cfe8de;
        border-radius: 14px;
        padding: 0.65rem 0.9rem;
        font-weight: 700;
        color: var(--mi-primary-dark);
        max-width: 250px;
        margin-bottom: 3rem;
    }

    /* זנב הבועה — מצביע אל הדמות (שמשמאל לבועה) */
    .mi-lead-hero-bubble::after {
        content: '';
        position: absolute;
        left: -9px;
        bottom: 16px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 10px solid #cfe8de;
    }
}

/* במובייל הדמות מוסתרת — לא תופסת מסך יקר */
@media (max-width: 991.98px) {
    .mi-lead-hero {
        display: none;
    }
}

/* ---------- טיפים / FAQ / כתבות ---------- */
.mi-tips-list li {
    margin-bottom: 0.45rem;
}

/* ---------- FAQ — דפוס זהה ל-ComparePensionFunds (הועתק מ-gemel-modern.css) ---------- */
.indexArticle.supermarkerArticle {
    margin-top: 3%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* ה-CSS הישן (compareTables) נותן padding באחוזים ל-.indexArticle — מנטרלים גלישה אופקית */
    padding: 0 !important;
    overflow-x: hidden;
    font-size: 15px;
    direction: rtl;
    text-align: right;
}

.indexArticle.supermarkerArticle * {
    max-width: 100%;
    box-sizing: border-box;
}

.indexArticle.supermarkerArticle h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
    text-align: right;
}

.indexArticle.supermarkerArticle p {
    margin-bottom: 1em;
    text-align: right;
}

.indexArticle.supermarkerArticle a {
    color: #0d6efd;
}

.indexArticle.supermarkerArticle a:hover {
    text-decoration: underline;
}

.tableOfContent {
    margin: 2em 0;
    text-align: right !important;
}

#tableOfContent {
    list-style: none;
    border-right: 2px solid #e0e0e0;
    margin-right: 1em;
    padding-right: 1em;
}

#tableOfContent a {
    text-decoration: none;
    color: #333;
}

#tableOfContent a:hover {
    text-decoration: underline;
}

#tableOfContent li {
    margin-bottom: 5px;
}

#faq-lifeins {
    margin: 0 0 30px 0;
    padding-top: 10px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-container > [itemtype="https://schema.org/FAQPage"] {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* המרווח בין השאלות: .faq-item יושבות ישירות בתוך עטיפת ה-FAQPage
   (#faq-lifeins) — flex+gap כמו בדפי הגמל (gemel-modern.css) */
#faq-lifeins,
.faq-container > [itemtype="https://schema.org/FAQPage"] {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fafdfb;
    border: 1px solid #cfe8de;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(23, 118, 90, 0.06);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #fff;
    border-bottom: 1px solid #e8f0ed;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5fbf8;
}

.faq-question.active {
    background: #e8f4f0;
    border-bottom-color: #cfe8de;
}

.faq-icon {
    background: var(--mi-primary);
    color: white;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 1em;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: scale(1.1);
}

h4.faq-text {
    flex: 1 1 0;
    min-width: 0; /* מאפשר ל-flex לכווץ במקום לגלוש אופקית במובייל */
    margin: 0 1em 0 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f3a33;
    text-align: right !important;
    direction: rtl;
    scroll-margin-top: 90px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.faq-answer.open {
    max-height: 2500px;
}

.faq-answer p {
    padding: 12px 20px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #33534a;
    text-align: right;
}

.faq-answer ul,
.faq-answer ol {
    padding: 12px 40px 12px 20px;
    margin: 0;
    text-align: right !important;
    direction: rtl;
}

.faq-answer li {
    text-align: right;
    direction: rtl;
    margin-bottom: 0.4em;
}

.faq-answer a {
    color: var(--mi-primary);
    text-decoration: underline;
}

.faq-answer a:hover,
.faq-answer a:focus {
    color: var(--mi-primary-dark);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 15px;
    }

    h4.faq-text {
        font-size: 16px;
    }
}

.mi-articles-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

@media (min-width: 768px) {
    .mi-articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mi-articles-grid .article-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--mi-border);
    border-radius: 10px;
    padding: 0.5rem;
    height: 100%;
    background: #fff;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mi-articles-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.mi-articles-grid .article-item:hover {
    border-color: var(--mi-primary);
    box-shadow: 0 4px 12px rgba(23, 118, 90, 0.15);
    transform: translateY(-2px);
}

.mi-articles-grid .article-item:hover .article-text span {
    color: var(--mi-primary-dark);
}

.mi-articles-grid .article-image img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.mi-articles-grid .article-text {
    font-size: 0.85rem;
}

/* ============================================================
   רצועת סיום: בדיקת כיסויים (CTA ראשי) + מחשבונים — שתי עמודות
   ------------------------------------------------------------
   מחליפה את .mi-calcs (רשימה אנכית) ואת .mi-wizard-box (3 כפתורים
   שווי-משקל). מנצלת את הרוחב שנפתח ב-mi-page-wide ומקצרת את הדף.
   ============================================================ */
.mi-footer-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.mi-fb-cta {
    background: var(--mi-primary-light);
    border: 2px solid var(--mi-primary);
    border-radius: var(--mi-radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.mi-fb-cta-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--mi-primary-dark);
}

.mi-fb-cta-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mi-primary-dark);
}

.mi-fb-icon,
.mi-fb-icon-sm {
    flex-shrink: 0;
}

.mi-fb-cta-lede {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #334155;
    flex: 1;
}

/* הכפתור הראשי — ירוק המותג (ולא הליים של ctaWizard2 הגלובלי), מלא-רוחב */
.mi-fb-primary,
.mi-fb-primary:link,
.mi-fb-primary:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--mi-primary);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.15s ease;
}

.mi-fb-primary:hover,
.mi-fb-primary:active {
    background: var(--mi-primary-dark);
    color: #fff;
    text-decoration: none;
}

/* עוגן זמן — מוריד את החשש "כמה זמן זה ייקח לי" */
.mi-fb-time {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

.mi-fb-secondary {
    margin: 9px 0 0;
    text-align: center;
    font-size: 0.83rem;
    color: var(--mi-text-muted);
}

.mi-fb-secondary a {
    color: var(--mi-primary);
    font-weight: 600;
}

.mi-fb-calcs {
    background: #fff;
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
    padding: 1.1rem 1.25rem;
}

.mi-fb-calcs-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #1f3a33;
}

/* גריד דו-טורי — נסרק מהר יותר מרשימה אנכית וחוסך גובה */
.mi-fb-calcs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0 16px;
}

.mi-fb-calcs-list a {
    display: block;
    padding: 6px 0;
    font-size: 0.87rem;
    color: var(--mi-primary);
    text-decoration: none;
}

.mi-fb-calcs-list a:hover {
    text-decoration: underline;
}

/* ---------- מובייל ---------- */
/* נעילת הדף לרוחב המסך: אלמנט ישן כלשהו (CSS גלובלי) גולש אופקית וגורם
   לדפדפן "לקפוץ" הצידה בגלילה אלכסונית. clip לא יוצר scroll container. */
@media (max-width: 991.98px) {
    html, body {
        overflow-x: hidden; /* fallback לדפדפנים ישנים */
        overflow-x: clip;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .mi-card {
        padding: 0.9rem;
    }

    .mi-price-main .mi-price-value {
        font-size: 1.4rem;
    }

    .mi-price-spark {
        display: none; /* חוסך מקום; הגרף המלא זמין בלחיצה */
    }

    .mi-faq .tableOfContent ul {
        columns: 1;
    }

    .mi-chart-wrap {
        height: 260px;
    }

    .mi-card-actions .btn {
        flex: 1 1 auto;
    }

    #compare {
        width: 100%;
    }
}

/* =====================================================================
   תוספות ייעודיות לדף ביטוח החיים
   ===================================================================== */

/* ---------- שלב 2: סכום הביטוח — chips + input מפורמט ---------- */
.mi-sum-hint {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--mi-text-muted);
}

.mi-sum-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.mi-sum-chip {
    border: 1.5px solid var(--mi-border);
    background: #fff;
    border-radius: 999px;
    padding: 10px 20px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
    color: #26443a;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.mi-sum-chip:hover {
    border-color: var(--mi-primary);
}

.mi-sum-chip.is-active {
    background: var(--mi-primary-light);
    border-color: var(--mi-primary);
    color: var(--mi-primary-dark);
}

.mi-sum-other {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mi-sum-other .form-label {
    margin: 0;
    white-space: nowrap;
}

.mi-sum-input-wrap {
    max-width: 220px;
}

/* השדה בכיוון LTR (המספר מוצג משמאל-לימין) בתוך מעטפת RTL — ה-₪ יושב
   פיזית משמאל (inset-inline-end של המעטפת ה-RTL), אבל padding-inline-end
   של הקלט עצמו מתורגם לפי הכיוון שלו (LTR) ונופל בצד הלא נכון. פותרים עם
   ריפוד פיזי במקום לוגי, כדי שהטקסט לא יזחל מתחת לאייקון. */
#sumDisplay {
    direction: ltr;
    text-align: left;
    padding-left: 2.2rem !important;
    padding-right: 0.75rem !important;
}

.mi-sum-context {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--mi-text-muted);
}

.mi-sum-context a {
    color: var(--mi-primary);
    font-weight: 600;
}

/* ---------- קישורי "כמה עולה ביטוח חיים" (SEO) ---------- */
.mi-price-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 20px;
}

.mi-price-links a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--mi-primary-dark);
    text-decoration: none;
    font-size: 15px;
}

.mi-price-links a:hover {
    background: var(--mi-primary-light);
    text-decoration: underline;
}

.mi-price-links a::before {
    content: "‹ ";
    color: var(--mi-primary);
    font-weight: 700;
}

/* ---------- קופסת "בדיקת כיסויים ביטוחיים" (wizard CTAs) ---------- */

/* ============================================================
   רוחב דסקטופ מלא (דפוס gemel-compare-wide, ראו docs/compare-pages-wide-layout.md)
   ------------------------------------------------------------
   המעטפת #main (css/compareTables.css:4834) נועלת את הדף על 980px קבוע
   (ה-markup נושא class="centerDesign", אך הכלל .centerDesign שם מוער-בחוץ —
   לכן ה-override הוא על #main). הקלאסים mi-page-wide / mi-wide-body
   מתווספים ע"י סקריפט
   inline בדף הספציפי בלבד — דפים אחרים לא מושפעים. הדף חד-עמודתי (אין
   .mainIndex/.topLeft), לכן ההרחבה היא על המעטפת בלבד והרכיבים הפנימיים
   (mi-card, גרפים, כרטיסים) כבר ב-width:100% וגדלים איתה.
   ============================================================ */
body.mi-wide-body {
    width: 100% !important;
    max-width: none !important;
}

/*
 * ריווח צד (gutter): 16px במובייל/טאבלט, 20px בדסקטופ.
 * הכרטיסים שלנו נושאים מסגרת + פינות מעוגלות + צל — הסימנים שאומרים
 * "יחידה נפרדת". בלי gutter הם נחתכים בקצה המסך והעיצוב מאבד את תפקידו
 * (גם המסגרת הירוקה של כרטיס הזוכה). 16px הוא התקן במובייל
 * (Material 16dp / iOS HIG 16pt), וגם מרחיק אלמנטים אינטראקטיביים
 * מג'סטת ה-swipe-מהקצה של המערכת.
 */
#main.mi-page-wide {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    #main.mi-page-wide {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- דיסקליימר (SMdisclaimer) ---
   ⚠️ compareTables.css קובע גלובלית width:95.5% + קופסה ירוקה-זיתית ישנה
   (#edf1d8/border #d8dbb0) — צר משאר האלמנטים ומתנגש עם הכרטיסים הלבנים
   החדשים. אותו דפוס בדיוק כמו PortfolioManagement/css/portfolio-modern.css
   (שם scoped ל-#main.gemel-compare-wide) — כאן scoped ל-mi-page-wide.
   דסקטופ+מובייל: רוחב מלא, קופסה לבנה תואמת לשאר הכרטיסים בדף. */
#main.mi-page-wide .SMdisclaimer {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    box-sizing: border-box;
    margin: 16px 0 20px !important;
    padding: 14px 18px !important;
    background: #f8fafb;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.6;
    color: #6c757d;
}

#main.mi-page-wide .SMdisclaimer p {
    margin: 0;
}

/* ============================================================
   טאבים — זהים ויזואלית ל-.kg-fam בדפי הגמל (רונן, 22/10/2026)
   ------------------------------------------------------------
   המקור: Gemel/css/gemel-modern.css שורות 4452-4459. אותם ערכים
   בדיוק: פינות 10px למעלה, padding 9/14/11, 15px, הפעיל לבן ומודגש
   עם פס ירוק 3px על קו הבסיס, ובמעבר עכבר על הלא-נבחר רקע #e8efec.
   הירוק כבר היה זהה בשני הקבצים (#17765a).
   ⚠️ הבלוק משוכפל בשני הקבצים (ביטוח חיים ומשכנתא) — לשנות בשניהם.
   ============================================================ */
.tab_holder.mi-tabs {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: auto;
    margin-bottom: 18px;
    padding: 0 4px;
    border-bottom: 2px solid #dce8e3;
}

.tab_holder.mi-tabs .tab_gap {
    display: none;
}

.tab_holder.mi-tabs .tab_selected_sub,
.tab_holder.mi-tabs .tab_not_selected {
    position: relative;
    float: none;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 10px 10px 0 0;
    text-align: right;
    font-size: 15px;
    font-weight: 500;
    color: #263d35;
    padding: 9px 14px 11px;
    transition: background .12s ease, color .12s ease;
}

.tab_holder.mi-tabs .tab_selected_sub {
    background: #fff;
    color: #0f5a47;
    font-weight: 800;
}

/* הפס הירוק יושב על קו הבסיס של הקבוצה, כמו ב-.kg-fam */
.tab_holder.mi-tabs .tab_selected_sub::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: var(--mi-primary);
    border-radius: 3px 3px 0 0;
}

.tab_holder.mi-tabs .tab_selected_sub span {
    position: static;
}

.tab_holder.mi-tabs .tab_not_selected a {
    position: static;
    color: #263d35;
    text-decoration: none !important;
    display: block;
}

/* ⭐ ההתאמה שביקש רונן (22/10/2026): ב-hover על הטאב שאינו נבחר מופיע
   רקע של טאב, בדיוק כמו ב-.kg-fam a:hover בדפי הגמל. */
.tab_holder.mi-tabs .tab_not_selected:hover {
    background: #e8efec;
}

.tab_holder.mi-tabs .tab_not_selected:hover a {
    color: #263d35;
}

.tab_holder.mi-tabs .tab_not_selected a:focus-visible {
    outline: 2px solid var(--mi-primary);
    outline-offset: -2px;
}

/* ---------- שדה גיל: קלט הקלדה + חיצי כוונון (מחליף select של 55 שורות) ---------- */
/* ‏#miCalc + !important — כדי לגבור על `#person1 div{display:block!important}` הישן */
#miCalc .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;
}

#miCalc .mi-age-stepper:focus-within {
    border-color: var(--mi-primary);
}

.mi-age-btn {
    border: none;
    background: #f1f5f4;
    color: var(--mi-primary-dark);
    width: 44px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}

.mi-age-btn:hover {
    background: #e7f3ef;
}

#miCalc .mi-field input.mi-age-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 72px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1f3a33;
}

#miCalc .mi-field input.mi-age-input:focus {
    outline: none;
}

.mi-age-error {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: #b3261e;
}

/* ---------- אופק השוואה + שאלת ילדים (שלב 4) ---------- */
.mi-horizon-hint {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--mi-text-muted);
}

.mi-kid-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--mi-border);
    padding-top: 14px;
}

.mi-kid-row .form-label {
    margin: 0;
}

.mi-kid-select {
    max-width: 200px;
}

.mi-kid-hint {
    font-size: 13px;
    color: var(--mi-primary-dark);
}

/* ---------- מיני-מחשבון "כמה ביטוח צריך" ---------- */
.mi-needs-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: var(--mi-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.mi-needs-calc {
    margin-top: 14px;
    padding: 16px;
    background: #f8faf9;
    border: 1px solid var(--mi-border);
    border-radius: var(--mi-radius);
}

.mi-needs-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px 16px;
    margin-bottom: 12px;
}

.mi-needs-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mi-needs-result {
    font-weight: 700;
    color: var(--mi-primary-dark);
}

.mi-needs-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--mi-text-muted);
}

.mi-needs-note a {
    color: var(--mi-primary);
}

/* ---------- שורת "עד תום הפוליסה" המשנית בכרטיס ---------- */
.mi-card-fullterm {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--mi-text-muted);
}

@media (max-width: 767px) {
    .mi-sum-chip {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
        padding: 10px 8px;
    }

    .mi-kid-select {
        max-width: 100%;
        flex: 1 1 100%;
    }
}
