@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.nps-calculator .pension-calculator-container {
  max-width: 1060px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  margin-top: 50px;
}

.amount-input-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.amount-input-wrapper {
  position: relative;
  border-bottom: 2px dotted #657D93;
}

#amount-alert {
  position: absolute;
  left: 0;
  bottom: -25px;
  color: #ef4444;
  font-size: 12px;
  font-weight: 400;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

#amount-alert.visible {
  opacity: 1;
  pointer-events: auto;
}

.section-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}

.header-text {
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
}

.header-text h1 {
  margin: 0;
  font-size: 35px;
  font-weight: 300;
  line-height: 34px;
  color: #233253;
}

.header-text h1 .c-darkblue {
  color: var(--Dark-blue, #233253);
  font-family: Poppins;
  font-size: 35px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

.header-text .description {
  color: #64748b;
  margin-top: 6px !important;
  font-weight: 400;
  font-size: 16px;
}

.mar5 {
  margin-top: 7px !important
}

.slider-wrapper {
  position: relative;
  width: 100%;
  padding: 20px 10px 20px 0;
  overflow: visible;
  min-width: 0;
  box-sizing: border-box;
}

#nps-investment-slider,
#nps-annual-increase-slider,
#nps-goal-pension-slider,
#nps-goal-annual-increase-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;
}

#nps-investment-slider::-webkit-slider-runnable-track,
#nps-annual-increase-slider::-webkit-slider-runnable-track,
#nps-goal-pension-slider::-webkit-slider-runnable-track,
#nps-goal-annual-increase-slider::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 6px;
  background: transparent;
  min-width: 100%;
  box-sizing: border-box;
}

#nps-investment-slider::-moz-range-track,
#nps-annual-increase-slider::-moz-range-track,
#nps-goal-pension-slider::-moz-range-track,
#nps-goal-annual-increase-slider::-moz-range-track {
  height: 12px;
  border-radius: 6px;
  background: transparent;
}

#nps-investment-slider::-webkit-slider-thumb,
#nps-annual-increase-slider::-webkit-slider-thumb,
#nps-goal-pension-slider::-webkit-slider-thumb,
#nps-goal-annual-increase-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;
}

#nps-investment-slider::-moz-range-thumb,
#nps-annual-increase-slider::-moz-range-thumb,
#nps-goal-pension-slider::-moz-range-thumb,
#nps-goal-annual-increase-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;
}

.nps-calculator-tabs {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Rounded ends */
.nps-calculator-tabs button:first-child {
  border-radius: 8px 0 0 8px;
  border-right: 0 !important;
}

.nps-calculator-tabs button:last-child {
  border-radius: 0 8px 8px 0;
  border-left: 0 !important;
}

/* Base button styles */
.nps-calculator-tabs button {
  border: 1px solid #233253 !important;
  background: white;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #475569;
  transition: background 0.2s, color 0.2s;
  min-width: 140px;
}

/* Hovered tab is always blue */
.nps-calculator-tabs button:hover {
  border: 1px solid #233253 !important;
  background: #0c4a6e !important;
  color: white;
  border: none;
  padding: 8px 16px;
}

/* “Active” tab is blue only when you’re not hovering any tab */
.nps-calculator-tabs:not(:hover) button.active {
  border: 1px solid #233253 !important;
  background: #0c4a6e;
  color: white;
  border: none;
  padding: 8px 16px;
}

.nps-calculator-body {
  display: flex;
  gap: 0px;
  flex-wrap: wrap;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 0 12px rgb(0 0 0 / 8%);
  margin: 0 0 40px 0;
}

.form-left,
.form-right {
  flex: 1 1 45%;
  padding: 35px;
}

.form-left {
  position: relative;
}

.form-right {
  box-shadow: -8px 4px 14px 0px rgb(152 144 144 / 7%);
  z-index: 999;
}

.investment-input-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}

.investment-input-section label {
  flex-shrink: 0;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #64748b;
}

.investment-input-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-grow: 1;
}

.currency-symbol {
  margin-right: 2px;
  color: #233253;
  font-weight: 500;
  user-select: none;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

.percent-symbol {
  margin-right: 2px;
  color: #233253;
  font-weight: 500;
  user-select: none;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

#nps-investment-amount,
#nps-goal-pension-amount {
  border: none;
  outline: none;
  padding-left: 0;
  font-weight: 500;
  font-size: 20px;
  width: 130px;
  background: white;
  appearance: none;
  font-family: 'Poppins', sans-serif;
  color: #233253;
  border-radius: 6px 6px 0 0;
  padding-top: 4px;
  padding-bottom: 3px;
}

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

.nps-selected-frequency {
  padding: 5px 0;
  font-weight: 600;
  font-size: 18px;
  color: #233253;
  position: relative;
  min-height: 36px;
}

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

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

.nps-frequency-options li {
  padding: 12px 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.nps-frequency-options li:hover,
.nps-frequency-options li.selected {
  background: #f7fdff;
}

.nps-custom-frequency-dropdown.open .nps-frequency-options {
  display: block;
}

.input-group {
  flex: 1 1 45%;
  position: relative;
}

.nps-custom-frequency-dropdown .nps-dropdown-options {
  right: 0;
  left: auto;
  min-width: 160px;
}

.nps-custom-frequency-dropdown .nps-dropdown-options li::before {
  content: none !important;
  display: none;
}

.input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
  color: #64748b !important;
  font-size: 15px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 18px;
  background: white;
  appearance: none;
  font-family: 'Poppins', sans-serif;
  color: #233253;
  font-weight: 700;
}

.input-group input[type="number"] {
  padding: 5px 10px 5px 10px;
  max-width: 102px;
  /* border-radius: 10px; */
  border: 1px solid #DFE1E4;
  font-size: 18px;
  font-weight: 500;
  color: #233253;
  border-radius: 0 !important;
}

.input-group small {
  display: block;
  width: 100%;
  margin-top: 12px;
  color: #657D93;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.nps-current-age-wrapper {
  position: relative;
  display: inline-block;
}

.current-age-years {
  position: absolute;
  left: 40px;
  top: 54%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 400;
  color: #657D93;
  font-family: 'Poppins', sans-serif;
  pointer-events: none;
  user-select: none;
}

#age-alert {
  color: #ef4444;
  font-size: 14px;
  font-weight: 400;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  width: 100%;
  display: none;
  margin-top: 8px;
}

#age-alert.visible {
  opacity: 1;
  pointer-events: auto;
}

input.invalid {
  border-color: #ef4444 !important;
}

.retirement-age-text {
  font-size: 14px;
  font-weight: 400;
  ;
  color: #657D93;
  margin-top: 6px;
  font-family: 'Poppins', sans-serif;
}

#nps-age-input::-webkit-inner-spin-button,
#nps-age-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#nps-age-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.slider-unit-display {
  text-align: center;
  margin-top: 8px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
}

/* New styles for added elements */

.slider-arrow-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #2c3e50;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  user-select: none;
  z-index: 10;
}

.info-icon {
  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;
}

button:hover {
  background-color: transparent !important;
}

/* hide the browser’s own tooltip */
.info-icon {
  position: relative;
  cursor: pointer;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
  width: 100%;
}

.input-row strong {
  font-weight: 600;
}

.input-group {
  flex: 1 1 45%;
  align-items: center !important;
}

.input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
  color: #64748b !important;
  font-size: 16px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  background: white;
  appearance: none;
  font-family: 'Poppins', sans-serif;
  color: #233253;
}


select.filled {
  background-color: #fff;
  color: #233253;
}

.years-left-box,
.goal-years-left-box {
  margin-top: 8px;
  font-size: 14px;
  color: #dc2626;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  background-color: #fee2e2;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.years-left-box strong,
.goal-years-left-box strong {
  color: #005E9E;
}

.nps-summary-box {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-radius: 12px;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.goal-annuity-summary .nps-summary-box {
  margin-top: 10px;
  background: linear-gradient(35deg, #DC001B, #013063) !important;
  align-items: normal !important;
  padding: 25px 20px 20px 20px !important;
}

.nps-summary-box.light-blue {
  background: #e4f7ff;
  color: #5A5A5A;
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 0px;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  text-align: center;
  bottom: 85px;
  border-bottom-left-radius: 10px;
  margin: -85px 0;
}

.nps-summary-box.light-blue div p {
  color: #5A5A5A;
  text-align: center;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 10px;
}

.nps-summary-box.light-blue div {
  width: 50%;
  background: url('../images/white-bg.png') no-repeat bottom;
  min-height: 200px;
}

.nps-summary-box.light-blue div img {
  display: inline;
  margin-top: 20px;
}

.nps-summary-box.light-blue div h3 {
  color: #233253;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.nps-summary-box.light-blue div h3 .currency-symbol {
  font-size: 24px;
  font-weight: 600;
  color: #233253;
}

.nps-summary-box.blue {
  display: flex;
  gap: 20px;
  padding: 0;
}

.nps-summary-box.blue .blue-panel {
  flex: 1;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: #1257a1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.blue-panel .currency-symbol {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
}

.nps-summary-box.blue .blue-panel p {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.nps-summary-box.blue .blue-panel h3 {
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  margin-top: 20px;
  margin-bottom: 0;
}

.nps-summary-box.red {
  background: linear-gradient(135deg, #DC001B, #013063);
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 400;
  padding: 20px 20px 20px 20px;
  margin-top: 15px;
}

.nps-summary-box.red h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.nps-summary-box.red .red-icon {
  flex: 0 0 auto;
  /* prevent image from stretching */
  margin-right: 0;
  width: 70px;
  height: 70px;
}

.nps-summary-box.red .red-content {
  flex: 1;
  text-align: left;
}

.nps-summary-box.blue p,
.nps-summary-box.red p {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600
}

.nps-summary-box.blue h3,
.nps-summary-box.red h3,
.nps-summary-box.red .currency-symbol {
  color: #FFFFFF;
  font-size: 26px;
  font-weight: 700
}

.tax-saved-box {
  margin-top: 10px;
  background: #f3f4f6;
  padding: 12px;
  font-size: 14px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  color: #475569;
  text-align: center;
  display: none;
}

.tax-saved-box .currency-symbol {
  font-size: 15px;
  font-weight: 600;
  color: #475569;
}

.cta-button {
  margin: 20px 0;
  background: #E7131A;
  color: #FFFFFF;
  padding: 12px 20px;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  width: 100%;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
}

.cta-button:hover {
  background: #ED1C24 !important;
  color: #FFFFFF;
  padding: 12px 20px;
  border: none;
}

.nps-annuity-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.reach-goal-body .nps-annuity-toggle {
  margin-bottom: 18px;
}

.annuity-label {
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  margin-right: 10px;
}

.nps-annuity-toggle-group {
  position: relative;
  display: flex;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  width: 340px;
  /* your updated width */
  height: 44px;
}

.annuity-row {
  display: flex;
  align-items: center;
}

.nps-annuity-toggle-group button {
  flex: 1;
  background: #F0F2F2;
  color: #657D93;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}

/* Borders for the middle button only */
.nps-annuity-toggle-group button:nth-child(2) {
  border-left: 1px solid #E9E9E9;
  border-right: 1px solid #E9E9E9;
}

/* Rounded ends */
.nps-annuity-toggle-group button:first-child {
  border-radius: 10px 0 0 10px;
}

.nps-annuity-toggle-group button:last-child {
  border-radius: 0 10px 10px 0;
}

/* Active or hovered: Only one button is blue/white at a time */
.nps-annuity-toggle-group button.active:not(.hovered),
.nps-annuity-toggle-group button.hovered {
  background: #005E9E !important;
  color: #fff !important;
  z-index: 2;
}


/* Remove outline on focus */
.nps-annuity-toggle-group button:focus {
  outline: none;
}

.nps-annuity-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.333%;
  height: 100%;
  background: #005E9E;
  z-index: 0;
  transition: left 0.25s ease;
}

/*.annuity-toggle button {
  background: #e5e7eb;
  border: none;
  padding: 8px 16px;
  margin-right: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #475569;
  font-size: 14px;
}
.annuity-toggle span{
  font-size: 18px;
font-weight: 600;
margin-right:20px;
}
.annuity-toggle button.active {
  background: #0c4a6e;
  color: white;
}*/

.investment-frequency {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* Style for the strategy select */
#nps-strategy-select {
  width: 160px;
  padding: 8px 0px;
  border: 0;
  font-weight: 600;
  background: white;
  cursor: pointer;
  appearance: none;
  font-family: 'Poppins', sans-serif;
  color: #233253;
  font-size: 18px;
  position: relative;
  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: right 0px center;
  background-size: 15px 15px;
  border-bottom: 2px dotted #657D93;
  border-radius: 0;
}

.nps-strategy-select-wrapper {
  position: relative;
  width: 160px;
  min-width: 160px;
}

.nps-custom-dropdown {
  position: relative;
  width: 100%;
  border-bottom: 2px dotted #657D93;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  background: white;
  border-radius: 0;
}

.retirement-goal-text {
  font-size: 16px;
  font-weight: 500;
}

.nps-selected-option {
  padding: 5px 0;
  font-weight: 600;
  font-size: 18px;
  color: #233253;
  width: 100%;
  min-height: 38px;
  position: relative;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.nps-selected-option.has-input {
  color: #233253;
  text-shadow: none;
}

.nps-selected-option::after {
  content: '';
  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;
}

.nps-custom-dropdown.open .nps-dropdown-options {
  display: block;
}

.nps-dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 185px;
  background: white;
  border-radius: 4px;
  z-index: 9999;
  margin-top: 1px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  font-size: 16px;
  color: #233253;
  list-style: none;
  padding: 0;
}

.nps-dropdown-options li {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  padding: 15px 0 15px 0;
}

.nps-dropdown-options li:hover {
  background: #f7fdff;
}

.nps-dropdown-options li::before,
.nps-frequency-options li::before {
  content: none !important;
}

.nps-custom-input {
  display: inline-block;
  width: 60px;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #233253;
  background: transparent;
  border: none;
  text-align: left;
  outline: none;
  margin: 0;
  margin-right: 4px;
  vertical-align: middle;
}

input.nps-custom-input {
  border: none !important;
  position: absolute;
  top: 0;
  min-height: 38px;
  font-weight: 600 !important;
  max-width: 102px !important;
}

input.nps-custom-input::-webkit-inner-spin-button,
input.nps-custom-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.nps-custom-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.annuity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 26px;
  background: #FFFFFF;
  /* white @80% opacity in hex */
  padding: 0 10px;
  color: #233253;
  font-size: 18px;
  font-weight: 600;
  margin-left: 8px;
  box-sizing: border-box;
}

.invest-body,
.reach-goal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nps-inflation-panel {
  margin-top: 20px;
  margin-bottom: 20px;
}

.inflation-text {
  margin-top: 0px;
  font-size: 14px !important;
  color: #64748b;
  width: 76%;
  float: right;
}

.e-con-inner p.inflation-text {
  margin-top: 0 !important
}

.reach-goal-body .investment-input-wrapper {
  gap: 10px;
}

/* minor: match your switch buttons */
.inflation-switch .switch-btn {
  padding: 6px 12px;
  cursor: pointer;
}

.inflation-switch .switch-btn.active {
  background: #1567ae;
  color: #fff;
}

.inflation-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}

.inflation-switch-text {
  margin-right: 12px;
  font-size: 17px;
  color: #233253;
  font-weight: 400;
  vertical-align: middle;
}

.inflation-switch {
  display: inline-block;
  position: relative;
  border: 1px solid #657D93;
  /* default (No) border */
  border-radius: 20px;
  width: 38px;
  height: 22px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.inflation-switch input {
  display: none;
}

.inflation-switch .switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #657D93;
  /* default (No) thumb */
  border-radius: 50%;
  transition: left 0.2s, background-color 0.2s;
}

/* when checked (“Yes”): move thumb and change colors */
.inflation-switch:has(input:checked) {
  border-color: #005E9E;
}

.inflation-switch:has(input:checked) .switch-thumb {
  left: calc(100% - 23px);
  background-color: #005E9E;
}

/* hide the real checkbox */
.inflation-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.inflation-switch input:checked+.switch-thumb {
  left: 17px;
}

.inflation-switch-label {
  font-size: 18px;
  font-weight: 400;
  color: #657D93;
  user-select: none;
}

.wt700 {
  font-weight: 700;
}

.wt700 .currency-symbol {
  font-size: 18px !important;
}

/* ================================
   RESPONSIVE LAYOUT
   ================================ */
/*FONT*/

/* --------------------------------
   Tablet & smaller (≤1024px)
   -------------------------------- */
@media (max-width: 1024px) {
  .header-row {
    display: block;
    padding: 20px;
    margin-bottom: 0;
  }

  .investment-input-section {
    display: block;
  }

  .nps-calculator-tabs {
    gap: 0;
    display: inline-flex;
  }

  .header-text h1 {
    font-size: 30px;
    font-style: normal;
    font-weight: 300;
    line-height: 38px;
  }

  .header-text h1 .c-darkblue {
    color: var(--Dark-blue, #233253);
    font-family: Poppins;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
  }

  .header-text .description {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 5px !important;
  }

  .investment-input-section label {
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
  }

  .nps-selected-frequency {
    font-size: 13px;
    font-weight: 600;
  }

  .nps-custom-frequency-dropdown {
    min-width: 76px;
    width: 76px;
  }

  .nps-frequency-options {
    top: 24px;
    left: 0;
    width: 100px;
  }

  ul.nps-frequency-options li {
    padding-left: 12px !important;
    font-size: 13px !important;
  }

  .amount-input-group .nps-custom-frequency-dropdown {
    border-bottom: 0px dotted #657D93;
  }

  .input-group label {
    font-size: 13px;
    font-weight: 500;
  }

  .nps-summary-box.light-blue {
    position: relative;
    display: flex;
    gap: 10px;
  }

  .input-row {
    margin-top: 25px;
  }

  /* give room for fixed CTA */
  .nps-calculator-body {
    padding: 0;
    padding-bottom: 30px;
    box-shadow: 0 0 12px rgb(0 0 0 / 12%);
    background: transparent;
    margin: 20px;
  }

  .form-left,
  .form-right {
    border-radius: 0px;
  }

  .form-left {
    margin-bottom: 0;
    padding: 25px 25px 0 25px
  }

  .form-right {
    box-shadow: 0 -10px 12px -5px rgba(0, 0, 0, 0.05);
    z-index: 999;
    padding: 25px 25px 0 25px;
  }

  .form-right h3 {
    font-size: 21px;
  }

  .annuity-label {
    font-size: 13px;
  }

  .nps-annuity-toggle-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 0;
    width: 330px;
    height: 35px;
  }

  .nps-summary-box.blue {
    gap: 10px;
  }

  .nps-summary-box.blue .blue-panel {
    padding: 15px;
  }

  .annuity-badge {
    width: 36px;
    height: 22px;
    font-size: 14px;
  }

  .nps-summary-box.blue .blue-panel h3 {
    font-size: 18px;
    text-align: left;
    margin-bottom: 0;
  }

  .nps-summary-box.blue .blue-panel p {
    font-size: 14px;
    text-align: left;
    line-height: normal;
  }

  .blue-panel .currency-symbol {
    font-size: 18px;
  }

  .input-group small {
    width: 85%;
  }

  .input.nps-custom-input {
    top: -8px;
  }

  .nps-selected-option {
    font-size: 14px;
    min-height: 30px;
  }

  .nps-strategy-select-wrapper {
    width: 125px;
    min-width: auto;
    display: ruby;
  }

  .input-group small {
    color: #4A4A4A;
    font-size: 11px;
  }

  .retirement-age-text {
    font-size: 12px;
  }

  .nps-custom-dropdown {
    width: 98%;
  }

  .nps-summary-box.light-blue div p {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .nps-summary-box.light-blue div h3 {
    font-size: 18px;
  }

  .nps-summary-box.light-blue div h3 .currency-symbol {
    font-size: 18px;
  }

  .nps-summary-box.light-blue div {
    border-radius: 16px;
  }

  .nps-summary-box.red {
    padding: 15px;
    gap: 33px;
  }

  .nps-summary-box.light-blue {
    border-radius: 16px;
  }

  .nps-summary-box.red p {
    font-size: 14px;
  }

  .nps-summary-box.red h3,
  .nps-summary-box.red .currency-symbol {
    font-size: 24px;
  }

  .tax-saved-box {
    font-size: 14px;
    text-align: left;
  }

  .tax-saved-box .currency-symbol {
    font-size: 14px;
  }

  /* stack the two main sections (left/right) */
  .nps-calculator-body .form-left,
  .nps-calculator-body .form-right {
    width: 100% !important;
    margin: 0 0 24px;
    float: none !important;
  }

  .inflation-text {
    font-size: 11px !important;
  }

  /* stack the light-blue summary panels */
  .panels-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* stack the annuity panels */
  .annuity-panels {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }

  .nps-annuity-toggle-group button {
    width: 100% !important;
    font-size: 14px !important;
  }

  /* stack the blue-panel boxes */
  .blue-panels {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .inflation-switch-text {
    font-size: 14px;
  }

  .wt700 .currency-symbol {
    font-size: 14px !important;
  }

  /* fix CTA to bottom center */
  .button-cover {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    padding: 15px;
    box-shadow: 0 -10px 12px -5px rgb(0 0 0 / 12%);
    background-color: #FFFFFF;
  }

  .retirement-goal-text {
    font-size: 13px;
  }

  .cta-button {
    margin-top: 0;
  }

  .annual-increase-input-section label {
    font-size: 13px !important;
    font-weight: 500;
  }

  .slw-field label {
    font-size: 13px !important;
    font-weight: 500;
  }

  .age-input-wrapper #nps-age-input,
  .nps-custom-dropdown .nps-selected-option,
  #nps-annual-increase-contribution,
  #nps-invest-age,
  #nps-goal-invest-age,
  #nps-withdrawal-period,
  input[type=number],
  .input-group input[type="number"] {
    font-size: 15px !important;
  }

  .goal-annuity-summary .blue-panel p,
  .retirement-corpus p {
    font-size: 14px !important;
  }

  .goal-annuity-summary .blue-panel h3 {
    font-size: 18px !important;
  }

  .current-age-years,
  .nps-retirement-age-text,
  .total-invest-years,
  .goal-total-invest-years,
  .nps-goal-retirement-age-text,
  .percent-symbol,
  .input-with-icon span,
  .currency-symbol {
    font-size: 13px !important;
  }

  h2 {
    font-size: 26px !important;
  }

}


/* --------------------------------
     Phones (≤480px)
     -------------------------------- */
@media (max-width: 820px) {

  /* tighten padding */
  .cta-button {
    margin-top: 0;
  }

  .nps-calculator-body {
    padding: 16px 0px 10px;
    /* more bottom for CTA */
    margin: 20px;
  }

  .nps-calculator-tabs {
    gap: 0px;
  }

  /* collapse any extra gutters */

  .investment-input-wrapper {
    gap: 4px;
  }

  .input-row,
  .summary-row {
    flex-direction: row;
    gap: 12px;
  }

  .form-left {
    padding: 25px 16px 0 16px;
  }

  .form-right {
    padding: 25px 16px 0 16px;
  }

  /* full-width slider */
  #nps-investment-slider {
    width: 100%;
  }

  .nps-selected-frequency {
    min-height: 30px;
  }

  /* slightly smaller CTA offset */
  .button-cover {
    width: 100%;
    bottom: 0;
  }

  .retirement-corpus {
    margin-bottom: 100px;
  }
}

@media (max-width: 540px) {
  .pension-calculator-container {
    margin-top: 20px;
  }

  .header-row {
    padding: 10px;
  }

  .nps-calculator-body {
    margin: 10px
  }

  .investment-input-section {
    display: block;
  }

  #nps-investment-slider {
    margin-top: 20px
  }

  .input-row {
    gap: 6px;
  }

  .input-group small {
    width: 90%;
  }

  .nps-custom-frequency-dropdown {
    right: 50px
  }

  .annuity-row {
    display: block
  }

  .annuity-label {
    margin-bottom: 13px
  }

  .inflation-text {
    width: 100%;
    float: left;
  }

  .inflation-switch input:checked+.switch-thumb {
    left: 15px;
  }

  input.nps-custom-input {
    top: 2px;
    min-height: 27px;
    padding: 0 !important;
  }

  #age-alert {
    font-size: 12px;
  }

  .retirement-corpus {
    margin-bottom: 100px;
  }
}

@media (max-width: 374px) {
  .reach-goal-body .investment-input-wrapper {
    gap: 10px;
    display: grid;
  }

  #nps-investment-slider {
    width: 100%;
    max-width: 275px;
    min-width: auto;
  }

  .input-row {
    gap: 25px;
    display: grid;
  }

  .current-age-years {
    left: 175px;
    top: 30%;
  }

  #nps-age-input[type="number"] {
    margin-left: 10px;
  }

  .inflation-switch .switch-thumb {
    left: 4px;
  }

  .inflation-switch input:checked+.switch-thumb {
    left: 10px;
  }

  .nps-summary-box.blue .blue-panel {
    padding: 10px;
  }

  .nps-summary-box.red {
    padding: 10px;
    gap: 24px;
  }

  .retirement-corpus {
    margin-bottom: 100px;
  }
}

/* retirement */

#nps-invest-age,
#nps-goal-invest-age {
  padding: 5px 10px 5px 10px;
  max-width: 102px;
  /* border-radius: 10px; */
  border: 1px solid #DFE1E4;
  font-size: 18px;
  font-weight: 500;
  color: #233253;
}

.total-invest-year {
  background-color: #F0F2F2;
  padding: 4px 8px;
  border-radius: 6px;
}

.total-invest-years,
.goal-total-invest-years {
  position: absolute;
  left: 40px;
  top: 71%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 400;
  color: #657D93;
  font-family: 'Poppins', sans-serif;
  pointer-events: none;
  user-select: none;
}

#nps-annual-increase-contribution {
  padding: 5px 10px 5px 10px;
  max-width: 102px;
  /* border-radius: 10px; */
  border: 1px solid #DFE1E4;
  font-size: 18px;
  font-weight: 500;
  color: #233253;
}

.annual-increase-input-wrapper {
  position: relative;
  display: inline-block;
}

#nps-annual-increase-contribution {
  width: 100px;
  /* height: 45px; */
  padding-right: 28px;
  /* Space for % */
  /* text-align: center; */
  font-size: 18px;
  /* font-weight: 600; */
  border: 1px solid #d9d9d9;
}

.percent-symbol {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 18px;
  font-weight: 600;
  pointer-events: none;
}

.annual-increase-input-section {
  margin-top: 30px;
}

.annual-increase-input-section label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
  color: #64748b;
  font-size: 16px;
  margin-bottom: 6px;
}

.annual-increase-input-wrapper {
  margin-bottom: 20px;
}

input[type=number] {
  -moz-appearance: textfield;
  padding: 5px 10px 5px 10px;
  max-width: 102px;
  /* border-radius: 10px; */
  border: 1px solid #DFE1E4;
  font-size: 18px;
  font-weight: 500;
  color: #233253;
}

.annual-increase-note {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 20px 0 0 0;
}

.annual-increase-note strong {
  color: #0074C3;
  font-weight: 600;
}

.slw-row {
  display: flex;
  gap: 20px;
  /* margin-top:20px; */
}

.slw-row label {
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  margin-right: 10px;
}

.slw-row .input-group {
  flex: 1;
  border-radius: 0px;
}

.slw-grid {
  display: flex;
  gap: 20px;
  /* align-items:flex-end; */
}

.slw-field {
  flex: 1;
}

.slw-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: #657D93;
  font-weight: 500;
  margin-top: 20px;
}

.input-with-icon {
  position: relative;
  display: inline-block;
}

.input-with-icon input {
  width: 100%;
  padding-right: 30px;
}

.input-with-icon span {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 400;
  color: #657D93;
  font-family: 'Poppins', sans-serif;
  pointer-events: none;
  user-select: none;
}

#nps-withdrawal-period {
  padding: 5px 10px 5px 10px;
  max-width: 130px;
  /* border-radius: 10px; */
  border: 1px solid #DFE1E4;
  font-size: 18px;
  font-weight: 500;
  color: #233253;
}

#nps-withdrawal-period {
  padding: 5px 10px;
  max-width: 102px;
  /* Same as invest-age */
  border: 1px solid #DFE1E4;
  font-size: 18px;
  font-weight: 500;
  color: #233253;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
  background: none !important;
  box-shadow: none;
}

#nps-withdrawal-period::-ms-expand {
  display: none;
}

#nps-withdrawal-period::-webkit-inner-spin-button,
#nps-withdrawal-period::-webkit-outer-spin-button {
  display: none;
}

#nps-withdrawal-period.filled {
  width: 130px;
}

#nps-annual-increase-slider {
  --progress: 0%;
  background: linear-gradient(to right,
      #0074C3 0%,
      #0074C3 var(--progress),
      rgba(123, 123, 123, .2) var(--progress),
      rgba(123, 123, 123, .2) 100%);
}

.strategy-options {
  display: none;
}

.nps-strategy-select-wrapper.open .strategy-options {
  display: block;
}

.goal-annuity-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  align-items: normal !important;
  /* padding: 25px 20px 20px 20px !important; */
}

.goal-annuity-summary.blue {
  display: flex;
  gap: 20px;
  padding: 0;
}

.goal-annuity-summary .blue-panel {
  flex: 1;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: #1257a1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.goal-annuity-summary .blue-panel p {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: #fff;
}

.goal-annuity-summary .blue-panel h3 {
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  margin-top: 20px;
  margin-bottom: 0;
  color: #fff;
}

#nps-investment-slider,
#nps-goal-pension-slider,
#nps-annual-increase-slider,
#nps-goal-annual-increase-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;
}

#nps-investment-slider::-webkit-slider-runnable-track,
#nps-goal-pension-slider::-webkit-slider-runnable-track,
#nps-annual-increase-slider::-webkit-slider-runnable-track,
#nps-goal-annual-increase-slider::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

#nps-investment-slider::-moz-range-track,
#nps-goal-pension-slider::-moz-range-track,
#nps-annual-increase-slider::-moz-range-track,
#nps-goal-annual-increase-slider::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

.field-error {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
}

.retirement-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: 30px;
  background: linear-gradient(180deg, #1bc5bd, #24c9c0);
  border-radius: 8px;
}

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

.retirement-corpus h3 {
  color: #233253;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.per-annum {
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.annual-retirement-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, #F0F2F2, #b9bcbc);
  border-radius: 8px;
}

.annual-retirement-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;
}

.annual-retirement-corpus h3 {
  color: #233253;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.slw-custom-dropdown.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.slw-custom-dropdown.disabled .nps-selected-option {
  background: #f5f5f5;
}

.slw-strategy-select {
  position: relative;
  width: 80%;
  min-width: 0;
}

.slw-strategy-select .slw-custom-dropdown {
  position: relative;
  width: 100%;
  min-width: 160px;
  z-index: 10000;
}

.slw-strategy-select .nps-selected-option {
  width: 100%;
  min-height: 38px;
  padding: 5px 25px 5px 0;
  white-space: nowrap;
  cursor: pointer;
}

.slw-strategy-select .nps-dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 185px;
  min-width: 185px;
  z-index: 99999;
  display: none;
  background: #ffffff;
}

.slw-strategy-select .slw-custom-dropdown.open {
  z-index: 100000;
}

.slw-strategy-select .slw-custom-dropdown.open .nps-dropdown-options {
  display: block;
}

.slw-strategy-select .nps-dropdown-options li {
  display: block;
  width: 100%;
  padding: 12px 15px;
  cursor: pointer;
  white-space: nowrap;
}

.slw-strategy-select .nps-dropdown-options li:hover {
  background: #f7fdff;
}

.nps-current-age-wrapper {
  position: relative;
  display: block;
}

.age-input-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 128px;
  height: 45px;
}

.age-input-wrapper #nps-age-input {
  padding: 5px 10px 5px 10px;
  max-width: 102px;
  /* border-radius: 10px; */
  border: 1px solid #DFE1E4;
  font-size: 18px;
  font-weight: 500;
  color: #233253;
}

.current-age-years {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 400;
  color: #657D93;
  font-family: 'Poppins', sans-serif;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.nps-retirement-age-text {
  position: relative;
  display: block;
  margin-top: 6px;
  min-height: 21px;
  font-size: 14px;
  color: #657D93;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.nps-custom-dropdown {
  position: relative;
  width: 100%;
  min-height: 42px;
}

.nps-custom-dropdown .nps-selected-option {
  min-height: 36px;
  padding: 6px 30px 6px 0;
  cursor: pointer;
  /* border-bottom: 2px dotted #657D93; */
  font-size: 18px;
  font-weight: 600;
  color: #233253;
}

.nps-custom-dropdown .nps-custom-input {
  display: block;
  width: 110px !important;
  max-width: 110px !important;
  min-width: 70px;
  height: 38px !important;
  padding: 5px 0 !important;
  margin: 0 !important;
  border: none !important;
  /* border-bottom: 2px dotted #657D93 !important; */
  border-radius: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: #233253 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 18px !important;
  font-weight: 600;
  box-sizing: border-box;
  cursor: text !important;
}

.nps-custom-dropdown .nps-custom-input::-webkit-inner-spin-button,
.nps-custom-dropdown .nps-custom-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.nps-custom-dropdown .nps-custom-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* =========================================
   NPS TOOLTIP
   Shared tooltip used by Investment, Annuity,
   SLW and Reach-a-Goal sections.
========================================= */

.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    cursor: pointer;
    z-index: 10000;
}

.info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 3px;
    padding: 0;
    border: 1px solid #657D93;
    border-radius: 50%;
    background: #fff;
    color: #6d8193;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    font-family: serif;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    flex: 0 0 18px;
}

/* Tooltip panel */
.tooltip-text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);

    width: 280px;
    max-width: min(280px, calc(100vw - 32px));
    margin: 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 0;
    border-radius: 6px;

    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;

    display: none;
    visibility: visible;
    opacity: 1;

    z-index: 99999;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.20);
}

/* Tooltip arrow */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #233253 transparent transparent transparent;
}

/* Desktop hover support */
.info-icon-wrapper:hover .tooltip-text,
.info-icon-wrapper:focus-within .tooltip-text {
    display: block;
}

/* Keep tooltip above the adjacent right panel */
.nps-calculator-body {
    position: relative;
}

.form-left {
    position: relative;
    z-index: 1000;
}

.form-right {
    position: relative;
    z-index: 999;
}

/* Tablet */
@media (max-width: 1024px) {
    .tooltip-text {
        width: 240px;
        max-width: calc(100vw - 40px);
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 540px) {
    .tooltip-text {
        width: 220px;
        max-width: calc(100vw - 32px);
        font-size: 12px;
        line-height: 1.45;
    }

    /*
     * Align to the right edge of the icon on small screens.
     * This prevents the tooltip from being pushed outside
     * the viewport when the icon is near the right side.
     */
    .info-icon-wrapper .tooltip-text {
        left: auto;
        right: 0;
        transform: none;
    }

    .tooltip-text::after {
        left: auto;
        right: 8px;
        transform: none;
    }
}

/* Very small phones */
@media (max-width: 374px) {
    .tooltip-text {
        width: 210px;
        max-width: calc(100vw - 24px);
        font-size: 11px;
    }
}


