.bootstrap-clt {
  display: grid;
  gap: 2rem;
}

.bootstrap-clt .calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.bootstrap-clt .calculator-grid section {
  background: #f8fbff;
  border: 1px solid #d6e1f2;
  border-radius: 16px;
  padding: 1.5rem;
}

.bootstrap-clt .calculator-grid h2 {
  margin-top: 0;
  color: #16325c;
}

.bootstrap-clt form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
}

.bootstrap-clt fieldset {
  border: 1px solid #d6e1f2;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background-color: #fff;
}

.bootstrap-clt legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: #1f3a5f;
}

.bootstrap-clt .field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.bootstrap-clt label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #223553;
}

.bootstrap-clt label span.label {
  font-weight: 600;
  color: #1f2f4d;
}

.bootstrap-clt input,
.bootstrap-clt select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #b7c4d6;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #fff;
}

.bootstrap-clt input:focus,
.bootstrap-clt select:focus {
  outline: 2px solid #4b82f5;
  outline-offset: 0;
}

.bootstrap-clt .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bootstrap-clt .actions .button {
  flex: 0 0 auto;
}

.bootstrap-clt #calc-error {
  color: #c0392b;
  font-weight: 600;
}

.bootstrap-clt dl.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

.bootstrap-clt dl.result-grid div {
  background: #fff;
  border: 1px solid #d6e1f2;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.bootstrap-clt dl.result-grid dt {
  font-weight: 600;
  color: #1f2f4d;
}

.bootstrap-clt dl.result-grid dd {
  margin: 0.35rem 0 0;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.97rem;
  color: #152642;
}

.bootstrap-clt .ci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.bootstrap-clt .ci-grid li {
  list-style: none;
  background: #fff;
  border: 1px solid #d6e1f2;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.bootstrap-clt .ci-grid h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #16325c;
}

.bootstrap-clt .ci-grid p {
  margin: 0.35rem 0 0;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: #152642;
}

.bootstrap-clt .chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.bootstrap-clt canvas {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid #d6e1f2;
  border-radius: 12px;
  padding: 0.5rem;
}

.bootstrap-clt .how-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.bootstrap-clt .how-steps li {
  position: relative;
  background: #fff;
  border: 1px solid #d6e1f2;
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 3.25rem;
  line-height: 1.55;
  color: #1f2f4d;
}

.bootstrap-clt .how-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #315efb;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bootstrap-clt .meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #3a4a68;
}

.bootstrap-clt #share-status {
  margin-top: 0.5rem;
  color: #1d3f73;
}

@media (max-width: 1024px) {
  .bootstrap-clt .calculator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bootstrap-clt fieldset {
    padding: 0.85rem;
  }

  .bootstrap-clt .chart-grid {
    grid-template-columns: 1fr;
  }
}
