/* Financial Freedom Calculator Specific Styles - Exact Copy from Home Loan Calculator */


@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');



body, html {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}


main#primary,
.e-con,
.ineer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-content {
    display: flex;
    flex-direction: column;
}

.site-main-header {
    margin-top: -110px;
    text-align: center;
    background-image: url('../../assets/images/calc-Hero section.png');
    background-color: #cccccc;
    /* Used if the image is unavailable */
    height: 350px;
    /* You must set a specified height */
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: cover;
    /* Resize the background image to cover the entire container */
    padding: 90px 50px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    position: relative;
    overflow: hidden;
}



.width-60 {
    max-width: 60%;
    margin: 0 auto;
}

/* Mobile Responsive Styles for site-main-header */
@media (max-width: 1200px) {
    .site-main-header {
        height: 320px;
        padding: 80px 40px;
        margin-top: -100px;
    }
    
    .width-60 {
        max-width: 70%;
    }
}

@media (max-width: 992px) {
    .site-main-header {
        height: 300px;
        padding: 70px 30px;
        margin-top: -90px;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }
    
    .width-60 {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    
    .site-main-header h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    .site-main-header p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 480px) {
    .site-main-header { 
        margin-top: 100px;;
        height: 250px;
        padding: 50px 15px;
        /* margin-top: -70px; */
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
    
    .width-60 {
        max-width: 95%;
    }
    
    .site-main-header h1 {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    
    .site-main-header p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 360px) {
    .site-main-header {
        height: 220px;
        padding: 40px 10px;
        margin-top: -60px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    
    .width-60 {
        max-width: 100%;
    }
    
    .site-main-header h1 {
        font-size: 22px !important;
        line-height: 1.1 !important;
    }
    
    .site-main-header p {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .site-main-header {
        height: 200px;
        padding: 40px 20px;
    }
    
    .site-main-header h1 {
        font-size: 26px !important;
    }
    
    .site-main-header p {
        font-size: 15px !important;
    }
}

/* Styles for iPad and similar tablets in portrait */
/* Responsive Design */

@media screen and (min-width: 768px) and (max-width: 992px) and (orientation: portrait) {
.site-main-header {
        margin-top: 0px !important;
        height: 400px !important;
        padding: 180px 18px 40px 18px !important;
        text-align: center !important;
    
    }

    
}

@media (max-width: 768px) {
.width-60 {
max-width: 100%;
margin: 0 auto;
}
h1.ccheading {
  font-size: 30px;
}

.site-main-header {
/* margin-top: 50px !important; */
height: 450px !important;
padding: 225px 18px 40px 18px !important;
text-align: center !important;
}
}


.caveat-green {
    font-family: "Caveat", cursive;
    font-style: normal;
    color: #008B69;
}

.caveat-regular {
    font-family: "Caveat", cursive;
    font-style: normal;
}

.fw-blod {
    font-weight: bold;
}

/* Override WordPress default styles for calculator */
.calculator-ff-container * {
    box-sizing: border-box;
}

.main-container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    gap: 30px;
    padding: 0 20px;
}

/* .calculator-column {
    flex: 0 0 70% !important;
    max-width: 70% !important;
} */

.calculator-container {
    background: #fff;
    border-radius: 18px;
    padding: 40px 48px 44px 48px;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 6%);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calculator-title {
    font-size: 24px;
    font-weight: 600;
    color: #0b3924;
    margin-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #0b3924;
    margin-bottom: 10px;
    display: inline-block;
    text-align: left;
}

/* Slider Styles - Matching Home Loan Calculator */
.slider-container {
    position: relative;
    margin-bottom: 20px;
    margin-top: 15px;
}

.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 16px;
    background: #dee3e7;
    outline: none;
    cursor: pointer;
    box-shadow: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #05563e;
    cursor: pointer;
    border: 2.5px solid white;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.25);
    margin-top: -5px;
    position: relative;
    z-index: 2;
    transition: background 0.2s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    background: #084c34;
}

.custom-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #05563e;
    cursor: pointer;
    border: 2.5px solid white;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.25);
    transition: background 0.2s ease;
}

.custom-slider::-moz-range-thumb:hover {
    background: #084c34;
}

.slider-track-fill {
    position: absolute;
    height: 6px;
    background: #0b3924;
    border-radius: 16px;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    transform: translateY(-50%);
    margin-top: 3px;
}

.value-input-container {
    position: absolute;
    top: 0;
    right: 0;
}

.value-input {
    background: #ffffff;
    border: 1px solid green;
    border-radius: 9px;
    padding: 7px 28px 7px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #107346;
    width: 160px;
    text-align: left;
    float: right;
    cursor: default;
    user-select: none;
}

.value-input:focus {
    outline: none;
    border-color: #0b3924;
    background: #f0f3f3;
}

.unit-label {
    position: absolute;
    right: 1px;
    top: 1px;
    font-weight: 400;
    font-size: 14px;
    color: #6a776f;
    user-select: none;
    pointer-events: none;
    float: right;
    background: #f1f1f1;
    padding: 7px 0px 0px 6px;
    width: 47px;
    height: 38px;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Calculate Button - Matching Home Loan Calculator */
.calculate-btn {
    background-color: #05563e;
    color: #f4de58;
    border: none;
    border-radius: 18px;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    user-select: none;
    letter-spacing: 0.04em;
}

.calculate-btn:hover {
    background-color: #084c34;
}

.arrow-icon {
    font-weight: 900;
    font-size: 22px;
    transform: rotate(-40deg);
    transition: transform 0.3s ease;
    display: inline-block;
}


/* Sidebar Styles - Matching Home Loan Calculator */
.sidebar {
    /* flex: 0 0 30% !important; */
    /* max-width: 30% !important; */
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 6%);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: fit-content;
    position: relative;
}

/* Result Image Display - Matching Home Loan Calculator */
.result-image {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.freedom-text {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.freedom-age {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #f4de58;
}

.freedom-corpus {
    font-size: 18px;
    font-weight: 600;
    color: #008B69;
    border-radius: 9px !important;
    background: #fff;
    padding: 0px 10px;
}

.freedom-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

/* Chart Section */
.chart-section {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.corpus-amount {
    font-size: 18px;
    font-weight: bold;
    color: #008B69;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 200px;
}

#projectionChart {
    width: 100% !important;
    height: 200px !important;
}

/* Accordion Styles - Matching Home Loan Calculator */
.accordion-section {
    padding: 20px;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background: #f8f9fa;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #1f2937;
}

.accordion-header:hover {
    background: #f3f4f6;
}

.accordion-item.active .accordion-header {
    background: #ecfdf5;
    color: #008B69;
}

.chevron-icon {
    transition: transform 0.2s;
    font-size: 12px;
}

.accordion-item.active .chevron-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 15px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

.future-item,
.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.check-icon {
    color: #008B69;
    font-weight: bold;
    flex-shrink: 0;
}

.calculation-details {
    margin-top: 15px;
}

.result-confirmed {
    background: #ecfdf5;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #008B69;
    font-weight: 500;
}

/* Book Call Button - Matching Home Loan Calculator */
/* .book-call-btn {
    background-color: #05563e;
    color: #f4de58;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
} */

.book-call-btn:hover {
    background-color: #084c34;
}

/* Information Sections */
.info-sections {
    margin-top: 60px;
    max-width: 800px;
}

.info-section {
    margin-bottom: 40px;
}

.info-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.info-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.info-section p {
    font-size: 16px;
    line-height: 1.6;
    /* color: #4b5563; */
    margin-bottom: 16px;
}

/* WordPress Theme Override Styles - High Specificity */
body .calculator-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #0b3924 !important;
    margin-bottom: 28px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 14px !important;
}

body .form-group {
    margin-bottom: 28px !important;
    position: relative !important;
}

body .form-label {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #0e0f0c !important;
    margin-bottom: 10px !important;
    display: inline-block !important;
    text-align: left !important;
}

body .slider-container {
    position: relative !important;
    margin-bottom: 20px !important;
    margin-top: 15px !important;
}

body .custom-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 6px !important;
    border-radius: 16px !important;
    background: #dee3e7 !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

body .custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #05563e !important;
    cursor: pointer !important;
    border: 2.5px solid white !important;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.25) !important;
    margin-top: -5px !important;
    position: relative !important;
    z-index: 2 !important;
    transition: background 0.2s ease !important;
}

body .custom-slider::-webkit-slider-thumb:hover {
    background: #084c34 !important;
}

body .custom-slider::-moz-range-thumb {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #05563e !important;
    cursor: pointer !important;
    border: 2.5px solid white !important;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.25) !important;
    transition: background 0.2s ease !important;
}

body .custom-slider::-moz-range-thumb:hover {
    background: #084c34 !important;
}
/* 
body .slider-track-fill {
    position: absolute !important;
    height: 6px !important;
    background: #0b3924 !important;
    border-radius: 16px !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
    transform: translateY(-50%) !important;
    margin-top: 3px !important;
} */

body .slider-track-fill {
    position: absolute !important;
    height: 6px !important;
    background: #008b69 !important;
    border-radius: 16px !important;
    top: 12px !important;
    left: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }



body .value-input {
    background: #ffffff !important;
    border: 1px solid green !important;
    border-radius: 9px !important;
    padding: 7px 28px 7px 18px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #107346 !important;
    width: 180px !important;
    text-align: left !important;
    float: right !important;
    cursor: default !important;
    user-select: none !important;
}

body .value-input:focus {
    outline: none !important;
    border-color: #0b3924 !important;
    background: #f0f3f3 !important;
}


body .unit-label {
    position: absolute !important;
    right: 1px !important;
    top: 1px !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #0b6750 !important;
    user-select: none !important;
    pointer-events: none !important;
    float: right !important;
    background: rgba(11, 103, 80, 0.08) !important;
    padding: 9px 0px 0px 10px !important;
    width: 47px !important;
    height: 38px !important;
    border-bottom-right-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

/* body .calculate-btn {
    background-color: #05563e !important;
    color: #f4de58 !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 16px 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    user-select: none !important;
    letter-spacing: 0.04em !important;
} */


body .arrow-icon {
    font-weight: 900 !important;
    font-size: 22px !important;
    transform: rotate(-40deg) !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}



body .value-input-container {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
}

body .clearfix::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

body .main-container {
  /* display: flex !important; */
  /* flex-direction: column !important; */
  max-width: 1200px !important;
  margin: 30px auto !important;
  gap: 30px !important;
  padding: 0 20px !important;
  /* justify-content: center; */
}


/* Custom Modal CSS - Enhanced for Responsiveness */
body #popup {
    display: none;
  }
  
  body .popup-container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: rgb(96 95 127 / 70%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 20px;
  }
  
  body .popup {
    background-color: #ffffff;
    padding: 5px;
    width: 50%;
    max-width: 600px;
    min-height: 400px;
    max-height: 90vh;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
  }
  
  /* body .close-popup {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
  } */
  body .close-popup {
	position: absolute;
	right: 0;
	top: 0;
}
  
  body .close-popup a {
    font-size: 1.2rem;
    background-color: #04563e;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
  }
  
  body .popup>h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  
  body .popup>p {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  body .popup-btn {
    display: inline-block;
    text-decoration: none;
    border: 2px solid rebeccapurple;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 10px 0px;
    transition: .2s all ease-in;
  }
  
  body .popup-btn:hover {
    background-color: rebeccapurple;
    color: #fff;
  }
  
  /* Iframe styling */
  body .form-iframe {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    border: none;
    border-radius: 10px;
  }
  
  /* Utility Classes */
  body .p-3 {
    margin: 12px;
  }
  
  
/* Desktop Layout */
@media (min-width: 993px) {
  body .main-container {
    /* flex-direction: row !important; */
    /* align-items: flex-start !important; */
    /* gap: 30px !important; */
    margin: 30px auto !important;
    padding: 0 15px !important;
  }
  
  .calculator-form-section {
    flex: 0 0 70% !important;
    max-width: 70% !important;
    order: 1 !important;
  }
  
  .results-section {
    flex: 0 0 30% !important;
    max-width: 30% !important;
    order: 2 !important;
  }
  
  .info-sections {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    order: 3 !important;
    margin-top: 30px !important;
  }
}

/* Mobile Layout */
@media (max-width: 992px) {
  .calculator-form-section {
    order: 1 !important;
  }
  
  .results-section {
    order: 2 !important;
  }
  
  .info-sections {
    order: 3 !important;
  }
}

body .sidebar {
    /* flex: 0 0 30% !important; */
    /* max-width: 30% !important; */
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 6%) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    height: fit-content !important;
    position: relative !important;
}

body .result-image {
    position: relative !important;
    width: 100% !important;
    height: 350px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

body .result-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body .result-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    /* background: rgba(5, 86, 62, 0.8) !important; */
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
    justify-content: flex-end;
}

body .freedom-age {
    font-size: 48px !important;
    font-weight: bold !important;
    /* margin-bottom: 10px !important; */
    color: #F1E97F !important;
    margin-bottom: 0;
}

body .freedom-text {
    font-size: 16px !important;
    opacity: 0.9 !important;
    margin: 0;
}

body .accordion-section {
    padding: 20px !important;
}

body .accordion-item {
    margin-bottom: 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}



body .accordion-header {
    background: #f8f9fa !important;
    padding: 8px 15px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0px;
    position: relative !important;
}

/* Add green checkmark icon on the left */

body .accordion-header:before {
    content: '' !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%2305563e' d='M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1S1 5.925 1 12s4.925 11 11 11M7.5 10.586l3 3l6-6L17.914 9L10.5 16.414L6.086 12z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
}

/* Replace chevron with up arrow */
body .accordion-header .chevron-icon {
    width: 38px !important;
    height: 38px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: transform 0.3s ease !important;
    font-size: 0 !important;
    /* Hide text content */
}

body .accordion-header .chevron-icon {
    margin-left: auto; /* Push arrow to the right */
}

/* Rotate arrow when accordion is active */
body .accordion-item.active .accordion-header .chevron-icon {
    transform: rotate(180deg) !important;
}

body .accordion-content {
    padding: 15px !important;
    background: white !important;
    border-top: 1px solid #e2e8f0 !important;
    display: none !important;
}

body .accordion-item.active .accordion-content {
    display: block !important;
}

body .book-call-btn {
    background-color: #0B6750 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 15px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* font-size:1.25rem; */
      font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* body .book-call-btn:hover {
    background-color: #084c34 !important;
} */

/* Responsive Design */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .calculator-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .sidebar {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 20px;
    }

    body .main-container {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body .calculator-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body .sidebar {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .calculator-ff-container {
        padding: 10px !important;
        display: flex;
        flex-direction: column;
    }
    
    .calculator-column {
        order: 1;
    }
    
    .sidebar {
        order: 2;
        margin-top: 20px;
    }
    
    .calculator-content-section {
        order: 3;
        margin-top: 20px;
    }

    .main-container {
        padding: 0 !important;
        margin: 10px auto !important;
        width: 100% !important;
    }

    .calculator-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-top: 15px !important;
    }

    body .calculator-container {
        padding: 12px 18px !important;
        margin: 5px 2px !important;
        width: calc(100% - 4px) !important;
    }

    body .form-group {
        margin-bottom: 12px !important;
    }

    body .form-label {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    body .slider-container {
        margin-bottom: 8px !important;
        margin-top: 6px !important;
    }

    body .value-input {
    width: 160px !important;
    padding: 6px 30px 6px 8px !important;
}

    body .unit-label {
    width: 48px !important;
    height: 36px !important;
    padding: 6px 0px 0px 4px !important;
}

    body .calculate-btn {
        padding: 10px 0 !important;
        margin-top: 12px !important;
    }

    body .calculator-title {
        font-size: 17px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    body .main-container {
        padding: 0 2px !important;
        margin: 8px auto !important;
        gap: 10px !important;
    }

    body .accordion-section {
        padding: 12px !important;
    }

    /* body .result-image {
        height: 160px !important;
    } */

    body .freedom-age {
        font-size: 36px !important;
    }

    body .chart-container {
        height: 150px !important;
    }

    body #projectionChart {
        height: 150px !important;
    }
}

/* WordPress specific adjustments */
body .entry-content .calculator-ff-container {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

body .site-content .calculator-ff-container .main-container {
  margin: 30px auto !important;
  padding: 0 15px !important;
  max-width: 1200px !important;
}

/* Fix alignment for calculator-hl-container inside other calculator pages */
body .calculator-ff-container .calculator-hl-container {
  margin: 0 auto !important;
  max-width: 1200px !important;
}

body .calculator-ff-container .calculator-hl-container .main-container-2 {
  margin: 30px auto !important;
  padding: 0 20px !important;
}

/* Additional Mobile Fixes */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .calculator-column,
    .sidebar {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body .calculator-column,
    body .sidebar {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .calculator-ff-container {
        padding: 5px !important;
    }

    .main-container {
        padding: 0 !important;
        margin: 5px auto !important;
        gap: 10px !important;
    }

    .calculator-container {
        margin: 0 !important;
        border-radius: 12px !important;
    }

    .sidebar {
        margin-top: 10px !important;
    }
}

/* Mobile Modal Responsiveness */
body .popup-container {
    padding: 15px;
}

body .popup {
    width: 90%;
    padding: 15px 20px;
    max-height: 85vh;
}

body .form-iframe {
    height: 60vh;
    min-height: 350px;
}

body .close-popup a {
    font-size: 1.1rem;
    padding: 8px 12px;
}

@media (max-width: 480px) {
    body .calculator-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        order: 2 !important;
    }

    body .sidebar {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        order: 1 !important;
    }

    body .main-container {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Small Mobile Modal */
    body .popup-container {
        padding: 10px;
    }

    body .popup {
        width: 95%;
        padding: 15px;
        border-radius: 10px;
        max-height: 90vh;
    }

    body .form-iframe {
        height: 55vh;
        min-height: 300px;
    }

    body .close-popup a {
        font-size: 1rem;
        padding: 6px 10px;
    }
}

/* @media (max-width: 360px) {
    body .popup {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 10px;
        max-height: none;
    }

    body .popup-container {
        padding: 0;
    }

    body .form-iframe {
        height: calc(100vh - 80px);
        min-height: auto;
    }
} */

/* Tablet Modal Responsiveness */
@media screen and (max-width: 1024px) {
  body .popup {
    width: 100%;
    padding: 20px 25px;
  }

  body .form-iframe {
    height: 65vh;
  }
}

/* WordPress specific adjustments */
body .entry-content .calculator-hl-container {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

body .site-content .calculator-hl-container .main-container {
    margin-top: 0;
}

/* Additional Calculator Grid Styles */
body .main-container-2 {
    display: flex !important;
    max-width: 1200px !important;
    margin: 30px auto !important;
    gap: 30px !important;
    padding: 0 20px !important;
    flex-direction: column;
}
body .heading {
    margin-bottom: 0.5rem;
  }
  
  body .heading h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #153048;
    margin-bottom: 0;
  }
  
  body .heading .highlight {
    color: #008B69;
    /* font-style: italic; */
    font-weight: 700;
    font-family: "Caveat", cursive;
  }

body .calculators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

body .calculator-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body .calculator-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

body .card-icon {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

body .card-icon svg {
    width: 60px;
    height: 60px;
    color: #374151;
}

body .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

body .card-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 2rem;
}

body .calculate-btn {
    background: white;
    border: 1px solid #1d795d;
    color: #1d795d;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}


body .calculate-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
  }


body .show-cost-btn {
    background-color: #0B6750 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    user-select: none !important;
    letter-spacing: 0.04em !important;
}

body .show-cost-btn:hover {
    background-color: #084c34 !important;
  }


/* Calculator Grid Responsive */
@media (min-width: 768px) {
    body .calculators-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    body .calculators-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    body .calculators-grid[style*="--remaining-cards: 3"] {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

body .info-sections {
    margin: 50px 0;
}

h2.oneheading, .info-sections h2 {
	font-family: "DM Sans",sans-serif;
	font-weight: 600;
	font-style: SemiBold;
	font-size: 24px;
	leading-trim: NONE;
	line-height: 100%;
	letter-spacing: 0%;
}

p.onepara, .info-sections p{
	font-family: "DM Sans",sans-serif;
	font-weight: 400;
	font-style: Regular;
	font-size: 16px;
	leading-trim: NONE;
	line-height: 1.5em;
	letter-spacing: 0%;
}

body .heading h2 {
	font-size: 2.5rem;
	font-weight: 600;
	color: #153048;
	margin-bottom: 0;
}



/* FAQ Styles */
.faq-container {
    margin-top: 0px;
    counter-reset: faq-counter;
  }
  
  .faq-item {
    margin-bottom: 20px;
    border: none;
    border-radius: 6px;
    overflow: hidden;
    counter-increment: faq-counter;
  }
  
  .faq-question {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    background-color: #f2f9f7 !important; 
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #154038 !important;   /* enforce default color */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 40px; /* space for icon */
  }
  .faq-question:before {
    content: counter(faq-counter,decimal-leading-zero);
    font-weight: 600;
    color: #154038;
    margin-right: 12px;
    flex-shrink: 0;
    font-family: "DM Sans", sans-serif;
  }
  
  .faq-question:after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml;utf8,<svg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='%23154038' d='M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/></svg>") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
  }
  
  .faq-question.active:after {
    background: url("data:image/svg+xml;utf8,<svg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='%23154038' d='M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/></svg>") no-repeat center;
    background-size: contain;
  }
  
  
  .faq-question:hover {
    background-color: #eef2f2;
    color: #0d352e;
  }
  
  /* Remove or adjust this to avoid color sticking */
  .faq-question:active {
    background-color: #e0e8e7;
    color: #154038;  /* keep same default color */
  }
  
  .faq-question.active {
    color: #008B69;
    background-color: #e0e8e7;
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f2f9f7;
    padding-left: 0;
  }
  
  .faq-answer p {
    padding: 20px 20px 20px 55px; /* Left padding to align with question text after counter */
    margin: 0;
    color: #154038;
  }
  
  .faqs {
    display: flex; /* Changed to flex to enable flexbox */
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .faq-left {
    flex: 0 0 35%;
    /* padding: 20px; */
    box-sizing: border-box;
  }
  
  .faq-right {
    flex: 0 0 65%;
    /* padding: 20px; */
    box-sizing: border-box;
  }
  
  .faq-pre-heading {
    font-size: 14px;
    font-weight: 600;
    color: #154038;
    margin-bottom: 10px;
    line-height: 21px;
  }
  .faq-heading {
    font-family: "DM Sans", sans-serif;
      font-size: 45px;
      font-weight: 700;
      line-height: 56px;
      letter-spacing: -0.006em;
      color: #154038;
  
  }
  .faq-description {
    font-size: 18px;
    font-weight: 500;
    color: #154038;
    margin-bottom: 10px;
    line-height: 27px;
  }
  
  @media (max-width: 768px) {
    .faq-question, .faq-answer p {
      font-size: 0.95rem;
    }
    
    .faq-answer p {
      padding-left: 50px; /* Slightly less padding on mobile */
    }
  
    .faq-left {
      flex: 0 0 100%;
    }
  
    .faq-right {
      flex: 0 0 100%;
    }
  
  }
  
  
  
  /* Responsive */
  @media (max-width: 768px) {
    .info-section {
        padding: 20px;
    }
    
    .oneheading {
        font-size: 1.5rem;
    }
    
    .onepara {
        font-size: 1rem;
    }
  }
  
  
  .main-container {
    display: grid !important;
    gap: 16px !important;
  /* Mobile-first: stack in the desired order: Calc → Sidebar → Info */
    grid-template-columns: 1fr !important;
    grid-template-areas:
        "calc"
        "sidebar"
        "info" !important;
}

.calc    { grid-area: calc; }
.sidebar { grid-area: sidebar; }
.info    { grid-area: info; }

@media (min-width: 992px) {
  .main-container {
    /* Two columns: main (left) + sidebar (right) */
    grid-template-columns: 2fr 1fr !important;
    /* Layout: calculator above info on the left, sidebar spanning right */
    grid-template-areas:
      "calc    sidebar"
      "info    sidebar" !important;;
    align-items: start !important;;
  }
}