/* FD Calculator Banner Styles */
.fdcalculatorbanner {
    margin: 20px auto;
    font-family: var(--body-font-family);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.12);
}

.fdcalculatorbanner .fdcalculatorbanner__wrapper .fd-btn-row {
    width: 100%;
    display: flex;
}

.fdcalculatorbanner__wrapper {
    height: 100%;
    width: 100%;
}

.fdcalculatorbanner__title {
    font-size: 20px;
    font-weight: 700;
    color: rgba(167, 14, 21, 1);
    text-align: center;
    margin: 0;
    letter-spacing: -0.3px;
    padding-top: 15px;
    font-family: var(--body-font-family);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.fdcalculatorbanner__rates {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: space-between;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.fdcalculatorbanner__rate {
    flex: 1;
    background: linear-gradient(135deg, #a70e15 0%, #8e0006 100%);
    border-radius: 8px;
    padding: 12px 6px;
    text-align: center;
    color: white;
    position: relative;
    transition: transform 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.fdcalculatorbanner__rate:hover {
    transform: translateY(-2px);
}

.fdcalculatorbanner__rate:nth-child(2) {
    background: linear-gradient(135deg, #d41e2a 0%, #a70e15 100%);
}

.fdcalculatorbanner__rate:nth-child(3) {
    background: linear-gradient(135deg, #666666 0%, #444444 100%);
}

.fdcalculatorbanner__rate-value {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.fdcalculatorbanner__tenure {
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 2px 0;
    opacity: 0.9;
    line-height: 1.2;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.fdcalculatorbanner__spl {
    font-size: 9px;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
    font-style: italic;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.fdcalculatorbanner__desc {
    /* background: #fff8f0; */
    /* border: 1px solid #ffd699; */
    border-radius: 6px;
    padding: 0 12px;
    /* margin-bottom: 3px; */
    text-align: center;
    font-weight: 400;
    color: #111111;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.fdcalculatorbanner__desc p {
    margin: 0;
    font-size: 12px;
    color: #333;
    font-weight: 500;
    font-family: var(--body-font-family);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.fdcalculatorbanner__outputs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: rgba(255, 253, 252, 1);
    border-radius: 8px;
    padding: 8px 8px 3px;
    max-width: 90%;
    border: 1px solid rgba(17, 17, 17, 0.05);
    margin: 0 auto 7px auto;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

.fdcalculatorbanner__output {
    flex: 1;
    text-align: center;
}

.fdcalculatorbanner__output-heading {
    font-size: 10px;
    color: #111;
    margin: 0;
    line-height: 1.2;
    font-family: var(--body-font-family);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
    margin-bottom: 4px;
}

.fdcalculatorbanner__output-value {
    color: rgba(167, 14, 21, 1);
    margin: 0;
    font-family: var(--body-font-family);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.13px;
}

.bar-bg {
    height: 125px;
    position: absolute;
    background: #f0e5e0;
    bottom: 60px;
    z-index: 1;
    width: 46px;
}


/* Responsive Design */
@media (max-width: 767px) {
    .carousel-scroll-track .fdcalculatorbanner {
        height: 100%;
        margin: 0;
        padding-bottom: 0;
    }

    .carousel-scroll-track .fdcalculatorbanner__wrapper {
        height: 100%;
        padding-bottom: 0;
    }

    .carousel-scroll-track .fdcalculatorbanner__ctas {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .fdcalculatorbanner {
        max-width: 100%;
        margin: 10px;
    }

    .fdcalculatorbanner__wrapper {}

    .fdcalculatorbanner__rates {
        gap: 6px;
    }

    .fdcalculatorbanner__rate {
        padding: 10px 4px;
        min-height: 70px;
    }

    .fdcalculatorbanner__rate-value {
        font-size: 14px;
    }

    .fdcalculatorbanner__tenure {
        font-size: 10px;
    }

    .fdcalculatorbanner__spl {
        font-size: 8px;
    }

    .fdcalculatorbanner__outputs {
        gap: 8px;
    }

    .fdcalculatorbanner__output-value {
        font-size: 13px;
    }

    .fdcalculatorbanner__cta {
        font-size: 11px;
        padding: 10px 6px;
        min-height: 40px;
    }

    .fdcalculatorbanner__cta.apply {
        font-size: 12px;
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fdcalculatorbanner[data-block-status="loaded"] {
    animation: fadeInUp 0.5s ease-out;
    padding-top: 0;
    margin: 0;
}

/* Subtle hover effects */
.fdcalculatorbanner__rate::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 8px;
}

.fdcalculatorbanner__rate:hover::after {
    opacity: 1;
}

/* === Animated Graph Styles === */
.fdcalculatorbanner__chart {
    display: flex;
    align-items: flex-end;
    /* height: 180px; */
    /* margin-bottom: 5px; */
    position: relative;
    padding: 0 17px;
    justify-content: space-between;
    /* margin-top: 5px; */
}

.fdcalculatorbanner__chart .fdcalculatorbanner__roi {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-size: 8px;
    font-weight: 500;
    color: #666;
    letter-spacing: 1px;
    text-align: center;
}

.fdcalculatorbanner__chart-numbering {
    gap: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: 190px;  */
    padding-bottom: 55px;
    /* Account for the bar value text space */
    align-items: flex-end;
}

.fdcalculatorbanner__chart-numbering span {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    min-width: 25px;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* height: 180px; */
    justify-content: flex-end;
    position: relative;
    width: 50px;
    margin: 0 5px;
}

.animated-bar {
    width: 46px;
    height: 0%;
    min-height: 0px;
    max-height: 100%;
    background: linear-gradient(90.08deg, #4E0004 -8.52%, #8E0006 29.97%);
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);

    color: #fff;
    font-size: 0.95rem;
    /* 12px → relative size */
    font-weight: bold;
    padding-top: 6px;
    box-sizing: border-box;
}

.bar-value {
    margin: 0;
    opacity: 0;
    font-size: 12px;
    transition: opacity 0.5s ease 1s;
    font-weight: bold;
    color: #fff;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); */
}

.animated-bar.animated .bar-value {
    opacity: 1;
}

.bar-label {
    margin-top: 12px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(0, 0, 0, 1);
    text-align: center;
    background: none;
    border: 1px solid rgba(17, 17, 17, 0.12);
    padding: 3px 10px;
    cursor: pointer;
    font-family: var(--body-font-family);
    /* padding: 10px 0; */
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s;
    display: block;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    position: relative;
    z-index: 1;
    line-height: 120%;
    background: #fff;
}

.bar-label:hover {
    background-color: #f0f0f0;
}

.bar-label.active {
    background: linear-gradient(270deg, #E5461C 0%, #EE6F32 100%);
    color: #fff;
    font-family: var(--body-font-family);
}

.bar-special {
    font-size: 8px;
    margin-bottom: 0;
    line-height: 16px;
    display: block;
    text-align: center;
    font-family: var(--body-font-family);
}