.eighth-cpc-calculator .container {
    background: linear-gradient(135deg, #e0f7fa, #f1f8e9);
    border: 1px solid #cfd8dc;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    width: 90%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eighth-cpc-calculator .container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.eighth-cpc-calculator .intro-text-box {
    background: linear-gradient(135deg, #c8e6c9, #b3e5fc);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.eighth-cpc-calculator .intro-text-box h2 {
    color: #000;
    font-size: 26px;
    margin-bottom: 10px;
}

.eighth-cpc-calculator .intro-text-box h3 {
    color: #555;
    font-size: 18px;
    font-weight: normal;
    margin-top: 5px;
}

.eighth-cpc-calculator h1,
.eighth-cpc-calculator h2 {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 20px;
}

.eighth-cpc-calculator h1 {
    font-size: 28px;
}

.eighth-cpc-calculator h2 {
    font-size: 22px;
}

.eighth-cpc-calculator label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.eighth-cpc-calculator input,
.eighth-cpc-calculator select {
    font-size: 16px;
    padding: 12px;
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.eighth-cpc-calculator input:focus,
.eighth-cpc-calculator select:focus {
    border-color: #0288d1;
    box-shadow: 0 0 5px rgba(2, 136, 209, 0.5);
    outline: none;
}

.eighth-cpc-calculator input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.eighth-cpc-calculator button {
    background: #0288d1;
    color: #fff;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-top: 10px;
}

.eighth-cpc-calculator button:hover {
    background: #0277bd;
    box-shadow: 0 4px 8px rgba(2, 119, 189, 0.4);
}

.eighth-cpc-calculator .results {
    margin-top: 30px;
    padding: 30px;
    border: 1px solid #cfd8dc;
    border-radius: 12px;
    background: #f1f8e9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.eighth-cpc-calculator .results h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2e7d32;
    text-align: center;
}

.eighth-cpc-calculator .results p {
    font-size: 16px;
    line-height: 1.6;
    font-weight: bold;
    color: #2e7d32;
    text-align: center;
}

#gross-breakdown {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    margin-bottom: 12px;
    text-align: center;
}

#tax-breakdown-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

#increase-info {
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: #0288d1;
    margin-top: 10px;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.5s ease;
}

#increase-info.show {
    opacity: 1;
    transform: translateY(0);
}

#in-hand-salary-container {
    margin-top: 25px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(2, 136, 209, 0.1);
    border: 1px solid #0288d1;
    text-align: center;
}

#in-hand-salary-result {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

#in-hand-breakdown {
    font-size: 16px;
    color: #666;
}

#disclaimer-toggle {
    margin-top: 10px;
    font-size: 14px;
    color: #007bff;
    cursor: pointer;
    text-align: center;
}

#disclaimer-text {
    display: none;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.eighth-cpc-calculator fieldset {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: rgba(240, 240, 240, 0.9);
}

.eighth-cpc-calculator legend {
    font-size: 16px;
    font-weight: bold;
    padding: 0 10px;
    color: #333;
}

.hra-percentage {
    display: inline-block;
    font-weight: 600;
    margin-left: 10px;
    color: #0288d1;
}

#da-on-ta {
    margin-top: 8px;
    font-size: 14px;
    color: #888;
}

.note {
    font-size: 12px;
    color: #0288d1;
    margin-top: -10px;
    margin-bottom: 15px;
}

#tax-summary p strong {
    color: #2e7d32;
}

#tax-summary p span {
    color: #2c3e50;
}

#tax-summary p span.special {
    color: #d32f2f;
}

#tax-summary p span.tax-rate {
    color: #00796b;
}

/* Mobile First */
@media (max-width: 768px) {
    .eighth-cpc-calculator .container {
        padding: 20px;
        margin: 30px auto;
    }
    .eighth-cpc-calculator h1 {
        font-size: 24px;
    }
    .eighth-cpc-calculator h2 {
        font-size: 20px;
    }
    .eighth-cpc-calculator .results {
        padding: 20px;
    }
    #tax-summary p strong,
    #tax-summary p span {
        font-size: 15px;
    }
    #increase-info {
        font-size: 14px;
    }
    #in-hand-salary-result {
        font-size: 23px;
    }
}

@media (min-width: 600px) and (max-width: 800px) {
    .eighth-cpc-calculator .container {
        padding: 25px;
        margin: 30px auto;
        max-width: 90%;
    }
}