/* Cost calculator (Pages/CostCalculator.cshtml) */

#cost-calculator {
    --cc-navy: #1f3566;
    --cc-ink: #1d1d1d;
    --cc-orange: #f47920;
    --cc-red: #c00000;
    --cc-gray: #6f7c8a;
    --cc-rule: #d4d4d4;
}

.cc-eyebrow-bar {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--cc-ink);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--cc-orange);
}

.cc-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    line-height: 0.95;
    color: var(--cc-ink);
    margin-bottom: 1rem;
}

.cc-headline-accent {
    color: var(--cc-navy);
}

.cc-intro {
    font-size: 1.1rem;
    color: #555;
    max-width: 40rem;
}

.cc-panel {
    border: 1px solid var(--cc-rule);
    padding: 1.75rem;
}

.cc-subpanel {
    border: 1px solid var(--cc-rule);
    padding: 1.25rem;
}

.cc-label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.4rem;
}

.cc-toggle {
    border: 1px solid var(--cc-rule);
    border-radius: 0;
    background: white;
    color: var(--cc-ink);
    transition: none;
}

.cc-toggle.active {
    background: var(--cc-navy);
    border-color: var(--cc-navy);
    color: white;
}

.cc-subpanel-title,
.cc-kicker {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cc-ink);
}

.cc-kicker {
    color: var(--cc-navy);
}

.cc-kicker-dark {
    color: var(--cc-ink);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cc-rule);
}

.cc-gpa-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.25rem;
    line-height: 1;
}

.cc-gpa-num {
    width: 4.5rem;
    padding: 0 0.15rem;
    text-align: right;
    color: var(--cc-ink);
    background: transparent;
    border: 0;
    border-bottom: 2px dashed #c9b8a6;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cc-gpa-num::-webkit-inner-spin-button,
.cc-gpa-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cc-gpa-num:hover,
.cc-gpa-num:focus {
    border-bottom-color: var(--cc-navy);
    background: white;
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    background: var(--cc-navy);
}

.custom-range::-moz-range-thumb {
    background: var(--cc-navy);
}

/* Tick labels are placed under the slider value they name (left is set in cost-calculator.js). */
.cc-ticks {
    position: relative;
    height: 1.75rem;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #666;
}

.cc-ticks span {
    position: absolute;
    top: 0;
    padding-top: 0.6rem;
    transform: translateX(-50%);
    line-height: 1;
}

.cc-ticks span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 0.35rem;
    background: #999;
}

.cc-award-name {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cc-navy);
}

.cc-fineprint {
    font-size: 0.85rem;
    color: #666;
}

.cc-btn-primary {
    border-radius: 0;
    background: var(--cc-navy);
    color: white;
}

.cc-btn-primary:hover {
    color: white;
    background: #162749;
}

.cc-btn-outline {
    border-radius: 0;
    border: 1px solid var(--cc-rule);
    background: white;
    color: var(--cc-ink);
}

.cc-savings-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: var(--cc-ink);
    margin-top: 0.5rem;
}

.cc-savings-big.cc-savings-range {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    padding: 0.4rem 0;
}

.cc-savings-caption {
    font-size: 1.2rem;
}


.cc-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--cc-ink);
}


.cc-table input.form-control {
    min-width: 6.5rem;
}

.cc-source {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.cc-table .cc-snow {
    background-color: #fff4e8;
}

.cc-total-row th,
.cc-total-row td {
    font-weight: 700;
    color: var(--cc-navy);
}

.cc-muted {
    opacity: 0.4;
}

.cc-details summary {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--cc-ink);
    cursor: pointer;
}

@media only screen and (max-width: 575px) {
    .cc-panel {
        padding: 1.25rem;
    }
}

.cc-print-only {
    display: none;
}

@media print {
    .cc-print-only {
        display: block;
    }

    #navigation,
    .breadcrumb,
    footer,
    .cc-no-print,
    .cc-details {
        display: none !important;
    }

    .cc-table .cc-snow {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.cc-increase {
    width: 10rem;
}

.cc-chip {
    min-height: 44px;
    padding: 0.4rem 1rem;
    border: 1px solid var(--cc-rule);
    border-radius: 999px;
    background: white;
    color: var(--cc-ink);
    transition: none;
}

.cc-chip.active {
    background: var(--cc-navy);
    border-color: var(--cc-navy);
    color: white;
}

.cc-chip-mark {
    display: inline-block;
    width: 1.1em;
}


.cc-act {
    width: 8rem;
}

.cc-award-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.5rem;
}

.cc-award-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e4e4e4;
}

.cc-award-list li strong {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cc-navy);
}

.cc-award-list li.cc-award-none span {
    color: #666;
}

/* Footnote marks link to "About these numbers". */
.cc-fn {
    margin-left: 0.1em;
}

.cc-fn a {
    font-weight: 700;
}

.cc-notes li {
    margin-bottom: 0.4rem;
    scroll-margin-top: 1rem;
}

.cc-notes li:target {
    background: #fff4e8;
    outline: 4px solid #fff4e8;
}

.cc-value {
    border-top: 4px solid var(--cc-navy);
    padding-top: 1.5rem;
}

.cc-value-lead {
    font-size: 1.3rem;
    max-width: 52rem;
}

.cc-value-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    font-size: 0.9rem;
    color: #555;
}

.cc-swatch-snow {
    background: var(--cc-orange);
}

.cc-swatch {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.35rem;
    vertical-align: -0.15rem;
}

.cc-swatch-net,
.cc-value-net {
    background: var(--cc-navy);
}

.cc-swatch-aid,
.cc-value-aid {
    background: #9fd3a8;
}

.cc-value-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e4e4e4;
}

.cc-value-row[data-vrow="snow"] .cc-value-net {
    background: var(--cc-orange);
}

.cc-value-name {
    flex: 0 0 9rem;
    font-weight: 700;
}

.cc-value-track {
    flex: 1 1 12rem;
    display: flex;
    height: 1.6rem;
    margin-right: 1rem;
}

.cc-value-net,
.cc-value-aid {
    height: 100%;
    transition: width 0.3s ease;
}

.cc-value-figs {
    flex: 0 0 17rem;
    text-align: right;
    font-size: 0.9rem;
    color: #555;
}

.cc-value-figs strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--cc-ink);
}

@media only screen and (max-width: 575px) {
    .cc-value-name {
        flex-basis: 100%;
    }

    .cc-value-track {
        margin-right: 0;
    }

    .cc-value-figs {
        flex-basis: 100%;
        text-align: left;
    }
}

@media print {
    .cc-value-net,
    .cc-value-aid,
    .cc-swatch {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.cc-value-lead strong {
    color: var(--cc-navy);
}

.cc-value-takeaway {
    display: block;
    margin-top: 0.75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.1;
    color: var(--cc-ink);
}

.cc-value-takeaway strong {
    color: var(--cc-ink);
    background: linear-gradient(transparent 55%, #fcd9b8 55%);
}

/* The five answers the calculator needs, numbered and set apart from everything else */
.cc-inputs {
    margin: 1.5rem 0 2rem;
    padding: 1.5rem 1.75rem 1.75rem;
    background: #fff7ef;
    border-top: 4px solid var(--cc-orange);
}

.cc-inputs-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--cc-ink);
    margin-bottom: 1rem;
}

.cc-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media only screen and (min-width: 768px) {
    .cc-steps {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.5rem 2rem;
    }

    .cc-step-degree,
    .cc-step-residency {
        grid-column: span 3;
    }

    .cc-step-living,
    .cc-step-act {
        grid-column: span 3;
    }

    .cc-step-gpa {
        grid-column: span 6;
    }
}

@media only screen and (min-width: 992px) {
    .cc-steps {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .cc-step-degree {
        grid-column: span 7;
    }

    .cc-step-residency {
        grid-column: span 5;
    }

    .cc-step-living {
        grid-column: span 4;
    }

    .cc-step-gpa {
        grid-column: span 5;
    }

    .cc-step-act {
        grid-column: span 3;
    }
}

.cc-step-label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cc-ink);
    margin-bottom: 0.6rem;
}

.cc-step-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-right: 0.6rem;
    border-radius: 50%;
    background: var(--cc-orange);
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    line-height: 1;
}

.cc-optional {
    margin-left: 0.3em;
    font-weight: 400;
    color: #666;
}

.cc-step-gpa .cc-gpa-value {
    margin-bottom: 0.6rem;
}

/* What are you planning: big cards, like the Build Your Degree game */
.cc-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.cc-mode {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem;
    border-left: 6px solid var(--cc-orange);
    text-align: left;
    white-space: normal;
}

.cc-mode b {
    font-size: 1.1rem;
}

.cc-mode span {
    font-size: 0.9rem;
    color: #555;
}

.cc-mode:hover {
    border-color: var(--cc-navy);
    border-left-color: var(--cc-orange);
}

.cc-mode.active {
    border-left-color: var(--cc-orange);
}

.cc-mode.active span {
    color: #d6dbe6;
}


/* Call to action */
.cc-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem 3rem;
    align-items: end;
    margin: 1.5rem 0 2.5rem;
    padding: 2rem;
    background: var(--cc-navy);
    color: white;
}

.cc-cta .cc-kicker {
    color: #ffc72c;
}

.cc-cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1;
    color: white;
    margin: 0.5rem 0 1.25rem;
}

.cc-cta-lead {
    font-size: 1.1rem;
    color: #d6dbe6;
}

.cc-cta-lead b {
    display: block;
    font-size: 1.25rem;
    color: white;
}

.cc-btn-cta,
.cc-btn-cta-outline {
    min-height: 48px;
    padding: 0.6rem 1.75rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.cc-btn-cta {
    background: var(--cc-orange);
    border: 2px solid var(--cc-orange);
    color: white;
}

.cc-btn-cta:hover,
.cc-btn-cta:focus {
    background: #d9640f;
    border-color: #d9640f;
    color: white;
}

.cc-btn-cta-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cc-btn-cta-outline:hover,
.cc-btn-cta-outline:focus {
    background: white;
    color: var(--cc-navy);
}

@media only screen and (max-width: 575px) {
    .cc-inputs {
        padding: 1.25rem 1rem 1.5rem;
    }

    .cc-cta {
        padding: 1.5rem 1.25rem;
    }
}

/* Compare chips: a plain question, sized like the numbered ones */
.cc-compare-title {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cc-ink);
    margin-bottom: 0.6rem;
}

.cc-swap-note {
    min-height: 1.25rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--cc-navy);
}

.cc-subpanel .input-group-text,
.cc-subpanel .form-control,
.cc-step .form-control,
.form-row .input-group-text,
.form-row .form-control {
    border-radius: 0;
}

/* Footnote marks and back links */
.cc-fn-back {
    font-weight: 700;
    text-decoration: none;
}

/* Links on the light orange backgrounds need a darker orange to reach 4.5:1. */
.cc-inputs a,
.cc-table .cc-snow a,
.cc-notes li:target a {
    color: #a84d00;
}

/* Cost breakdown and loans: same columns, so they line up one above the other */
.cc-breakdown,
.cc-loans {
    min-width: 34rem;
    table-layout: fixed;
}

.cc-breakdown th:first-child,
.cc-loans th:first-child {
    width: 30%;
}

.cc-saves-row th,
.cc-saves-row td {
    font-weight: 700;
    color: var(--cc-ink);
}

/* Savings bar: fixed to the bottom while the questions are on screen */
.cc-savebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: var(--cc-navy);
    color: white;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.2s ease, visibility 0s linear 0.2s;
}

.cc-savebar.cc-savebar-shown {
    transform: none;
    visibility: visible;
    transition: transform 0.2s ease;
}

.cc-savebar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.6rem 16px;
}

.cc-savebar strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    color: #ffc72c;
    vertical-align: -0.1rem;
}

.cc-savebar-vs {
    color: #d6dbe6;
}

.cc-savebar-link,
.cc-savebar-link:hover {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .cc-savebar,
    .cc-savebar.cc-savebar-shown {
        transition: none;
    }
}
