.calculator {
  background: #f2f1e9;
  border: 1px solid #d8d9ce;
  border-radius: 18px;
  padding: clamp(18px, 4vw, 36px);
}
.pricing-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.pricing-fields label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}
.pricing-fields input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #777f72;
  border-radius: 6px;
  background: white;
  color: #18281d;
  font: inherit;
}
.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.calculator button {
  cursor: pointer;
  font: inherit;
  padding: 12px 18px;
  border: 1px solid #263c2a;
  border-radius: 8px;
  color: #fff;
  background: #263c2a;
}
.calculator button[type='reset'],
#example-estimate {
  background: transparent;
  color: #263c2a;
}
.calculator button:disabled {
  opacity: 0.55;
  cursor: default;
}
.calculator :focus-visible {
  outline: 3px solid #a35417;
  outline-offset: 4px;
}
#pricing-error {
  color: #8a2419;
  font-weight: 600;
}
#pricing-result {
  background: white;
  padding: 24px;
  border-radius: 10px;
  margin: 24px 0;
}
.estimate-total {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.estimate-total small {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 8px;
}
.calculator dt {
  font-weight: 700;
  margin-top: 12px;
}
.calculator dd {
  margin: 4px 0 0;
}
.print-empty {
  display: none;
}
#pricing-form:not([hidden]) ~ .manual-fallback {
  display: none;
}
@media (max-width: 600px) {
  .pricing-fields {
    grid-template-columns: 1fr;
  }
  #pricing-result {
    padding: 18px;
  }
}
@media print {
  @page {
    size: auto;
    margin: 15mm;
  }
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }
  .site-header,
  footer,
  .skip,
  .pricing-guide,
  #pricing-form,
  .calculator > h2,
  .calculator > p,
  .calculator > button,
  .doc-head > p,
  .doc-head > .eyebrow {
    display: none !important;
  }
  .wrap,
  .doc,
  .doc-head,
  .doc-body,
  .calculator,
  #pricing-result {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    box-shadow: none;
    background: white;
  }
  .doc-head h1 {
    font-size: 20pt;
    margin: 0 0 18pt;
  }
  #pricing-result h2 {
    font-size: 16pt;
  }
  #pricing-result {
    break-inside: avoid;
  }
  #pricing-result[hidden] ~ .print-empty {
    display: block !important;
  }
}
