/* NumeralQ quote comparison — intentionally scoped to the Phase 2 mount. */
#quote-check {
  --qc-ink: #18213f;
  --qc-muted: #56627c;
  --qc-line: #dce2f1;
  --qc-paper: #ffffff;
  --qc-wash: #f4f6fc;
  --qc-indigo: #4f46e5;
  --qc-indigo-deep: #3934b8;
  --qc-teal: #167d72;
  --qc-amber: #a15b16;
  --qc-red: #a64242;
  --qc-radius: 16px;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 64px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 5%, rgba(211, 217, 255, 0.48), transparent 38%),
    #f5f6fc;
  color: var(--qc-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
}

#quote-check[hidden] {
  display: none !important;
}

#quote-check [hidden] {
  display: none !important;
}

#quote-check,
#quote-check * {
  box-sizing: border-box;
}

#quote-check .qc-container {
  width: min(100%, 1000px);
  min-width: 0;
  margin-inline: auto;
}

#quote-check .qc-heading {
  position: static;
  z-index: auto;
  max-width: 700px;
  margin-bottom: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--qc-ink);
}

#quote-check .qc-heading .hp-eyebrow {
  margin-bottom: 10px;
}

#quote-check .qc-heading .hp-h2 {
  margin: 0;
  color: var(--qc-ink);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: left;
}

#quote-check .qc-heading .hp-lead {
  margin: 12px 0 0;
  color: var(--qc-muted);
  font-size: 17px;
  line-height: 1.6;
}

#quote-check .qc-card,
#quote-check .qc-form-card {
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #e0e4f0;
  border-radius: var(--qc-radius);
  background: var(--qc-paper);
  box-shadow: 0 14px 40px rgba(38, 48, 92, 0.07);
}

#quote-check .qc-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
  min-width: 0;
}

#quote-check .qc-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

#quote-check .qc-field-project,
#quote-check .qc-field-size,
#quote-check .qc-form-actions,
#quote-check .qc-error,
#quote-check .qc-help,
#quote-check .qc-validation,
#quote-check .qc-size-note {
  grid-column: 1 / -1;
}

#quote-check .qc-label {
  color: var(--qc-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

#quote-check .qc-control,
#quote-check select.qc-control,
#quote-check input.qc-control,
#quote-check .qc-field select,
#quote-check .qc-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd3e5;
  border-radius: 9px;
  appearance: none;
  background-color: #fff;
  color: #202a49;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

#quote-check select.qc-control,
#quote-check .qc-field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3.5 6 4.5 4 4.5-4' stroke='%2356627c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

#quote-check .qc-control::placeholder,
#quote-check .qc-field input::placeholder {
  color: #8992a8;
  opacity: 1;
}

#quote-check .qc-control:hover,
#quote-check .qc-field select:hover,
#quote-check .qc-field input:hover {
  border-color: #9da8c6;
}

#quote-check .qc-control:focus,
#quote-check .qc-field select:focus,
#quote-check .qc-field input:focus {
  border-color: var(--qc-indigo);
  outline: 3px solid rgba(79, 70, 229, 0.16);
  outline-offset: 1px;
}

#quote-check .qc-control[aria-invalid="true"],
#quote-check .qc-field [aria-invalid="true"] {
  border-color: #b94c4c;
  background-color: #fffafa;
}

#quote-check .qc-price-wrap {
  position: relative;
  min-width: 0;
}

#quote-check .qc-price-prefix {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: #626d86;
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
  transform: translateY(-50%);
}

#quote-check .qc-price-wrap .qc-control,
#quote-check .qc-price-wrap input {
  padding-left: 32px;
}

#quote-check .qc-help,
#quote-check .qc-size-note {
  margin: 0;
  color: var(--qc-muted);
  font-size: 13px;
  line-height: 1.5;
}

#quote-check .qc-error,
#quote-check .qc-validation {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #edcaca;
  border-radius: 9px;
  background: #fff5f4;
  color: #842e31;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

#quote-check .qc-error:empty,
#quote-check .qc-validation:empty {
  display: none;
}

#quote-check .qc-error[hidden],
#quote-check .qc-validation[hidden] {
  display: none !important;
}

#quote-check .qc-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

#quote-check .qc-submit,
#quote-check button.qc-submit {
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--qc-indigo);
  border-radius: 9px;
  background: var(--qc-indigo);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#quote-check .qc-submit:hover:not(:disabled) {
  border-color: var(--qc-indigo-deep);
  background: var(--qc-indigo-deep);
  transform: translateY(-1px);
}

#quote-check .qc-submit:focus-visible,
#quote-check .qc-methodology-link:focus-visible,
#quote-check .qc-contractor-cta:focus-visible,
#quote-check .qc-disclosure summary:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.34);
  outline-offset: 3px;
}

#quote-check .qc-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

#quote-check .qc-loading,
#quote-check .qc-status {
  margin: 0;
  color: var(--qc-muted);
  font-size: 14px;
}

#quote-check .qc-loading[hidden],
#quote-check .qc-status[hidden] {
  display: none !important;
}

#quote-check .qc-result {
  min-width: 0;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #dfe4f1;
  border-radius: var(--qc-radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(38, 48, 92, 0.07);
  overflow-wrap: anywhere;
}

#quote-check .qc-result[hidden] {
  display: none !important;
}

#quote-check .qc-result-heading {
  margin: 0 0 8px;
  color: var(--qc-ink);
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

#quote-check .qc-result-copy {
  max-width: 760px;
  margin: 0;
  color: #495570;
  font-size: 16px;
  line-height: 1.6;
}

#quote-check .qc-result[data-result="below"],
#quote-check .qc-result-below {
  --qc-result-accent: #a15b16;
}

#quote-check .qc-result[data-result="within"],
#quote-check .qc-result-within {
  --qc-result-accent: #167d72;
}

#quote-check .qc-result[data-result="above"],
#quote-check .qc-result-above {
  --qc-result-accent: #5d55c9;
}

#quote-check .qc-result[data-result],
#quote-check .qc-result-below,
#quote-check .qc-result-within,
#quote-check .qc-result-above {
  border-top: 4px solid var(--qc-result-accent, var(--qc-indigo));
}

#quote-check .qc-range {
  min-width: 0;
  margin: 28px 0 20px;
  padding: 0 4px;
}

#quote-check .qc-range-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 16px;
  margin-bottom: 12px;
  color: var(--qc-ink);
  font-size: 14px;
  font-weight: 700;
}

#quote-check .qc-range-track {
  position: relative;
  min-width: 0;
  height: 18px;
  margin: 24px 0 13px;
  border: 1px solid #d8deeb;
  border-radius: 999px;
  background: #edf0f6;
}

#quote-check .qc-range-band {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: var(--qc-range-start, 28%);
  width: var(--qc-range-width, 44%);
  min-width: 12px;
  border: 1px solid #a8a5ef;
  border-radius: 999px;
  background: #dcdcff;
}

#quote-check .qc-range-marker {
  position: absolute;
  top: 50%;
  left: clamp(0%, var(--qc-quote-position, 50%), 100%);
  z-index: 1;
  width: 18px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--qc-result-accent, var(--qc-indigo));
  box-shadow: 0 0 0 2px var(--qc-result-accent, var(--qc-indigo)), 0 3px 8px rgba(24, 33, 63, 0.2);
  transform: translate(-50%, -50%);
}

#quote-check .qc-range-marker-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: clamp(0%, var(--qc-quote-position, 50%), 100%);
  z-index: 2;
  max-width: min(190px, 44vw);
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--qc-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  transform: translateX(-50%);
}

#quote-check .qc-range-labels {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #626d86;
  font-size: 13px;
  line-height: 1.4;
}

#quote-check .qc-range-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

#quote-check .qc-range-label-low {
  text-align: left;
}

#quote-check .qc-range-label-high {
  text-align: right;
}

#quote-check .qc-range-text,
#quote-check .qc-range-equivalent {
  margin: 12px 0 0;
  color: #4b5772;
  font-size: 14px;
  line-height: 1.5;
}

#quote-check .qc-typical {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f2f3fb;
  color: #525d78;
  font-size: 13px;
  line-height: 1.45;
}

#quote-check .qc-size-disclosure,
#quote-check .qc-size-default-note {
  margin: 13px 0 0;
  color: #626d86;
  font-size: 13px;
  line-height: 1.5;
}

#quote-check .qc-disclosure {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid #c7c9ef;
  border-radius: 0 8px 8px 0;
  background: #f5f6fb;
  color: #4e5a75;
  font-size: 13px;
  line-height: 1.55;
}

#quote-check .qc-disclosure p {
  margin: 0;
}

#quote-check .qc-disclosure summary {
  color: var(--qc-ink);
  cursor: pointer;
  font-weight: 700;
}

#quote-check .qc-disclosure[open] summary {
  margin-bottom: 8px;
}

#quote-check .qc-result-links {
  margin-top: 16px;
}

#quote-check .qc-methodology-link {
  color: var(--qc-indigo-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#quote-check .qc-contractor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 22px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #d9dcf6;
  border-radius: 12px;
  background: #f6f6ff;
}

#quote-check .qc-contractor-copy {
  min-width: 0;
}

#quote-check .qc-contractor-title {
  margin: 0;
  color: var(--qc-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#quote-check .qc-contractor-text {
  margin: 4px 0 0;
  color: #56627c;
  font-size: 14px;
  line-height: 1.5;
}

#quote-check .qc-contractor-cta {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--qc-indigo);
  border-radius: 8px;
  background: var(--qc-indigo);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#quote-check .qc-contractor-cta:hover {
  border-color: var(--qc-indigo-deep);
  background: var(--qc-indigo-deep);
  transform: translateY(-1px);
}

#quote-check .qc-empty,
#quote-check .qc-error-state {
  margin-top: 22px;
  padding: 17px 19px;
  border: 1px solid #e5d8c9;
  border-radius: 10px;
  background: #fffaf4;
  color: #654d39;
  font-size: 14px;
  line-height: 1.55;
}

#quote-check .qc-empty[hidden],
#quote-check .qc-error-state[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  #quote-check {
    padding: 48px 18px;
  }

  #quote-check .qc-container {
    width: 100%;
  }

  #quote-check .qc-form {
    grid-template-columns: minmax(0, 1fr);
  }

  #quote-check .qc-field,
  #quote-check .qc-field-project,
  #quote-check .qc-field-size,
  #quote-check .qc-form-actions,
  #quote-check .qc-error,
  #quote-check .qc-help,
  #quote-check .qc-validation,
  #quote-check .qc-size-note {
    grid-column: 1;
  }

  #quote-check .qc-contractor {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
  }

  #quote-check .qc-contractor-cta,
  #quote-check .qc-submit {
    width: 100%;
    min-height: 50px;
  }
}

@media (max-width: 390px) {
  #quote-check {
    padding-inline: 16px;
  }

  #quote-check .qc-card,
  #quote-check .qc-form-card,
  #quote-check .qc-result {
    padding: 18px 16px;
  }

  #quote-check .qc-form {
    gap: 17px;
  }

  #quote-check .qc-range-labels {
    gap: 8px;
    font-size: 12px;
  }

  #quote-check .qc-contractor {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #quote-check .qc-control,
  #quote-check .qc-field select,
  #quote-check .qc-field input,
  #quote-check .qc-submit,
  #quote-check .qc-contractor-cta {
    scroll-behavior: auto;
    transition: none;
  }
}

.hero-price-panel .home-quote-check-link {
  display: inline-block;
  max-width: 100%;
  margin: 10px auto 0;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-price-panel .home-quote-check-link:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.35);
  outline-offset: 3px;
}
