.calculator {
  background: #fff;
  padding: 35px 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 500px;
  margin: 40px auto;
  font-family: 'Poppins', sans-serif;
}

.calculator h1 {
  text-align: center;
  color: #B31942;
  font-weight: 600;
  margin-bottom: 25px;
	font-family:Poppins;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #0A3161;
  font-size: 15px;
}

input[type="number"], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

input:focus, select:focus {
  outline: none;
  border-color: #B31942;
  box-shadow: 0 0 5px rgba(179,25,66,0.3);
}

button {
  width: 100%;
  padding: 12px;
  background: #B31942;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}

button:hover {
  background: #0A3161;
}

#resultContainer {
  display: none;
  margin-top: 25px;
}

#finalResult {
  font-size: 14px;
  color: #0A3161;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 15px 18px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-weight: 500;
  line-height: 1.7;
  word-spacing: 3px;   /* ✅ natural gap between words and numbers */
}

#finalResult span {
  color: #B31942;
  font-weight: 600;
  margin: 0 2px; /* ✅ ensures space around inline numbers */
}

.result-line {
  margin-bottom: 8px;
}

.amount {
  color: #B31942;
  font-weight: 600;
}

.nowrap {
  white-space: nowrap; /* 🔒 prevents breaking of ranges */
}


@media (max-width: 600px) {
  .calculator {
    padding: 20px;
    margin: 20px;
  }
	  #finalResult {
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    word-spacing: normal;
    white-space: normal;
  }

  #finalResult span {
    white-space: nowrap;   /* 🔒 keeps $ + number together */
    display: inline-block; /* 🔒 prevents broken alignment */
  }
}
