/* Final responsive layout and interaction polish. */
.hero-picture {
  display: contents;
}
.why-cta,
.inline-cta,
.product-card a {
  text-decoration: none;
}
.quote-grid .section-heading > .button {
  margin-top: 24px;
}
.quote-grid .section-heading h2 {
  max-width: 580px;
}
.quote-factors > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.customer-reviews {
  border-bottom: 0;
}
.customer-card {
  align-self: stretch;
}
.header-inner > *,
.custom-layout > *,
.quote-grid > *,
.input-row > * {
  min-width: 0;
}
.footer-row {
  flex-wrap: wrap;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  max-width: 410px;
  margin-top: 26px;
}
.swatch {
  display: grid;
  grid-template-rows: 44px auto;
  align-content: start;
  justify-items: start;
  gap: 10px;
  width: 100%;
  padding: 5px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
.swatch i {
  display: block;
  width: 60px;
  height: 44px;
  margin: 0;
  border: 1px solid #aebac1;
  border-radius: 0;
  box-shadow: inset 0 0 0 3px #fff;
  background-size: cover;
  background-position: center;
}
.swatch[aria-pressed="true"] {
  color: var(--ink);
}
.swatch[aria-pressed="true"] i {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.finish-window-stage #finishWindow {
  aspect-ratio: 1;
}
.finish-window-stage #finishScene {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  aspect-ratio: 1;
  filter: none;
}
.finish-window-stage {
  border: 0;
}
.finish-window-stage #finishLabel {
  padding: 14px 0 0;
  font-size: 16px;
}
.thank-you-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.thank-you-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 90px 0;
  background: #f7f8f7;
}
.thank-you-content {
  width: 100%;
  max-width: 820px;
  text-align: center;
}
.thank-you-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 28px;
  color: var(--accent);
}
.thank-you-content h1 {
  font-size: clamp(32px, 3.7vw, 46px);
  line-height: 1.2;
  text-wrap: balance;
}
.thank-you-content p {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.6;
}
.thank-you-content .button {
  margin-top: 34px;
}
@media (max-width: 760px) {
  .hero {
    --mobile-hero-height: 620px;
  }
  .hero-image,
  .hero-shade {
    height: var(--mobile-hero-height);
  }
  .hero-image {
    object-position: center 43%;
  }
  .hero-shade {
    background: linear-gradient(
      180deg,
      #071d2966 0%,
      #071d2914 35%,
      #071d299e 60%,
      #071d29eb 100%
    );
  }
  .hero-grid {
    padding-top: 34px;
    padding-bottom: 28px;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    min-height: 540px;
    padding-bottom: 24px;
  }
  .hero-copy h1 {
    margin-top: auto;
    font-size: clamp(36px, 9.4vw, 43px);
    max-width: 365px;
    line-height: 1.12;
  }
  .hero-description {
    font-size: 16px;
    max-width: 350px;
    line-height: 1.6;
    margin-top: 22px;
  }
  .hero-copy .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .quote-form {
    margin-top: 0;
    padding: 24px 22px;
    box-shadow: 0 12px 32px #102f4614;
  }
  .input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .quote-form label,
  .quote-form legend {
    font-size: 14px;
  }
  .quote-form input:not([type="radio"]):not([type="hidden"]) {
    font-size: 16px;
    min-height: 48px;
    padding: 0 12px;
  }
  .quote-form label {
    margin-bottom: 16px;
  }
  .radio-group label {
    margin-bottom: 0;
  }
  .form-heading p:last-child {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .privacy {
    font-size: 12px;
    line-height: 1.5;
  }
  .quote-grid .section-heading > .button {
    margin-top: 22px;
  }
  .quote-grid {
    gap: 28px;
  }
  .quote-factors > div {
    padding-top: 17px;
  }
  .quote-factors {
    gap: 17px;
  }
  .swatches {
    gap: 9px;
    margin-top: 22px;
  }
  .swatch {
    font-size: 13px;
    grid-template-rows: 38px auto;
    gap: 10px;
    padding: 4px;
  }
  .swatch i {
    width: 52px;
    height: 38px;
  }
  .sample-note {
    line-height: 1.55;
    margin-top: 20px;
  }
  .customer-reviews-controls {
    row-gap: 12px;
  }
  .thank-you-main {
    padding: 68px 0;
  }
  .thank-you-content h1 {
    font-size: 33px;
  }
  .thank-you-content p {
    font-size: 17px;
  }
}
@media (max-width: 370px) {
  .header-inner {
    gap: 8px;
  }
  .logo img {
    width: 120px;
  }
  .header .compact {
    min-width: 92px;
    font-size: 12px;
  }
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero-copy h1 {
    font-size: 35px;
  }
  .quote-form {
    padding: 22px 18px;
  }
  .swatches {
    gap: 6px;
  }
  .swatch {
    font-size: 12px;
  }
  .swatch i {
    width: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Keep the brand intact wherever surrounding copy wraps. */
.brand-name { white-space: nowrap; }
.quote-form select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 45px;
  margin-top: 6px;
  padding: 0 40px 0 11px;
  border: 1px solid #cfd9df;
  border-radius: 2px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23102f46' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  appearance: none;
}
.quote-form select:invalid { color: #7a8790; }
.quote-form select option { color: var(--ink); }
.quote-form select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 760px) {
  .quote-form select { min-height: 48px; font-size: 16px; padding-left: 12px; }
}

/* Mobile header: call directly; quotation remains in the sticky bottom bar. */
@media (max-width: 760px) {
  .header .compact { display: none; }
  .header-call {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 14px;
  }
}
