.savings-calc-section {
    background: linear-gradient(135deg, #D3E2E4 0%, #e8f0f1 100%);
    border-radius: 25px;
    padding: 30px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.20);
}

.savings-calc-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(0, 128, 148, 0.05);
    pointer-events: none;
}

/* Header */
.sc-header h2 {
    color: black;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 22pt;
    letter-spacing: 1px;
}

.sc-header p {
    color: #555;
    font-size: 11pt;
    max-width: 600px;
    margin: 10px auto 0;
}

/* Input controls */
.sc-input-group {
    background: white;
    border-radius: 15px;
    padding: 22px 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.sc-input-label {
    font-weight: 700;
    font-size: 9pt;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sc-input-value {
    font-weight: 800;
    font-size: 22pt;
    color: #008094;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Custom range slider */
.sc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

.sc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #008094;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 128, 148, 0.4);
    border: 3px solid white;
    transition: transform 0.15s, box-shadow 0.15s;
}

.sc-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 128, 148, 0.5);
}

.sc-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #008094;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 128, 148, 0.4);
    border: 3px solid white;
}

.sc-range::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #ddd;
}

.sc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 8pt;
    color: #999;
    margin-top: 4px;
}

/* Carrier toggle */
.sc-carrier-toggle {
    display: inline-flex;
    background: white;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sc-carrier-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 26px;
    font-weight: 700;
    font-size: 10pt;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #777;
}

.sc-carrier-btn.active {
    background: #008094;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 128, 148, 0.3);
}

.sc-carrier-btn:hover:not(.active) {
    color: #008094;
}

/* Results card */
.sc-results-card {
    background: white;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Bar comparison */
.sc-bar-section {
    margin-bottom: 10px;
}

.sc-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.sc-bar-label-text {
    font-weight: 700;
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-bar-label-amount {
    font-weight: 800;
    font-size: 14pt;
}

.sc-bar-track {
    height: 36px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.sc-bar-fill {
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    min-width: 80px;
}
.sc-bar-fill.animated {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sc-bar-fill.sc-bar-hidden {
    width: 0;
    visibility: hidden;
}

.sc-bar-fill.carrier {
    background: linear-gradient(90deg, #b0b0b0 0%, #8a8a8a 100%);
}

.sc-bar-fill.upic {
    background: linear-gradient(90deg, #00a8bf 0%, #008094 100%);
}

.sc-bar-fill-text {
    color: white;
    font-weight: 700;
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Savings highlight */
.sc-savings-highlight {
    background: linear-gradient(135deg, #008094 0%, #006a7a 100%);
    border-radius: 18px;
    padding: 20px 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sc-savings-highlight::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.sc-savings-highlight::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.sc-savings-percent {
    font-size: 40pt;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
    position: relative;
    z-index: 1;
}

.sc-savings-percent-label {
    font-size: 11pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

/* Stat cards */
.sc-stat-card {
    background: white;
    border-radius: 15px;
    padding: 16px 15px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.sc-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}


.sc-stat-label {
    font-weight: 600;
    font-size: 8pt;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sc-stat-value {
    font-weight: 800;
    color: #008094;
    line-height: 1.1;
}

.sc-stat-value.per-shipment {
    font-size: 20pt;
}

.sc-stat-value.monthly {
    font-size: 20pt;
}

.sc-stat-value.annual {
    font-size: 26pt;
    color: #FF8C00;
}

/* CTA button */
.sc-cta-btn,
.sc-cta-btn:link,
.sc-cta-btn:visited {
    display: inline-block;
    background: linear-gradient(135deg, #008094 0%, #006a7a 100%);
    color: white !important;
    font-weight: 800;
    font-size: 12pt;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 45px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 148, 0.3);
    text-decoration: none;
}

.sc-cta-btn:hover,
.sc-cta-btn:focus {
    box-shadow: 0 8px 25px rgba(0, 128, 148, 0.5);
    color: white !important;
    text-decoration: none;
}

.sc-cta-btn:active {
    box-shadow: 0 4px 15px rgba(0, 128, 148, 0.3);
}

.sc-note {
    font-size: 7.5pt;
    color: #999;
    margin-top: 15px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 991px) {
    .sc-carrier-col {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .savings-calc-section {
        padding: 30px 30px;
    }


    .sc-header h2 {
        font-size: 16pt;
    }

    .sc-input-group {
        padding: 20px 15px;
    }

    .sc-input-value {
        font-size: 18pt;
    }

    .sc-savings-percent {
        font-size: 36pt;
    }

    .sc-results-card {
        padding: 25px 15px;
    }

    .sc-stat-card {
        margin-bottom: 10px;
    }

    .sc-savings-mobile-spacer {
        margin-top: 20px;
    }

    .sc-cta-btn {
        padding: 16px 40px;
        font-size: 11pt;
    }

    #savings-calculator {
        padding: 0px;
    }
}

#savings-calculator.container {
    padding-left: 0;
    padding-right: 0;
}

/* Under 576px .container goes full width, so give the card the same 16px side
   gap as the quick apply and claims cards. */
@media (max-width: 575px) {
    #savings-calculator.container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* CSP-compliant width classes for bars (10-100%) */
.sc-w-10{width:10%}.sc-w-11{width:11%}.sc-w-12{width:12%}.sc-w-13{width:13%}.sc-w-14{width:14%}
.sc-w-15{width:15%}.sc-w-16{width:16%}.sc-w-17{width:17%}.sc-w-18{width:18%}.sc-w-19{width:19%}
.sc-w-20{width:20%}.sc-w-21{width:21%}.sc-w-22{width:22%}.sc-w-23{width:23%}.sc-w-24{width:24%}
.sc-w-25{width:25%}.sc-w-26{width:26%}.sc-w-27{width:27%}.sc-w-28{width:28%}.sc-w-29{width:29%}
.sc-w-30{width:30%}.sc-w-31{width:31%}.sc-w-32{width:32%}.sc-w-33{width:33%}.sc-w-34{width:34%}
.sc-w-35{width:35%}.sc-w-36{width:36%}.sc-w-37{width:37%}.sc-w-38{width:38%}.sc-w-39{width:39%}
.sc-w-40{width:40%}.sc-w-41{width:41%}.sc-w-42{width:42%}.sc-w-43{width:43%}.sc-w-44{width:44%}
.sc-w-45{width:45%}.sc-w-46{width:46%}.sc-w-47{width:47%}.sc-w-48{width:48%}.sc-w-49{width:49%}
.sc-w-50{width:50%}.sc-w-51{width:51%}.sc-w-52{width:52%}.sc-w-53{width:53%}.sc-w-54{width:54%}
.sc-w-55{width:55%}.sc-w-56{width:56%}.sc-w-57{width:57%}.sc-w-58{width:58%}.sc-w-59{width:59%}
.sc-w-60{width:60%}.sc-w-61{width:61%}.sc-w-62{width:62%}.sc-w-63{width:63%}.sc-w-64{width:64%}
.sc-w-65{width:65%}.sc-w-66{width:66%}.sc-w-67{width:67%}.sc-w-68{width:68%}.sc-w-69{width:69%}
.sc-w-70{width:70%}.sc-w-71{width:71%}.sc-w-72{width:72%}.sc-w-73{width:73%}.sc-w-74{width:74%}
.sc-w-75{width:75%}.sc-w-76{width:76%}.sc-w-77{width:77%}.sc-w-78{width:78%}.sc-w-79{width:79%}
.sc-w-80{width:80%}.sc-w-81{width:81%}.sc-w-82{width:82%}.sc-w-83{width:83%}.sc-w-84{width:84%}
.sc-w-85{width:85%}.sc-w-86{width:86%}.sc-w-87{width:87%}.sc-w-88{width:88%}.sc-w-89{width:89%}
.sc-w-90{width:90%}.sc-w-91{width:91%}.sc-w-92{width:92%}.sc-w-93{width:93%}.sc-w-94{width:94%}
.sc-w-95{width:95%}.sc-w-96{width:96%}.sc-w-97{width:97%}.sc-w-98{width:98%}.sc-w-99{width:99%}
.sc-w-100{width:100%}

/* Slider fill classes (0-100%) */
.sc-fill-0{background:linear-gradient(to right,#008094 0%,#ddd 0%)}
.sc-fill-5{background:linear-gradient(to right,#008094 5%,#ddd 5%)}
.sc-fill-10{background:linear-gradient(to right,#008094 10%,#ddd 10%)}
.sc-fill-15{background:linear-gradient(to right,#008094 15%,#ddd 15%)}
.sc-fill-20{background:linear-gradient(to right,#008094 20%,#ddd 20%)}
.sc-fill-25{background:linear-gradient(to right,#008094 25%,#ddd 25%)}
.sc-fill-30{background:linear-gradient(to right,#008094 30%,#ddd 30%)}
.sc-fill-35{background:linear-gradient(to right,#008094 35%,#ddd 35%)}
.sc-fill-40{background:linear-gradient(to right,#008094 40%,#ddd 40%)}
.sc-fill-45{background:linear-gradient(to right,#008094 45%,#ddd 45%)}
.sc-fill-50{background:linear-gradient(to right,#008094 50%,#ddd 50%)}
.sc-fill-55{background:linear-gradient(to right,#008094 55%,#ddd 55%)}
.sc-fill-60{background:linear-gradient(to right,#008094 60%,#ddd 60%)}
.sc-fill-65{background:linear-gradient(to right,#008094 65%,#ddd 65%)}
.sc-fill-70{background:linear-gradient(to right,#008094 70%,#ddd 70%)}
.sc-fill-75{background:linear-gradient(to right,#008094 75%,#ddd 75%)}
.sc-fill-80{background:linear-gradient(to right,#008094 80%,#ddd 80%)}
.sc-fill-85{background:linear-gradient(to right,#008094 85%,#ddd 85%)}
.sc-fill-90{background:linear-gradient(to right,#008094 90%,#ddd 90%)}
.sc-fill-95{background:linear-gradient(to right,#008094 95%,#ddd 95%)}
.sc-fill-100{background:linear-gradient(to right,#008094 100%,#ddd 100%)}

/* Annual savings font size toggle */
.sc-annual-small { font-size: 20pt !important; }

/* FEDI-677: these were inline style attributes, which the CSP only allowed through unsafe-hashes */
.sc-label-carrier { color: #888; }
.sc-label-upic { color: #008094; }
.sc-bar-section-upic { margin-top: 18px; }

