@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.vatsalya-calculator {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: #233253;
}

.vatsalya-calculator-container {
    max-width: 1060px;
    margin: 10px auto;
    padding: 0 15px;
}

/* Header */
.vatsalya-header {
    margin-bottom: 25px;
}

.vatsalya-header h1 {
    margin: 0;
    font-size: 35px;
    line-height: 1.2;
    font-weight: 300;
    color: #233253;
}

.vatsalya-header h1 span {
    font-weight: 700;
    color: #233253;
}

.vatsalya-header p {
    margin-top: 8px;
    margin-bottom: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

/* Main calculator */
.vatsalya-calculator-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

/* Left */
/* Right */
.vatsalya-output-section {
    width: 100%;
    /* padding: 35px; */
    box-shadow: -8px 4px 14px rgba(152, 144, 144, 0.07);
}

/* Fields */
.vatsalya-field {
    padding: 10px 18px;
}

.vatsalya-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #233253;
}

.vatsalya-field input,
.vatsalya-field select {
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #233253 !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}

/* Money */
.vatsalya-money-input {
    display: flex;
    align-items: center;
    border-bottom: 2px dotted #657d93;
}

.vatsalya-money-input span {
    font-size: 20px;
    margin-right: 6px;
}

.vatsalya-money-input input {
    border: none;
    border-radius: 0;
    outline: none;
    padding-left: 0;
    border: 0px !important;
}

/* Current age */
.vatsalya-current-age {
    margin-top: 8px;
    font-size: 14px;
    color: #657d93;
}

.vatsalya-current-age strong {
    color: #233253;
}

/* Errors */
.vatsalya-error {
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
}

/* Output */
.vatsalya-output-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #233253;
}

.vatsalya-output-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 35px;
}

.vatsalya-output-card {
    height: 100%;
    min-height: 180px;
    border: 1px solid #e2e8f0;
    background: #1257a1;
    border-radius: 8px;
    padding: 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

#vatsalya-withdrawal-eligibility {
    font-size: 18px;
    line-height: 1.5;
    word-break: break-word;
}

.vatsalya-output-card p {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.vatsalya-output-card h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 0;
}

.vatsalya-investment-duration {
    margin-top: 8px;
    font-size: 14px;
    color: #64748b;
}

.vatsalya-investment-duration strong {
    color: #233253;
    font-weight: 600;
}

#vatsalya-investment-summary {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.vatsalya-summary-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #e4f7ff;
}

.vatsalya-summary-box>div {
    /* flex:1; */
    text-align: center;
    width: 50%;
    background: url(../images/white-bg.png) no-repeat bottom center;
    background-size: contain;
    min-height: 200px;
}

.vatsalya-summary-box>div p {
    margin-bottom: 10px;
    color: #5A5A5A;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.vatsalya-money-input input {
    width: 100%;
    min-width: 0;
}

.vatsalya-summary-box>div h3 {
    margin-bottom: 15px;
    color: #233253;
    font-size: 24px;
    font-weight: 600;
}

.vatsalya-summary-box>div img {
    max-width: 140px;
    height: auto;
}

.vatsalya-info-card {
    margin: 0px 30px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 10px;
}

.vatsalya-info-card h4 {
    margin-top: 0;
    color: #233253;
}

.vatsalya-info-card ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.vatsalya-tooltip-content li {
    margin-bottom: 6px !important; 
 
    color: #f2f2f2 !important;

     font-size: 14px !important;
}

#vatsalya-partial-withdrawal-info,
#vatsalya-options-panel,
#vatsalya-msf-notice,
.total-corpus {
    display: none;
}

.vatsalya-tooltip-wrapper:hover .vatsalya-tooltip-content {
    display: block;
}

.vatsalya-assumption-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1257a1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.vatsalya-input-row {
    display: flex;
    gap: 10px;
}

.vatsalya-input-row>div {
    flex: 1;
}

#vatsalya-options-panel details {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

#vatsalya-options-panel summary {
    cursor: pointer;
    padding: 15px;
    font-weight: 600;
    background: #f8fafc;
}

#vatsalya-options-panel p {
    padding: 15px;
    margin: 0;
}

#vatsalya-msf-notice {
    display: none;
    margin: 20px 35px;
    padding: 15px;
    border-left: 4px solid #f59e0b;
    background: #fff8e1;
    border-radius: 8px;
    color: #233253;
    font-size: 14px;
    line-height: 1.6;
}

.vatsalya-eligibility-green {
    background: #16a34a;
}

.vatsalya-eligibility-orange {
    background: #ea580c;
}

.total-corpus {
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    font-family: 'Poppins', sans-serif;
    color: #1257a1;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 10px 10px 10px;
    margin-top: 10px;
    background: linear-gradient(180deg, #1bc5bd, #24c9c0);
    border-radius: 8px;
    margin: 25px;
}

.total-corpus p {
    color: #5A5A5A;
    text-align: center;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 10px;
}

.total-corpus h3 {
    color: #233253;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.vatsalya-tooltip-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 75px;
}

.vatsalya-tooltip-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1257a1;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.vatsalya-tooltip-content {
    position: absolute;
    top: 65%;
    left: 0;
    width: 280px;
    background: rgba(0, 0, 0, 0.8);
    border: 0px solid #dbeafe;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
    transform: translateX(-50%);
    display: none;
    z-index: 999;
}

.vatsalya-tooltip-wrapper:hover .vatsalya-tooltip-content {
    display: block;
}

.vatsalya-tooltip-content ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.info-icon {
    position: relative;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #6d8193;
    margin-left: 3px;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid #657D93;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 20px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border 0.2s;
    font-style: italic;
    font-family: serif;
}

.vatsalya-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header-nav {
    display: flex;
    justify-content: space-between;
}

/* calendar */
.vatsalya-date-wrapper {
    position: relative;
}

.vatsalya-date-wrapper input {
    padding-right: 45px;
}

.vatsalya-date-wrapper::after {
    content: "📅";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
}

/* #vatsalya-investment-slider{
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ED1C24 0%, #005E9E var(--progress), #E6E6E6 var(--progress), #E6E6E6 100%);
    outline: none;
}
#vatsalya-investment-slider {
    border: 0;
    --thumb-offset: -20px;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 300px;
    max-width: 100%;
    height: 8px;
    border-radius: 6px;
    background: #7B7B7B33;
    outline: none;
    margin: 0;
    position: relative;
    transition: background 0.3s ease;
    width: 85%;
    margin: 0px 35px;
    margin-bottom: 20px;
} */

#vatsalya-investment-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 95%;
    height: 10px;

    margin: 0 10px 20px;

    border: 0;
    border-radius: 999px;

    outline: none;

    background: linear-gradient(90deg,
            #ED1C24 0%,
            #005E9E var(--progress, 0%),
            #E6E6E6 var(--progress, 0%),
            #E6E6E6 100%);

    position: relative;
    transition: background 0.15s ease;
}

#vatsalya-investment-slider::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 6px;
    background: transparent;
    min-width: 100%;
    box-sizing: border-box;
}

#vatsalya-investment-slider::-moz-range-track {
    height: 12px;
    border-radius: 6px;
    background: transparent;
}

#vatsalya-investment-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 38px;
    width: 38px;
    border-radius: 50%;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='24' viewBox='0 0 30 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 16L7 12L11 8' stroke='%232C3E50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19 16L23 12L19 8' stroke='%232C3E50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    cursor: pointer;
    margin-top: -13px;
    transform: translateX(var(--thumb-offset));
    box-shadow: 0 6px 10px rgba(0, 94, 158, 0.1);
    border: 1px solid rgba(249, 249, 249, 1);
    position: relative;
}

#vatsalya-investment-slider::-moz-range-thumb {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='24' viewBox='0 0 30 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 16L7 12L11 8' stroke='%232C3E50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19 16L23 12L19 8' stroke='%232C3E50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    cursor: pointer;
    transform: translateX(var(--thumb-offset));
    box-shadow: 0 6px 10px rgba(0, 94, 158, 0.1);
    border: 1px solid rgba(249, 249, 249, 1);
    position: relative;
}

.flatpickr-input[readonly] {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff !important;
    color: #233253;
    font-size: 16px;
    box-sizing: border-box;
    cursor: pointer;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #ffffff !important;
    opacity: 1;
}

.flatpickr-calendar {
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.today {
    border-color: #005E9E;
}

.flatpickr-day.selected {
    background: #005E9E;
    border-color: #005E9E;
}

.flatpickr-day:hover {
    background: #EAF4FB;
    border-color: #EAF4FB;
}

/* Mobile */
@media (max-width: 767px) {
    .vatsalya-input-row {
        flex-direction: column;
    }

    .vatsalya-calculator-container {
        margin: 30px auto;
    }

    .vatsalya-header h1 {
        font-size: 28px;
    }

    .vatsalya-calculator-body {
        grid-template-columns: 1fr;
    }

    .vatsalya-input-section,
    .vatsalya-output-section {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 0;
    }

    .vatsalya-output-grid {
        grid-template-columns: 1fr;
    }

    .vatsalya-summary-box {
        flex-direction: column;
    }

    .vatsalya-summary-box>div {
        width: 100%;
    }

    .vatsalya-output-card {
        min-height: auto;
        padding: 20px;
    }

    .vatsalya-output-card h3 {
        font-size: 20px;
    }

    .vatsalya-summary-box>div {
        min-height: auto;
    }

    .vatsalya-tooltip-content {
        width: 260px;
        left: -50px;
    }
}

/* GRAPH */
.vatsalya-graphs {
    display: flex;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
}

.vatsalya-chart-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
}

.vatsalya-chart-card h3 {
    margin: 0 0 8px;
}

.vatsalya-chart-description {
    margin: 0 0 20px;
    font-size: 14px;
}

.vatsalya-chart {
    width: 100%;
    min-height: 320px;
    position: relative;
}

.vatsalya-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .vatsalya-chart-card {
        padding: 16px;
    }

    .vatsalya-chart {
        min-height: 260px;
    }
}

.vatsalya-donut-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 300px;
}

.vatsalya-donut-svg {
    width: 240px;
    max-width: 100%;
}

.vatsalya-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vatsalya-donut-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vatsalya-donut-item strong {
    font-size: 15px;
}

.vatsalya-donut-item span {
    font-size: 14px;
}

@media (max-width: 767px) {

    .vatsalya-donut-wrapper {
        flex-direction: column;
        gap: 20px;
    }

}

.derived {
    margin-top: 25px;
    padding: 14px;
    display: block;
    /* grid-template-columns: 1fr 1fr; */
    background: #f3f8ff;
    border: 1px solid #d8e8fb;
    border-radius: 8px
}

.derived div {
    color: #005E9E
}

.derived span {
    color: #005E9E;
    font-size: 14px
}

.derived strong {
    display: block;
    color: #1c2942;
    margin-top: 4px
}

.charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0px;
    /* margin-top: 16px */
}

.chart-card {
    /* border: 1px solid #e0e5eb; */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    min-width: 0;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

.chart-card h3 {
    font-size: 20px;
    margin: 18px 18px 4px
}

.chart-card p {
    margin: 0 18px;
    font-size: 16px;
    font-weight: 500;
    color: #233253;
}

.line-chart {
    height: 390px;
}

.line-chart svg {
    width: 100%;
    height: 100%;
    display: block
}

.cross {
    pointer-events: none
}

.tooltip {
    position: absolute;
    display: none;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    padding: 9px 11px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
    font-size: 13px;
    pointer-events: none;
    z-index: 3
}

.tooltip b {
    display: block;
    font-weight: 500;
    margin-bottom: 3px
}

.tooltip strong {
    font-size: 14px
}

.chart-wrap {
    position: relative;
    margin-top: 10px;
}

.donut {
    height: 310px;
    position: relative
}

.donut svg {
    width: 100%;
    height: 100%;
    display: block
}

.segment {
    cursor: pointer;
    transition: transform .15s ease, stroke-width .15s ease
}

.segment:hover {
    stroke-width: 74
}

.donut .tooltip {
    left: 0;
    top: 0
}

.legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px 29px;
}

.legend>span {
    display: grid;
    grid-template-columns: 15px 1fr;
    column-gap: 8px;
    font-size: 13px;
    color: #42506a
}

.legend b {
    grid-column: 2
}

.legend em {
    grid-column: 2;
    font-style: normal;
    font-weight: 700;
    margin-top: 3px
}

.swatch {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    grid-row: 1/3;
    margin-top: 2px
}

.lump {
    background: #005E9E
}

.ann {
    background: #ED1C24
}

.foot {
    /* background: #f2f8ff; */
    border-top: 1px solid #005E9E;
    color: #005E9E;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
}

.disclaimer {
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #f1dfa9;
    background: #fff8e9;
    border-radius: 9px;
    display: flex;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5
}

.vatsalya-chart-tooltip {
    position: absolute;
    display: none;
    background: #fff;
    border: 1px solid #d7dfe8;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 6px 20px rgba(16, 43, 99, 0.15);
    font-size: 13px;
    line-height: 1.4;
    color: #233253;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.vatsalya-chart-tooltip strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.vatsalya-chart-tooltip span {
    display: block;
    font-size: 13px;
}

.vatsalya-donut-segment {
    cursor: pointer;
    transition: opacity .15s ease, stroke-width .15s ease;
}

.vatsalya-donut-segment:hover {
    opacity: .85;
}

@media(max-width:1100px) {
    .layout {
        grid-template-columns: 1fr
    }

    .charts {
        grid-template-columns: 1fr
    }
}

@media(max-width:700px) {
    .derived {
        grid-template-columns: 1fr
    }

    .derived div+div {
        border-left: 0;
        border-top: 1px solid #ccdced;
        padding: 12px 0 0;
        margin-top: 12px
    }

    .legend {
        grid-template-columns: 1fr
    }

    .left h1 {
        font-size: 28px
    }
}

/*Frequency*/
.vatsalya-custom-frequency-dropdown {
  position: relative;
  margin-left: auto;
  right: 0;
  width: 100px;
  font-family: 'Poppins', sans-serif;
  background: white;
  border-bottom: 2px dotted #657D93;
  border-radius: 0;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

.vatsalya-selected-frequency {
  padding: 5px 0;
  font-weight: 600;
  font-size: 18px;
  color: #233253;
  position: relative;
  min-height: 36px;
}

.vatsalya-freq-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23ED1C24' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px;
  pointer-events: none;
}

.vatsalya-frequency-options {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  width: 110px;
  background: #FFFFFF;
  border-radius: 4px;
  z-index: 999;
  margin-top: 1px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  font-weight: 500;
  font-size: 16px;
  color: #233253;
  list-style: none;
  padding: 0;
}

.vatsalya-frequency-options li {
  padding: 12px 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.vatsalya-frequency-options li:hover,
.vatsalya-frequency-options li.selected {
  background: #f7fdff;
}

.vatsalya-custom-frequency-dropdown.open .vatsalya-frequency-options {
  display: block;
}

.input-group {
  flex: 1 1 45%;
  position: relative;
}

.vatsalya-custom-frequency-dropdown .vatsalya-dropdown-options {
  right: 0;
  left: auto;
  min-width: 160px;
}

.vatsalya-custom-frequency-dropdown .vatsalya-dropdown-options li::before {
  content: none !important;
  display: none;
}

.button-cover{
    margin: 15px 35px;
}

.cta-button {
    /* margin: 10px 35px; */
    background: #E7131A;
    color: #FFFFFF;
    padding: 8px 30px;
    border: none;
    font-weight: 600;
    border-radius: 6px;
    width: 40%;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}
.cta-button:hover{
    color: #FFFFFF;
}

.e-con-inner ul li::before{

	background: none !important;
}


