.hemang-sip-calculator {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
    border: 2px solid #2F4F4F;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hemang-sip-calculator h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
}

.sip-columns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.sip-column {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    padding: 20px;
    border: 1px solid #2F4F4F;
    border-radius: 6px;
    background-color: #FFFFFF;
    margin: 0 auto;
}

#calc-section {
    overflow: hidden;
    z-index: 1;
}

#graph-section {
    display: block;
    contain: content;
    z-index: 0;
}

.sip-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sip-tabs button {
    padding: 12px 20px;
    border: 2px solid #2F4F4F;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}

.sip-tabs button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.sip-tabs button.active {
    color: white;
}

.sip-tab-content {
    display: none;
}

.sip-tab-content.active {
    display: block;
}

.input-row {
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    max-width: 300px;
}

.hemang-sip-calculator label {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
    text-align: left;
}

.hemang-sip-calculator input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hemang-sip-calculator input[type="number"]:focus {
    outline: none;
    border-color: #4682B4;
    box-shadow: 0 0 5px rgba(70, 130, 180, 0.3);
}

.sip-result-table, .yearly-table {
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    border-collapse: collapse;
}

.sip-result-table th, .sip-result-table td, .yearly-table th, .yearly-table td {
    padding: 12px;
    text-align: left;
}

.sip-result-table th, .yearly-table th {
    background-color: #2F4F4F;
    color: white;
    font-size: 16px;
}

.sip-result-table td, .yearly-table td {
    background-color: #F8F8F8;
}

.sip-result-table tbody tr:nth-child(even) td, .yearly-table tbody tr:nth-child(even) td {
    background-color: #FFFFFF;
}

.result, .yearly-breakdown-table {
    margin-top: 20px;
}

.result h3, .yearly-breakdown-table h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.yearly-breakdown-table {
    position: static !important;
    clear: both !important;
}

.lumpsum-yearly-wrapper {
    display: block !important;
    position: relative !important;
}

#graph-section h3 {
    text-align: center;
    padding: 10px;
    margin: -20px -20px 20px -20px;
    border-radius: 6px 6px 0 0;
    font-size: 20px;
}

#investment-chart {
    max-width: 100%;
    margin: 0 auto;
}

.credit {
    margin-top: 30px;
    font-size: 16px;
}

.credit a {
    text-decoration: none;
    color: #2F4F4F;
    transition: color 0.3s ease;
}

.credit a:hover {
    color: #4682B4;
}

@media (max-width: 768px) {
    .sip-columns {
        flex-direction: column;
        gap: 15px;
    }

    .sip-column {
        padding: 15px;
        max-width: 100%;
    }

    .sip-tabs button {
        padding: 10px 20px;
        font-size: 16px;
    }

    .hemang-sip-calculator {
        padding: 15px;
    }

    .hemang-sip-calculator h2 {
        font-size: 24px;
    }

    .hemang-sip-calculator input[type="number"] {
        font-size: 14px;
    }

    .sip-result-table, .yearly-table {
        font-size: 14px;
    }

    .sip-result-table th, .sip-result-table td, .yearly-table th, .yearly-table td {
        padding: 8px;
    }

    .input-row {
        margin: 15px auto;
        max-width: 100%;
    }

    .result h3, .yearly-breakdown-table h3 {
        font-size: 18px;
    }

    #graph-section h3 {
        margin: -15px -15px 15px -15px;
        font-size: 18px;
    }
}