.ms-roi-wrapper{
    max-width:1200px;
    margin:100px auto;
    padding:40px;
    text-align:center;
}

/*
HEADINGS
*/
.ms-error{
    border:2px solid #ff3b30 !important;
    box-shadow:none !important;
}
.ms-roi-wrapper h2{
    font-size:64px;
    font-weight:700;
    line-height:1.1;
    color:#111;
    margin-bottom:20px;
}

.ms-roi-wrapper p{
    font-size:22px;
    line-height:1.7;
    color:#666;
    max-width:850px;
    margin:0 auto 60px;
}

/*
FORM
*/

#ms-roi-form{
    max-width:900px;
    margin:0 auto;

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
}

/*
FULL WIDTH BUTTON
*/

#ms-roi-form button{
    grid-column:1 / -1;

    width:320px;
    height:72px;

    margin:10px auto 0;

    border:none;
    border-radius:60px;

    background:#ff007f;
    color:#fff;

    font-size:18px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;

    cursor:pointer;
    transition:0.3s;
}

#ms-roi-form button:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 35px rgba(255,0,127,0.25);
}

/*
INPUTS
*/

#ms-roi-form input{
    width:100%;
    height:72px;

    border:1px solid #ddd;
    border-radius:18px;

    padding:0 28px;

    font-size:18px;

    background:#fff;

    transition:0.3s;
}

#ms-roi-form input:focus{
    outline:none;
    border-color:#ff007f;
    box-shadow:0 0 0 4px rgba(255,0,127,0.12);
}

/*
========================================
RESULTS SECTION
========================================
*/

#ms-results{
    display:none;
    margin-top:80px;
}

#ms-results h3{
    text-align:center;
    font-size:48px;
    font-weight:700;
    color:#111;
    margin-bottom:40px;
}

/*
========================================
RESULT CARDS
========================================
*/

.ms-results-layout{
    max-width:1100px;
    margin:0 auto;
    display:grid !important;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
}

.ms-full-width{
    grid-column:1 / -1;
}

.ms-result-card{
    background:#fff;
    border-radius:24px;
    padding:35px;
    display:flex !important;
    box-shadow:0 10px 30px rgba(0,0,0,.08);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    min-height:180px;

    transition:.3s;
}

.ms-result-card:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 40px rgba(0,0,0,.12);
}

.ms-full-width{
    min-height:220px;
}

.ms-result-card label{
    font-size:14px;
    font-weight:700;
    color:#888;

    text-transform:uppercase;
    letter-spacing:1px;

    margin-bottom:15px;
}

.ms-result-card span{
    font-size:56px;
    font-weight:700;
    line-height:1;

    color:#111;
}

/*
========================================
PROJECTION TABS
========================================
*/

.ms-projection-tabs{
    display:flex;
    justify-content:center;
    align-items:center;

    gap:16px;

    margin-top:60px;
    margin-bottom:40px;
}

.ms-tab{
    border:none;

    height:52px;
    padding:0 28px;

    border-radius:40px;

    background:#f3f3f3;
    color:#111;

    font-size:15px;
    font-weight:700;

    cursor:pointer;

    transition:.3s;
}

.ms-tab:hover{
    transform:translateY(-2px);
}

.ms-tab.active{
    background:#ff007f;
    color:#fff;
}

/*
========================================
CHARTS
========================================
*/

.ms-charts-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;

    margin-top:20px;
}

.ms-chart-card{
    background:#fff;
    overflow:hidden;
    border-radius:24px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    min-height:450px;
}

.ms-chart-card h4{
    text-align:center;
    font-size:28px;
    font-weight:700;

    color:#111;

    margin-bottom:25px;
}

/*
Cancer chart full width
*/

.ms-chart-card:last-child{
    grid-column:auto;
}

.ms-chart-card canvas{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
}

/* =====================================
MOBILE FIXES
===================================== */

@media(max-width:768px){

    .ms-roi-wrapper{
        width:100% !important;
        max-width:100% !important;
        padding:15px !important;
        margin:40px auto !important;
        
    }

    #ms-roi-form{
        grid-template-columns:1fr !important;
    }

    .ms-results-layout{
        grid-template-columns:repeat(2,1fr) !important;
        gap:12px;
    }

    .ms-full-width{
        grid-column:1 / -1;
    }

    .ms-result-card{
        min-height:110px;
        padding:12px;
    }

    .ms-result-card label{
        font-size:10px;
        line-height:1.3;
    }

    .ms-result-card span{
        font-size:24px;
    }

    .ms-projection-tabs{
        display:flex !important;
        justify-content:center;
        flex-wrap:wrap;
        gap:10px;
    }

    .ms-tab{
        width:auto !important;
        min-width:110px;
    }

    .ms-charts-grid{
        grid-template-columns:1fr !important;
    }

    .ms-chart-card{
    min-height:auto;
    padding:15px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
}

.ms-chart-card canvas{
    width:100% !important;
    height:260px !important;
}
    #ms-roi-form{
        display:flex !important;
        flex-direction:column !important;
        width:100% !important;
        max-width:100% !important;
        gap:16px !important;
    }

    #ms-roi-form input{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:60px !important;
        font-size:16px !important;
    }

    #ms-roi-form button{
        width:100% !important;
        max-width:100% !important;
    }

}