.hrc-calculator {
    max-width: 750px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: Arial, sans-serif;
}

.hrc-calculator h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
}

.hrc-row {
    margin-bottom: 22px;
}

.hrc-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.hrc-row select,
.hrc-row input[type=range] {
    width: 100%;
}

.hrc-sqft-display {
    margin-top: 8px;
    font-weight: 600;
}

.hrc-estimate-box {
    background: #002e5b;
    color: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    font-size: 26px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hrc-estimate-box h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#totalCost {
    font-size: 42px;
    font-weight: 800;
    margin-top: 10px;
}

/* =========================
   Range Slider (Cross-browser)
   ========================= */

#squareFeet{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 10px;
  background: #d0d0d0; /* JS will overwrite with gradient */
  outline: none;
}

/* Track (Safari/Chrome/Edge) */
#squareFeet::-webkit-slider-runnable-track{
  height: 14px;
  border-radius: 10px;
  background: transparent; /* IMPORTANT: let the input's background show */
}

/* Thumb (Safari/Chrome/Edge) */
#squareFeet::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #002e5b;
  border: 3px solid #fff;
  cursor: pointer;
  margin-top: -7px; /* IMPORTANT: centers thumb on 14px track in Safari */
  transition: transform .2s, background .3s;
}

#squareFeet::-webkit-slider-thumb:hover{
  transform: scale(1.12);
  background: #004a8f;
}

/* Firefox track */
#squareFeet::-moz-range-track{
  height: 14px;
  border-radius: 10px;
  background: transparent;
}

/* Firefox thumb */
#squareFeet::-moz-range-thumb{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #002e5b;
  border: 3px solid #fff;
  cursor: pointer;
  transition: transform .2s, background .3s;
}

#squareFeet::-moz-range-thumb:hover{
  transform: scale(1.12);
  background: #004a8f;
}

/* Legacy Edge/IE (safe fallback) */
#squareFeet::-ms-track{
  height: 14px;
  border-radius: 10px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

#squareFeet::-ms-thumb{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #002e5b;
  border: 3px solid #fff;
  cursor: pointer;
}