/* ─── TCS/TDS Calculator — Using :root variables from main.css ─── */

.contentContainer {
    min-height: 60vh;
}

.contenttds {
    margin-top: 30px;
    margin-bottom: 30px;
}

.tds {
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ─── Title ─── */
.tds_title {
    color: var(--gold-accent);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ─── Radio Options ─── */
.Option1,
.Option2 {
    margin-bottom: 10px;
    margin-top: 10px;
}

.Option1 {
    float: left;
}

.Option1 input,
.Option2 input {
    width: 20px;
    height: 20px;
    margin: 1px 6px 0;
    float: initial;
    accent-color: var(--gold-accent);
}

.Option1 label,
.Option2 label {
    color: var(--gold-secondary);
    top: -5px;
    position: relative;
    font-weight: 600;
    font-size: 15px;
}

/* ─── Table Header ─── */
.headertable1 {
    border-radius: 0px !important;
    background: var(--btn-gradient);
}

.headertable1 th {
    border-radius: 0px;
}

#tdscalc th {
    text-align: center;
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 8px;
    letter-spacing: 0.3px;
    border: none !important;
}

/* ─── Input Fields ─── */
.tds_input {
    width: 100%;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
    height: 42px;
    padding: 0 12px;
    margin-bottom: 0px !important;
    font-weight: 600;
    font-size: 18px;
    border: 1px solid var(--border-gold-light) !important;
    border-radius: 5px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tds_input:focus,
.tds_input:active {
    border: 1px solid var(--border-gold-light) !important;
    box-shadow: none;
    outline: none !important;
}

.tds_input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ─── Table rows ─── */
.tds_cal {
    border: 1px solid var(--border-gold-dim) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

#tdscalc td {
    border: none;
    vertical-align: middle;
    padding: 8px 1px !important;
}

#tdscalc td:last-child {
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

#tdscalc td input[type=text],
input[type=password],
input[type=number] {
    width: 100%;
}

#tdscalc a {
    padding: 0;
    display: inline-flex;
    align-items: center;
}

#tdscalc a img {
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#tdscalc a img:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ─── Note ─── */
.tdsnote {
    color: var(--gold-secondary);
    font-size: 14px;
    padding: 8px 0;
    font-weight: 600 !important;
}

/* ─── Summary / Totals ─── */
.amount_1 {
    text-align: center;
    border: none;
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
}

.amount1 {
    color: var(--gold-secondary);
    text-align: right;
    width: 50%;
    padding-right: 0 !important;
    border: none !important;
    font-size: 16px;
    font-weight: 500;
}

.amount2 {
    color: var(--text-white);
    font-weight: 700;
    text-align: left;
    width: 50%;
    padding-left: 0 !important;
    border: none !important;
    font-size: 22px;
}

.amount3 {
    color: var(--gold-accent);
    width: 2%;
    padding-right: 5px !important;
    border: none !important;
    font-weight: 600;
}

/* ─── Banner ─── */
.banner img {
    border-bottom: 3px solid var(--gold-accent);
}

/* ─── Buttons ─── */
.success {
    background: var(--btn-gradient);
    border: none;
    color: var(--text-white);
    padding: 8px 18px;
    float: right;
    margin-top: -1%;
    margin-right: 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.success:hover {
    color: var(--gold-hover);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.plus-button {
    border: 2px solid rgba(197, 150, 58, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gold-accent);
    font-size: 16px;
    height: 35px;
    width: 35px;
    border-radius: 999px;
    position: relative;
    line-height: 1.7;
}

.plus-button--small {
    font-size: 12px;
}

.plus-button--large {
    font-size: 22px;
}

/* ─── Legacy Table Styles ─── */
.rateTable th {
    background: var(--btn-gradient);
    color: var(--text-white);
    text-align: center;
    border-radius: 0;
    font-size: 15px;
    border-top: none !important;
    border-bottom: none !important;
}

.rateTable_tds th {
    background: var(--btn-gradient);
    color: var(--text-white);
    text-align: center;
    border-radius: 0;
    font-size: 15px;
    border-top: none !important;
    border-bottom: none !important;
}

.rateTable_tds td {
    font-size: 18px;
    text-align: center;
    background-color: rgba(218, 165, 32, 0.08);
    border: var(--border-gold-dim) 1px solid;
    color: var(--text-white);
}

/* ─── Responsive: Tablet ─── */
@media only screen and (max-width: 767px) {
    .rateTable_tds th {
        background: var(--btn-gradient);
        color: var(--text-white);
        text-align: center;
        border-radius: 0;
        font-size: 14px;
        border-top: none !important;
        border-bottom: none !important;
    }

    .success {
        margin-right: -13px;
        padding: 5px 8px;
        margin-top: -3%;
    }

    .tds {
        padding: 15px 10px;
    }
}

/* ─── Responsive: Mobile ─── */
@media only screen and (max-width: 480px) {
    .rateTable_tds th {
        font-size: 12px;
        font-weight: 700;
    }

    .rateTable_tds td {
        font-size: small;
        font-weight: 700;
    }

    .plus-button {
        font-size: 13px;
        height: 25px;
        width: 25px;
    }

    .fa-plus {
        margin-left: -1px;
    }

    .fa-trash-o {
        margin-left: -1px;
    }

    .rateTable_tds th,
    .rateTable_tds td {
        padding: 5px !important;
    }

    .tds {
        padding-left: 8px;
        padding-right: 8px;
    }

    .tds_input {
        width: 100%;
        font-size: 16px;
    }

    .contenttds {
        padding-left: 5px;
        padding-right: 5px;
    }

    .success {
        margin-right: -13px;
        padding: 5px 8px;
        margin-top: -3%;
    }

    .amount1 {
        font-size: 13px;
    }

    .amount2 {
        font-size: 18px;
    }

    .tds_title {
        font-size: 18px;
    }

    .contenttds .col-xs-12 {
        padding-right: 5px;
        padding-left: 5px;
    }
}