/* 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: 2.5rem;
    border-bottom: 2px solid var(--cc-orange);
}

.cc-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 0.95;
    color: var(--cc-ink);
    margin-bottom: 1.5rem;
}

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

.cc-intro {
    font-size: 1.2rem;
    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;
}

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

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

.cc-ticks {
    font-size: 0.8rem;
    color: #777;
}

.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, 8rem);
    line-height: 1;
    color: var(--cc-ink);
    margin-top: 0.5rem;
}

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

.cc-bar-row {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e4e4e4;
    font-weight: 700;
}

.cc-bar-row.cc-dim {
    font-weight: 400;
    color: var(--cc-gray);
}

.cc-bar-label {
    flex: 0 0 11rem;
}

.cc-bar-track {
    flex: 1 1 auto;
    height: 1.4rem;
}

.cc-bar {
    height: 100%;
    width: 0;
    background: var(--cc-red);
    transition: width 0.3s ease;
}

.cc-bar[data-bar="snow"] {
    background: var(--cc-orange);
}

.cc-dim .cc-bar {
    background: var(--cc-gray);
}

.cc-bar-value {
    flex: 0 0 7rem;
    text-align: right;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
}

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

.cc-path {
    height: 100%;
    border: 1px solid var(--cc-rule);
    padding: 1.75rem;
}

.cc-path-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--cc-ink);
    margin: 1rem 0 1.5rem;
}

.cc-path-total {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cc-rule);
}

.cc-path-lines {
    margin: 0 0 1.25rem;
}

.cc-path-lines > div {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e4e4e4;
}

.cc-path-lines dt {
    font-weight: 400;
}

.cc-path-lines dd {
    margin: 0;
}

.cc-tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--cc-navy);
    color: var(--cc-navy);
}

.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,
    .cc-path {
        padding: 1.25rem;
    }

    .cc-bar-label {
        flex-basis: 7rem;
        font-size: 0.9rem;
    }

    .cc-bar-value {
        flex-basis: 5.5rem;
        font-size: 1.3rem;
    }

    .cc-path-total {
        font-size: 3.5rem;
    }
}

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

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

    .cc-results {
        flex: 0 0 100%;
        max-width: 100%;
    }

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

    .cc-bar,
    .cc-bar-row,
    .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-path-snow {
    border: 2px solid var(--cc-orange);
    background: #fffaf4;
}

.cc-act {
    width: 8rem;
}

.cc-award-list {
    padding-left: 1.1rem;
    margin: 0.25rem 0 0.75rem;
}

.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 {
    font-size: 0.9rem;
    color: #555;
}

.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 15rem;
    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%);
}

/* What are you planning: big cards, like the Build Your Degree game */
.cc-modes-title {
    margin-top: 1.5rem;
}

.cc-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem;
    max-width: 44rem;
}

.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;
}

/* On a wide screen the savings and bar chart ride along beside the (much taller) inputs,
   then scroll away with the page when the next section arrives. */
@media only screen and (min-width: 992px) and (min-height: 700px) {
    .cc-results {
        position: sticky;
        top: 1rem;
        align-self: flex-start;
    }
}

/* 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-cta {
        padding: 1.5rem 1.25rem;
    }
}

@media print {
    .cc-results {
        position: static;
    }
}
