/* Paver Calculator styles. Consolidated duplicate overrides; layout and responsive rules preserved. */

/* Paver Calculator CSS extracted from the uploaded HTML. Original rule order preserved. */

.bd-paver-calculator {
  padding: 62px 0 0px;
  background: #fff;
  color: #20251f;
  --bdpc-primary: #fe1507;
  --bdpc-primary-dark: #d91105;
  --bdpc-primary-soft: #fff0ef;
}

.bd-paver-calculator * {
  box-sizing: border-box;
}

.bd-paver-calculator .bdpc-wrap {
  width: min(100% - 36px, 1040px);
  margin: 0 auto;
}

.bd-paver-calculator .bdpc-intro {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.bd-paver-calculator .bdpc-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  color: #20251f;
}

.bd-paver-calculator .bdpc-intro p {
  margin: 0;
  color: #60675f;
  font-size: 16px;
  line-height: 1.7;
}

.bd-paver-calculator .bdpc-card {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 24px;
  align-items: start;
}

.bd-paver-calculator .bdpc-form,
.bd-paver-calculator .bdpc-results {
  min-width: 0;
  border: 1px solid #e1e5df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .045);
}

.bd-paver-calculator .bdpc-form {
  padding: 24px;
}

.bd-paver-calculator .bdpc-shape-label {
  margin: 0 0 12px;
  color: #292e28;
  font-size: 15px;
  font-weight: 700;
}

.bd-paver-calculator .bdpc-shapes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.bd-paver-calculator .bdpc-shape {
  width: 100%;
  min-width: 0;
  min-height: 108px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid #d4d9e0 !important;
  border-radius: 10px;
  background: #fff !important;
  color: #687386 !important;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  box-shadow: none !important;
  transform: none;
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

/* Shape buttons: one authoritative rule per interaction state.
   Selected and hovered buttons keep a white card; only the outline, icon and label turn red. */
.bd-paver-calculator .bdpc-shape:hover {
  border-color: #fe1507 !important;
  background: #fff !important;
  /* color: #fe1507 !important; */
  box-shadow: 0 0 0 1px rgba(254, 21, 7, .06) !important;
  transform: none !important;
}

.bd-paver-calculator .bdpc-shape[aria-pressed="true"] {
  border-color: #fe1507 !important;
  background: #fff !important;
  color: #fe1507 !important;
  box-shadow: 0 0 0 1px rgba(254, 21, 7, .08) !important;
  transform: none !important;
}


.bd-paver-calculator .bdpc-shape:focus-visible,
.bd-paver-calculator input:focus-visible,
.bd-paver-calculator select:focus-visible,
.bd-paver-calculator button:focus-visible {
  outline: 2px solid #fe1507;
  outline-offset: 2px;
}

.bd-paver-calculator .bdpc-shape-icon {
  display: block;
  width: 34px;
  height: 22px;
  border: 0;
  border-radius: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

/* Keep each shape icon geometrically distinct. */
.bd-paver-calculator .bdpc-shape[data-shape="rectangle"] .bdpc-shape-icon {
  width: 34px !important;
  height: 22px !important;
  border-radius: 2px !important;
  background: currentColor !important;
}

.bd-paver-calculator .bdpc-shape[data-shape="square"] .bdpc-shape-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 2px !important;
  background: currentColor !important;
}

.bd-paver-calculator .bdpc-shape-icon.circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.bd-paver-calculator .bdpc-shape-icon.triangle {
  width: 0;
  height: 0;
  border: 0;
  border-right: 17px solid transparent;
  border-bottom: 30px solid currentColor;
  border-left: 17px solid transparent;
  background: transparent;
}

.bd-paver-calculator .bdpc-step {
  padding-top: 19px;
  margin-top: 19px;
  border-top: 1px solid #e2e6df;
}

.bd-paver-calculator .bdpc-step h3 {
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  line-height: 1.3;
  color: #292e28;
}

.bd-paver-calculator .bdpc-num {
  display: inline-flex;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fe1507;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.bd-paver-calculator .bdpc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bd-paver-calculator .bdpc-field {
  min-width: 0;
}

.bd-paver-calculator .bdpc-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #4a5148;
}

.bd-paver-calculator .bdpc-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 42px;
  padding: 9px 11px;
  border: 1px solid #d6ddd2;
  border-radius: 5px;
  background: #fff;
  color: #30372e;
  font: inherit;
  font-size: 14px;
}

.bd-paver-calculator .bdpc-hint {
  margin: 7px 0 0;
  color: #7a8177;
  font-size: 11px;
  line-height: 1.5;
}

.bd-paver-calculator .bdpc-coverage {
  margin-top: 12px;
  padding: 12px;
  border-radius: 5px;
  background: #fff0ef;
  color: #66302c;
  font-size: 12px;
}

.bd-paver-calculator .bdpc-coverage strong {
  color: #fe1507;
}

.bd-paver-calculator .bdpc-results {
  overflow: hidden;
}

.bd-paver-calculator .bdpc-results-header {
  padding: 22px 23px 19px;
  background: #fe1507;
  color: #fff;
}

.bd-paver-calculator .bdpc-results-header span {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bd-paver-calculator .bdpc-results-header h3 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.25;
}

.bd-paver-calculator .bdpc-results-body {
  padding: 20px 23px 22px;
}

.bd-paver-calculator .bdpc-total-label {
  display: block;
  color: #737b70;
  font-size: 11px;
}

.bd-paver-calculator .bdpc-total {
  display: block;
  margin: 5px 0 2px;
  color: #fe1507;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.bd-paver-calculator .bdpc-breakdown {
  color: #747c71;
  font-size: 11px;
  line-height: 1.5;
}

.bd-paver-calculator .bdpc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e1e5df;
  font-size: 12px;
}

.bd-paver-calculator .bdpc-result-row span {
  color: #72796f;
}

.bd-paver-calculator .bdpc-result-row strong {
  color: #2f362c;
  text-align: right;
}

.bd-paver-calculator .bdpc-tip {
  margin: 15px 0 0;
  padding: 12px;
  border-radius: 5px;
  background: #fff0ef;
  color: #66302c;
  font-size: 12px;
  line-height: 1.6;
}

.bd-paver-calculator .bdpc-disclaimer {
  margin: 13px 0 0;
  color: #81877d;
  font-size: 13px;
  line-height: 1.6;
}

.bd-paver-calculator .bdpc-error {
  display: none;
  margin-top: 12px;
  color: #fe1507;
  font-size: 14px;
  font-weight: bold;
}

.bd-paver-calculator .bdpc-error.is-visible {
  display: block;
}

.bd-paver-calculator .bdpc-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.bd-paver-calculator .bdpc-btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #fe1507;
  border-radius: 5px;
  background: #fe1507;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bd-paver-calculator .bdpc-btn:hover {
  background: #d91105;
  border-color: #d91105;
}

.bd-paver-calculator .bdpc-btn-secondary {
  background: #fff;
  color: #fe1507;
  border-color: #fe1507;
}

.bd-paver-calculator .bdpc-btn-secondary:hover {
  background: #fff0ef;
  color: #fe1507;
}

@media (max-width: 767px) {
  .bd-paver-calculator {
    padding: 42px 0 0px;
  }

  .bd-paver-calculator .bdpc-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bd-paver-calculator .bdpc-wrap {
    width: min(100% - 28px, 560px);
  }

  .bd-paver-calculator .bdpc-form {
    padding: 18px;
  }

  .bd-paver-calculator .bdpc-results-header,
  .bd-paver-calculator .bdpc-results-body {
    padding-left: 19px;
    padding-right: 19px;
  }
}

@media (max-width: 380px) {
  .bd-paver-calculator .bdpc-fields {
    grid-template-columns: 1fr;
  }

  .bd-paver-calculator .bdpc-shapes {
    gap: 5px;
  }

  .bd-paver-calculator .bdpc-shape {
    font-size: 11px;
  }
}

/* Native paver-size dropdown: align with the dimension fields and avoid theme plugin overlap. */
.bd-paver-calculator select#bdpc-preset {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 10px 38px 10px 12px !important;
  border: 1px solid #cfd5df !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #17365d !important;
  line-height: normal !important;
  font-size: 15px !important;
  appearance: auto !important;
  clip: auto !important;
  box-sizing: border-box !important;
}

.bd-paver-calculator .bdpc-field .nice-select {
  display: none !important;
}

.bd-paver-calculator .bdpc-control:focus {
  border-color: #fe1507;
  outline: 2px solid rgba(254, 21, 7, .13);
}

/* Waste slider: JavaScript paints the live red/grey progress on the input background. */
.bd-paver-calculator .bdpc-range-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.bd-paver-calculator input#bdpc-waste.bdpc-range {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 6px;
  margin: 8px 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.bd-paver-calculator input#bdpc-waste.bdpc-range::-webkit-slider-runnable-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.bd-paver-calculator input#bdpc-waste.bdpc-range::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.bd-paver-calculator input#bdpc-waste.bdpc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fe1507;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  cursor: grab;
}

.bd-paver-calculator input#bdpc-waste.bdpc-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fe1507;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  cursor: grab;
}

.bd-paver-calculator .bdpc-range-value {
  min-width: 42px;
  color: #fe1507;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
}

/* Automatic recalculation makes the Calculate button unnecessary; keep Reset full-width. */
.bd-paver-calculator #bdpc-calculate {
  display: none !important;
}

.bd-paver-calculator #bdpc-reset {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  text-align: center;
  background: #fff;
  border: 1px solid #fe1507;
  border-radius: 7px;
  color: #fe1507;
  font-weight: 600;
}

.bd-paver-calculator #bdpc-reset:hover {
  background: #fff8f7;
  border-color: #fe1507;
  color: #fe1507;
}

@media (max-width: 600px) {

  .bd-paver-calculator .bdpc-shapes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bd-paver-calculator .bdpc-shape {
    min-height: 96px;
  }
}


/* floating button start */
/* MANAS floating Paver Calculator shortcut. Does not modify the existing Back to Top button. */
.manas-floating-calculator {
  --manas-float-primary: #fe1507;
  position: fixed;
  right: 24px;
  bottom: 105px;
  /* sits above the existing Back to Top control */
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  overflow: visible;
  border: 1px solid var(--manas-float-primary);
  border-radius: 999px;
  background: var(--manas-float-primary);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgb(0 0 0 / 18%);
  transition: width 260ms ease, box-shadow 260ms ease;
  isolation: isolate;
}

.manas-floating-calculator:hover,
.manas-floating-calculator:focus-visible {
  /* width: 218px; */
  width: 185px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgb(0 0 0 / 22%);
  justify-content: start;
}

.manas-floating-calculator:focus-visible {
  outline: 3px solid rgb(254 21 7 / 30%);
  outline-offset: 4px;
}

.manas-floating-calculator__icon {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  transition: transform 260ms ease;
}

/* When the pill expands leftward, the icon shifts left with it and stays white. */
.manas-floating-calculator:hover .manas-floating-calculator__icon,
.manas-floating-calculator:focus-visible .manas-floating-calculator__icon {
  transform: translateX(0);
}

.manas-floating-calculator__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.manas-floating-calculator__text {
  position: absolute;
  left: 55px;
  top: 50%;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px, -50%);
  pointer-events: none;
  transition: opacity 180ms ease, transform 260ms ease;
}

.manas-floating-calculator:hover .manas-floating-calculator__text,
.manas-floating-calculator:focus-visible .manas-floating-calculator__text {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Touch screens remain icon-only; no hover state is required to discover the link. */
@media (hover: none),
(max-width: 767px) {

  .manas-floating-calculator,
  .manas-floating-calculator:hover,
  .manas-floating-calculator:focus-visible {
    width: 44px;
    height: 44px;
  }

  .manas-floating-calculator__text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .manas-floating-calculator,
  .manas-floating-calculator__icon,
  .manas-floating-calculator__text {
    transition: none;
  }
}


.manas-floating-calculator__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  isolation: isolate;
}

.manas-floating-calculator__icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid #ff9992;
  /* Light red outline */
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: manas-calculator-breathe 1.8s ease-in-out infinite;
}


@keyframes manas-calculator-breathe {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manas-floating-calculator__icon::before {
    animation: none;
  }
}

.manas-floating-calculator:hover .manas-floating-calculator__icon::before {
  animation: manas-calculator-hover-stop 0.25s ease-out forwards;
}

@keyframes manas-calculator-hover-stop {
  to {
    transform: scale(1);
    opacity: 0.6;
  }
}