details {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1em;
  border-radius: 8px;
  margin-bottom: 1.5em;
}

.field-group {
  display: grid;
  grid-template-columns: 280px 260px 160px;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1.2em;
  max-width: 600px;
}

.slider-container-monthly {
  grid-column: 2 / 4;
}

.slider-container {
  grid-column: 3 / 4;
}  

.annual-after-slider {
  grid-column: 4 / 4;
}

input[type="number"] {
  max-width: 160px;
}

.section {
  margin-bottom: 2em;
}



.flex-container {
  display: flex;
  gap: 1em;
  align-items: center;
  margin-bottom: 1em;
}

.group-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 1em;
}
.group-box legend {
  font-weight: bold;
  padding: 0 0.5em;
}
.group-box .form-group {
  display: grid;
  grid-template-columns: 230px 180px;
  align-items: center;
  column-gap: 1.5em;
  row-gap: 1em;
  margin-bottom: 1em;
}
.group-box label {
  margin-bottom: 0;
  margin-right: 0;
  min-width: 220px;
  text-align: left;
}
.group-box input {
  max-width: 180px;
  justify-self: start;
}


.inputAsLabel {
  border: none;           /* remove border */
  background: transparent;/* remove background */
  font: inherit;          /* match surrounding font */
  color: inherit;         /* inherit text color */
  padding: 0;             /* remove padding */
  margin: 0;              /* remove margin */
  width: auto;            /* shrink to text size */
  outline: none;          /* remove focus outline */
  pointer-events: none;   /* make it uneditable (optional) */
}

.tooltip {
    font-size: 0.8em;
    vertical-align: super;
    color: red;
}


a.hidden-link {
  text-decoration: none;
  cursor: default;
}

input[readonly] {
  background: #eee !important;
}

#taxBreakdownResults {
  height: 200px;
  width: 400px;
  resize: vertical;
}
