/* Goal Planner (Views/Funds/GoalPlanner.cshtml, Content/js/goal-planner.js) - 2026-10-19.
   Sliders come from mf-calculator.css (.calc-slider) - loaded with this file (PageFiles.appData "goalplanner"). */

.gp {
    --gp-navy: var(--main-heading-color, #2a4574);
    --gp-text: #5e6278;
    --gp-line: #e9edf3;
}

/* the content area starts under the page-title banner - keep the intro and goal picker above it (as the calculator pills) */
.gp-intro,
.gp-goals {
    position: relative;
    z-index: 2;
}

.gp-intro {
    color: var(--gp-text);
    font-size: 1.05rem;
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

/* goal picker */
.gp-goals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
    .gp-goals {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .gp-goals {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.gp-goal {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
    background: #fff;
    border: 1.5px solid var(--gp-line);
    border-radius: 14px;
    color: var(--gp-navy);
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .gp-goal:hover {
        color: var(--gp-navy);
        border-color: rgba(23, 198, 83, .45);
        box-shadow: 0 8px 22px rgba(42, 69, 116, .08);
    }

    .gp-goal.active {
        border-color: #17c653;
        background: #f3fff8;
        box-shadow: 0 8px 22px rgba(23, 198, 83, .12);
    }

.gp-goal-ic {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .gp-goal-ic i {
        font-size: 1.35rem;
        color: inherit;
    }

.gp-goal-name {
    font-size: .92rem;
    line-height: 1.25;
}

.gp-ic-green { background: #e8fff3; color: #0f9f41; }
.gp-ic-blue { background: #edf1ff; color: #4361ee; }
.gp-ic-purple { background: #f3edff; color: #7239ea; }
.gp-ic-amber { background: #fff5e6; color: #e58a00; }
.gp-ic-teal { background: #e6f9f7; color: #13a89e; }
.gp-ic-red { background: #ffeef1; color: #e5486a; }

/* inputs + result */
.gp-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .gp-main {
        grid-template-columns: 5fr 7fr;
        align-items: start;
    }

        /* the plan stays in view while the (long) inputs scroll */
        .gp-main > .gp-card:last-child {
            position: sticky;
            top: 90px;
        }
}

.gp-card {
    border-radius: 18px !important;
    border: 1px solid var(--gp-line) !important;
    box-shadow: 0 10px 30px rgba(42, 69, 116, .06) !important;
}

.gp-pane {
    display: none;
}

.gp-pane-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gp-navy);
    margin-bottom: 1.5rem;
}

.gp-result-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.25rem;
}

.gp-result-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    color: #0f9f41;
}

.gp-result-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gp-navy);
    margin: 0;
}

.gp-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .gp-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gp-box {
    border: 1px solid var(--gp-line);
    border-radius: 14px;
    padding: .9rem 1rem;
}

.gp-box-main {
    background: #f3fff8;
    border-color: #17c653;
}

.gp-box-label {
    font-size: .8rem;
    color: #7e8299;
    margin-bottom: .2rem;
}

.gp-box-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gp-navy);
}

.gp-box-main .gp-box-val {
    color: #0f9f41;
}

.gp-msg-text {
    background: #f5f8fc;
    border-radius: 12px;
    padding: .85rem 1rem;
    color: var(--gp-text);
    font-size: .93rem;
    line-height: 1.6;
}

.gp-points {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.25rem;
    display: grid;
    gap: .6rem;
}

    .gp-points li {
        display: flex;
        gap: .6rem;
        align-items: flex-start;
        color: var(--gp-text);
        font-size: .93rem;
        line-height: 1.55;
    }

        .gp-points li i {
            color: #17c653;
            font-size: 1.2rem;
            margin-top: .1rem;
        }

    .gp-points b {
        color: var(--gp-navy);
    }

.gp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .75rem;
}

.gp-btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
}

.gp-btn-ghost {
    background: #fff !important;
    color: var(--gp-navy) !important;
    border: 1px solid var(--gp-line) !important;
}

    .gp-btn-ghost i {
        color: var(--gp-navy) !important;
    }

    .gp-btn-ghost:hover {
        border-color: #17c653 !important;
    }

.gp-note {
    font-size: .78rem;
    color: #7e8299;
    margin: .75rem 0 0;
}
