.dtpm-calculator {
  --dtpm-blue: #3e4da3;
  --dtpm-red: #d56876;
  --dtpm-orange: #f28c28;
  --dtpm-orange-text: #a94700;
  --dtpm-green: #178a55;
  --dtpm-green-text: #137245;
  --dtpm-black: #111111;
  --dtpm-white: #ffffff;
  width: 100%;
  color: var(--dtpm-black);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 12pt;
  line-height: 1.5;
}

.dtpm-calculator *,
.dtpm-calculator *::before,
.dtpm-calculator *::after {
  box-sizing: border-box;
}

.dtpm-calculator [hidden] {
  display: none !important;
}

.dtpm-calculator h2,
.dtpm-calculator h3,
.dtpm-calculator p,
.dtpm-calculator ul,
.dtpm-calculator figure,
.dtpm-calculator figcaption {
  margin-top: 0;
}

.dtpm-calculator h2 {
  margin-bottom: 12px;
  color: var(--dtpm-blue);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 18pt;
  line-height: 1.25;
  font-weight: 700;
}

.dtpm-calculator .dtpm-input-heading {
  font-size: 23pt;
}

.dtpm-calculator h3 {
  margin-bottom: 10px;
  color: var(--dtpm-blue);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16pt;
  line-height: 1.3;
}

.dtpm-calculator p,
.dtpm-calculator span,
.dtpm-calculator li,
.dtpm-calculator label,
.dtpm-calculator input,
.dtpm-calculator textarea,
.dtpm-calculator button,
.dtpm-calculator small,
.dtpm-calculator figcaption {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 12pt;
}

.dtpm-input-section,
.dtpm-results,
.dtpm-result-group,
.dtpm-chart-pair {
  display: grid;
  gap: 12px;
}

.dtpm-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.dtpm-entry-column {
  width: 100%;
  max-width: 700px;
}

.dtpm-campaign-entry-column .dtpm-input-wrap {
  max-width: 400px;
}

.dtpm-cost-entry {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 700px;
}

.dtpm-cost-entry .dtpm-input-wrap {
  max-width: none;
}

.dtpm-unit-cost {
  margin: 0;
  color: var(--dtpm-black);
  font-weight: 400;
  line-height: 1.4;
}

.dtpm-unit-cost strong {
  color: var(--dtpm-blue);
  white-space: nowrap;
}

.dtpm-field {
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--dtpm-black);
  font-weight: 700;
}

.dtpm-field small,
.dtpm-field-help {
  display: block;
  color: var(--dtpm-black);
  font-size: 11pt;
  line-height: 1.45;
  font-weight: 400;
}

.dtpm-field input,
.dtpm-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  color: var(--dtpm-black);
  background: var(--dtpm-white);
  border: 2px solid var(--dtpm-blue);
  border-radius: 0;
  font-weight: 400;
}

.dtpm-input-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 46px;
  color: var(--dtpm-black);
  background: var(--dtpm-white);
  border: 2px solid var(--dtpm-blue);
}

.dtpm-input-wrap input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
}

.dtpm-field-symbol {
  display: flex;
  align-items: center;
  padding: 9px 0 9px 11px;
  color: var(--dtpm-black);
  background: var(--dtpm-white);
  font-weight: 700;
  line-height: 1;
}

.dtpm-percent-wrap .dtpm-field-symbol {
  padding: 9px 11px 9px 0;
}

.dtpm-field textarea {
  min-height: 96px;
  resize: vertical;
}

.dtpm-field input:focus,
.dtpm-field textarea:focus,
.dtpm-button:focus,
.dtpm-consent input:focus {
  outline: 3px solid var(--dtpm-blue);
  outline-offset: 2px;
}

.dtpm-input-wrap input:focus {
  outline: 0;
}

.dtpm-input-wrap:focus-within {
  outline: 3px solid var(--dtpm-blue);
  outline-offset: 2px;
}

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

.dtpm-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.dtpm-button {
  display: inline-block;
  width: auto;
  min-height: 48px;
  padding: 11px 18px;
  color: var(--dtpm-blue);
  background: var(--dtpm-white);
  border: 2px solid var(--dtpm-blue);
  border-radius: 0;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.dtpm-primary-button {
  color: var(--dtpm-white);
  background: var(--dtpm-blue);
}

.dtpm-button:hover {
  color: var(--dtpm-white);
  background: var(--dtpm-blue);
}

.dtpm-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.dtpm-form-message,
.dtpm-report-message {
  min-height: 24px;
  color: var(--dtpm-black);
  font-weight: 700;
}

.dtpm-error-message,
.dtpm-negative-number {
  color: var(--dtpm-orange-text);
}

.dtpm-success-message {
  color: var(--dtpm-green-text);
}

.dtpm-notice-message {
  color: var(--dtpm-blue);
}

.dtpm-results {
  margin-top: 28px;
  gap: 28px;
}

.dtpm-financial-summary,
.dtpm-chart-summary {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
  padding-left: 25px;
  color: var(--dtpm-black);
}

.dtpm-financial-summary li {
  font-size: 16pt;
}

.dtpm-financial-summary strong,
.dtpm-chart-summary strong,
.dtpm-rich-label strong {
  color: var(--dtpm-black);
  font-weight: 700;
}

.dtpm-chart-pair + .dtpm-chart-pair {
  margin-top: 34px;
}

.dtpm-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.dtpm-chart-figure {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-bottom: 0;
}

.dtpm-chart-figure figcaption {
  color: var(--dtpm-black);
  font-weight: 700;
}

.dtpm-donut {
  --dtpm-share: 0%;
  --dtpm-secondary-color: var(--dtpm-orange);
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  background: conic-gradient(var(--dtpm-blue) 0 var(--dtpm-share), var(--dtpm-secondary-color) var(--dtpm-share) 100%);
  border-radius: 50%;
}

.dtpm-donut-additional {
  --dtpm-secondary-color: var(--dtpm-green);
}

.dtpm-donut-empty {
  background: var(--dtpm-white);
  border: 2px solid var(--dtpm-black);
}

.dtpm-donut-center {
  display: grid;
  place-items: center;
  align-content: center;
  width: 62%;
  height: 62%;
  padding: 8px;
  color: var(--dtpm-black);
  background: var(--dtpm-white);
  border-radius: 50%;
  text-align: center;
  overflow-wrap: anywhere;
}

.dtpm-donut-center strong {
  color: var(--dtpm-black);
  font-size: 16pt;
  font-weight: 700;
}

.dtpm-donut-center span {
  color: var(--dtpm-black);
  font-weight: 700;
}

.dtpm-chart-labels,
.dtpm-bars {
  display: grid;
  gap: 14px;
}

.dtpm-label-line {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.dtpm-swatch {
  display: block;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  background: var(--dtpm-blue);
}

.dtpm-swatch.dtpm-negative,
.dtpm-bar-fill.dtpm-negative {
  background: var(--dtpm-orange);
}

.dtpm-swatch.dtpm-additional,
.dtpm-bar-fill.dtpm-additional {
  background: var(--dtpm-green);
}

.dtpm-rich-label {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--dtpm-black);
  overflow-wrap: anywhere;
}

.dtpm-bar-row {
  display: grid;
  gap: 7px;
}

.dtpm-bar-track {
  width: 100%;
  height: 18px;
  background: var(--dtpm-white);
  border: 2px solid var(--dtpm-black);
}

.dtpm-bar-fill {
  height: 100%;
  background: var(--dtpm-blue);
}

.dtpm-customize-report {
  display: grid;
  gap: 18px;
  color: var(--dtpm-black);
  border: 2px solid var(--dtpm-blue);
  padding: 0 18px 18px;
}

.dtpm-customize-report > h2 {
  margin: 0 -18px;
  padding: 14px 18px;
  color: var(--dtpm-white);
  background: var(--dtpm-blue);
  font-size: 18pt;
  font-weight: 700;
}

.dtpm-customize-report > p {
  margin-bottom: 0;
}

.dtpm-customize-report > .dtpm-consent {
  margin: 0;
}

.dtpm-consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--dtpm-black);
  font-weight: 700;
}

.dtpm-consent input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}

.dtpm-privacy-note {
  color: var(--dtpm-black);
}

.dtpm-privacy-note a {
  color: var(--dtpm-blue);
  font-weight: 700;
  text-decoration: underline;
}

.dtpm-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 720px) {
  .dtpm-chart-grid {
    grid-template-columns: 1fr;
  }

  .dtpm-cost-entry {
    grid-template-columns: minmax(0, 1fr);
    max-width: 400px;
  }
}
