
/* ==========================================
   MY TESLA SAVINGS - CALCULATOR STYLES
   Black / Tesla Red / Gold
   ========================================== */

.mtscs,
.mtscs-hub {
    max-width: 1100px;
    margin: 34px auto;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(23, 26, 32, 0.08);
    box-sizing: border-box;
}

/* HEADINGS */

.mtscs-head {
    text-align: center;
    margin-bottom: 24px;
}

.mtscs-kicker {
    font-size: 12px;
    letter-spacing: 1.7px;
    font-weight: 800;
    color: #E82127;
    text-transform: uppercase;
}

.mtscs-head h2 {
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.1;
    margin: 8px 0;
    color: #171A20;
    font-weight: 800;
}

.mtscs-head p {
    max-width: 760px;
    margin: 0 auto;
    color: #52555a;
}

/* INPUT GRID */

.mtscs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mtscs label span {
    display: block;
    font-weight: 700;
    margin: 0 0 6px;
    color: #171A20;
}

/* INPUT FIELDS */

.mtscs-input {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color .2s, box-shadow .2s;
}

.mtscs-input:focus-within {
    border-color: #E82127;
    box-shadow: 0 0 0 3px rgba(232, 33, 39, .12);
}

.mtscs-input input {
    width: 100%;
    border: 0 !important;
    box-shadow: none !important;
    padding: 13px;
    font-size: 16px;
    min-width: 0;
    color: #171A20;
    background: #ffffff;
}

.mtscs-input input:focus {
    outline: none;
}

.mtscs-input em {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f4f4f4;
    font-style: normal;
    font-weight: 600;
    color: #171A20;
    white-space: nowrap;
}

/* CALCULATE BUTTON */

.mtscs-calc {
    display: block;
    margin: 22px auto 0;
    border: 0;
    border-radius: 10px;
    padding: 14px 28px;
    background: #E82127;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.mtscs-calc:hover {
    background: #c71920;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232, 33, 39, .25);
}

.mtscs-calc:focus-visible {
    outline: 3px solid #E9AD0E;
    outline-offset: 3px;
}

/* RESULTS PANEL */

.mtscs-results {
    margin-top: 24px;
    border-radius: 14px;
    background: #171A20;
    color: #ffffff;
    padding: 18px 22px;
    border-top: 4px solid #E82127;
}

.mtscs-r {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    color: #ffffff;
}

.mtscs-r:last-child {
    border: 0;
}

.mtscs-r strong {
    text-align: right;
    color: #ffffff;
}

/* MAIN SAVINGS AMOUNT */

.mtscs-r.big {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.mtscs-r.big strong {
    color: #E9AD0E;
    font-size: 24px;
    font-weight: 900;
}

/* EXPLANATIONS AND NOTES */

.mtscs-explain {
    font-size: 13px;
    line-height: 1.6;
    color: #e5e7eb;
}

.mtscs-note {
    font-size: 12px;
    color: #666b73;
    margin: 16px 0 0;
    line-height: 1.6;
}

/* ==========================================
   CALCULATOR HUB
   ========================================== */

.mtscs-hub {
    background: #171A20;
    color: #ffffff;
    border: 1px solid #30343a;
    border-top: 5px solid #E82127;
}

.mtscs-hub .mtscs-head h2,
.mtscs-hub .mtscs-head p {
    color: #ffffff;
}

.mtscs-hub .mtscs-kicker {
    color: #E9AD0E;
}

/* HUB CARD GRID */

.mtscs-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* INDIVIDUAL HUB CARDS */

.mtscs-hub-grid a {
    background: #242830;
    border: 1px solid #414650;
    border-radius: 14px;
    padding: 18px;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: transform .2s, border-color .2s,
                background .2s, box-shadow .2s;
}

.mtscs-hub-grid a:hover {
    transform: translateY(-3px);
    border-color: #E82127;
    background: #30343a;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

/* HUB ICONS */

.mtscs-hub-grid b {
    font-size: 28px;
    display: block;
    color: #E9AD0E;
}

/* HUB TITLES */

.mtscs-hub-grid strong {
    display: block;
    font-size: 17px;
    margin: 7px 0;
    color: #ffffff;
}

/* HUB DESCRIPTIONS */

.mtscs-hub-grid span {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.5;
}

/* HUB LINK FOCUS */

.mtscs-hub-grid a:focus-visible {
    outline: 3px solid #E9AD0E;
    outline-offset: 3px;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 700px) {

    .mtscs,
    .mtscs-hub {
        padding: 20px 15px;
    }

    .mtscs-grid,
    .mtscs-hub-grid {
        grid-template-columns: 1fr;
    }

    .mtscs-r {
        font-size: 14px;
    }

    .mtscs-r.big strong {
        font-size: 21px;
    }

    .mtscs-calc {
        width: 100%;
    }
}
