.benefitsTab {
    position: relative;
}

.benefitsTab p {
    margin-bottom: 0px !important;
}

.benefitsTab .section-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 0px;
}

.benefitsTab .header {
    text-align: center;
    margin-bottom: 30px;
}

.benefitsTab .header h2 {
    font-size: 36px;
    line-height: 56px;
    font-weight: 500;
}

.benefitsTab .tabs-wrapper {
    max-width: 850px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    scroll-behavior: smooth;
}

.benefitsTab .tabs-wrapper.more-than-4::-webkit-scrollbar,
.benefitsTab .tabs-wrapper::-webkit-scrollbar {
    height: 6px;
}

.benefitsTab .tabs-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.benefitsTab .tabs-wrapper::-webkit-scrollbar-thumb {
    background: #0066b2;
    border-radius: 3px;
}

.benefitsTab .tabs {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    align-items: stretch;
    overflow: auto;
}

.benefitsTab .tab {
    flex: none;
    padding: 15px 10px;
    border-radius: 30px;
    color: #0C111D;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.benefitsTab .tab.active {
    color: #FFFFFF;
    background: #005E9E;
}

.benefitsTab .content-wrapper {
    max-width: 850px;
    margin: 0 auto;
    /* min-height: 600px; */
    position: relative;
    z-index: 2;
}

.benefitsTab .tab-content {
    display: none;
    padding: 0px 15px;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.benefitsTab .tab-description {
    color: #002842;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 15px;
}

.benefitsTab .tab-section {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.benefitsTab .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.benefitsTab .section-header>* {
    color: #0C111D;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    width: 97%;
}

.benefitsTab .section-header.active>* {
    color: #005E9E;
}

.benefitsTab .chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid #ed1c24;
    border-bottom: 2px solid #ed1c24;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.benefitsTab .section-header.active .chevron {
    transform: rotate(-135deg);
}

.benefitsTab .section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.benefitsTab .section-content.active {
    max-height: 2000px;
}

.benefitsTab .section-inner {
    padding: 0px 25px 25px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.benefitsTab .section-inner p {
    color: #1C2633;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.benefitsTab .benefit-scenario {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.benefitsTab .benefit-flow {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.benefitsTab .benefit-img {
    width: 100%;
    height: auto;
}

.benefitsTab .benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.benefitsTab .benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefitsTab .time-badge {
    display: inline-block;
    background: #ffe5e5;
    color: #d32f2f;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.benefitsTab .benefit-amount {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0066b2;
    margin: 10px 0;
}

.benefitsTab .benefit-duration {
    color: #0066b2;
    font-size: 1rem;
    margin-bottom: 15px;
}

.benefitsTab .benefit-total {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.benefitsTab .flow-arrow {
    font-size: 3rem;
    color: #ffb3b3;
    align-self: center;
}

.benefitsTab .actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.benefitsTab .action {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.benefitsTab .actions button {
    min-width: 135px;
}

.benefitsTab .download-brochure,
.benefitsTab .download-leaflet {
    color: #005e9e;
    font-size: 14px;
    line-height: 14px;
    font-weight: 500;
    padding: 5px 20px;
    border: none;
    background-color: transparent;
}

.benefitsTab .download-brochure i,
.benefitsTab .download-leaflet i {
    width: 16px;
    height: 16px;
    background: url(../../../../../content/dam/hdfclifeinsurancecompany/about-us/icons/Download.svg);
    display: inline-block;
    margin-right: 5px;
    transform: translateY(5px);
}

.benefitsTab .calculate-premium {
    color: #ED1C24;
    font-weight: 600;
    border: 1px solid #F9ADAA;
    border-radius: 6px;
}

.benefitsTab .background-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.benefitsTab .background-image .bgImg {
    display: none;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.benefitsTab .background-image .bgImg.active {
    display: block;
}

.benefitsTab .tab-header p {
    line-height: 24px;
    font-weight: 500;
}

.benefitsTab .solid-red-button {
    min-width: 135px;
}

.benefitsTab .bullets li {
    position: relative;
    padding-left: 20px;
}

.benefitsTab .bullets>li::before {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background: url("../../../../../content/dam/hdfclifeinsurancecompany/icons/list-bullet.svg") no-repeat;
    background-size: contain;
    position: absolute;
    top: 0px;
    left: 0px;
}

.benefitsTab .bullets-list {
    list-style: disc;
    padding-left: 20px;
}

.benefitsTab .bullets-list li {
    padding-left: 0px;
}

@media screen and (min-width: 768px) {
    .benefitsTab .tabs-wrapper.up-to-4 {
        overflow-x: hidden;
    }

    .benefitsTab .tabs-wrapper.cols-1 .tab {
        width: 100%;
    }

    .benefitsTab .tabs-wrapper.cols-2 .tab {
        width: 48%;
    }

    .benefitsTab .tabs-wrapper.cols-3 .tab {
        width: calc((100% - 2 * 20px) / 3);
    }

    .benefitsTab .tabs-wrapper.cols-4 .tab {
        width: calc((100% - 3 * 20px) / 4);
    }

    .benefitsTab .tabs-wrapper.more-than-4 {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .benefitsTab .tabs-wrapper.more-than-4 .tab {
        width: calc((100% - 3 * 20px) / 4);
    }
}

@media screen and (max-width: 768px) {
    .benefitsTab .section-container {
        padding: 20px 15px;
    }

    .benefitsTab .header h2 {
        font-size: 24px;
        line-height: 36px;
    }

    .benefitsTab .tabs {
        gap: 10px;
    }

    .benefitsTab .tab {
        width: 80%;
        padding: 12px 25px;
        font-size: 14px;
        line-height: 20px;
    }

    .benefitsTab .section-header {
        padding: 15px;
    }

    .benefitsTab .section-header>* {
        font-size: 14px;
        line-height: 20px;
    }

    .benefitsTab .tab-content {
        padding: 0px;
    }

    .benefitsTab .tab-description {
        font-size: 14px;
    }

    .benefitsTab .section-inner {
        padding: 10px;
    }

    .benefitsTab .chevron {
        width: 10px;
        height: 10px;
    }

    .benefitsTab .benefit-flow {
        flex-direction: column;
    }

    .benefitsTab .flow-arrow {
        transform: rotate(90deg);
    }

    .benefitsTab .background-image {
        width: 250px;
        height: 300px;
        opacity: 0.3;
    }

    .benefitsTab .actions {
        flex-direction: column;
    }

    .benefitsTab .action {
        justify-content: center;
        gap: 10px;
    }

    .benefitsTab .download-brochure,
    .benefitsTab .download-leaflet {
        padding: 5px;
    }

    .benefitsTab .tab-header {
        line-height: 20px;
    }

    .benefitsTab .section-inner p {
        font-size: 13px;
        font-weight: 500;
    }

    .mob-justify-center {
        justify-content: center !important;
    }

    .mob-fullWidthButton {
        width: 100% !important;
    }
}

@media screen and (max-width: 366px) {
    .benefitsTab .download-brochure,
    .benefitsTab .download-leaflet {
        font-size: 12px;
    }
}

.benefitsTab .benefit-section .section-title {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px !important;
    position: relative;
    z-index: 2;
}


.benefitsTab .benefit-section .section-title  p {
    padding: 0px 10px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #1C2633;
    background-color: #fff;
    z-index: 2;
}

.benefitsTab .benefit-section .section-title::before,
.benefitsTab .benefit-section .section-title::after {
    content: '';
    background: #D2D5DA;
    width: 50%;
    height: 2px;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1  ;
}

.benefitsTab .benefit-section .section-title::before {
    left: 0px;
}

.benefitsTab .benefit-section .section-title::after {
    right: 0px;
}

.benefitsTab .comparison-container {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
}

.benefitsTab .benefit-card {
    padding: 0px 20px;
    text-align: center;
}

.benefitsTab .comparison-container .comparison-header {
    color: #0066cc;
    background-color: transparent;
    margin-bottom: 20px;
    text-align: center;
}

.benefitsTab .benefit-item {
    margin-bottom: 16px;
}

.benefitsTab .benefit-label {
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.benefitsTab .benefit-value {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.benefitsTab .benefit-note {
    font-size: 14px;
    color: #7f8c9a;
    margin-top: 12px;
}

.benefitsTab .divider-line {
    border-bottom: 2px dashed #c0c0c0;
    margin: 5px 0;
}

.benefitsTab .total-benefit {
    padding-top: 20px;
}

.benefitsTab .total-label {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.benefitsTab .total-value {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
}

.benefitsTab .vertical-divider {
    background: #e0e0e0;
    width: 1px;
}
.benefitsTab .section-inner ul,
.benefitsTab .section-inner ol {
    color: #667085;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
    padding-left: 20px;
}
.benefitsTab .section-inner ul {
    list-style: disc;
}
 
.benefitsTab .section-inner li {
    color: #667085;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .benefitsTab .section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .benefitsTab .comparison-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefitsTab .vertical-divider {
        display: none;
    }

    .benefitsTab .benefit-card {
        padding: 20px;
        border-bottom: 2px solid #e0e0e0;
    }

    .benefitsTab .benefit-card:last-child {
        border-bottom: none;
    }

    .benefitsTab .card-header {
        font-size: 20px;
    }

    .benefitsTab .benefit-value {
        font-size: 20px;
    }

    .benefitsTab .total-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .benefitsTab .section-title {
        font-size: 18px;
    }

    .benefitsTab .card-header {
        font-size: 18px;
    }

    .benefitsTab .benefit-label {
        font-size: 14px;
    }

    .benefitsTab .benefit-value {
        font-size: 18px;
    }

    .benefitsTab .total-value {
        font-size: 22px;
    }
}
.benefitsTab .return-tabs {
    margin-top: 20px;
}

.benefitsTab .return-tabs-header {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.benefitsTab .return-tab {
    background: transparent;
    border: none;
    padding: 8px 6px 12px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #344054;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.benefitsTab .return-tab.is-active {
    color: #005E9E;
    border-bottom-color: #005E9E;
}

.benefitsTab .return-tab:focus-visible {
    outline: 2px solid #005E9E;
    outline-offset: 2px;
    border-radius: 4px;
}

.benefitsTab .return-tab-panel {
    display: none;
}

.benefitsTab .return-tab-panel.is-active {
    display: block;
}

.benefitsTab .return-card {
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Flow: pill — line/clock — pill */
.benefitsTab .return-card-flow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefitsTab .return-card-line {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

/* Body: two sides side by side */
.benefitsTab .return-card-body {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.benefitsTab .return-card-avatar img {
    width: 100%;
    height: 100%;
    /* object-fit: cover;
    border-radius: 50%; */
}

.benefitsTab .return-card-line-segment {
    flex: 1;
    border-bottom: 2px dotted #f2b4b4;
}

.benefitsTab .return-card-pill {
    background: #ffe4e6;
    color: #000;
    border-radius: 5px;
    padding: 6px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    /* white-space: nowrap; */
}
.benefitsTab .return-card-pill p {
    color: #000;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.benefitsTab .return-card-clock {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #f2b4b4;
    position: relative;
    background: #ffffff;
    flex: none;
}

.benefitsTab .return-card-clock::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 9px;
    background: #f2b4b4;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.benefitsTab .return-card-clock::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: #f2b4b4;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
}

.benefitsTab .return-card-side {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.benefitsTab .return-card-side--left {
    flex-direction: row;
}

.benefitsTab .return-card-side--right {
    flex-direction: row-reverse;
    text-align: right;
}

.benefitsTab .return-card-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

/* .benefitsTab .return-card-side--right .return-card-text {
    text-align: right;
} */

/* legacy alias so older authored content still renders */
.benefitsTab .return-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.benefitsTab .return-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #e9f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.benefitsTab .return-card-avatar--right {
    background: #eef2ff;
}

.benefitsTab .return-card-icon {
    width: 64px;
    height: 64px;
    fill: #f1bca0;
}

.benefitsTab .return-card-icon--person {
    fill: #f0b59c;
}

.benefitsTab p.return-card-title,
.benefitsTab .return-card-title p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #005E9E;
}

.benefitsTab .return-card-title.left-text {
    text-align: left;
}
.benefitsTab .return-card-title.right-text {
    text-align: right;
}

.benefitsTab p.return-card-subtitle,
.benefitsTab .return-card-subtitle p {
    font-size: 14px;
    line-height: 20px;
    color: #667085;
}

.benefitsTab .return-card-link {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #4B5563;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.benefitsTab .return-card-link:hover {
    text-decoration: underline;
}

.benefitsTab .return-breakup {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.benefitsTab .return-breakup-popover {
    position: absolute;
    right: -135px;
    bottom: calc(100% + 8px);
    min-width: 420px;
    background: #f5fbff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: 16px 16px 14px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 3;
}

.benefitsTab .return-breakup.is-open .return-breakup-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.benefitsTab .return-breakup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.benefitsTab .return-breakup-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #98A2B3;
}

.benefitsTab .return-breakup-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.benefitsTab .return-breakup-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.benefitsTab .return-breakup-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 10px;
}

.benefitsTab .return-breakup-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0px;
    color: #344054;
    font-size: 12px;
    line-height: 20px;
    padding-bottom: 2px;
}

.benefitsTab .return-breakup-label {
    font-weight: 500;
    width: 50%;
    flex: none;
}

.benefitsTab .return-breakup-value {
    font-weight: 500;
    color: #0C111D;
    width: 49%;
    flex: none;
}

.benefitsTab .return-breakup-note {
    margin-top: 10px;
    font-size: 12px;
    line-height: 18px;
    color: #667085;
}

@media screen and (max-width: 768px) {
    .benefitsTab .return-tabs-header {
        gap: 16px;
    }

    .benefitsTab .return-tab {
        font-size: 14px;
        line-height: 20px;
    }

    .benefitsTab .return-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 12px;
        row-gap: 4px;
        padding: 16px;
    }

    /* Dissolve all wrappers — every leaf becomes a direct grid item */
    .benefitsTab .return-card-flow        { display: contents; }
    .benefitsTab .return-card-body        { display: contents; }
    .benefitsTab .return-card-side--left  { display: contents; }
    .benefitsTab .return-card-side--right { display: contents; }

    /* ── LEFT SECTION ─────────────────────────────────── */
    /* Avatar: col 1, spans pill-row + text-row */
    .benefitsTab .return-card-avatar--left {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
        width: 80px;
        height: 80px;
    }
    /* Left pill: col 2, row 1 */
    .benefitsTab .return-card-flow .return-card-pill:first-child {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin-bottom: 2px;
    }
    /* Left text (title + subtitle): col 2, row 2 */
    .benefitsTab .return-card-side--left .return-card-text {
        grid-column: 2;
        grid-row: 2;
    }

    /* ── CONNECTOR ────────────────────────────────────── */
    .benefitsTab .return-card-line {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-self: center;
        padding: 4px 0;
    }
    .benefitsTab .return-card-line .return-card-line-segment {
        flex: none;
        width: 0;
        height: 36px;
        border-left: 2px dotted #f2b4b4;
        border-bottom: none;
    }

    /* ── RIGHT SECTION ────────────────────────────────── */
    /* Avatar: col 1, spans pill-row + text-row */
    .benefitsTab .return-card-avatar--right {
        grid-column: 1;
        grid-row: 4 / 6;
        align-self: start;
        width: 80px;
        height: 80px;
    }
    /* Right pill: col 2, row 4 */
    .benefitsTab .return-card-flow .return-card-pill:last-child {
        grid-column: 2;
        grid-row: 4;
        align-self: end;
        margin-bottom: 2px;
    }
    /* Right text: col 2, row 5 */
    .benefitsTab .return-card-side--right .return-card-text {
        grid-column: 2;
        grid-row: 5;
        text-align: left;
    }

    .benefitsTab .return-card-clock {
        width: 34px;
        height: 34px;
    }
    .benefitsTab .return-card-pill {
        justify-self: flex-start;
    }

    .benefitsTab .return-breakup {
        align-items: flex-start;
    }

    .benefitsTab .return-breakup-popover {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    }

    .benefitsTab .return-card-title.right-text {
        text-align: left;
    }
}

