/* SIP Calculator Specific Styles - Following Home Loan Calculator Pattern */




@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 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;
}
}

  
  /* .width-60 {
    max-width: 90%;
  }
   */
  /* .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 {
    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;
  }
}

.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-sip-container * {
  box-sizing: border-box;
}

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

/* Desktop Layout */
@media (min-width: 993px) {
  .main-container {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .calculator-form-section {
    flex: 0 0 70%;
    max-width: 70%;
    order: 1;
  }
  
  .results-section {
    flex: 0 0 30%;
    max-width: 30%;
    order: 2;
  }
  
  .info-sections {
    flex: 0 0 100%;
    max-width: 100%;
    order: 3;
    margin-top: 30px;
  }
}

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

/* .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;
} */

.calculate-btn:hover .arrow-icon {
  transform: rotate(-40deg) translateX(8px);
}

/* 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;
}

span#resultDuration, span#requiredSIP, span#targetAmount {
    font-weight: bold;
}

/* Result Section */
.result-section {
    padding: 30px 20px;
    text-align: center;
    background: #F2F9F7;
}

.result-header p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 15px;
  line-height: 1.4;
}

.result-amount {
  font-size: 32px;
  font-weight: bold;
  color: #0b3924;
  margin-bottom: 30px;
}

/* Chart Container */
.chart-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px auto;
}

#sipChart {
  width: 100% !important;
  height: 100% !important;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-color {
  width: 30px;
  height: 46px;
  border-radius: 50px;
  flex-shrink: 0;
}

.legend-color.invested {
    background-color: #4bbd94;
    opacity: 0.2;
}

.legend-color.returns {
  background-color: #4bbd94;
}
.legend-text {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    align-content: flex-start;
}

.legend-label {
  font-size: 14px;
  color: #6b7280;
}

.legend-value {
    font-size: 20px;
    font-weight: 600;
    color: #154038;
}

/* Book Call Button - Matching Home Loan Calculator */


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

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

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


h2.oneheading, .info-section 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-section 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%;
}


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


.info-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

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

/* 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: #008b69 !important;
	border-radius: 16px !important;
	top: 15px !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: 160px !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,.08) !important;
	padding: 9px 0 0 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 .calculate-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* 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 .calculate-btn:hover .arrow-icon {
    transform: rotate(-40deg) translateX(8px) !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; */
  max-width: 1200px !important;
  margin: 30px auto !important;
  gap: 30px !important;
  padding: 0 20px !important;
  /* justify-content: center; */
}

body .sidebar,
.results-section {
  /* flex: 0 0 30% !important; */
  /* max-width: 30% !important; */
  background: #f2f9f7 !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-amount {
  font-size: 32px !important;
  font-weight: bold !important;
  color: #0b3924 !important;
  margin-bottom: 30px !important;
}

body .book-call-btn {
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 20px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 15px !important;
    background: #0B6750 !important;
    font-size: 18px;;
}

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-form-section {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .info-sections {
    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-form-section {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

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

@media (max-width: 768px) {
  .calculator-sip-container {
    padding: 10px !important;
  }

  .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 8px !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: 150px !important;
    padding: 6px 30px 6px 8px !important;
  }

  body .unit-label {
        width: 45px !important;
        height: 36px !important;
        padding: 8px 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 .result-section {
    padding: 20px 15px !important;
  }

  body .result-amount {
    font-size: 24px !important;
  }

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

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

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

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

body .calculator-sip-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-sip-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;
  }
}


/* 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 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;
}

/* Ensure close button styling wins over global link styles */
body #popup .popup .close-popup a {
  background-color: #04563e !important;
  color: #fff !important;
  padding: 5px 10px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 5px !important;
  display: inline-block !important;
}

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;
}

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

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

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

@media (max-width: 768px) {
  body .calculator-container {
    padding: 30px 20px !important;
  }

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

  body .value-input {
    width: 150px !important;
  }

  body .form-btn {
    padding: 8px 15px !important;
    font-size: 14px !important;
  }

  body .main-container {
    padding: 0 10px !important;
  }

  body .calculator-hl-container {
    padding: 20px !important;
    margin: 20px auto !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: 20px;
}

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 .calculate-btn::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 21px;
  margin-left: 6px; /* space after text */
  background: url("data:image/svg+xml;utf8,<svg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6 14.2712L15 5.27124M15 5.27124V13.9112M15 5.27124H6.36' stroke='%23008B69' stroke-width='0.830769' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center;
  background-size: contain;
}


body .show-cost-btn {
    background-color: #0B6750 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    font-size: 18px !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;
}

body .show-cost-btn:hover .arrow-icon {
  transform: rotate(45deg) translateX(0px);
}

/* 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;
}

/* Calculator Tabs */
.calculator-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 2px solid #e2e8f0;
  gap: 0;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.tab-btn:hover {
  color: #05563e;
  background-color: #f8fafc;
}

.tab-btn.active {
  color: #05563e;
  border-bottom-color: #05563e;
  background-color: #f0f9ff;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #05563e;
}

/* Calculator Forms */
.calculator-form {
  display: none;
}

.calculator-form.active {
  display: block;
}

/* WordPress Theme Override Styles for Tabs */
body .calculator-tabs {
  display: flex !important;
  margin-bottom: 30px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  gap: 0 !important;
}

body .tab-btn {
  flex: 1 !important;
  background: none !important;
  border: none !important;
  padding: 15px 20px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border-bottom: 3px solid transparent !important;
  position: relative !important;
}

body .tab-btn:hover {
  color: #05563e !important;
  background-color: #f8fafc !important;
}

body .tab-btn.active {
    color: #154038 !important;
    border-bottom-color: #008b69 !important;
    background-color: #cae4db !important;
}

body .tab-btn.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background-color: #05563e !important;
}

body .calculator-form {
  display: none !important;
}

body .calculator-form.active {
  display: block !important;
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
  body .calculator-tabs {
    margin-bottom: 20px !important;
  }

  body .tab-btn {
    padding: 12px 15px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  body .tab-btn {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
}

/* Base Styles */
.info-sections {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* .info-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
} */

.oneheading {
  color: #154038;
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

/* .oneheading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: #008B69;
} */

.onepara {
  margin-bottom: 15px;
  font-size: 1.1rem;
  /* color: #555; */
}

/* FAQ Styles */
.faq-container {
  margin-top: 20px;
  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;;
  }
}
