.sc-calculator {
    max-width: 550px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #ececec;
    font-family: Arial, Helvetica, sans-serif;
}

.sc-calculator h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 30px;
    color: #222;
}

.sc-calculator p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.sc-calculator label {
    display: block;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #333;
}

.sc-calculator input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    font-size: 16px;
    transition: .25s;
}

.sc-calculator input:focus {
    outline: none;
    border-color: #0aa84f;
    box-shadow: 0 0 0 4px rgba(10, 168, 79, .12);
}

.sc-button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.sc-calculator button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .25s;
}

#sc-calculate {
    background: #0aa84f;
    color: #fff;
}

#sc-calculate:hover {
    background: #07853d;
}

#sc-reset {
    background: #f3f3f3;
    color: #333;
}

#sc-reset:hover {
    background: #e4e4e4;
}

.sc-result-card {
    margin-top: 30px;
    background: #f6fbf8;
    border-left: 5px solid #0aa84f;
    border-radius: 12px;
    padding: 20px;
}

.sc-result-title {
    margin: 0 0 15px;
    font-size: 20px;
    color: #222;
}

.sc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e6e6e6;
}

.sc-row:last-child {
    border-bottom: none;
}

.sc-label {
    color: #666;
}

.sc-value {
    font-weight: bold;
    color: #111;
}

.sc-error {
    margin-top: 25px;
    padding: 15px;
    background: #fff4f4;
    border-left: 5px solid #d93025;
    color: #b00020;
    border-radius: 10px;
}

@media(max-width:600px) {

    .sc-calculator {
        padding: 20px;
    }

    .sc-calculator h2 {
        font-size: 24px;
    }

    .sc-button-group {
        flex-direction: column;
    }

    .sc-row {
        flex-direction: column;
        gap: 5px;
    }
}

.sc-calculator select {

    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    font-size: 16px;
    margin-bottom: 5px;
    background: #fff;
    box-sizing: border-box;
}

.sc-calculator select:focus {

    outline: none;
    border-color: #0aa84f;
    box-shadow: 0 0 0 4px rgba(10, 168, 79, .12);
}

/* ======================================================
   CTC RESULT CARD
====================================================== */

.sc-ctc-result-card {
    margin-top: 25px;
}


/* ======================================================
   HIGHLIGHTED IN-HAND SALARY
====================================================== */

.sc-highlight {
    text-align: center;
    padding: 28px 20px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #f5f7f9;
    border: 1px solid #e5e7eb;
}


.sc-highlight-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}


.sc-highlight-amount {
    display: block;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}


.sc-highlight-period {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    opacity: 0.7;
}


/* ======================================================
   BREAKDOWN
====================================================== */

.sc-breakdown {
    margin-top: 20px;
}


.sc-breakdown .sc-result-title {
    margin-bottom: 15px;
}


/* ======================================================
   ANNUAL SUMMARY
====================================================== */

.sc-annual-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-top: 20px;
    padding: 18px;

    border-radius: 10px;
    border: 1px solid #e5e7eb;
}


.sc-annual-summary span {
    font-weight: 600;
}


.sc-annual-summary strong {
    font-size: 18px;
}


/* ======================================================
   DISCLAIMER
====================================================== */

.sc-disclaimer {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.7;
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    .sc-highlight {
        padding: 24px 15px;
    }


    .sc-highlight-amount {
        font-size: 27px;
    }


    .sc-annual-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

}

/* ======================================================
   CTC SECTION SPACING
====================================================== */

.sc-ctc-result-card .sc-breakdown+.sc-breakdown {
    margin-top: 28px;
}


.sc-ctc-result-card .sc-result-title {
    font-size: 17px;
    margin-bottom: 12px;
}

/* --------------------------------------
   PROFESSIONAL CTC RESULT
-------------------------------------- */

.sc-result-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.sc-result-section h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}

.sc-final-row {
    margin-top: 12px;
    padding: 16px;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 18px;
}

.sc-final-row strong {
    font-size: 22px;
}

.sc-error {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}

@media (max-width: 600px) {

    .sc-calculator {
        padding: 18px;
    }

    .sc-calculator h2 {
        font-size: 22px;
    }

    .sc-button-group {
        flex-direction: column;
    }

    .sc-button-group button {
        width: 100%;
    }

    .sc-row {
        gap: 12px;
    }

    .sc-row strong {
        text-align: right;
    }

    .sc-final-row {
        padding: 14px;
    }

    .sc-final-row strong {
        font-size: 20px;
    }

}