/* ROOT COLORS & GLOBALS */
:root {
    --blue: #3b6bfd;
    --bg: #f6f8fc;
    --gray: #d5d8e0;
    --text: #0f172a;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}


/* -------------------------------------------------------
   HEADER (STEP 1)
-------------------------------------------------------- */

/* ==============================
   STEP HEADER ALIGNMENT (FINAL)
================================ */

/* Outer wrapper – full width */
.step-header-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

/* Inner – SAME WIDTH AS FORM */
.step-header-inner {
    width: 100%;
    max-width: 520px; /* 🔥 SAME as form card */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

/* Logo */
.step-header-logo {
    height: 45px;
}

/* Back button */
.step-header-back {
    background: none;
    border: none;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .step-header-back:hover {
        color: #111827;
    }





.fontMR {
    font-size: 17px;
}


.top {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 22px 32px;
}

.top-left {
    position: absolute;
    left: 32px;
    top: 18px;
}

.logo {
    width: 165px;
}

.center-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #eef4ff;
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--blue);
    font-size: 13px;
}








body {
    background: #f6f9fc !important;
    font-family: 'Inter', sans-serif;
    padding: 20px 0 60px !important;
}


.layout {
    max-width: 1180px; /* design jaisa width */
    margin: 0 auto; /* center */
    padding: 80px 24px 120px; /* top | left-right | bottom */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px; /* form & right section gap */
}

.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.info {
    padding-top: 12px;
}




/* -------------------------------------------------------
   STEP-1 MAIN LEFT/RIGHT LAYOUT
-------------------------------------------------------- */
.layout {
    display: flex;
    gap: 60px;
    justify-content: flex-start;
    padding: 20px 40px;
    max-width: 1500px;
    margin: 0 auto;
}



/* -------------------------------------------------------
   STEP-1 FORM CARD
-------------------------------------------------------- */
.form-card {
    width: 580px;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid #e8ecf3;
    box-shadow: var(--shadow);
    position: relative;
}

.title {
    font-size: 24px;
    margin: 0 0 8px;
    font-weight: 700;
}

.field {
    margin-top: 20px;
    display: block;
}

.label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
    color: #374151;
}

input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--gray);
    background: #fafbfe;
    font-size: 14px;
}

.hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.account-type {
    display: flex;
    gap: 40px;
    margin: 20px 0 25px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #111827;
    cursor: pointer;
}

    .radio-card input {
        display: none;
    }

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    position: relative;
}

.radio-card input:checked + .radio-custom {
    border-color: #3f66ff;
}

    .radio-card input:checked + .radio-custom::after {
        content: "";
        width: 10px;
        height: 10px;
        background: #3f66ff;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }


/* CHECKBOX / TOGGLE */
.advisor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 22px 0;
}

.advisor-text {
    font-size: 15px;
    color: #111827;
    max-width: 65%;
    line-height: 1.5;
}

/* Dropdown box */
.advisor-select select {
    width: 160px;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    padding: 0 14px;
    font-size: 15px;
    background: #fff;
    color: #111827;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    cursor: pointer;
}

    .advisor-select select:focus {
        outline: none;
        border-color: #3f66ff;
        box-shadow: 0 0 0 2px rgba(63,102,255,0.1);
    }

.check-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    cursor: pointer;
    align-items: center;
}

    .check-row input {
        display: none;
    }

/* Toggle */
.toggle-ui {
    width: 46px;
    height: 26px;
    border-radius: 20px;
    background: #e8ecf3;
    position: relative;
}

    .toggle-ui::after {
        content: "";
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        position: absolute;
        top: 3px;
        left: 3px;
        transition: 0.2s;
    }

.toggle input:checked + .toggle-ui {
    background: var(--blue);
}

    .toggle input:checked + .toggle-ui::after {
        transform: translateX(18px);
    }

/* Tick Checkbox */
.tick-wrap {
    width: 22px;
    height: 22px;
}

.tick-svg {
    width: 22px;
    height: 22px;
}

.tick-mark {
    transition: opacity .15s ease;
}


.flink {
    font-size: 16px !important;
    font-weight: 600 !important;
}

.fsync {
    font-size: 15px !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.fade1 {
    transition: opacity 0.25s linear !important;
}

/* STEP-1 BUTTONS */
.btn-primary {
    width: 100%;
    padding: 14px;
    margin-top: 22px;
    border: none;
    background: var(--blue);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.signin {
    text-align: center;
    font-size: 14px;
    margin-top: 14px;
}



/* -------------------------------------------------------
   RIGHT INFO SECTION
-------------------------------------------------------- */
.info {
    width: 500px;
    margin-top: 10px;
}

.info-title {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.f-icon {
    width: 42px;
    height: 42px;
    background: #eef4ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .f-icon i {
        font-size: 18px;
        color: #3b6bfd;
    }

/* NEW Square Icon Box (Step 1 features) */
.f-icon2 {
    width: 40px;
    height: 40px;
    background: #eef4ff; /* Light blue background */
    border-radius: 12px; /* Rounded square (exact match) */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 14px;
}

    .f-icon2 i {
        color: #3b6bfd; /* Blue check */
        font-size: 18px;
    }




.feature p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #555;
}


.feature-list {
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.icon-square {
    width: 38px;
    height: 38px;
    background: #4264F614;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* keeps square size fixed */
}

    .icon-square i {
        color: #3b6bfd;
        font-size: 18px;
    }

.feature-text strong {
    font-size: 16px;
    color: #000;
    display: block;
    margin-bottom: 3px;
}

.feature-text p {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.45;
}




/* Testimonial Box */
.testimonial-card {
    margin-top: 26px;
    padding: 18px;
    border: 1px solid #e5e9f0;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

/* Wrapper – right side align */
.need-help-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px; /* card ke niche gap */
}

/* Outer pill */
.need-help-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

    /* "Need help?" text */
    .need-help-pill .need-text {
        color: #5f6b7a;
        font-weight: 500;
    }

    /* Inner Connect pill */
    .need-help-pill .connect-btn-pill {
        padding: 6px 16px;
        border-radius: 999px;
        border: 2px solid #3b6bfd;
        color: #3b6bfd;
        font-weight: 600;
        background: #ffffff;
        cursor: pointer !important;
    }

    /* ❌ Hover disable (forcefully) */
    .need-help-pill,
    .need-help-pill * {
        transition: none !important;
    }





/* -------------------------------------------------------
   STEP-1 FOOTER
-------------------------------------------------------- */
.footer {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Links color + no underline (Step 1) */
a,
a:visited {
    text-decoration: none;
}

    /* Extra safety: hover pe bhi underline na aaye */
    a:hover,
    a:focus {
        text-decoration: none;
    }

/* Specific small text links (optional but safe) */
.signin a,
.check-text a,
.footer a {
    color: #3b6bfd;
    text-decoration: none;
}


/* Bottom questions text (Step 1 only) */
#step1-footer p {
    text-align: center;
    margin: 28px auto 0;
    font-size: 14px;
    color: #6b7280; /* correct gray */
    max-width: 100%;
}

    /* Links inside bottom text */
    #step1-footer p a {
        color: #3b6bfd;
        text-decoration: none; /* underline removed */
        font-weight: 500;
    }

        #step1-footer p a:hover {
            text-decoration: none; /* no hover underline */
        }



/* -------------------------------------------------------
   STEP 2 PANEL (DEFAULT HIDDEN)
-------------------------------------------------------- */
.step-panel {
    width: 100%;
    padding: 20px 0 60px;
    display: none;
}



/* STEP 2 TOP */
.step2-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 12px;
}

/* STEP 2 PROGRESS DOTS */
.progress-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d9dde5;
}

    .dot.active {
        background: var(--blue);
    }

    .dot.done {
        background: var(--blue);
    }



/* STEP 2 LABEL */
.step-label {
    display: block;
    text-align: center;
    margin: 12px 0 22px;
    font-size: 14px;
    color: #666;
}



/* STEP 2 MAIN CARD */
.step2-card {
    width: 540px;
    margin: 0 auto;
    background: white;
    border-radius: 18px;
    padding: 26px 30px;
    border: 1px solid #e6e9f0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.step2-card-popup {
    margin: 0 auto;
    background: white;
    border-radius: 18px;
    padding: 26px 30px;
    border: 1px solid #e6e9f0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.step2-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
    ;
}

.step2-sub {
    margin: 0 0 4px;
    color: #666;
    font-size: 17px;
}



/* ICON FIELD */
.icon-field {
    position: relative;
}

    .icon-field input {
        padding-left: 42px;
    }

.field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
}



/* STEP 2 TOGGLE CARD */
.toggle-card {
    background: #f5f7fa;
    padding: 16px;
    border-radius: 14px;
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* STEP 2 BUTTON ROW */
.btn-row {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-light {
    border: 1px solid #d0d4db;
    background: white;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}

.btn-text {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    text-decoration: underline;
    margin-right: -133px;
    font-size: 15px;
}

.btn-next {
    background: var(--blue);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
}



/* FLOATING HELP (STEP 2) */
.floating-help {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    width: 540px;
    margin-left: auto;
    margin-right: auto;
}







/* Toggle row container */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f8fc;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #1f2937;
}

/* Switch base */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

    /* Hide checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* Slider */
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 999px;
}

    /* Circle */
    .slider::before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        top: 3px;
        background-color: #fff;
        transition: 0.3s;
        border-radius: 50%;
    }

/* Checked state */
.switch input:checked + .slider {
    background-color: #3b6bfd;
}

    .switch input:checked + .slider::before {
        transform: translateX(20px);
    }



/* STEP 2 – Perfect Header Alignment */
.step2-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 10px;
}

.step2-logo {
    width: 160px;
}

.header-back-btn {
    right: 40px;
    top: 10px;
    background: none;
    border: none;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

/* NEW PROGRESS BAR WITH LINES */
.progress-bar {
    margin-top: 20px;
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background-color: #f6f9fc;
}

.p-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d9dde5;
    color: white;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .p-dot.active {
        background: #3b6bfd;
    }

    .p-dot.done {
        background: #3b6bfd;
    }

.progress-bar .line {
    width: 30px;
    height: 4px;
    background: #ccd2dd;
    border-radius: 10px;
}



/* STEP 3 Total Box */
.total-box {
    margin-top: 20px;
    background: #ffecec;
    border: 1px solid #f7d4d4;
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #333;
}

    .total-box strong {
        color: #DC2626;
        font-size: 24px;
    }

/* Account card basics */
.account-card {
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(10,20,40,0.03);
}

/* header row */
.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* account body (collapsible) */
.account-body {
    overflow: hidden;
    transition: max-height .32s ease;
    max-height: 800px; /* default open */
    margin-top: 10px;
    padding-top: 8px;
}

    /* collapsed state */
    .account-body.collapsed {
        max-height: 0 !important;
        padding-top: 0;
        margin-top: 0;
    }

/* remove button style */
.remove-account {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #c84b4b;
}



/* Add Another Asset Box */
.add-asset-box {
    width: 100%;
    border: 1px solid #d8dde6;
    background: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 18px;
    transition: 0.2s ease;
}

    .add-asset-box:hover {
        background: #f7faff;
        border-color: #b8c7ff;
    }

/* + Icon Left Side */
.asset-plus-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef3ff;
    color: #3b6bfd;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}




/* ---------------------------
   STEP 7 SWITCH (Perfect UI)
----------------------------*/
.mortgage-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f7fa;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 15px;
    border: 1px solid #e6e9f0;
}

/* Actual toggle switch */
.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 46px;
    height: 26px;
    background: #d4d9e2;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

    .toggle-slider::after {
        content: "";
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        position: absolute;
        top: 3px;
        left: 3px;
        transition: 0.25s;
    }

.toggle-switch input:checked + .toggle-slider {
    background: #3b6bfd;
}

    .toggle-switch input:checked + .toggle-slider::after {
        transform: translateX(20px);
    }

/* Combined Total Box EXACT like design */
.mortgage-total-box {
    background: #ffecec;
    border: 1px solid #f7d4d4;
    padding: 16px;
    border-radius: 14px;
    margin-top: 20px;
}

    .mortgage-total-box div {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .mortgage-total-box strong {
        color: #d94747;
        font-size: 16px;
    }



/* RESPONSIVE  */
@media(max-width:950px) {
    .layout {
        flex-direction: column;
        align-items: center;
    }

    .form-card {
        width: 100%;
        max-width: 450px;
    }

    .info {
        width: 100%;
    }
}


/* Wrapper clickable banane ke liye */
.check-row.agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

    /* REAL checkbox */
    .check-row.agree input {
        position: absolute;
        opacity: 0;
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

/* SVG box */
.tick-wrap {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Tick hidden by default */
.tick-mark {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    transition: stroke-dashoffset 0.2s ease;
}

/* CHECKED STATE */
.check-row.agree input:checked + .tick-wrap .tick-mark {
    stroke-dashoffset: 0;
}

/* Optional hover */
.check-row.agree:hover .tick-svg rect {
    stroke: #3b6bfd;
}

.blspaces {
    display: flex;
    gap: 14px;
}

.threeitemcenter {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;
}
/* new add  css  */
/* ---------- Toggle Row ---------- */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f6f8fb;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 18px 0;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

/* ---------- Switch ---------- */
.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.3s;
}

    .slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: 0.3s;
    }

.switch input:checked + .slider {
    background: #3b6bfd;
}

    .switch input:checked + .slider::before {
        transform: translateX(20px);
    }

/* ---------- Dropdown ---------- */
.select-wrap {
    position: relative;
}

    .select-wrap select {
        width: 100%;
        height: 44px;
        padding: 0 40px 0 14px;
        border-radius: 10px;
        border: 1px solid #d8dee9;
        font-size: 14px;
        appearance: none;
        background: #fff;
        cursor: pointer;
    }

    /* Arrow */
    .select-wrap::after {
        content: "";
        position: absolute;
        right: 14px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid #6b7280;
        border-bottom: 2px solid #6b7280;
        transform: translateY(-60%) rotate(45deg);
        pointer-events: none;
    }


/* step----4 new css */
/*etade brokrage card*/

.etrade-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 16px;
}

/* LEFT SIDE */
.etrade-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.etrade-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b6bfd;
    font-size: 16px;
}

.etrade-info strong {
    display: block;
    font-size: 14px;
    color: #111;
}

.etrade-info span {
    font-size: 12px;
    color: #6b7280;
}

/* RIGHT SIDE */
.etrade-right {
    text-align: right;
}

.etrade-delete {
    background: none;
    border: none;
    color: #e54848;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 6px;
}

.etrade-balance {
    font-size: 13px;
    color: #6b7280;
}

    .etrade-balance strong {
        color: #111;
        font-weight: 600;
    }



/*Account 2*/
.account-card {
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}

/* Header */
.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

    .account-card-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
    }

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #e11d48;
    font-size: 16px;
}

/* Fields */
.field {
    display: block;
    margin-bottom: 14px;
}

    .field .label {
        display: block;
        font-size: 17px;
        font-weight: 500;
        color: #374151;
        margin-bottom: 6px;
    }

    .field input {
        width: 100%;
        padding: 11px 12px;
        border-radius: 10px;
        border: 1px solid #dbe1ec;
        font-size: 14px;
        outline: none;
    }

        .field input:focus {
            border-color: #3b6bfd;
        }

/* Footer */
.account-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-save {
    background: #3b6bfd;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

/* End account 2 here  */

.add-account-box {
    width: 100%;
    margin: 16px 0 20px;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid #dbe3f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    background: #fff;
}

    .add-account-box .add-icon {
        font-size: 18px;
        font-weight: 600;
        line-height: 1;
    }

/* Total box */

.total-summary {
    background: #eafff1;
    border: 1px solid #b9f2d0;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

    .total-row strong {
        color: #0a8f4e;
        font-weight: 600;
    }

    /* ❌ No divider */
    .total-row + .total-row {
        border-top: none;
    }

/* step 6 css addd new */
asset-card {
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

/* LEFT SIDE */
.asset-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.asset-icon {
    width: 40px;
    height: 40px;
    background: #eef3ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f66ff;
    font-size: 18px;
}

.asset-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.asset-info p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* RIGHT SIDE (FIXED) */
.asset-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* DELETE ICON */
.delete-btn {
    background: none;
    border: none;
    color: #e53935;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* BALANCE TEXT */
.balance {
    font-size: 14px;
    color: #374151;
}

    .balance strong {
        font-weight: 600;
    }




/* Asset 3 */

/* Asset Card */
.asset-card {
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    background: #fff;
}

/* Header */
.asset-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .asset-card-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

.delete-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
}

/* Fields */
.field {
    margin-bottom: 14px;
}

    .field label {
        display: block;
        font-size: 13px;
        color: #555;
        margin-bottom: 6px;
    }

    .field input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #dbe2ef;
        border-radius: 10px;
        font-size: 14px;
        outline: none;
    }

/* Toggle Row */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    font-size: 16px;
    color: #444;
}

/* Switch */
.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cfd3da;
    border-radius: 24px;
    transition: 0.3s;
}

    .slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: 0.3s;
    }

.switch input:checked + .slider {
    background: #4a6cf7;
}

    .switch input:checked + .slider::before {
        transform: translateX(20px);
    }

/* Actions */
.asset-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.save-btn {
    background: #4a6cf7;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}


.asset-form-card {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 20px;
    margin-top: 16px;
}


.asset-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

    .asset-form-header h4 {
        font-size: 16px;
        font-weight: 600;
    }

    .asset-form-header .delete-btn {
        background: none;
        border: none;
        color: #e54848;
        cursor: pointer;
        font-size: 18px;
    }


.asset-form-card .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.asset-form-card label {
    font-size: 13px;
    color: #555;
}

.asset-form-card input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dce3ee;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.save-btn {
    background: #4a6cf7;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}




/* montecarlo retirmnt plannning  page start css bellow */

/* ================= RESET ================= */


/* ================= LAYOUT ================= */
.container {
    max-width: 1320px;
    margin: 30px auto;
    padding: 0 16px;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ================= TOP 3 CARDS GRID ================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ================= CARD BASE ================= */
.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* ================= COMMON ================= */
.card-title {
    font-size: 18px;
    font-weight: 600;
}

.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 14px 0 18px;
}

.row {
    display: flex;
    align-items: center;
}

.space-between {
    justify-content: space-between;
}

/* ================= FORMS ================= */
.form-group {
    margin-bottom: 14px;
}

    .form-group label {
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 6px;
        display: block;
    }

.input-suffix {
    display: flex;
}

    .input-suffix input {
        width: 100%;
        padding: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 8px 0 0 8px;
        font-size: 14px;
    }

    .input-suffix span {
        padding: 10px 12px;
        background: #f1f5f9;
        border: 1px solid #e5e7eb;
        border-left: none;
        border-radius: 0 8px 8px 0;
        font-size: 13px;
    }

/* ================= CHECKBOX ================= */
.checkbox {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: #4b5563;
}

/* ================= BUTTONS ================= */
.btn {
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
}

    .btn.light {
        background: #e8f1ff;
        color: #2563eb;
    }

    .btn.primary {
        background: #3b82f6;
        color: #ffffff;
    }

/* ================= SWITCH ================= */
.switch {
    position: relative;
    width: 42px;
    height: 22px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    inset: 0;
    background: #cbd5f5;
    border-radius: 22px;
}

    .slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 2px;
        top: 2px;
        background: #ffffff;
        border-radius: 50%;
        transition: 0.3s;
    }

.switch input:checked + .slider {
    background: #3b82f6;
}

    .switch input:checked + .slider::before {
        transform: translateX(20px);
    }

/* ================= CARD 1 ================= */
.inner-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.enable-text {
    font-size: 14px;
    font-weight: 500;
}

/* ================= CARD 2 ================= */
.scenario-card {
    display: flex;
    flex-direction: column;
}

.muted-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 18px;
}

.scenario-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

    .scenario-tabs button {
        flex: 1;
        background: none;
        border: none;
        padding: 12px 0;
        font-size: 14px;
        color: #6b7280;
        cursor: pointer;
        position: relative;
    }

        .scenario-tabs button.active {
            color: #3b82f6;
            font-weight: 500;
        }

            .scenario-tabs button.active::after {
                content: "";
                position: absolute;
                left: 25%;
                bottom: -2px;
                width: 50%;
                height: 3px;
                background: #3b82f6;
                border-radius: 2px;
            }

.scenario-content {
    flex: 1;
}

.slider-group {
    margin-bottom: 18px;
}

    .slider-group label {
        font-size: 13px;
        margin-bottom: 6px;
        display: block;
    }

.slider-row {
    display: flex;
    gap: 12px;
}

    .slider-row input[type="range"] {
        flex: 1;
        height: 6px;
        appearance: none;
        background: #e5e7eb;
        border-radius: 10px;
    }

        .slider-row input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 18px;
            height: 18px;
            background: #3b82f6;
            border-radius: 50%;
        }

    .slider-row input[type="number"] {
        width: 70px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        text-align: center;
        font-size: 15px;
        font-weight: 500;
    }

.run-btn {
    margin-top: auto;
    padding: 14px;
    font-size: 16px;
}

/* FIX: Quick Scenario Controls - Number box (50) */
.scenario-card .slider-row input[type="number"] {
    width: 64px;
    height: 40px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}

    /* Focus state (optional polish) */
    .scenario-card .slider-row input[type="number"]:focus {
        outline: none;
        border-color: #3b82f6;
    }


/* FIX: Align slider + number box on same center line */
.scenario-card .slider-row {
    display: flex;
    align-items: center; /* 🔥 MAIN FIX */
    gap: 14px;
}

    /* Slider track vertical centering */
    .scenario-card .slider-row input[type="range"] {
        height: 6px;
        margin: 0; /* remove default offset */
    }

    /* Number box vertical alignment */
    .scenario-card .slider-row input[type="number"] {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        line-height: 40px;
    }

    /* Optional: slider thumb perfect center */
    .scenario-card
    .slider-row
    input[type="range"]::-webkit-slider-thumb {
        margin-top: -6px; /* centers thumb on track */
    }


/* ================= CARD 3 ================= */
.probability-card {
    text-align: center;
}

.probability-center {
    margin: 28px 0 18px;
}

.probability-value {
    font-size: 64px;
    font-weight: 700;
    color: #4f8edc;
}

.probability-label {
    font-size: 14px;
    letter-spacing: 2px;
    color: #6b7280;
    margin-top: 8px;
}

.probability-pill {
    margin-top: 18px;
    display: inline-block;
    padding: 10px 22px;
    background: #e9f3ff;
    color: #3b82f6;
    border-radius: 999px;
    font-size: 14px;
}

.probability-info {
    margin-top: 24px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 22px;
    text-align: left;
}

    .probability-info p {
        font-size: 14px;
        color: #4b5563;
        line-height: 1.6;
        margin-bottom: 14px;
    }

.highlight {
    color: #3b82f6;
    font-weight: 600;
}

/* ================= RANGE SECTION ================= */
.section-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.chart-wrapper {
    width: 100%;
    height: 420px;
    margin-top: 22px;
}

    .chart-wrapper canvas {
        width: 100% !important;
        height: 100% !important;
    }

/* ================= SUMMARY CARDS ================= */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.summary-card {
    background: #f9fafb;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
}

    .summary-card h2 {
        font-size: 28px;
        font-weight: 700;
    }

    .summary-card p {
        font-size: 12px;
        letter-spacing: 1px;
        color: #6b7280;
        margin-top: 6px;
    }



/* Chart/Table toggle */
.toggle-tabs {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    display: flex;
    gap: 4px;
}

    .toggle-tabs button {
        border: none;
        background: transparent;
        padding: 6px 14px;
        font-size: 13px;
        border-radius: 8px;
        cursor: pointer;
        color: #6b7280;
    }

        .toggle-tabs button.active {
            background: #ffffff;
            color: #3b82f6;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}



/* 7 step page stype css start  */
/* Toggle Card */
.mortgage-toggle-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f8fc;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.mortgage-toggle-text strong {
    font-size: 14px;
}

.mortgage-toggle-text p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* Toggle Switch */
.switch {
    position: relative;
    width: 46px;
    height: 24px;
}

    .switch input {
        opacity: 0;
    }

.slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

    .slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: 0.3s;
    }

.switch input:checked + .slider {
    background: #3f66ff;
}

    .switch input:checked + .slider::before {
        transform: translateX(22px);
    }

.mortgage-summary-card {
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

/* LEFT */
.mortgage-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mortgage-icon {
    width: 42px;
    height: 42px;
    background: #eef3ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f66ff;
    font-size: 18px;
}

.mortgage-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.mortgage-info p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* RIGHT */
.mortgage-right {
    text-align: right;
    position: relative;
}

    .mortgage-right .delete-btn {
        background: none;
        border: none;
        color: #e53935;
        font-size: 16px;
        cursor: pointer;
        position: absolute;
        top: -6px;
        right: 0;
    }

.mortgage-balance {
    margin-top: 16px;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .mortgage-balance i {
        color: #3f66ff;
    }

    .mortgage-balance strong {
        font-weight: 600;
    }




.mortgage-form-card {
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    margin-bottom: 20px;
}

.mf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

    .mf-header h4 {
        margin: 0;
        font-size: 16px;
    }

    .mf-header .delete-btn {
        background: none;
        border: none;
        color: #e53935;
        cursor: pointer;
        font-size: 16px;
    }

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

    .field input {
        height: 42px;
        padding: 0 12px;
        border-radius: 10px;
        border: 1px solid #dbe2ee;
        font-size: 14px;
    }

.label {
    font-size: 13px;
    color: #374151;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.save-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-save {
    background: #3f66ff;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    cursor: pointer;
}


.add-mortgage-box {
    margin: 18px 0;
    padding: 14px;
    border: 1.5px solid #c7d2fe;
    border-radius: 12px;
    text-align: center;
    color: #3f66ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

    .add-mortgage-box:hover {
        background: #f5f8ff;
        border-color: #3f66ff;
    }

.add-icon {
    font-size: 18px;
    margin-right: 6px;
    font-weight: 600;
}

.add-text {
    vertical-align: middle;
}



.mortgage-summary-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #fdecec;
    border: 1px solid #f5c2c2;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 6px;
}

    .summary-row:last-child {
        margin-bottom: 0;
    }

    .summary-row span {
        color: #991b1b;
    }

    .summary-row strong {
        color: #dc2626;
        font-weight: 600;
    }
/* 7 step page stype css start end */
/* ===============================
   FIX: Restore Bootstrap Alerts
================================ */

.alert {
    display: block !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1rem !important;
    border-radius: 0.375rem !important;
    border: 1px solid transparent !important;
}

.alert-danger {
    color: #842029 !important;
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
}

.alert span {
    display: block !important;
    color: inherit !important;
}


.btn-next:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Make all standard and custom interactive elements show the hand cursor */
a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
label,
.pointer,
.add-account-box,
.btn-primary,
.btn-light,
.btn-next,
.btn-text,
[data-bs-toggle="modal"],
[data-bs-dismiss="modal"] {
    cursor: pointer !important;
}

.mt-5 {
    margin-top: 5px !important;
}


:root {
    --text: #2f3b4a;
    --muted: #5f6b7a;
    --border: #d8dde6;
    --border-focus: #1a73e8;
    --bg: #ffffff;
    --panel: #f9fbfd;
    --tooltip-bg: #1f2937;
    --tooltip-text: #ffffff;
    --shadow: 0 6px 20px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 32px;
    background: #f1f3f5;
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

/* Mock page shell to match your screenshot feel */
.page {
    width: 420px;
    margin: 0 auto;
    background: #fff;
    padding: 22px 22px 28px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.field {
    margin-bottom: 14px;
}

    .field label {
        display: block;
        font-size: 14px;
        margin-bottom: 6px;
        color: #334155;
    }

    .field input {
        width: 100%;
        height: 38px;
        border: 1px solid #cfd6df;
        border-radius: 4px;
        padding: 0 12px;
        font-size: 14px;
    }

/* Replacement section (red box area) */
.focus-panel {
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    padding: 18px 16px 14px;
}

.focus-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1f2937;
}

.focus-subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
}

.options {
    display: grid;
    gap: 10px;
}

.option {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: #fff;
}

    .option:hover {
        border-color: #b8c4d6;
        background: #fcfdff;
    }

    .option:focus-within {
        border-color: var(--border-focus);
        box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
    }

.option-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.option input[type="radio"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: #1a73e8;
    cursor: pointer;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
    font-size: 14px;
    color: #243244;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
}

/* Tooltip */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.tooltip-btn {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #9aa8ba;
    background: #fff;
    color: #607086;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    padding: 0;
    font-weight: 700;
}

    .tooltip-btn:hover,
    .tooltip-btn:focus-visible {
        border-color: #64748b;
        color: #334155;
        outline: none;
    }

.tooltip-text {
    font-family: 'Inter', sans-serif !important;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 290px;
    background: var(--tooltip-text);
    color: var(--tooltip-text);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: var(--shadow);
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto !important;
    transition: opacity 0.12s ease;
    z-index: 10;
}

    .tooltip-text::before {
        content: "";
        position: absolute;
        left: -6px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 12px;
        height: 12px;
        background: #ffffff;
    }

.tooltip-wrap:hover .tooltip-text,
.tooltip-wrap:focus-within .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Optional helper text under selected option (mock behavior using CSS only) */
.option-helper {
    display: none;
    margin-left: 28px;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.option input[type="radio"]:checked ~ .option-content .option-helper {
    display: block;
}

.option input[type="radio"]:checked ~ .option-content .option-label {
    color: #0f172a;
}

.footer-mock {
    margin-top: 16px;
    font-size: 12px;
    color: #64748b;
}

.taxsub {
    font-size: 12px;
}
/* Mobile safety */
@media (max-width: 520px) {
    body {
        padding: 12px;
    }

    .page {
        width: 100%;
    }

    .tooltip-text {
        width: min(260px, calc(100vw - 72px));
        left: 0;
        top: calc(100% + 8px);
        transform: none;
    }

        .tooltip-text::before {
            left: 18px;
            top: -6px;
            transform: rotate(45deg);
        }
}

.tooltip {
    opacity: 1 !important;
}

    .tooltip .tooltip-inner {
        pointer-events: auto !important;
        border-radius: 10px;
        background-color: #ffffff;
        color: rgb(72,72,72,1) !important;
        text-align: left;
        max-width: 300px;
        padding: 19px 10px 19px 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #ffffff;
}

.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #ffffff;
}

.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #ffffff;
}

.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #ffffff;
}

.tooltip-icon {
    cursor: pointer;
}

.tooltip-text {
    background-color: #ffffff;
    color: rgb(72,72,72,1) !important;
    text-align: left;
    max-width: 300px;
    padding: 19px 10px 19px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* =========================================
   MOBILE RESPONSIVE FIXES 
========================================= */
@media (max-width: 768px) {

    /* 1. Header & Layout Wrapper Fixes */
    .step-header-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .layout {
        padding: 20px 15px !important;
        gap: 30px !important;
    }

    /* 2. Fix Fixed-Width Cards (Prevents horizontal scrolling) */
    .step2-card,
    .step2-card-popup,
    .floating-help,
    .form-card,
    .info {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
    }

    /* 3. Button Rows Stacking */
    .btn-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

        .btn-row button,
        .btn-row .btn-next,
        .btn-row .btn-light,
        .btn-row .btn-text,
        #ChangeSpouseInfo,
        .primaryInfo-next {
            width: 100% !important;
            margin: 0 !important; /* Resets the weird -133px margin */
            text-align: center !important;
            display: block !important;
        }

    /* 4. Toggles & Progress Bar */
    .toggle-row {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .progress-bar {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

        .progress-bar .line {
            width: 15px !important;
        }

    /* 5. Fix Multi-column forms & Cards */
    .account-type,
    .two-col {
        flex-direction: column !important;
        gap: 15px !important;
    }
}
