.estimate {
  color: #f7f2ff;
  color-scheme: dark;
  padding-bottom: clamp(65px, 10vw, 116px);
}
.estimate [hidden] {
  display: none !important;
}
.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
  align-items: start;
}
.estimate-form,
.estimate-summary,
.estimate-review {
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid #bda8eb46;
  border-radius: 20px;
  background: #171126;
}
.estimate-form fieldset {
  margin: 0;
  min-inline-size: 0;
  padding: 0;
  border: 0;
}
.estimate-form legend,
.estimate h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.032em;
}
.estimate-help,
.estimate-field small,
.estimate-pick small,
.estimate-summary > p:not(.estimate-total) {
  color: #d1c6e2;
  font-size: 14px;
  line-height: 1.5;
}
.estimate-help {
  margin: 10px 0;
}
.estimate-services,
.estimate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 16px;
}
.estimate-pick {
  display: flex;
  align-items: flex-start;
  min-height: 72px;
  gap: 10px;
  padding: 12px;
  border: 1px solid #bda8eb59;
  border-radius: 10px;
  background: #241a36;
  cursor: pointer;
}
.estimate-pick:has(input:checked) {
  border-color: #cfb7ff;
  background: #37244f;
}
.estimate-pick strong,
.estimate-pick small {
  display: block;
}
.estimate input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0.24em 0 0;
  accent-color: #bca0ff;
}
.estimate-form .estimate-branch {
  margin-top: 24px;
  padding: 14px 16px 16px;
  border: 1px solid #bda8eb59;
  border-radius: 10px;
}
.estimate-form .estimate-branch legend {
  padding-inline: 6px;
  font-size: 17px;
}
.estimate-branch .estimate-fields {
  margin-top: 0;
}
.estimate-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  font-size: 14px;
  font-weight: 550;
}
.estimate-field small {
  font-weight: 400;
}
.estimate-field input,
.estimate-field select,
.estimate-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: #fff;
  background: #110d1c;
  color-scheme: dark;
  border: 1px solid #bda8eb69;
  border-radius: 8px;
  font: 400 16px/1.4 var(--sans);
}
.estimate-field textarea {
  resize: vertical;
}
.estimate-field textarea::placeholder {
  color: #b1a5c4;
}
.estimate-addons {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.estimate-addons label {
  display: flex;
  gap: 9px;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}
.estimate-addons input[type="checkbox"] {
  margin: 0;
}
.estimate-notes {
  margin: 25px 0 16px;
}
.estimate button:not(:disabled),
.estimate a {
  cursor: pointer;
}
.estimate button:disabled {
  opacity: 0.53;
}
.estimate :is(input, select, textarea, a, button, h2):focus-visible {
  outline: 2px solid #dbbfff;
  outline-offset: 3px;
}
.estimate-items {
  margin: 16px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #bda8eb46;
}
.estimate-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-block: 11px;
  border-bottom: 1px solid #bda8eb46;
  font-size: 14px;
}
.estimate-items strong {
  flex: none;
}
.estimate-total {
  margin: 18px 0 8px;
  font-size: 20px;
  font-weight: 600;
}
.estimate-review {
  grid-column: 1 / -1;
}
.estimate-review .estimate-field {
  margin-top: 20px;
}
.estimate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.estimate-edit {
  min-height: 44px;
  padding-inline: 10px;
  border: 0;
  background: transparent;
  color: #f4ebff;
  font: 500 14px var(--sans);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.estimate-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .estimate-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 460px) {
  .estimate-services,
  .estimate-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
