/* The empty calculator opens as one address field. The existing map and choices
   appear only after the address integration has stored a selected address. */
.wds-roof-calculator.calculator-address-first {
  --step-one-navy: #08164c;
  --step-one-blue: #3e63ff;
  width: 100%;
  min-height: calc(100svh - 82px);
  padding: clamp(48px, 8vh, 84px) 24px 64px;
  color: var(--step-one-navy);
  font-family: Poppins, Inter, sans-serif;
}

.wds-roof-calculator.calculator-address-first .wds-roof-calculator__container {
  max-width: 860px;
  padding: 0;
}

.wds-roof-calculator.calculator-address-first .wds-roof-calculator__header,
.wds-roof-calculator.calculator-address-first .wds-roof-calculator__steps-wrapper,
.wds-roof-calculator.calculator-address-first .wds-roof-calculator__mobile-nav {
  display: none !important;
}

.wds-roof-calculator.calculator-address-first .wds-roof-calculator__main-content {
  display: block;
}

.wds-roof-calculator.calculator-address-first .wds-roof-calculator__map-wrapper {
  width: 100%;
  min-height: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wds-roof-calculator.calculator-address-first
  .wds-roof-calculator__map-wrapper
  .map-placeholder {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 720px;
  margin-inline: auto;
  min-height: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.calculator-address-intro,
.calculator-address-facts,
.calculator-address-help,
.calculator-address-label {
  display: none;
}

.wds-roof-calculator.calculator-address-first
  .map-placeholder
  > :not(.search-bar):not(.calculator-address-intro):not(.calculator-address-facts):not(.calculator-address-help) {
  display: none !important;
}

.wds-roof-calculator.calculator-address-first .calculator-address-intro {
  display: block;
  max-width: 100%;
  margin: 0 0 32px;
}

.wds-roof-calculator.calculator-address-first .calculator-address-intro__eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--step-one-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wds-roof-calculator.calculator-address-first .calculator-address-intro h2 {
  max-width: 680px;
  margin: 0;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.wds-roof-calculator.calculator-address-first .calculator-address-intro > p:last-child {
  max-width: 560px;
  margin: 14px 0 0;
  color: #505c7c;
  font-size: 17px;
  line-height: 1.6;
}

.wds-roof-calculator.calculator-address-first .map-placeholder .search-bar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: 20 !important;
  width: 100% !important;
  max-width: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.wds-roof-calculator.calculator-address-first .search-bar__input-group {
  border: 1px solid #b9c6e3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.wds-roof-calculator.calculator-address-first .search-bar__input {
  min-height: 72px;
  padding: 20px 124px 20px 22px !important;
  border: 0 !important;
  border-radius: 10px !important;
  outline: 0;
  color: var(--step-one-navy);
  background: transparent;
  font-family: inherit;
  font-size: 17px !important;
}

.wds-roof-calculator.calculator-address-first .search-bar__input::placeholder {
  color: #69738d;
  opacity: 1;
}

.wds-roof-calculator.calculator-address-first .search-bar__input-group:focus-within {
  border-color: var(--step-one-blue) !important;
  box-shadow: 0 0 0 3px rgba(62, 99, 255, 0.16) !important;
}

.wds-roof-calculator.calculator-address-first .search-bar__button {
  right: 10px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 96px;
  height: 48px;
  font: 500 15px/1 Poppins, Inter, sans-serif;
}

.wds-roof-calculator.calculator-address-first .search-bar__button:focus-visible {
  outline: 2px solid var(--step-one-navy);
  outline-offset: 3px;
}

.wds-roof-calculator.calculator-address-first .search-bar__suggestions {
  margin-top: 8px;
  overflow: hidden auto;
  border: 1px solid #cfd8ec;
  border-radius: 12px;
  box-shadow: none;
}

.wds-roof-calculator.calculator-address-first .search-bar__suggestions li {
  min-height: 50px;
  padding: 13px 16px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: 14px;
}

.wds-roof-calculator.calculator-address-first .calculator-address-facts {
  display: block;
  margin: 16px 0 0;
  padding: 0;
  color: #505c7c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.wds-roof-calculator.calculator-address-first .calculator-address-label {
  display: block;
  margin: 0 0 8px;
  color: var(--step-one-navy);
  font-size: 14px;
  font-weight: 500;
}

.wds-roof-calculator.calculator-address-first .calculator-address-help {
  display: block;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #dce3f3;
  color: #505c7c;
}

.calculator-address-help summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  list-style: none;
  font-size: 14px;
  cursor: pointer;
}

.calculator-address-help summary::-webkit-details-marker { display: none; }
.calculator-address-help[open] summary svg { transform: rotate(180deg); }
.calculator-address-help summary:focus-visible { outline: 2px solid #3e63ff; outline-offset: 4px; }
.calculator-address-help h2 { margin: 18px 0 8px; color: #08164c; font-size: 16px; font-weight: 600; line-height: 1.4; }
.calculator-address-help p { max-width: 640px; margin: 0; font-size: 14px; line-height: 1.7; }

@media (max-width: 767px) {
  .wds-roof-calculator.calculator-address-first {
    min-height: calc(100svh - 70px);
    padding: 36px 20px 48px;
  }

  .wds-roof-calculator.calculator-address-first .calculator-address-intro {
    margin-bottom: 24px;
  }

  .wds-roof-calculator.calculator-address-first .calculator-address-intro h2 {
    font-size: clamp(30px, 8.4vw, 36px);
  }

  .wds-roof-calculator.calculator-address-first .calculator-address-intro > p:last-child {
    margin-top: 13px;
    font-size: 15px;
  }

  .wds-roof-calculator.calculator-address-first .search-bar__input {
    min-height: 64px;
    padding: 18px 112px 18px 18px !important;
    font-size: 16px !important;
  }

  .wds-roof-calculator.calculator-address-first .search-bar__button { width: 88px; height: 44px; }

  .wds-roof-calculator.calculator-address-first .calculator-address-facts {
    margin-top: 14px;
    padding: 0;
  }
}

/* Scoped to the active enhanced steps; later calculator steps keep legacy styling. */
.wds-roof-calculator:not(.calculator-address-first):has(.wds-roof-calculator__step[data-step="1"].active) {
  --step-one-navy: #08164c;
  --step-one-blue: #3e63ff;
  --step-one-lime: #e2ff54;
  --step-one-border: #dce3f3;
  --step-one-muted: #5c6685;
  color: var(--step-one-navy);
  font-family: Poppins, Inter, sans-serif;
  padding-top: clamp(18px, 3vw, 34px);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__header {
  margin: 0;
  text-align: left;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__header:has(.wds-roof-calculator__main-title strong) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #d9e2fb;
  border-radius: 0;
  background: transparent;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__header
  .wds-roof-calculator__main-title {
  margin: 0;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__header
  .wds-roof-calculator__main-title:has(> strong:nth-of-type(3)) {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: 0;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__header
  .wds-roof-calculator__main-title:has(> strong:nth-of-type(3))
  > strong {
  padding: 3px 8px;
  border: 1px solid #d8e0f4;
  border-radius: 999px;
  color: var(--step-one-blue);
  background: #f4f6ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__header
  .wds-roof-calculator__main-title:has(> strong:nth-of-type(3))
  > strong:nth-of-type(3) {
  order: -1;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--step-one-navy);
  background: transparent;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__header
  .wds-roof-calculator__main-title
  strong {
  color: var(--step-one-blue);
  font-weight: 600;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__header
  .wds-roof-calculator__subtitle {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__main-content {
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__steps-wrapper {
  min-width: 0;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__step-header {
  margin-bottom: 20px;
}

.wds-roof-calculator__step[data-step="1"].active .calculator-step-one__eyebrow {
  margin: 0 0 8px;
  color: var(--step-one-blue);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__step-title {
  margin: 0 0 7px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__step-subtitle {
  max-width: 440px;
  margin: 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__options {
  gap: 10px;
  margin: 0;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-card {
  position: relative;
  max-width: none;
  min-height: 82px;
  box-sizing: border-box;
  padding: 16px 56px 16px 18px;
  border: 1px solid var(--step-one-border);
  border-radius: 13px;
  outline: 0;
  background: #fff;
  box-shadow: 0 3px 12px rgba(8, 22, 76, 0.045);
  color: var(--step-one-navy);
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease, transform 160ms ease;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-card::before,
.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-card::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-card::before {
  right: 19px;
  width: 21px;
  height: 21px;
  border: 2px solid #aeb8d0;
  background: #fff;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-card::after {
  right: 24px;
  width: 11px;
  height: 11px;
  background: var(--step-one-blue);
  opacity: 0;
}

.wds-roof-calculator__step[data-step="1"].active
  .wds-roof-calculator__option-card:hover:not(.disabled) {
  border-color: #9caeff;
  box-shadow: 0 7px 19px rgba(8, 22, 76, 0.08);
  transform: translateY(-1px);
}

.wds-roof-calculator__step[data-step="1"].active
  .wds-roof-calculator__option-card:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
  border-color: var(--step-one-blue);
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-card.selected {
  border-color: var(--step-one-blue);
  outline: 0;
  background: #f1f4ff;
  box-shadow: 0 0 0 1px var(--step-one-blue);
}

.wds-roof-calculator__step[data-step="1"].active
  .wds-roof-calculator__option-card.selected:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="1"].active
  .wds-roof-calculator__option-card.selected::before {
  border-color: var(--step-one-blue);
}

.wds-roof-calculator__step[data-step="1"].active
  .wds-roof-calculator__option-card.selected::after {
  opacity: 1;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-card.disabled {
  border-color: #e5e8f0;
  background: #f5f6f9;
  box-shadow: none;
  opacity: 0.62;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-title {
  margin: 0 0 3px;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-desc {
  display: block;
  margin: 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.wds-roof-calculator__step[data-step="1"].active .calculator-step-one__hint {
  margin: 13px 0 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.wds-roof-calculator__step[data-step="1"].active:has(.wds-roof-calculator__option-card.selected)
  .calculator-step-one__hint {
  display: none;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__navigation {
  width: 100%;
  max-width: none;
  margin-top: 22px;
  gap: 12px;
  flex-wrap: nowrap;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__reset-address,
.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__next-btn {
  min-height: 48px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__reset-address {
  padding: 12px 18px;
  border: 1px solid #cbd4e7;
  outline: 0;
  color: var(--step-one-navy);
  background: transparent;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__reset-address:hover {
  border-color: var(--step-one-blue);
  outline: 0;
  color: var(--step-one-blue);
  background: #fff;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__next-btn {
  flex: 1;
  justify-content: center;
  max-width: 220px;
  margin-left: auto;
  padding: 12px 22px;
  border: 0;
  outline: 0;
  color: #fff;
  background: var(--step-one-blue);
  box-shadow: 0 8px 18px rgba(62, 99, 255, 0.2);
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__next-btn::after {
  content: "";
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  place-items: center;
  border-radius: 50%;
  color: var(--step-one-navy);
  background: var(--step-one-lime);
  font-size: 15px;
  line-height: 1;
  background-image: url("/images/icons/arrow-right.svg");
  background-position: center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

.wds-roof-calculator__step[data-step="1"].active
  .wds-roof-calculator__next-btn:hover:not(:disabled) {
  background: #274cdf;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__next-btn:focus-visible,
.wds-roof-calculator__step[data-step="1"].active
  .wds-roof-calculator__reset-address:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__next-btn:disabled {
  color: #7b849c;
  background: #e2e6ef;
  box-shadow: none;
  cursor: not-allowed;
}

.wds-roof-calculator__step[data-step="1"].active
  .wds-roof-calculator__next-btn:disabled::after {
  color: #7b849c;
  background-color: #cdd3df;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__map-wrapper {
  overflow: hidden;
  border: 1px solid #ccd6ed;
  border-radius: 16px;
  background: #dfe5ef;
  box-shadow: 0 15px 36px rgba(8, 22, 76, 0.11);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .wds-roof-calculator__map-wrapper
  .map-placeholder {
  min-height: 540px;
  border-radius: 15px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .search-bar__input-group {
  border: 1px solid #d7ddef;
  border-radius: 10px !important;
  box-shadow: 0 10px 28px rgba(8, 22, 76, 0.15) !important;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
  .search-bar__input {
  min-height: 50px;
  border: 0 !important;
  border-radius: 10px !important;
  color: var(--step-one-navy);
  font-family: inherit;
}

/* Address-first has no decorative card or shadow, even though the selected-
   address state below uses a floating search control over the map. */
.wds-roof-calculator.calculator-address-first:has(
    .wds-roof-calculator__step[data-step="1"].active
  )
  .search-bar__input-group {
  box-shadow: none !important;
}

.wds-roof-calculator.calculator-address-first:has(
    .wds-roof-calculator__step[data-step="1"].active
  )
  .search-bar__input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(62, 99, 255, 0.16) !important;
}

@media (min-width: 1024px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
    .wds-roof-calculator__steps-wrapper {
    flex: 0 1 430px;
    width: 39%;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
    .wds-roof-calculator__map-wrapper {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 1023px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
    .wds-roof-calculator__header:has(.wds-roof-calculator__main-title strong) {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
    .wds-roof-calculator__header
    .wds-roof-calculator__subtitle {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .wds-roof-calculator:not(.calculator-address-first):has(.wds-roof-calculator__step[data-step="1"].active) {
    padding: 14px 10px 28px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
    .wds-roof-calculator__header:has(.wds-roof-calculator__main-title strong) {
    margin-bottom: 16px;
    padding: 0 0 14px;
    border-radius: 0;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
    .wds-roof-calculator__main-content {
    gap: 22px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="1"].active)
    .wds-roof-calculator__map-wrapper
    .map-placeholder {
    min-height: 300px;
  }

  .wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-card {
    min-height: 78px;
    padding: 14px 50px 14px 15px;
  }

  .wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__navigation {
    display: flex !important;
  }

  .wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__reset-address,
  .wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__next-btn {
    display: flex !important;
    min-width: 0;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__option-card,
  .wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__reset-address,
  .wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__next-btn {
    transition: none;
  }

  .wds-roof-calculator__step[data-step="1"].active
    .wds-roof-calculator__option-card:hover:not(.disabled) {
    transform: none;
  }
}

/* Preserve address-reset visibility after the legacy handler clears the map. */
.wds-roof-calculator:not(:has(.wds-roof-calculator__main-title strong)) .wds-roof-calculator__step[data-step="1"].active .wds-roof-calculator__reset-address {
  display: none !important;
}

/* Enhanced choice steps advance through the existing hidden Next controls. */
.wds-roof-calculator__step.calculator-auto-advance
  > .wds-roof-calculator__navigation
  > .wds-roof-calculator__next-btn,
.wds-roof-calculator:has(
    .wds-roof-calculator__step[data-step="1"].active.calculator-auto-advance,
    .wds-roof-calculator__step[data-step="2"].active.calculator-auto-advance,
    .wds-roof-calculator__step[data-step="3"].active.calculator-auto-advance,
    .wds-roof-calculator__step[data-step="4"].active.calculator-material-enhanced,
    .wds-roof-calculator__step[data-step="5"].active.calculator-auto-advance
  )
  .wds-roof-calculator__next-btn--map {
  display: none !important;
}

.wds-roof-calculator__step.calculator-auto-advance
  .calculator-auto-advance__hint {
  margin: 12px 0 0;
  color: var(--step-one-muted);
  font-family: Poppins, Inter, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.wds-roof-calculator__step[data-step="2"].calculator-auto-advance
  > .calculator-auto-advance__hint {
  margin: 0 0 14px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active) {
  --step-one-navy: #08164c;
  --step-one-blue: #3e63ff;
  --step-one-lime: #e2ff54;
  --step-one-border: #dce3f3;
  --step-one-muted: #5c6685;
  color: var(--step-one-navy);
  font-family: Poppins, Inter, sans-serif;
  padding-top: clamp(18px, 3vw, 34px);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__header {
  display: block !important;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d9e2fb;
  text-align: left;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__main-title {
  margin: 0 0 5px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: clamp(23px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__main-title:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 4px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__main-title
  .wds-roof-calculator__step-title-building-name {
  font-size: 0.68em;
  font-weight: 600;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__main-content {
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.wds-roof-calculator__step[data-step="2"].active .wds-roof-calculator__options {
  gap: 10px;
  margin: 0;
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-card {
  position: relative;
  max-width: none;
  min-height: 88px;
  box-sizing: border-box;
  padding: 15px 54px 15px 17px;
  border: 1px solid var(--step-one-border);
  border-radius: 13px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  box-shadow: 0 3px 12px rgba(8, 22, 76, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease, transform 160ms ease;
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--step-one-navy);
  background: #eef1f8;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-50%);
  background-image: url("/images/icons/arrow-right.svg");
  background-position: center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-card:hover:not(.disabled) {
  border-color: #9caeff;
  box-shadow: 0 7px 19px rgba(8, 22, 76, 0.08);
  transform: translateY(-1px);
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-card:focus-visible {
  border-color: var(--step-one-blue);
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-card.selected {
  border-color: var(--step-one-blue);
  outline: 0;
  background: #f1f4ff;
  box-shadow: 0 0 0 1px var(--step-one-blue);
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-card.selected::after {
  background-color: var(--step-one-lime);
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-card.selected:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-title {
  margin: 0 0 3px;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-desc {
  display: block;
  margin: 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.45;
}

.wds-roof-calculator__step[data-step="2"].active
  .wds-roof-calculator__option-desc-mob {
  display: none;
}

.wds-roof-calculator__step[data-step="2"].active
  > .wds-roof-calculator__navigation {
  display: flex !important;
  margin-top: 18px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__prev-btn {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #cbd4e7;
  border-radius: 999px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__prev-btn:hover {
  border-color: var(--step-one-blue);
  outline: 0;
  color: var(--step-one-blue);
  background: #fff;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__prev-btn:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__map-wrapper {
  overflow: hidden;
  border: 1px solid #ccd6ed;
  border-radius: 16px;
  background: #dfe5ef;
  box-shadow: 0 15px 36px rgba(8, 22, 76, 0.11);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
  .wds-roof-calculator__map-wrapper
  .map-placeholder {
  min-height: 540px;
  border-radius: 15px;
}

@media (min-width: 1024px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
    .wds-roof-calculator__steps-wrapper {
    flex: 0 1 430px;
    width: 39%;
    min-width: 0;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
    .wds-roof-calculator__map-wrapper {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active) {
    padding: 14px 10px 28px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
    .wds-roof-calculator__header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
    .wds-roof-calculator__main-content {
    gap: 20px;
  }

  .wds-roof-calculator__step[data-step="2"].active
    .wds-roof-calculator__option-card {
    min-height: 75px;
    padding: 13px 50px 13px 15px;
  }

  .wds-roof-calculator__step[data-step="2"].active
    .wds-roof-calculator__option-desc {
    display: none;
  }

  .wds-roof-calculator__step[data-step="2"].active
    .wds-roof-calculator__option-desc-mob {
    display: block;
    margin: 0;
    color: var(--step-one-muted);
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="2"].active)
    .wds-roof-calculator__map-wrapper
    .map-placeholder {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wds-roof-calculator__step[data-step="2"].active
    .wds-roof-calculator__option-card {
    transition: none;
  }

  .wds-roof-calculator__step[data-step="2"].active
    .wds-roof-calculator__option-card:hover:not(.disabled) {
    transform: none;
  }
}

/* Step 5: compact, explicit timeline choices using the legacy values and Next handler. */
.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active),
.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active) {
  --step-one-navy: #08164c;
  --step-one-blue: #3e63ff;
  --step-one-lime: #e2ff54;
  --step-one-border: #dce3f3;
  --step-one-muted: #5c6685;
  color: var(--step-one-navy);
  font-family: Poppins, Inter, sans-serif;
  padding-top: clamp(18px, 3vw, 34px);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active)
  .wds-roof-calculator__header,
.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active)
  .wds-roof-calculator__header {
  display: block !important;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d9e2fb;
  text-align: left;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active)
  .wds-roof-calculator__main-title,
.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active)
  .wds-roof-calculator__main-title {
  margin: 0 0 5px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: clamp(23px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active)
  .wds-roof-calculator__main-title:focus-visible,
.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active)
  .wds-roof-calculator__main-title:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 4px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active)
  .wds-roof-calculator__subtitle,
.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active)
  .wds-roof-calculator__subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active)
  .wds-roof-calculator__main-content,
.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active)
  .wds-roof-calculator__main-content {
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-card-icon {
  position: relative;
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 76px;
  box-sizing: border-box;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 11px 52px 11px 12px;
  border: 1px solid var(--step-one-border);
  border-radius: 13px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  box-shadow: 0 3px 12px rgba(8, 22, 76, 0.045);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease, transform 160ms ease;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-card-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--step-one-navy);
  background: #eef1f8;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-50%);
  background-image: url("/images/icons/arrow-right.svg");
  background-position: center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-icon-wrapper {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 11px;
  background: #f1f4ff;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-title {
  margin: 0 0 2px;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.45;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-card-icon:hover:not(.disabled) {
  border-color: #9caeff;
  box-shadow: 0 7px 19px rgba(8, 22, 76, 0.08);
  transform: translateY(-1px);
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-card-icon:focus-visible {
  border-color: var(--step-one-blue);
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-card-icon.selected {
  border-color: var(--step-one-blue);
  outline: 0;
  background: #f1f4ff;
  box-shadow: 0 0 0 1px var(--step-one-blue);
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-card-icon.selected::after {
  background-color: var(--step-one-lime);
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__option-card-icon.selected:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="5"].active
  > .calculator-auto-advance__hint {
  margin-top: 11px;
}

.wds-roof-calculator__step[data-step="5"].active
  > .wds-roof-calculator__navigation {
  position: static;
  display: flex !important;
  width: 100%;
  box-sizing: border-box;
  margin-top: 18px;
}

.wds-roof-calculator__step[data-step="5"].active
  > .wds-roof-calculator__navigation
  > .wds-roof-calculator__prev-btn,
.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__prev-btn {
  position: static;
  display: flex !important;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #cbd4e7;
  border-radius: 999px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__prev-btn:hover,
.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__prev-btn:hover {
  border-color: var(--step-one-blue);
  color: var(--step-one-blue);
  background: #fff;
}

.wds-roof-calculator__step[data-step="5"].active
  .wds-roof-calculator__prev-btn:focus-visible,
.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__prev-btn:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active)
  .wds-roof-calculator__prev-btn--map {
  display: none !important;
}

/* Step 6: compact contact form; native field names and validation stay untouched. */
.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__contact-form {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--step-one-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(8, 22, 76, 0.07);
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__form-group {
  margin: 0;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__form-group
  > label {
  display: block;
  margin: 0 0 6px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__input-wrapper {
  position: relative;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__input-wrapper
  [class^="icon-"] {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: #77819d;
  font-size: 17px;
  transform: translateY(-50%);
  pointer-events: none;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__contact-form
  input:not([type="checkbox"]),
.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__contact-form
  textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd4e7;
  border-radius: 10px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__contact-form
  input:not([type="checkbox"]) {
  min-height: 48px;
  padding: 11px 14px 11px 43px;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__contact-form
  textarea {
  height: 96px;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__contact-form
  input:not([type="checkbox"]):focus,
.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__contact-form
  textarea:focus {
  border-color: var(--step-one-blue);
  box-shadow: 0 0 0 3px rgba(226, 255, 84, 0.72);
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__form-group.invalid
  input,
.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__form-group.invalid
  textarea {
  border-color: #c33b3b;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__form-group--checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin: 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__form-group--checkbox
  input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--step-one-blue);
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__form-group--checkbox
  input:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 2px;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__form-group--checkbox
  label {
  margin: 0;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__form-group--checkbox
  a {
  color: var(--step-one-blue);
  text-underline-offset: 2px;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__navigation {
  display: flex !important;
  width: 100%;
  margin-top: 4px;
  gap: 10px;
  flex-wrap: nowrap;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__submit-btn {
  min-height: 46px;
  margin-left: auto;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  color: #fff;
  background: var(--step-one-blue);
  box-shadow: 0 8px 18px rgba(62, 99, 255, 0.2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__submit-btn:hover:not(:disabled) {
  background: #274cdf;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__submit-btn:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="6"].active
  .wds-roof-calculator__submit-btn:disabled {
  color: #7b849c;
  background: #e2e6ef;
  box-shadow: none;
  cursor: not-allowed;
}

.wds-roof-calculator:has(
    .wds-roof-calculator__step[data-step="5"].active,
    .wds-roof-calculator__step[data-step="6"].active
  )
  .wds-roof-calculator__map-wrapper {
  overflow: hidden;
  border: 1px solid #ccd6ed;
  border-radius: 16px;
  background: #dfe5ef;
  box-shadow: 0 15px 36px rgba(8, 22, 76, 0.11);
}

.wds-roof-calculator:has(
    .wds-roof-calculator__step[data-step="5"].active,
    .wds-roof-calculator__step[data-step="6"].active
  )
  .wds-roof-calculator__map-wrapper
  .map-placeholder {
  min-height: 520px;
  border-radius: 15px;
}

@media (min-width: 1024px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active)
    .wds-roof-calculator__steps-wrapper {
    flex: 0 1 430px;
    width: 39%;
    min-width: 0;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active)
    .wds-roof-calculator__steps-wrapper {
    flex: 0 1 470px;
    width: 42%;
    min-width: 0;
  }

  .wds-roof-calculator:has(
      .wds-roof-calculator__step[data-step="5"].active,
      .wds-roof-calculator__step[data-step="6"].active
    )
    .wds-roof-calculator__map-wrapper {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active),
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active) {
    padding: 14px 10px 28px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active)
    .wds-roof-calculator__header,
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active)
    .wds-roof-calculator__header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="5"].active)
    .wds-roof-calculator__main-content,
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="6"].active)
    .wds-roof-calculator__main-content {
    gap: 20px;
  }

  .wds-roof-calculator__step[data-step="5"].active
    .wds-roof-calculator__option-card-icon {
    min-height: 66px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 9px 48px 9px 10px;
  }

  .wds-roof-calculator__step[data-step="5"].active
    .wds-roof-calculator__option-icon-wrapper {
    width: 42px;
    height: 42px;
  }

  .wds-roof-calculator__step[data-step="5"].active
    .wds-roof-calculator__option-desc {
    display: none;
  }

  .wds-roof-calculator__step[data-step="6"].active
    .wds-roof-calculator__contact-form {
    gap: 12px;
    padding: 15px;
  }

  .wds-roof-calculator__step[data-step="6"].active
    .wds-roof-calculator__navigation {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wds-roof-calculator__step[data-step="6"].active
    .wds-roof-calculator__submit-btn,
  .wds-roof-calculator__step[data-step="6"].active
    .wds-roof-calculator__prev-btn {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .wds-roof-calculator:has(
      .wds-roof-calculator__step[data-step="5"].active,
      .wds-roof-calculator__step[data-step="6"].active
    )
    .wds-roof-calculator__map-wrapper
    .map-placeholder {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wds-roof-calculator__step[data-step="5"].active
    .wds-roof-calculator__option-card-icon,
  .wds-roof-calculator__step[data-step="6"].active
    .wds-roof-calculator__contact-form
    input,
  .wds-roof-calculator__step[data-step="6"].active
    .wds-roof-calculator__contact-form
    textarea {
    transition: none;
  }

  .wds-roof-calculator__step[data-step="5"].active
    .wds-roof-calculator__option-card-icon:hover:not(.disabled) {
    transform: none;
  }
}

/* Step 3 uses the same compact choice flow while retaining the legacy values. */
.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active) {
  --step-one-navy: #08164c;
  --step-one-blue: #3e63ff;
  --step-one-lime: #e2ff54;
  --step-one-border: #dce3f3;
  --step-one-muted: #5c6685;
  color: var(--step-one-navy);
  font-family: Poppins, Inter, sans-serif;
  padding-top: clamp(18px, 3vw, 34px);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__header {
  display: block !important;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d9e2fb;
  text-align: left;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__main-title {
  margin: 0 0 5px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: clamp(23px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__main-title:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 4px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__main-title
  .wds-roof-calculator__step-title-building-name {
  font-size: 0.68em;
  font-weight: 600;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__main-content {
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.wds-roof-calculator__step[data-step="3"].active .wds-roof-calculator__options {
  gap: 9px;
  margin: 0;
}

.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio {
  position: relative;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 56px;
  box-sizing: border-box;
  align-items: center;
  padding: 13px 54px 13px 17px;
  border: 1px solid var(--step-one-border);
  border-radius: 13px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  box-shadow: 0 3px 12px rgba(8, 22, 76, 0.045);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease, transform 160ms ease;
}

.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--step-one-navy);
  background: #eef1f8;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-50%);
  background-image: url("/images/icons/arrow-right.svg");
  background-position: center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio
  .wds-roof-calculator__radio-label {
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio
  .wds-roof-calculator__radio-label::before,
.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio
  .wds-roof-calculator__radio-label::after {
  content: none;
}

.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio:hover:not(.disabled) {
  border-color: #9caeff;
  box-shadow: 0 7px 19px rgba(8, 22, 76, 0.08);
  transform: translateY(-1px);
}

.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio:focus-visible {
  border-color: var(--step-one-blue);
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio.selected {
  border-color: var(--step-one-blue);
  outline: 0;
  background: #f1f4ff;
  box-shadow: 0 0 0 1px var(--step-one-blue);
}

.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio.selected::after {
  background-color: var(--step-one-lime);
}

.wds-roof-calculator__step[data-step="3"].active
  .wds-roof-calculator__option-radio.selected:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="3"].active
  > .calculator-auto-advance__hint {
  margin-top: 11px;
}

.wds-roof-calculator__step[data-step="3"].active
  > .wds-roof-calculator__navigation {
  display: flex !important;
  position: static;
  width: 100%;
  box-sizing: border-box;
  margin-top: 18px;
}

.wds-roof-calculator__step[data-step="3"].active
  > .wds-roof-calculator__navigation
  > .wds-roof-calculator__prev-btn {
  position: static;
  display: flex !important;
}

.wds-roof-calculator:has(
    .wds-roof-calculator__step[data-step="3"].active.calculator-auto-advance
  )
  .wds-roof-calculator__prev-btn--map {
  display: none !important;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__prev-btn {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #cbd4e7;
  border-radius: 999px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__prev-btn:hover {
  border-color: var(--step-one-blue);
  color: var(--step-one-blue);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__prev-btn:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__map-wrapper {
  overflow: hidden;
  border: 1px solid #ccd6ed;
  border-radius: 16px;
  background: #dfe5ef;
  box-shadow: 0 15px 36px rgba(8, 22, 76, 0.11);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
  .wds-roof-calculator__map-wrapper
  .map-placeholder {
  min-height: 540px;
  border-radius: 15px;
}

@media (min-width: 1024px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
    .wds-roof-calculator__steps-wrapper {
    flex: 0 1 430px;
    width: 39%;
    min-width: 0;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
    .wds-roof-calculator__map-wrapper {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active) {
    padding: 14px 10px 28px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
    .wds-roof-calculator__header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
    .wds-roof-calculator__main-content {
    gap: 20px;
  }

  .wds-roof-calculator__step[data-step="3"].active
    .wds-roof-calculator__option-radio {
    min-height: 52px;
    padding: 11px 50px 11px 15px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="3"].active)
    .wds-roof-calculator__map-wrapper
    .map-placeholder {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wds-roof-calculator__step[data-step="3"].active
    .wds-roof-calculator__option-radio {
    transition: none;
  }

  .wds-roof-calculator__step[data-step="3"].active
    .wds-roof-calculator__option-radio:hover:not(.disabled) {
    transform: none;
  }
}

/* Step 4: image-led material choices backed by the existing material contract. */
.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active) {
  --step-one-navy: #08164c;
  --step-one-blue: #3e63ff;
  --step-one-lime: #e2ff54;
  --step-one-border: #dce3f3;
  --step-one-muted: #5c6685;
  color: var(--step-one-navy);
  font-family: Poppins, Inter, sans-serif;
  padding-top: clamp(18px, 3vw, 34px);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
  .wds-roof-calculator__header {
  display: block !important;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid #d9e2fb;
  text-align: left;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
  .wds-roof-calculator__main-title {
  margin: 0 0 5px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: clamp(23px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
  .wds-roof-calculator__main-title:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 4px;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
  .wds-roof-calculator__main-title
  .wds-roof-calculator__step-title-building-name {
  font-size: 0.68em;
  font-weight: 600;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
  .wds-roof-calculator__subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
  .wds-roof-calculator__main-content {
  gap: clamp(24px, 3vw, 38px);
  align-items: flex-start;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__hint {
  margin: 0 0 13px;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-option {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--step-one-border);
  border-radius: 14px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  box-shadow: 0 4px 14px rgba(8, 22, 76, 0.055);
  cursor: default;
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease, transform 160ms ease;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-option.hidden {
  display: none;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-summary,
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-option.expanded
  .wds-roof-calculator__material-summary {
  display: grid;
  min-height: 76px;
  box-sizing: border-box;
  flex: 1 1 auto;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 6px 82px 6px 6px;
  outline: 0;
  cursor: pointer;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-thumb {
  display: block;
  width: 72px;
  height: 64px;
  border-radius: 9px;
  object-fit: cover;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-text {
  min-width: 0;
  padding: 0;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__option-title {
  margin: 0 0 3px;
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__option-desc {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-option:hover {
  border-color: #9caeff;
  box-shadow: 0 8px 22px rgba(8, 22, 76, 0.09);
  transform: translateY(-1px);
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-summary:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: -3px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-option.expanded {
  border-color: var(--step-one-blue);
  outline: 0;
  background: #f1f4ff;
  box-shadow: 0 0 0 1px var(--step-one-blue);
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-option.expanded::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--step-one-navy);
  background: var(--step-one-lime);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__info {
  position: absolute;
  top: 38px;
  right: 10px;
  display: flex;
  width: 64px;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 5px;
  border: 0;
  border-radius: 8px;
  outline: 0;
  color: var(--step-one-blue);
  background: transparent;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transform: translateY(-50%);
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__info::after {
  content: none;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__info[aria-expanded="true"]::after {
  content: none;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__info:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-details,
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-option.expanded
  .wds-roof-calculator__material-details {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 180ms ease;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-option.calculator-material-info-open
  .wds-roof-calculator__material-details {
  display: block;
  max-height: 760px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-option.calculator-material-info-open {
  grid-column: auto;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-details
  .details-content {
  width: auto;
  max-width: none;
  margin: 0 14px;
  padding: 11px 0 13px;
  border-top: 1px solid #dfe4f0;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__full-desc {
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__full-desc
  ul {
  padding-left: 18px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__material-details
  .wds-roof-calculator__navigation {
  display: none !important;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__dropdown {
  margin: 17px 0 0;
  padding: 15px;
  border: 1px solid #dce3f3;
  border-radius: 14px;
  outline: 0;
  background: #f7f8fc;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__dropdown-title {
  margin: 0 0 2px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__dropdown-subtitle {
  margin: 0 0 8px;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.45;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__dropdown-btn-text {
  color: var(--step-one-blue);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  outline: 0;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__dropdown-btn-text:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__dropdown-btn-text .calculator-material-toggle-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.wds-roof-calculator__dropdown-btn.active .calculator-material-toggle-arrow {
  transform: rotate(180deg);
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__dropdown-btn-content {
  transition: max-height 180ms ease;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .wds-roof-calculator__dropdown-btn.active
  .wds-roof-calculator__dropdown-btn-content {
  max-height: 2400px;
  padding: 8px 0 0;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__navigation {
  display: flex;
  position: static;
  width: 100%;
  box-sizing: border-box;
  margin-top: 18px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid #cbd4e7;
  border-radius: 999px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__back::before {
  content: "";
  margin-right: 7px;
  font-size: 15px;
  width: 20px; height: 20px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12H4m6-6-6 6 6 6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; display: inline-block;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__back:hover {
  border-color: var(--step-one-blue);
  color: var(--step-one-blue);
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__back:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced.calculator-material-confirming
  > .calculator-material__hint,
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced.calculator-material-confirming
  > .wds-roof-calculator__options,
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced.calculator-material-confirming
  > .wds-roof-calculator__dropdown,
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced.calculator-material-confirming
  > .calculator-material__navigation {
  display: none !important;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #dce3f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(8, 22, 76, 0.09);
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation[hidden],
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__existing[hidden],
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__status[hidden] {
  display: none;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__eyebrow {
  margin: 0 0 7px;
  color: var(--step-one-blue);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__title {
  margin: 0 0 7px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__title:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 4px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__description {
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--step-one-muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__answers
  button {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--step-one-border);
  border-radius: 11px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__answers
  button:hover,
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__answers
  button[aria-pressed="true"] {
  border-color: var(--step-one-blue);
  color: var(--step-one-blue);
  background: #f1f4ff;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__answers
  button:focus-visible,
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__existing-choice:focus-visible,
.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__back:focus-visible {
  outline: 3px solid var(--step-one-lime);
  outline-offset: 3px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__existing {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #dfe4f0;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__existing
  h3 {
  margin: 0 0 11px;
  color: var(--step-one-navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__existing-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__existing-choice {
  display: grid;
  min-height: 54px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 1px solid var(--step-one-border);
  border-radius: 10px;
  outline: 0;
  color: var(--step-one-navy);
  background: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__existing-choice
  img {
  display: block;
  width: 48px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__existing-choice:hover {
  border-color: #9caeff;
  background: #f7f8ff;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__existing-choice:disabled {
  color: #8c93a8;
  background: #f3f4f7;
  cursor: not-allowed;
  opacity: 0.66;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__status {
  margin: 12px 0 0;
  color: #a32929;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.45;
}

.wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material-confirmation__back {
  min-height: 44px;
  margin-top: 18px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  outline: 0;
  color: var(--step-one-blue);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.wds-roof-calculator:has(
    .wds-roof-calculator__step[data-step="4"].active.calculator-material-enhanced
  )
  .wds-roof-calculator__prev-btn--map {
  display: none !important;
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
  .wds-roof-calculator__map-wrapper {
  overflow: hidden;
  border: 1px solid #ccd6ed;
  border-radius: 16px;
  background: #dfe5ef;
  box-shadow: 0 15px 36px rgba(8, 22, 76, 0.11);
}

.wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
  .wds-roof-calculator__map-wrapper
  .map-placeholder {
  min-height: 520px;
  border-radius: 15px;
}

@media (min-width: 1024px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
    .wds-roof-calculator__steps-wrapper {
    flex: 0 1 460px;
    width: 42%;
    min-width: 0;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
    .wds-roof-calculator__map-wrapper {
    position: sticky;
    top: 24px;
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active) {
    padding: 14px 10px 28px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
    .wds-roof-calculator__header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
    .wds-roof-calculator__main-content {
    gap: 20px;
  }

  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__options {
    gap: 7px;
  }

  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__material-thumb {
    width: 68px;
    height: 58px;
  }

  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__material-summary,
  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__material-option.expanded
    .wds-roof-calculator__material-summary {
    min-height: 70px;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 9px;
    padding: 6px 76px 6px 6px;
  }

  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__option-title {
    font-size: 13px;
  }

  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__option-desc {
    min-height: 0;
    font-size: 11px;
  }

  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
  .calculator-material__info {
    top: 35px;
    right: 7px;
    width: 62px;
  }

  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .calculator-material-confirmation {
    padding: 19px 15px;
  }

  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .calculator-material-confirmation__answers {
    grid-template-columns: 1fr;
  }

  .wds-roof-calculator:has(.wds-roof-calculator__step[data-step="4"].active)
    .wds-roof-calculator__map-wrapper
    .map-placeholder {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__material-option,
  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__material-details,
  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__dropdown-btn-content {
    transition: none;
  }

  .wds-roof-calculator__step[data-step="4"].calculator-material-enhanced
    .wds-roof-calculator__material-option:hover {
    transform: none;
  }
}
.wds-roof-calculator button:is(.wds-roof-calculator__option-card,.wds-roof-calculator__option-card-icon,.wds-roof-calculator__material-summary) { font: inherit; text-align: left; color: inherit; }
.wds-roof-calculator button .wds-roof-calculator__option-title,
.wds-roof-calculator button .wds-roof-calculator__option-desc,
.wds-roof-calculator button .wds-roof-calculator__option-text { display: block; }
.wds-roof-calculator button.wds-roof-calculator__material-summary { width: 100%; border: 0; background: transparent; }
.calculator-page-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
