label > .tooltip-container {
  margin-left: 0.5em;
}

label .tooltip-container {
  /* Ensure the icon stays inline with the label text */
  display: inline-flex;
  align-items: center;
}

label {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 1.5em;
  color: #d18c00;
  font-weight: 500;
}

.input-label {
  display: block;
  margin-bottom: 20px;
  color: #d18c00;
  font-weight: 500;
}

.input-group {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #C3C7D5;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  /* max-width: 320px; */
  height: 56px;
}

.input-group span {
  font-family: Verdana, sans-serif;
  color: #4A4A4A;
  font-size: 1.2em;
  padding: 0 16px;
  background: #f5f5f5;
  border-right: 1px solid #C3C7D5;
  display: flex;
  align-items: center;
  height: 100%;
}

.input-group input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  font-family: Verdana, sans-serif;
  font-size: 1.2em;
  color: #4A4A4A;
  background: #f5f5f5;
  border: none;
  padding: 0 16px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Remove spinners in Chrome/Safari */
.input-group input[type="number"]::-webkit-inner-spin-button,
.input-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  width: 100%;
  font-family: Verdana, sans-serif;
  font-size: 1em;
  color: #4A4A4A;
  background: #fff;
  border: 1px solid #C3C7D5;
  border-radius: 4px;
  padding: 0.4em 0.6em;
  box-sizing: border-box;
}

/* Remove spinners in Chrome/Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none; /* 👈 this line fixes the warning */
  width: 100%;
  height: 2px;
  background: #ccc;
  border-radius: 5px;
  outline: none;
  margin-top: 0.5em;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: #fff;
  border: 3px solid #FABD6B;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  background: #fff;
  border: 3px solid #FABD6B;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: #ccc;
  border-radius: 5px;
}

input[type="range"]::-ms-thumb {
  height: 20px;
  width: 20px;
  background: #fff;
  border: 3px solid #FABD6B;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-ms-track {
  height: 2px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
  margin-top: 0.5em;
}

.radio-group label {
  color: #333;
  font-weight: 400;
}

/* Remove native styling */
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
  border: 2px solid #FABD6B;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  margin-right: 8px;
  cursor: pointer;
  background: #fff;
}

/* Style for checked state (the inner filled circle) */
input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: #FABD6B;
  border-radius: 50%;
}

.range-label {
  display: block;
  margin-bottom: 28px;
  color: #d18c00;
  font-weight: 500;
}

.range-group {
  margin-bottom: 2em; /* or as needed */
}

.range-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.range-interest {
  margin-top: 2em;
  margin-bottom: 68px;
}

.range-interest-row {
  display: flex;
  align-items: center;
  gap: 1em;
}

.range-interest-row input[type="range"] {
  flex: 1;
}

.range-value {
  white-space: nowrap;
}

.years-container {
  margin-bottom: 16px;
}

.interest-input-wrapper {
  display: flex;
  align-items: center;
}

input.interest-number-input {
  width: 70px; /* Increase from 60px to provide more space */
  text-align: right;
  padding-right: 8px; /* More padding for better text visibility */
  padding-left: 5px;  /* Add left padding */
  margin-right: 2px;
  margin-left: 8px;
  height: 34px;      /* Slightly taller for better touch target */
  border: 1px solid #C3C7D5;
  border-radius: 4px;
  font-family: Verdana, sans-serif;
  font-size: 1em;
  background: #f5f5f5;
  color: #4A4A4A;
  font-weight: 500;  /* Make text slightly bolder */
}

/* Add responsive styles for mobile */
@media (max-width: 480px) {
  input.interest-number-input {
    width: 80px;     /* Even wider on small screens */
    font-size: 1.1em; /* Larger text on mobile */
  }
}