

/* Final roof estimate tool UI fixes */
#stepRoofType .roof-type-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

#stepRoofType .roof-type-card {
  background: #ffffff !important;
  border: 3px solid #f2b705 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 24px rgba(5,31,61,.12) !important;
  padding: 0 !important;
}

#stepRoofType .roof-type-card img {
  width: 100% !important;
  height: 190px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 0 !important;
  outline: none !important;
}

#stepRoofType .roof-type-label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 72px !important;
  background: #f2b705 !important;
  color: #051f3d !important;
  -webkit-text-fill-color: #051f3d !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: clamp(22px, 2.6vw, 34px) !important;
  font-weight: 900 !important;
  letter-spacing: .5px !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  padding: 12px !important;
}

#stepRoofType .roof-type-card.selected {
  border-color: #051f3d !important;
  box-shadow: 0 12px 30px rgba(5,31,61,.25) !important;
}

#stepRoofType .roof-type-card.selected img {
  outline: none !important;
}

#stepRoofType .roof-type-card.selected .roof-type-label {
  background: #f2b705 !important;
  color: #051f3d !important;
  -webkit-text-fill-color: #051f3d !important;
}

.selected-roof-type-preview,
.selected-roof-type-preview h3,
.selected-roof-text-only h3,
#selectedRoofTypeTitle {
  color: #d60000 !important;
  -webkit-text-fill-color: #d60000 !important;
  font-weight: 900 !important;
  font-size: clamp(22px, 3vw, 38px) !important;
  text-align: center !important;
  margin-top: 18px !important;
}

.selected-roof-preview-card,
.selected-roof-preview-card img,
#selectedRoofTypeImage {
  display: none !important;
  visibility: hidden !important;
}

.ge-pin-instruction-blue,
.map-help-overlay.ge-pin-instruction-blue {
  color: #051f3d !important;
  -webkit-text-fill-color: #051f3d !important;
  font-weight: 800 !important;
}

.ge-pin-instruction-red,
p.ge-pin-instruction-red {
  color: #d60000 !important;
  -webkit-text-fill-color: #d60000 !important;
  font-weight: 900 !important;
}

.financing-qualify-box {
  background: #051f3d !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 10px !important;
  padding: 16px 18px !important;
  margin: 12px 0 4px !important;
  font-weight: 900 !important;
  font-size: clamp(18px, 2.2vw, 28px) !important;
  text-align: center !important;
  box-shadow: 0 8px 18px rgba(5,31,61,.18) !important;
}

/* Select time dropdown: blue text always, not white-on-white */
#callTimePicker,
#callTimePicker label,
#callTimeWindow,
#callTimeWindow option,
select#callTimeWindow,
select#callTimeWindow option {
  color: #051f3d !important;
  -webkit-text-fill-color: #051f3d !important;
  background-color: #ffffff !important;
}

#callTimeWindow:hover,
#callTimeWindow:focus,
select#callTimeWindow:hover,
select#callTimeWindow:focus {
  color: #051f3d !important;
  -webkit-text-fill-color: #051f3d !important;
  background-color: #ffffff !important;
  border-color: #f2b705 !important;
}

@media (max-width: 900px) {
  #stepRoofType .roof-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #stepRoofType .roof-type-card img {
    height: 170px !important;
  }
}

@media (max-width: 560px) {
  #stepRoofType .roof-type-grid {
    grid-template-columns: 1fr !important;
  }
  #stepRoofType .roof-type-card img {
    height: 190px !important;
  }
}
