/* Form layout within VenPro's shared navigation and type system. */
html:has(.estimate-wizard) { scroll-padding-top: 0; }
.estimate-wizard { --field-edge: #899ab2; --field-error: #9e2434; }
.estimate-wizard #main { max-width: none; }
.estimate-heading {
  padding: clamp(1.75rem, 3.8vw, 3.75rem) var(--content-inset);
  background: #285bbf;
  color: white;
  text-align: center;
}
#main #form-title {
  font: 600 var(--reading-h1)/1.1 var(--display);
  letter-spacing: -.025em;
}
.estimate-heading .estimate-tagline {
  margin: .55rem 0 0;
  font: 400 clamp(1rem, 1.45vw, 1.15rem)/1.5 var(--display);
  color: white;
}
.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .9fr);
  align-items: start;
  gap: clamp(3rem, 7.5vw, 7rem);
  width: min(88%, 75rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 4vw, 4.5rem) var(--section-space);
}
.form-column, .quote-panel, #quote-form { min-width: 0; }
.estimate-wizard [hidden] { display: none !important; }
.estimate-wizard .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.quote-panel :is(button, input, select, textarea) { font: inherit; color: inherit; }
.quote-panel :is(button, select), .quote-panel input:is([type=radio], [type=checkbox]) { cursor: pointer; }
.quote-panel :is(input, select, textarea) { min-width: 0; }
.quote-panel a, .project-card a { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.quote-panel :focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.estimate-wizard [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.quote-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.quote-panel legend { padding: 0; }
.quote-panel .required-mark {
  display: inline;
  margin: 0;
  color: var(--field-error);
  font-weight: 700;
  line-height: 1;
}
.progress-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .65rem; margin-bottom: clamp(1.6rem, 2.6vw, 2.4rem); }
.required-key { margin: 0; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.progress-copy { font-size: .9375rem; color: var(--muted); }
#step-count { color: var(--link); font-weight: 600; }
.estimate-steps {
  --number-size: 1.875rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-column: 1 / -1;
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}
.estimate-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
}
.estimate-steps li + li::before {
  content: "";
  position: absolute;
  top: calc(var(--number-size) / 2);
  left: calc(-50% + var(--number-size) / 2 + .15rem);
  right: calc(50% + var(--number-size) / 2 + .15rem);
  border-top: 2px solid var(--line);
}
.estimate-steps .step-number {
  display: grid;
  place-items: center;
  width: var(--number-size);
  height: var(--number-size);
  border: 1px solid var(--field-edge);
  border-radius: 50%;
  font-size: .9375rem;
  font-weight: 600;
}
.estimate-steps .step-label, .estimate-steps small { max-width: 100%; overflow-wrap: anywhere; }
.estimate-steps .step-label { margin-top: .4rem; font-size: clamp(.875rem, 1.4vw, 1rem); }
.estimate-steps small { margin-top: .08rem; font-size: .8125rem; color: var(--muted); }
.estimate-steps li:is([data-state=complete], [aria-current=step])::before { border-color: var(--blue); }
.estimate-steps [data-state=complete] .step-number { background: var(--pale); color: var(--link); border-color: var(--link); }
.estimate-steps [aria-current=step] .step-number { background: var(--link); color: white; border-color: var(--link); }
.estimate-steps [aria-current=step] .step-label { font-weight: 700; color: var(--link); }
.step-help { color: var(--muted); margin-block: .45rem 1.3rem; font-size: 1rem; }
#step-heading-2 { margin-bottom: 1.25rem; }
.visit-options { max-width: 29rem; }
.visit-options summary {
  display: list-item; width: fit-content; max-width: 100%; min-height: 44px;
  padding: .55rem .9rem; color: var(--link); border: 1px solid var(--field-edge);
  border-radius: .375rem; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.visit-options[open] summary { margin-bottom: .85rem; }
.visit-options:not([open]) .visit-close-label, .visit-options[open] .visit-open-label { display: none; }
.visit-hours { margin: 0 0 1.25rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.visit-hours span { display: block; }
.service-options { display: grid; gap: .65rem; }
.service-choice {
  display: grid;
  grid-template-columns: 3.35rem minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: 1rem;
  padding: .5rem 1.1rem .5rem .5rem;
  border: 1px solid var(--field-edge);
  border-radius: .5rem;
  cursor: pointer;
  line-height: 1.3;
}
.service-choice input { grid-column: 3; grid-row: 1; }
.service-image { grid-column: 1; grid-row: 1; width: 3.35rem; height: 3.35rem; object-fit: cover; border-radius: .25rem; }
.service-copy { grid-column: 2; grid-row: 1; }
.service-copy :is(strong, small) { display: block; }
.service-copy strong { font-size: 1.125rem; font-weight: 600; }
.service-copy small { margin-top: .12rem; color: var(--muted); font-size: .9375rem; }
.quote-panel input:is([type=checkbox], [type=radio]) { width: 1.22rem; height: 1.22rem; flex: none; margin: 0; accent-color: var(--blue); }
:is(.service-choice, .check-option):has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: 2px; }
:is(.service-choice, .check-option):has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #eff5ff; }
.step-actions { display: flex; align-items: stretch; justify-content: flex-end; gap: .65rem; margin-top: 1.4rem; }
.quote-panel :is(.primary-action, .back-action) {
  min-height: 48px; border: 1px solid transparent; border-radius: .375rem; padding: .65rem 1.35rem;
  font-weight: 600; line-height: 1.4;
}
.quote-panel .primary-action { background: var(--blue); color: white; }
.quote-panel .back-action { border-color: var(--field-edge); background: white; color: var(--ink); }
.quote-panel button:disabled { opacity: .65; cursor: wait; }
@media (hover: hover) {
  :is(.service-choice, .check-option):hover { border-color: var(--link); background: var(--pale); }
  .quote-panel .primary-action:hover { background: var(--link); }
  .quote-panel .back-action:hover { border-color: var(--link); }
}
.detail-block legend + .count-fields { margin-top: .75rem; }
.quote-panel .detail-block { margin-bottom: 1.4rem; }
.detail-block legend, .method-list legend { font-size: 1.125rem; font-weight: 600; }
.check-grid, .count-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.check-grid { margin-top: .55rem; }
.check-option {
  display: flex; align-items: center; gap: .65rem; min-height: 48px; padding: .55rem .75rem;
  border: 1px solid var(--field-edge); border-radius: .375rem; line-height: 1.4; cursor: pointer;
}
.field { margin-block: 1.1rem; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
  margin-block: 1.1rem;
}
.field-grid > .field { margin: 0; }
.field label, .field label > span { display: block; }
.field > label[for], .field label > span { margin-bottom: .4rem; font-weight: 600; }
.field small { font-weight: 400; font-size: .9375rem; color: var(--muted); }
.field :is(input, select, textarea) {
  display: block; width: 100%; min-height: 48px; padding: .65rem .85rem;
  border: 1px solid var(--field-edge); border-radius: .375rem; background: white; line-height: 1.45;
}
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 13px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input[name=zip] { max-width: 12rem; }
.method-list .check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-block .count-fields > .field { margin-top: 0; }
@media (min-width: 381px) {
  .count-fields > .field { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-items: start; }
}
.field textarea { resize: vertical; }
.field ::placeholder { color: #586780; }
.count-fields .field { margin-bottom: 0; }
.consent { display: flex; align-items: flex-start; gap: .65rem; min-height: 44px; margin-top: 1rem; cursor: pointer; }
.quote-panel .consent input { margin-top: .26rem; }
.form-error { color: var(--field-error); margin: .4rem 0; line-height: 1.45; }
.form-error:empty { display: none; }
.quote-panel [aria-invalid=true], .quote-panel [aria-invalid=true] :is(.service-choice, .check-option) { border-color: var(--field-error); }
.success-check { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--pale); color: var(--link); margin-bottom: 1rem; }
.success-state p { margin-top: .7rem; color: var(--muted); }
.back-home { display: inline-flex; align-items: center; min-height: 44px; margin-top: .6rem; }
.project-card { min-width: 0; }
.project-photo { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: 48% 56%; border-radius: .5rem; }
.project-card figcaption { margin-top: .55rem; font-size: .9375rem; color: var(--muted); }
.project-card figcaption span { padding-inline: .18rem; }
.project-card blockquote { margin: 1.75rem 0 .6rem; border-top: 1px solid var(--line); padding-top: 1.35rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.35; font-weight: 500; }
.review-credit { font-size: .9375rem; color: var(--muted); }
.review-credit span { padding-inline: .15rem; }
.quote-panel .venpro-measurement-inline { font-family: var(--display); margin: 1.5rem 0 0; }
.estimate-wizard .site-end { padding-bottom: 1.75rem; }
#website-analytics-status:empty { display: none; }
.website-analytics-toggle { background: transparent; border: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

@media (max-width: 859px) {
  .estimate-layout { grid-template-columns: minmax(0, 1fr); max-width: 40rem; padding-block: 1.8rem 3rem; }
  .project-card { display: none; }
}
@media (max-width: 530px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .estimate-layout { padding-top: 1.45rem; }
  .progress-status { margin-bottom: 1.25rem; }
  .service-choice { grid-template-columns: 2.85rem minmax(0, 1fr) 1.22rem; gap: .65rem; padding: .45rem .75rem .45rem .45rem; }
  .service-image { width: 2.85rem; height: 2.85rem; }
  .service-copy strong { font-size: var(--body-size); }
  .service-copy small { font-size: .875rem; }
  .step-actions .primary-action { flex: 1; }
}
@media (max-width: 380px) {
  .check-grid, .count-fields, .method-list .check-grid { grid-template-columns: minmax(0, 1fr); }
  .count-fields { gap: 0; }
}
@media (forced-colors: active) {
  .estimate-steps [aria-current=step] .step-number { outline: 2px solid Highlight; }
  :is(.service-choice, .check-option):has(input:checked) { border: 2px solid Highlight; }
  .field select { appearance: auto; }
}
