@media only screen and (min-width: 1400px) {

    .XIRR-Calculator-Real .wealth_sip_banner h1,
    .XIRR-Calculator-Real .wealth_sip_banner .col-12 p {
        margin-left: 50px !important;
    }
}

@media only screen and (min-width:1025px) {

    /* Make the parent container a flex container */
    .wealth-sip-benefits .row {
        display: flex;
        flex-wrap: wrap;
        /* Allow columns to wrap */
    }

    /* Make columns grow to fill available space */
    .wealth-sip-benefits .col-12.col-lg-4 {
        flex-grow: 1;
    }

    /* Make columns flexible to accommodate varying content */
    .wealth-sip-benefits .col-12.col-md-4>div {
        height: 100%;
    }
}

@media only screen and (min-width:810px) and (max-width:820px) and (max-height:1080px) and (orientation:portrait) {

    /* Make the parent container a flex container */
    .wealth-sip-benefits .row {
        display: flex;
        flex-wrap: wrap;
        /* Allow columns to wrap */
    }

    /* Make columns grow to fill available space */
    .wealth-sip-benefits .col-12.col-lg-4 {
        flex-grow: 1;
    }

    /* Make columns flexible to accommodate varying content */
    .wealth-sip-benefits .col-12.col-md-4>div {
        height: 100%;
    }

    .wealth-sip-benefits {
        padding-bottom: 30px;
    }
}

.card-header {
    background-color: #f0f0f0;
    font-weight: bold;
}

.xirr-card {
    border: 2px dashed #8c52ff;
    padding: 20px;
    border-radius: 12px;
}

.btn-invest {
    background-color: #1d70e7;
    color: white;
    font-weight: bold;
}

.xirr-banner {
    background-color: #fff9e6;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.form-control:focus{
    box-shadow: none !important;
}

.error-border {
    border: 1px solid red !important;
}

.wealth_sip_banner .card {
    border: 1px solid #8AC6F2;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    border-width: 1px;
}

.card-header:first-child {
    border-bottom: none;
    background-color: unset;
}

.card-header .col-6 {
    height: 43px;
    border-radius: 8px;
    padding: 12px;
    background: #EEEEEE;
    font-family: Rubik;
    font-weight: 500;
    font-size: 16px;
    line-height: 18.96px;
}

.add-more-invest-btn {
    border: 1px solid #0074C9;
    background: #FFFFFF;
    width: auto;
    height: 40px;
    gap: 8px;
    border-radius: 8px;
    border-width: 1px;
    color: #0074C9;
}

.xirr-card {
    border: 1px solid #8AC6F2;
    background: #FFFFFF;
}

.xirr-card {
    align-content: space-evenly;
}

.xirr-result-pa {
    align-content: center;
}

input[type="date"],
input[type="number"] {
    border: 1px solid var(--Aero, #8AC6F2);
}

.card-header {
    display: flex;
}

.card-header span {
    flex: 1;
}

.wealth_sip_banner .card,
.wealth_sip_banner .xirr-card {
    box-shadow: 0px 0px 16px 0px #00000019;
}

#validation-messages, #return-validation-message {
    background: #FFF4F5;
    border-radius: 8px;
    padding: 4px 12px;
    font-family: Rubik, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #FD4C60 !important;
    display: none; /* Hide initially */
    position: relative;
}

#validation-messages::before {
    content: "";
    display: inline-block;
    width: 20px; /* Adjust as per your image */
    height: 18.96px;
    background: url('/sites/default/files/amcimages/important.svg') no-repeat center;
    background-size: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.return-main.mb-3.d-flex {
    margin-bottom: 3px !important;
}

.xirr-enabled {
    background: linear-gradient(90deg, #0074C9 0%, #2099F1 100%);
    border-radius: 8px !important;
    padding: 6px;
    border-color: unset !important;
}
.reset-cta{
    background: #FFFFFF;
    border: 1px solid #0074C9;
    border-radius: 8px;
    border-width: 1px;
    padding: 6px;
    color: #005DAC;
    font-weight: 500;
    font-size: 16px;
}

.btn-secondary:disabled {
    border-radius: 8px;
}

#investmentAmount-1, #investmentAmount-2, #investmentAmount-3, #investmentAmount-4, #returnAmount {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text x="3" y="18" font-size="20" font-family="Rubik, sans-serif" fill="%23333">₹</text></svg>') no-repeat 10px center;
    background-size: 18px;
    padding-left: 30px;
    text-align: end;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(31%) sepia(100%) saturate(584%) hue-rotate(184deg) brightness(92%) contrast(97%);
}

@media only screen and (min-width: 1025px) {

    .wealth_sip_banner .card,
    .wealth_sip_banner .xirr-card {
        height: 474px;
        box-shadow: 0px 0px 16px 0px #00000019;
    }

    .xirr-banner {
        justify-content: space-evenly;
    }

    .xirr-result-pa h3 {
        font-family: Rubik !important;
        font-weight: 500;
        font-size: 24px !important;
        line-height: 30px;
        letter-spacing: 0%;
        text-align: center;
        color: #111111;
    }

    .xirr-result-pa p {
        font-family: Rubik;
        font-weight: 600;
        font-size: 24px;
        line-height: 30px;
        letter-spacing: 0%;
        text-align: center;
        color: #111111;
    }

    .explore-top {
        padding: 9px 7px;
        font-size: 14px;
        font-weight: 500;
        text-align: left
    }

    .third.row {
        background-color: #005DAC1A;
        margin: auto;
        padding: 5px;
        border-radius: 8px
    }

    .card-body {
        position: relative;
    }

    .cal-xirr-reset-section {
        position: absolute;
        bottom: 0;
        inline-size: -webkit-fill-available;
    }

    .cal-xirr-reset-section {
        padding: .5rem 1rem 0rem 0rem;
    }
    .xirr-enabled {
        background: linear-gradient(90deg, #0074C9 0%, #2099F1 100%);
        border-radius: 8px !important;
        padding: 6px;
        border-color: unset !important;
    }
    .reset-cta{
        background: #FFFFFF;
        border: 1px solid #0074C9;
        border-radius: 8px;
        border-width: 1px;
        padding: 6px;
        color: #005DAC;
        font-weight: 500;
        font-size: 16px;
    }
}

@media only screen and (max-width: 768px) {

    .wealth_sip_banner .card,
    .wealth_sip_banner .xirr-card {
        box-shadow: 0px 0px 16px 0px #00000019;
    }

    .wealth_sip_banner .container {
        padding: unset;
    }

    input[type="date"] {
        flex: 1;
        /* Reduce width for date input */
        min-width: 100px;
        /* Ensures usability */
    }

    input[type="number"] {
        flex: 1;
        /* Takes more space */
    }

    .wealth_sip_banner .card {
        height: 507px;
    }

    .cal-xirr-reset-section {
        display: flex;
        flex-direction: column;
    }

    .xirr-card {
        margin-top: 15px;
    }

    .third.row {
        background-color: #005DAC1A;
        margin: auto;
        padding: 5px;
        border-radius: 10px;
    }

    .card-header {
        padding: 0px 0px 16px 0px !important;
    }

    .card-body {
        padding: unset !important;
        position: relative;
    }

    .cal-xirr-reset-section {
        position: absolute;
        bottom: 0;
        inline-size: -webkit-fill-available;
    }

    .cal-xirr-reset-section .btn.btn-secondary {
        margin-bottom: 10px;
    }
}


@media only screen and (min-width: 810px) and (max-width: 820px) and (max-height: 1080px) and (orientation: portrait) {
    .wealth_sip_banner .card {
        height: 542px;
    }

    .third.row {
        background-color: #005DAC1A;
        margin: auto;
        padding: 5px;
        border-radius: 10px;
    }

    .wealth_sip_banner .card,
    .wealth_sip_banner .xirr-card {
        box-shadow: 0px 0px 16px 0px #00000019;
    }
    .card-header {
        padding: 0px 0px 16px 0px !important;
    }
    .card-body{
        position: relative;
        padding: unset !important;
    }
    .cal-xirr-reset-section {
        position: absolute;
        bottom: 0;
        inline-size: -webkit-fill-available;
    }
    input[type="date"] {
        flex: 1;
        min-width: 100px;
    }

    input[type="number"] {
        flex: 1;
    }
}

@media screen and (max-width: 768px) { 
    input[type="date"] {
        position: relative;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230072BC"><path d="M19 4h-1V2h-2v2H8V2H6v2H5C3.9 4 3 4.9 3 6v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM7 12h5v5H7z"/></svg>') 
            no-repeat;
        background-position: right 10px center;
        background-size: 20px 20px;
    }
    input[type=date] {
        font-size: 12px !important;
    }
}

/* Target only Safari */
@supports (-webkit-touch-callout: none) {
    input[type="date"] {
        position: relative;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230072BC"><path d="M19 4h-1V2h-2v2H8V2H6v2H5C3.9 4 3 4.9 3 6v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM7 12h5v5H7z"/></svg>') 
            no-repeat;
        background-position: right 10px center;
        background-size: 20px 20px;
    }
}
