.calculator {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 30px;
  flex-wrap: wrap;
}

.left {
  width: calc(57% - 15px);
  flex: 0 0 auto;
  display: grid;
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px 25px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.service-info {
  display: flex;
  flex-direction: column;
  flex: auto;
  width: 62%;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.service-info h3 {
  margin: 0;
  padding: 0;
  font-size: 18px !important;
  color: #1f2937 !important;
}

.service-info span {
  font-size: 14px !important;
  color: #6b7280 !important;
}

.service-input {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  flex: auto;
  width: 38%;
}

.service-input label {
  font-size: 12px !important;
  color: #374151 !important;
  margin-bottom: 2px;
  width: 20%;
}

.service-input input[type="number"],
.service-input select {
  width: 90px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db !important;
  font-size: 16px !important;
  color: #333 !important;
  text-align: center;
  width: 80%;
}

.inputs-group {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 5px;
}

.inputs-group:has(.error-message) {
  flex-direction: column;
  position: relative;
}

.inputs-group .error-message {
  position: absolute;
  bottom: -20px;
  left: 12px;
  position: absolute;
  color:#ff0000 !important; 
  font-size: 12px !important; 
  display:none;
}

.voice-inputs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  width: 100%;
}

.voice-field {
  display: flex;
  gap: 5px;
  width: 100%;
  align-items: center;
}

.right {
  width: calc(43% - 15px);
  flex: 0 0 auto;
  background: #fff !important;
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-self: flex-start;
}

.summary h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px !important;
  color: #111827 !important;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 10px;
  background: #f1f6ff;
  font-weight: 500;
  color: #1f2937;
  transition: background 0.4s;
}

.summary-item.highlight {
  background: #dbeafe;
}

.summary-item.highlight span + span {
  /* font-family: 'Exo 2', Helvetica, Arial, Lucida, sans-serif; */
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
}

.summary-item.total {
  background: #2563eb;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: bold !important;
  /* font-family: 'Exo 2', Helvetica, Arial, Lucida, sans-serif; */
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
}

.tooltip-icon {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  color: #2563eb !important;
  font-weight: bold !important;
  font-size: 16px;
  line-height: 1em;
  justify-content: center;
  align-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid #6b7280;
  border-radius: 50px;
  text-align: center;
  /* font-family: 'Exo 2', Helvetica, Arial, Lucida, sans-serif; */
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
}

.tooltip-icon .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: #2563eb !important;
  color: #fff !important;
  text-align: left !important;
  padding: 10px;
  border-radius: 8px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  line-height: 1.4;
}

.tooltip-icon:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.summary-disclaimer {
  margin-top: 10px;
  font-size: 12px !important;
  line-height: 1.2;
  color: #6b7280 !important;
  text-align: center;
  font-style: italic;
  font-weight: 500;
}

.button-small {
  background: #2563eb;
  padding: 5px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: bold !important;
  border: none;
  border-radius: 5px;
  /* font-family: 'Exo 2', Helvetica, Arial, Lucida, sans-serif; */
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
  cursor: pointer;
}

#voiceTextingField {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

#voiceTextingField label {
  font-size: 12px !important;
  color: #374151 !important;
  margin: 0;
  width: auto;
}

#voiceTexting {
  width: 18px;
  height: 18px;
  accent-color: #2563eb; /* checkbox color */
  cursor: pointer;
}

@media (max-width: 900px) {
  .calculator {
    flex-direction: column;
  }
}

.hidden-elem {
  display: none !important;
}

.calculator {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 30px;
  flex-wrap: wrap;
}
.left {
  width: calc(57% - 15px);
  /* display: grid; */
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 30px;
}
.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.service-header h3 {
  margin: 0;
  font-size: 18px !important;
}
.tooltiptext {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
}
.tooltip-icon:hover .tooltiptext {
  visibility: visible;
}
.right.summary {
  width: calc(43% - 15px);
  position: sticky;
  top: 20px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  padding-bottom: 30px;
  /* background: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}
.right.summary .summary-card {
  width: 100%;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.right.summary .summary-card + .summary-card {
  margin-top: 20px;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.button-primary {
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  background: #2563eb !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: bold !important;
  /* font-family: 'Exo 2', Helvetica, Arial, Lucida, sans-serif; */
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
  cursor: pointer;
}
@media screen and (max-width: 992px) {
  .button-primary {
    width: 100%;
  }
}
.button-primary:hover {
  background: #005177;
}
.inputs-group {
  margin-bottom: 15px;
}
.inputs-row {
  display: flex;
  flex-wrap: nowrap;
}
.inputs-row.row-center {
  justify-content: center;
}
.inputs-row.row-center:has(button) {
  gap: 0 20px;
}
@media screen and (max-width: 992px) {
  .inputs-row.row-center:has(button) {
    gap: 20px 0;
  }
}
.inputs-row.two-col {
  justify-content: space-between;
}
.inputs-row + .inputs-row {
  margin-top: 30px;
}
@media screen and (max-width: 992px) {
  .inputs-row {
    flex-direction: column;
    flex-wrap: wrap;
  }
}
.inputs-row.two-col .inputs-group {
  width: calc(50% - 10px);
  flex: 0 0 auto;
}
.inputs-row.one-col .inputs-group {
  width: 100%;
  flex: 0 0 auto;
}
@media screen and (max-width: 992px) {
  .inputs-row.two-col .inputs-group {
    width: 100%;
  }
}
.inputs-row .inputs-group {
  margin-bottom: 0;
}
.inputs-row .inputs-group input {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db; 
  font-size: 16px;
  width: 100%;
  color: #333 !important;
}

.inputs-row .inputs-group input::placeholder {
  color: #333 !important;
}

.inputs-row .inputs-group input::-moz-placeholder {
  color: #333 !important;
}

.inputs-row .inputs-group input::-webkit-input-placeholder {
  color: #333 !important;
}

#quoteMessage {
  text-align: center;
}
