/* module.css */
.dti-container {
  max-width: 1040px;
  margin: 40px auto;
  padding: 40px 56px;
  border-radius: 28px;
  background: radial-gradient(140% 140% at 0% 0%, #f4e9ff 0%, #ffffff 45%, #f4e9ff 100%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
  text-align: left;
  font-family: Gotham, Arial, Sans-serif !important;
}

.dti-container h2,
.dti-container h3,
.dti-container p,
.dti-container label,
.dti-container summary {
  font-family: Gotham, Arial, Sans-serif !important;
}

.dti-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.dti-subhead {
  margin-top: 8px;
  margin-bottom: 0;
  color: #4f566b;
  line-height: 1.5;
}

/* Always stacked: inputs above results */
.dti-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.dti-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06);
  border: 1px solid #eceff6;
}

.dti-card--results {
  position: relative;
}

.dti-card-title {
  margin: 0 0 14px 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.dti-form {
  display: block;
}

.dti-field {
  width: 100%;
  margin-bottom: 14px;
}

.dti-field--full {
  grid-column: 1 / -1;
}

.dti-label {
  display: block;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.dti-input {
  width: 100%;
  height: 48px;
  border-radius: 25px !important;
  border: 1px solid #dde3ef;
  background: #ffffff;
  font-size: 16px;
  text-align: center;
  outline: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  font-family: Gotham, Arial, Sans-serif !important;
}

.dti-input::placeholder {
  color: #a0a7b8;
}

.dti-help {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #4f566b;
  text-align: center;
}

.dti-divider {
  height: 1px;
  background: #eceff6;
  margin: 10px 0 12px 0;
}

.dti-toggle-row {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.dti-toggle {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: #2c3240;
  cursor: pointer;
  user-select: none;
}

.dti-toggle input {
  width: 16px;
  height: 16px;
}

.dti-itemized {
  margin-top: 6px;
}

.dti-itemized-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dti-inline-total {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f7fb;
  border: 1px solid #eceff6;
  font-size: 13px;
  line-height: 1.4;
  color: #2c3240;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dti-actions {
  text-align: center;
  margin-top: 10px;
}

.dti-cta {
  text-decoration: none !important;
  font-weight: 600;
}

.dti-details {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid #eceff6;
  background: #ffffff;
  padding: 10px 12px;
}

.dti-summary {
  cursor: pointer;
  font-weight: 600;
  color: #2c3240;
}

.dti-details-body {
  margin-top: 10px;
}

.dti-details-p {
  margin: 0 0 10px 0;
  color: #4f566b;
  font-size: 13px;
  line-height: 1.5;
}

.dti-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #4f566b;
}

/* Results UI */
.dti-result-top {
  display: grid;
  gap: 12px;
}

.dti-big {
  text-align: center;
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid #eceff6;
  background: #ffffff;
}

.dti-big-label {
  font-size: 12px;
  color: #4f566b;
  margin-bottom: 6px;
}

.dti-big-value {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #2c3240;
}

.dti-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #eceff6;
  background: #ffffff;
  color: #2c3240;
  font-size: 14px;
  line-height: 1.35;
}

.dti-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #a0a7b8;
  flex: 0 0 auto;
}

.dti-status--good .dti-status__dot { background: #2bb673; }
.dti-status--ok .dti-status__dot { background: #f5a623; }
.dti-status--work .dti-status__dot { background: #d64545; }
.dti-status--neutral .dti-status__dot { background: #a0a7b8; }

.dti-meter {
  margin-top: 14px;
}

.dti-meter-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef1f8;
  border: 1px solid #eceff6;
  display: grid;
  grid-template-columns: 35fr 8fr 17fr; /* 0-35, 36-43, 44-60+ */
}

.dti-meter-seg--good { background: rgba(43, 182, 115, 0.25); }
.dti-meter-seg--ok { background: rgba(245, 166, 35, 0.25); }
.dti-meter-seg--work { background: rgba(214, 69, 69, 0.22); }

.dti-meter-marker {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 26px;
  background: #2c3240;
  left: 0%;
  transform: translateX(-1px);
  opacity: 0;
}

.dti-meter-labels {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #4f566b;
}

.dti-breakdown {
  margin-top: 14px;
  font-size: 13px;
  color: #2c3240;
  line-height: 1.5;
}

.dti-breakdown .dti-break-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #eceff6;
  background: #ffffff;
  margin-bottom: 10px;
}

.dti-breakdown .dti-break-row strong {
  font-weight: 700;
}

/* Small screens: keep stacked, just simplify itemized grid */
@media (max-width: 767px) {
  .dti-container {
    padding: 28px 20px;
  }

  .dti-itemized-grid {
    grid-template-columns: 1fr;
  }

  .dti-big-value {
    font-size: 34px;
  }
}
@media (max-width: 767px) {
  .dti-container {
    display: block;
    margin: 0 auto;
  }
  
  [data-component="calculator"] form {max-width:200px !important;padding:12px;}
