/* Quote form, sitewide dialog and the residential carpet estimator. */
.jq-dialog, .jq-contact, .jq-estimator {
  --jq-line: #b8c7cf; --jq-muted: #516470; --jq-ink: #142d40; --jq-blue: #1e4df3;
  color: var(--jq-ink); text-align: left; font-family: inherit;
}
html:has(.jq-dialog[open]) {overflow: hidden}
.jq-dialog [hidden], .jq-contact [hidden], .jq-estimator [hidden] {display: none !important}
.jq-contact h2 {margin: 0; font-family: inherit; color: var(--jq-ink); font-size: clamp(26px, 3vw, 35px); font-weight: 550; letter-spacing: -.055em; line-height: 1.1}
.jq-fields {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px}
.jq-field {display: grid; gap: 4px; align-content: start; min-width: 0; margin: 0 0 12px}
.jq-field > span {font-size: .88rem; font-weight: 620; line-height: 1.4}
.jq-field input, .jq-field textarea, .jq-room-controls input {
  display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; margin: 0;
  appearance: none; font: inherit; font-size: 1rem; line-height: 1.3;
  color: var(--jq-ink); background-color: white; border: 1px solid var(--jq-line); border-radius: 3px;
}
.jq-field :is(input,textarea)::placeholder {color: #687780}
.jq-field textarea {resize: vertical}
.jq-estimator :is(button, input, a):focus-visible, .jq-contact :is(input, textarea, summary, button, a):focus-visible {outline: 2px solid var(--jq-blue); outline-offset: 2px}
.jq-choice input {position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer}
.jq-choice-group {min-width: 0; margin: 0; padding: 0; border: 0}
.jq-choice-group > legend {padding: 0; margin-bottom: 7px; color: var(--jq-ink); font-size: .88rem; font-weight: 630; line-height: 1.4}
.jq-choice-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px}
.jq-choice {position: relative; min-width: 0; display: flex; cursor: pointer}
.jq-choice > span {
  display: flex; align-items: center; width: 100%; min-height: 46px; padding: 7px 24px 7px 12px;
  border: 1px solid #afc0c9; border-radius: 3px; color: var(--jq-ink); background: #fff;
  font-size: .93rem; font-weight: 550; line-height: 1.25; overflow-wrap: break-word;
}
.jq-choice > span::after {
  content: ""; position: absolute; right: 9px; top: calc(50% - 4px); width: 9px; height: 5px;
  border: solid currentColor; border-width: 0 0 1.7px 1.7px; transform: rotate(-45deg); opacity: 0;
}
.jq-choice input:checked + span::after {opacity: 1}
.jq-choice input:checked + span {border-color: #2955bd; background: #e7efff; color: #123a96; box-shadow: inset 0 0 0 1px #2955bd}
.jq-choice input:focus + span {outline: 2px solid var(--jq-blue); outline-offset: 2px}
.jq-scope-choices {margin-bottom: 14px}
.jq-fields > .jq-scope-choices {grid-column: 1 / -1}
.jq-scope-choices .jq-choice-grid {display: flex; flex-wrap: wrap}
.jq-scope-choices .jq-choice {max-width: 100%}
.jq-scope-choices .jq-choice > span {justify-content: center; min-height: 44px; padding: 7px 24px 7px 12px; text-align: center; font-size: .88rem}
.jq-more-services > summary, .jq-change-service {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0;
  color: #153fa9; background: transparent; font-family: inherit; font-size: .87rem; font-weight: 620; line-height: 1.3; cursor: pointer;
}
.jq-more-services > summary {gap: 8px; list-style: none}
.jq-more-services > summary::-webkit-details-marker {display: none}
.jq-more-services > summary::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: linear-gradient(currentColor,currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor,currentColor) center / 1.5px 11px no-repeat;
}
.jq-more-services[open] > summary::before {background-size: 11px 1.5px, 0 0}
.jq-more-services[open] > .jq-choice-grid {margin-bottom: 8px}
.jq-change-service {text-decoration: underline; text-underline-offset: 3px}
.jq-picked {display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 12px; border-left: 2px solid #375cb2; background: #eaf0f5}
.jq-picked > div {min-width: 0}
.jq-picked span {display: block; margin-bottom: 2px; color: var(--jq-muted); font-size: .78rem; font-weight: 500; line-height: 1.3}
.jq-picked-name {display: block; font-size: 1.04rem; font-weight: 620; line-height: 1.24; overflow-wrap: break-word}
.jq-change-service {flex: none}
.jq-contact > .jq-service-picker {margin-bottom: 12px}
@media (hover: hover) {
  .jq-choice:hover > span {border-color: #52728a; background: #f3f7fb}
  .jq-choice:hover input:checked + span {background: #dfe9fc}
  :is(.jq-more-services > summary, .jq-change-service):hover {color: #0b2c7b; text-decoration: underline; text-underline-offset: 3px}
}
.jq-contact-fields .jq-field:last-child {grid-column: 1 / -1}
.jq-more, .jq-commercial-extra {margin: 2px 0 10px; border-block: 1px solid #c9d4d9}
.jq-more > summary, .jq-commercial-extra summary {padding: 11px 0; min-height: 44px; font-size: .91rem; font-weight: 610; cursor: pointer}
.jq-more > summary span {font-size: .83rem; font-weight: 400; color: var(--jq-muted)}
.jq-more[open] > summary {margin-bottom: 4px}
.jq-check {display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 0; cursor: pointer}
.jq-check input {appearance: auto; accent-color: var(--jq-blue); width: 19px; height: 19px; flex: none; margin: 0}
.jq-check > span, .jq-room label {font-size: .94rem; font-weight: 580; line-height: 1.35}
.jq-check > small {margin-left: auto; white-space: nowrap; font-size: .88rem; color: var(--jq-muted)}
.jq-financing {margin: 1px 0 11px}
.jq-financing span small {display: block; margin-top: 2px; color: var(--jq-muted); font-size: .81rem; font-weight: 400}
.jq-action {display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 12px 16px; min-height: 46px; width: fit-content; border: 1px solid var(--jq-blue); border-radius: 3px; background: var(--jq-blue); color: #fff; text-decoration: none; font-family: inherit; font-weight: 620; font-size: .95rem; line-height: 1.35; cursor: pointer}
.jq-action:hover {background: #1238bc; border-color: #1238bc; color: #fff}
.jq-submit {width: 100%}
.jq-error {color: #913c30; font-size: .9rem; margin: 8px 0}
.jq-notice {border-left: 2px solid var(--jq-blue); background: #edf1ff; padding: 12px 14px; margin: 13px 0 0; color: #253e68; font-size: .91rem}
.jq-notice a {color: inherit; text-decoration: underline}
.jq-total output {font-size: clamp(26px, 3.3vw, 36px); line-height: 1.15; font-weight: 560; font-variant-numeric: tabular-nums; letter-spacing: -.055em}
.jq-room {display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 7px}
.jq-room label small {display: block; margin-top: 3px; color: var(--jq-muted); font-size: .81rem; line-height: 1.35; font-weight: 400}
.jq-room-controls {display: inline-flex; align-items: center; flex: none; border: 1px solid #acbec8; border-radius: 2px; background: white}
.jq-room-controls button {flex: none; display: grid; place-items: center; padding: 0; width: 44px; height: 44px; border: 0; font: inherit; font-size: 1.3rem; font-weight: 500; color: #22446f; background: transparent; cursor: pointer}
.jq-room-controls button:disabled {opacity: .35; cursor: default}
.jq-room-controls input {width: 38px; text-align: center; padding: 3px 0; border: 0; border-radius: 0; appearance: textfield; -moz-appearance: textfield; font-variant-numeric: tabular-nums}
.jq-room-controls input::-webkit-inner-spin-button, .jq-room-controls input::-webkit-outer-spin-button {appearance: none; margin: 0}
.jq-extras {display: grid; gap: 5px; margin: 10px 0}
.jq-extras .jq-check {padding: 7px 10px; border: 1px solid #b5c4cb; border-radius: 3px; background: #fff}
.jq-extras .jq-check:has(input:checked) {border-color: #5377b2; background: #e9f0fe}
.jq-dialog .jq-hint, .jq-contact .jq-hint, .jq-estimator .jq-hint {margin: 6px 0 11px; color: var(--jq-muted); font-size: .85rem; line-height: 1.45}
.jq-total {display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 0}
.jq-contact, .jq-estimator {min-width: 0; padding: clamp(20px, 4vw, 45px); background: #f1f5f5; border: 1px solid #d8e2e4; scroll-margin-top: 90px}
.jq-contact .jq-hint {margin-bottom: 20px}
.jq-contact-estimate {display: inline-flex; align-items: center; min-height: 44px; margin: -4px 0 12px; color: #153fa9; font-size: .91rem; font-weight: 600; text-underline-offset: 3px}
html:not([data-preview]) .jq-noscript-preview {display: none}
@media (max-width: 590px) {
  .jq-fields {column-gap: 9px}
}
@media (max-width: 440px) {
  .jq-contact .jq-fields {grid-template-columns: 1fr}
  .jq-field input, .jq-field textarea {padding-left: 8px}
  .jq-choice > span {padding-inline-start: 9px; font-size: .9rem}
}
@media (max-width: 365px) {
  .jq-change-subject {display: none}
  .jq-room {display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; font-size: .94rem; font-weight: 580}
  .jq-room label {display: contents}
  .jq-room label small {grid-area: 2 / 1 / 3 / -1; margin: 0}
  .jq-room-controls {grid-area: 1 / 2}
}
@media (forced-colors: active) {
  .jq-choice input:checked + span {border: 3px solid Highlight}
}

/* Three-step quote sheet */
.jq-dialog {
  --jq-ink: #181f28;
  --jq-muted: #556070;
  --jq-line: #b5c1ce;
  --jq-rule: #dce2e8;
  --jq-blue: #294cec;
  --jq-inset: 30px;
  --jq-height: min(90vh, 840px);
  --jq-height: min(90dvh, 840px);
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(590px, calc(100% - 40px)); max-width: none; max-height: var(--jq-height);
  overflow: hidden; overscroll-behavior: contain; border: 0; border-radius: 0;
  background: white; box-shadow: 0 30px 95px rgb(6 19 33 / .33);
}
.jq-dialog::backdrop {background: rgb(6 16 30 / .65); backdrop-filter: blur(5px)}
.jq-shell {display: flex; flex-direction: column; min-width: 0; max-height: var(--jq-height)}
.jq-titlebar {
  display: flex; align-items: flex-start; justify-content: space-between; flex: none; gap: 16px;
  padding: 25px var(--jq-inset) 18px; border-bottom: 1px solid var(--jq-rule); background: white;
}
.jq-titlebar > div {min-width: 0}
.jq-brand {display: block; margin: 0 0 7px; color: var(--jq-blue); font-size: .67rem; line-height: 1.4; font-weight: 680; letter-spacing: .13em; text-transform: uppercase}
.jq-titlebar h2 {margin: 0; color: var(--jq-ink); font: 710 clamp(1.35rem, 2.6vw, 1.72rem)/1.18 var(--display); letter-spacing: -.045em; overflow-wrap: break-word}
.jq-titlebar h2:focus {outline: none}
.jq-titlebar #quote-subtitle {margin: 6px 0 0; color: var(--jq-muted); font-size: .93rem; line-height: 1.45}
.jq-close {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 0; color: var(--jq-ink); background: #eef1f4; cursor: pointer;
}
.jq-close svg {width: 19px; height: 19px; stroke-width: 2.1}
.jq-dialog form {min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; scroll-padding-block: 8px}
.jq-body {padding: 15px var(--jq-inset) 30px}
.jq-progress {display: flex; gap: 5px; margin-bottom: 18px}
.jq-progress > [data-step-mark] {flex: 1; height: 3px; background: #dce6ee}
.jq-progress > .is-active {background: var(--jq-blue)}
.jq-step, .jq-step > * {min-width: 0}
.jq-service-list {display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px}
.jq-service-card {
  display: grid; align-content: center; gap: 2px; width: 100%; min-height: 65px;
  padding: 11px 16px; border: 1px solid var(--jq-rule); border-radius: 0;
  background: white; color: var(--jq-ink); text-align: left; cursor: pointer;
}
.jq-service-card strong {color: #2e70d2; font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.014em}
.jq-service-card > span {color: var(--jq-muted); font-size: .85rem; line-height: 1.35}
.jq-dialog :is(.jq-change-service, .jq-back) {
  display: inline-flex; align-items: center; min-height: 44px; margin: -7px 0 12px; padding: 0;
  border: 0; color: var(--jq-blue); background: transparent; font: 660 .89rem/1.4 var(--display); text-decoration: none;
}
.jq-dialog .jq-field > span, .jq-dialog legend {font-weight: 660}
.jq-dialog :is(.jq-field input, .jq-field textarea, .jq-room > input) {
  display: block; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--jq-line); border-radius: 0; color: var(--jq-ink); background: white; font-family: inherit; font-size: 1rem;
}
.jq-dialog .jq-room {display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 13px}
.jq-dialog .jq-room label {display: block; font-size: .9rem; line-height: 1.4}
.jq-dialog .jq-room label strong {font-weight: 680}
.jq-dialog .jq-room label small {display: block; margin: 5px 0 0; font-size: .82rem; font-weight: 400; color: var(--jq-muted)}
.jq-dialog .jq-room > input {height: 50px; font-weight: 670; appearance: textfield; font-variant-numeric: tabular-nums}
.jq-dialog .jq-room > input::-webkit-inner-spin-button, .jq-dialog .jq-room > input::-webkit-outer-spin-button {appearance: none; margin: 0}
.jq-dialog .jq-extras {display: grid; gap: 8px; margin: 0}
.jq-dialog .jq-extras .jq-check {
  display: flex; align-items: center; gap: 12px; min-height: 47px; margin: 0; padding: 8px 14px;
  border: 1px solid var(--jq-rule); border-radius: 0; background: white;
}
.jq-dialog .jq-extras .jq-check input {
  display: grid; place-items: center; width: 18px; height: 18px; appearance: none; cursor: pointer;
  border: 1.5px solid #818995; border-radius: 4px; background: white;
}
.jq-dialog .jq-extras .jq-check input:checked {background: var(--jq-blue); border-color: var(--jq-blue)}
.jq-dialog .jq-extras .jq-check input:checked::after {content: ""; width: 9px; height: 5px; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg)}
.jq-dialog .jq-extras .jq-check span {font-size: .9rem; font-weight: 650}
.jq-dialog .jq-extras .jq-check b {margin-left: auto; white-space: nowrap; color: var(--jq-blue); font-size: .91rem; font-weight: 690}
.jq-dialog .jq-extras .jq-check:has(input:checked) {background: #f0f5ff; border-color: #748fe1}
.jq-estimate-card {display: grid; gap: 6px; margin: 15px 0; padding: 16px; background: #ebf1f6}
.jq-estimate-card > span {color: var(--jq-muted); text-transform: uppercase; font-size: .69rem; line-height: 1.4; font-weight: 720; letter-spacing: .11em}
.jq-estimate-card output {color: var(--jq-ink); font-size: 1.8rem; line-height: 1.23; letter-spacing: -.04em; font-weight: 710; font-variant-numeric: tabular-nums}
.jq-estimate-card small {color: var(--jq-muted); font-size: .79rem; line-height: 1.45}
.jq-dialog :is(.jq-continue, .jq-submit) {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 49px;
  margin: 0; padding: 12px; border: 1px solid var(--jq-blue); border-radius: 0; background: var(--jq-blue);
  color: white; font: 620 .98rem/1.35 var(--display); text-align: center; cursor: pointer;
}
.jq-dialog .jq-property button {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--jq-line); border-radius: 0;
  background: white; color: var(--jq-ink); font-size: .9rem; font-weight: 610; cursor: pointer;
}
.jq-dialog .jq-property button[aria-pressed="true"] {color: #173c9d; border-color: #5978c8; background: #e8efff; box-shadow: inset 0 0 0 1px #5978c8}
.jq-review {display: grid; gap: 3px; margin-bottom: 16px; padding: 13px 15px; background: #ebf1f6}
.jq-review strong {font-size: 1rem; line-height: 1.35; font-weight: 670}
.jq-review span {color: var(--jq-muted); font-size: .86rem; line-height: 1.4}
.jq-dialog .jq-financing {min-height: 49px; margin: 10px 0 16px; padding: 10px 12px; border: 1px solid var(--jq-rule)}
.jq-dialog .jq-optional {margin: 4px 0 12px; border-block: 1px solid var(--jq-rule)}
.jq-dialog .jq-optional > summary {display: list-item; min-height: 44px; padding: 11px 0; font-size: .88rem; font-weight: 650; cursor: pointer}
.jq-dialog .jq-optional[open] > summary {margin-bottom: 5px}
.jq-dialog :is(button, input, textarea, summary, a):focus-visible {outline: 2px solid #3978da; outline-offset: 2px}
.jq-dialog .jq-service-card:focus-visible {border-color: var(--jq-blue)}
@media (hover: hover) {
  .jq-close:hover {background: #dce3e9}
  .jq-service-card:hover {background: #f5f8ff; border-color: #86a8e5}
  .jq-dialog :is(.jq-change-service, .jq-back):hover {text-decoration: underline; text-underline-offset: 3px}
  .jq-dialog :is(.jq-continue, .jq-submit):hover {background: #1e3cc4; border-color: #1e3cc4}
}
@media (max-width: 680px), (pointer: coarse) and (max-height: 540px) and (max-width: 1024px) {
  .jq-dialog {
    --jq-height: 100vh; --jq-height: 100dvh; --jq-inset: max(18px, calc((100vw - 650px) / 2));
    width: 100%; height: var(--jq-height); margin: 0;
  }
  .jq-shell {height: 100%}
  .jq-titlebar {gap: 10px; padding: calc(15px + env(safe-area-inset-top, 0px)) max(var(--jq-inset), env(safe-area-inset-right, 0px)) 12px max(var(--jq-inset), env(safe-area-inset-left, 0px))}
  .jq-brand {margin-bottom: 7px; font-size: .635rem; letter-spacing: .12em}
  .jq-titlebar h2 {font-size: 1.3rem; line-height: 1.2; letter-spacing: -.035em}
  .jq-titlebar #quote-subtitle {margin-top: 6px; font-size: .8rem}
  .jq-body {padding: 12px max(var(--jq-inset), env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(var(--jq-inset), env(safe-area-inset-left, 0px))}
  .jq-progress {margin-bottom: 15px}
  .jq-service-list {gap: 7px}
  .jq-service-card {min-height: 60px; padding: 10px 14px}
  .jq-service-card strong {font-size: .92rem}
  .jq-service-card > span {font-size: .79rem}
  .jq-dialog :is(.jq-change-service, .jq-back) {font-size: .85rem}
  .jq-dialog .jq-room label, .jq-dialog .jq-extras .jq-check span {font-size: .85rem}
  .jq-dialog .jq-room label small {font-size: .77rem}
  .jq-dialog .jq-extras .jq-check b {font-size: .87rem}
  .jq-estimate-card output {font-size: 1.7rem}
  .jq-estimate-card small {font-size: .74rem}
  .jq-estimate-card {padding: 14px}
  .jq-dialog .jq-contact-fields {grid-template-columns: minmax(0, 1fr)}
}
@media (max-width: 359px) {
  .jq-dialog {--jq-inset: 14px}
}
@media (max-height: 480px) {
  .jq-dialog {--jq-height: 100vh; --jq-height: 100dvh}
  .jq-titlebar {padding-block: max(8px, env(safe-area-inset-top, 0px)) 8px}
  .jq-titlebar h2 {font-size: 1.22rem}
  .jq-brand {margin-bottom: 2px}
  .jq-titlebar #quote-subtitle {margin-top: 2px; font-size: .8rem}
}
@media (forced-colors: active) {
  .jq-close, .jq-estimate-card {border: 1px solid ButtonText}
  .jq-dialog .jq-extras .jq-check input {appearance: auto}
  .jq-dialog .jq-extras .jq-check input:checked::after {display: none}
  .jq-dialog .jq-property button[aria-pressed="true"] {border: 3px solid Highlight}
  .jq-progress > [data-step-mark] {border-top: 1px solid GrayText}
  .jq-progress > .is-active {border-top: 3px solid Highlight}
}
@media (prefers-reduced-motion: no-preference) {
  .jq-dialog[open] {animation: jq-enter .18s cubic-bezier(.2,.7,.2,1)}
  @keyframes jq-enter {from {opacity: .3; transform: translateY(4px)} to {opacity: 1; transform: none}}
}
