.rpl-estimator-wrap,
.rpl-estimator-wrap * {
  box-sizing: border-box;
}

.rpl-estimator-wrap {
  width: 100%;
}

.rpl-estimator-wrap .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.rpl-estimator-wrap [class*="col-"] {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.rpl-estimator-wrap .col {
  flex: 1 0 0;
  padding-left: 15px;
  padding-right: 15px;
}

.rpl-estimator-wrap .mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.rpl-estimator-wrap .col-xl-6,
.rpl-estimator-wrap .col-lg-6,
.rpl-estimator-wrap .col-md-8,
.rpl-estimator-wrap .col-sm-10 {
  flex: 0 0 100%;
  max-width: 100%;
}

.rpl-estimator-wrap .col-lg-9,
.rpl-estimator-wrap .col-md-7,
.rpl-estimator-wrap .col-sm-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.rpl-estimator-wrap .col-lg-3,
.rpl-estimator-wrap .col-md-5,
.rpl-estimator-wrap .col-sm-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.rpl-estimator-wrap .col-sm-12,
.rpl-estimator-wrap .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.rpl-estimator-wrap .offset-md-5 {
  margin-left: 41.666667%;
}

.rpl-estimator-wrap .float-right {
  float: right;
}

.rpl-estimator-wrap .form-group {
  margin-bottom: 1rem;
}

.rpl-estimator-wrap .form-control,
.rpl-estimator-wrap select,
.rpl-estimator-wrap .form-control-lg {
  display: block;
  width: 100%;
  height: calc(2.875rem + 2px);
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.3rem;
}

.rpl-estimator-wrap .input-group {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.rpl-estimator-wrap .rpl-form-group.input-group {
  justify-content: center;
}

.rpl-estimator-wrap .input-group > label,
.rpl-estimator-wrap .input-group > .label {
  flex: 0 0 100%;
  max-width: 100%;
  display: block;
  text-align: center;
  margin-bottom: 10px;
}

.rpl-estimator-wrap .input-group .form-control {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.rpl-estimator-wrap .input-group .invalid-feedback {
  flex: 0 0 100%;
  max-width: 100%;
}

.rpl-estimator-wrap .input-group-append {
  display: flex;
  margin-left: -1px;
}

.rpl-estimator-wrap .input-group-text {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: #495057;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.3rem;
}

.rpl-estimator-wrap .btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.rpl-estimator-wrap .btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.3rem;
}

.rpl-estimator-wrap .btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.rpl-estimator-wrap .btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.rpl-estimator-wrap .btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.rpl-estimator-wrap .btn-warning {
  color: #212529;
  background-color: #ffc107;
  border-color: #ffc107;
}

.rpl-estimator-wrap .btn-outline-success {
  color: #28a745;
  background-color: transparent;
  border-color: #28a745;
}

.rpl-estimator-wrap .btn-outline-success:hover,
.rpl-estimator-wrap .btn-outline-success:focus {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.rpl-estimator-wrap .btn-outline-danger {
  color: #dc3545;
  background-color: transparent;
  border-color: #dc3545;
}

.rpl-estimator-wrap .btn-outline-danger:hover,
.rpl-estimator-wrap .btn-outline-danger:focus {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.rpl-estimator-wrap .btn-group {
  position: relative;
  display: inline-flex;
}

.rpl-estimator-wrap .btn-group .btn + .btn {
  margin-left: -1px;
}

.rpl-estimator-wrap .invalid-feedback {
  display: none;
  margin-top: 0.25rem;
  width: 100%;
  font-size: 0.875rem;
  color: #dc3545;
}

.rpl-estimator-wrap .is-invalid {
  border-color: #dc3545 !important;
}

.rpl-estimator-wrap .is-invalid + .invalid-feedback,
.rpl-estimator-wrap .btn-group.is-invalid + .invalid-feedback {
  display: block;
}

.rpl-estimator-wrap .rpl-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid #000;
  font-size: 14px;
  font-weight: 700;
}

.rpl-estimator-wrap .tooltip {
  font-size: 20px !important;
}

.rpl-estimator-wrap .rpl-card {
  padding: 10px;
  height: auto;
  overflow: visible;
}

.rpl-estimator-wrap,
.rpl-estimator-wrap #rpl-calculator-form,
.rpl-estimator-wrap #rpl-calculator {
  height: auto;
  overflow: visible;
}

.rpl-estimator-wrap label {
  font-size: 22px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.rpl-estimator-wrap .rpl-form-group {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.rpl-estimator-wrap input[type="number"] {
  width: 100%;
  min-width: 260px;
}

.rpl-estimator-wrap #roofAreaSquares {
  flex: 0 0 160px;
  width: 160px;
  max-width: 100%;
  min-width: 120px;
}

.rpl-estimator-wrap #roofAreaSquares + .input-group-append {
  flex: 0 0 auto;
}

.rpl-estimator-wrap .rpl-form-row {
  margin-bottom: 22px;
  width: 100%;
}

.rpl-estimator-wrap .rpl-open-modal {
  margin-left: 20px;
  width: 25%;
  min-width: 170px;
  color: #fff;
}

.rpl-estimator-wrap #rpl-result .col-sm-12.offset-md-5.col-md-7.float-right {
  float: none;
  margin-left: 0;
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2%;
}

.rpl-estimator-wrap #rpl-result .col-sm-12.offset-md-5.col-md-7.float-right .btn {
  float: none;
  flex: 0 0 auto;
}

.rpl-estimator-wrap .rpl-open-modal:hover,
.rpl-estimator-wrap .rpl-open-modal:focus {
  color: #fff;
}

.rpl-estimator-wrap .rpl-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 8px auto 0;
}

.rpl-estimator-wrap .rpl-submit-btn {
  width: 100%;
  animation: rpl-grow 400ms ease-in;
}

.rpl-estimator-wrap .rpl-terms-wrap {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid #d8e7ff;
  border-radius: 10px;
  background: #f7fbff;
}

.rpl-estimator-wrap .rpl-terms-label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  width: 100%;
}

.rpl-estimator-wrap .rpl-terms-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.rpl-estimator-wrap .rpl-terms-label a {
  color: #0059c9;
  font-weight: 600;
}

.rpl-estimator-wrap .rpl-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.rpl-estimator-wrap .rpl-hidden {
  display: none !important;
}

.rpl-estimator-wrap .rpl-visible {
  display: block;
  animation: rpl-slide-up 400ms ease-in;
}

.rpl-estimator-wrap .result {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #d8e7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: 0 16px 30px rgba(27, 73, 133, 0.16);
}

.rpl-estimator-wrap .result label {
  font-size: 20px;
}

.rpl-estimator-wrap .total {
  font-weight: 700;
  margin-top: 10px;
  color: #28a745;
  font-size: 32px;
}

.rpl-estimator-wrap .rpl-total-row {
  margin-top: 8px;
  margin-bottom: 10px;
}

.rpl-estimator-wrap .rpl-total-title-col,
.rpl-estimator-wrap .rpl-total-amount-col {
  text-align: center;
}

.rpl-estimator-wrap .rpl-total-title-col .total {
  color: #0d5db8;
  font-size: 28px;
  margin-bottom: 4px;
}

.rpl-estimator-wrap .rpl-total-range {
  color: #0b8f44;
  font-size: 40px !important;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rpl-estimator-wrap .rpl-line-item-row {
  align-items: center;
  margin: 0;
  padding: 10px 4px;
  border-bottom: 1px dashed #d5e2f3;
}

.rpl-estimator-wrap .rpl-line-item-row:last-of-type {
  border-bottom: 0;
}

.rpl-estimator-wrap .rpl-line-item-title-col,
.rpl-estimator-wrap .rpl-line-item-amount-col {
  display: flex;
  align-items: center;
}

.rpl-estimator-wrap .rpl-line-item-title {
  margin: 0;
  width: 100%;
  color: #27405f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.rpl-estimator-wrap .rpl-line-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  margin-right: 8px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.rpl-estimator-wrap .rpl-line-item-badge-blue {
  color: #0e5ab2;
  background: #e9f2ff;
}

.rpl-estimator-wrap .rpl-line-item-badge-green {
  color: #0f7a4a;
  background: #e7f8ee;
}

.rpl-estimator-wrap .rpl-line-item-badge-slate {
  color: #485569;
  background: #eef2f6;
}

.rpl-estimator-wrap .rpl-line-item-badge-warm {
  color: #935400;
  background: #fff3e5;
}

.rpl-estimator-wrap .rpl-line-item-amount {
  margin: 0;
  width: 100%;
  color: #1d3557;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.rpl-estimator-wrap hr {
  border: 0;
  clear: both;
  display: block;
  text-align: center;
  width: 100%;
}

.rpl-estimator-wrap .progress {
  background: rgba(1, 15, 30, 0.1);
  height: 1px;
  overflow: hidden;
  position: relative;
}

.rpl-estimator-wrap .progress::before {
  animation-duration: 4s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
  animation-name: rpl-progress;
  background: #28a745;
  content: "";
  display: block;
  height: 1px;
  position: absolute;
  width: 80px;
}

.rpl-estimator-wrap .rpl-call-btn,
.rpl-estimator-wrap .glow {
  color: #fff;
  animation: rpl-glowing 1300ms infinite;
}

.rpl-estimator-wrap .rpl-tooltip {
  cursor: pointer;
  color: #000;
}

.rpl-estimator-wrap .rpl-tooltip-content {
  display: none;
}

.rpl-custom-tooltip {
  position: fixed;
  z-index: 999999;
  max-width: 640px;
  background: #fff;
  color: #212529;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  line-height: 1.4;
  pointer-events: none;
}

.rpl-custom-tooltip.rpl-custom-tooltip-currentShinglesTooltip {
  max-width: 560px;
}

.rpl-custom-tooltip.rpl-custom-tooltip-currentShinglesTooltip .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -6px;
  margin-right: -6px;
}

.rpl-custom-tooltip.rpl-custom-tooltip-currentShinglesTooltip .col {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 6px;
  padding-right: 6px;
  margin-bottom: 10px;
}

.rpl-custom-tooltip.rpl-custom-tooltip-currentShinglesTooltip .col img {
  width: 100% !important;
  height: auto;
}

.rpl-custom-tooltip.rpl-custom-tooltip-roofPitchTooltip {
  max-width: 860px;
  font-size: 18px;
}

.rpl-custom-tooltip img {
  max-width: 100%;
  height: auto;
}

.rpl-custom-tooltip.rpl-custom-tooltip-roofPitchTooltip img {
  width: 100% !important;
  max-width: 100%;
}

.rpl-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
}

.rpl-modal.rpl-modal-open {
  display: flex;
}

.rpl-modal-dialog {
  width: 100%;
  max-width: 920px;
}

.rpl-modal-content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  max-height: 90vh;
  overflow: auto;
}

.rpl-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.rpl-modal-lock {
  overflow: hidden;
}

#rplLeadModal .modal-content,
#rplLeadModal .rpl-modal-content {
  padding: 20px;
}

@keyframes rpl-progress {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(1440px);
  }
}

@keyframes rpl-glowing {
  0% {
    background-color: #0091b2;
    box-shadow: 0 0 3px #0091b2;
  }

  50% {
    background-color: #21c7ed;
    box-shadow: 0 0 15px #21c7ed;
  }

  100% {
    background-color: #0091b2;
    box-shadow: 0 0 3px #0091b2;
  }
}

@keyframes rpl-slide-up {
  0% {
    transform: translateY(50%);
  }

  100% {
    transform: translateY(0%);
  }
}

@keyframes rpl-grow {
  0% {
    transform: scale(0.5);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 991px) {
  .rpl-estimator-wrap .row {
    margin-left: 0;
    margin-right: 0;
  }

  .rpl-estimator-wrap [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .rpl-estimator-wrap .col-lg-9,
  .rpl-estimator-wrap .col-md-7,
  .rpl-estimator-wrap .col-sm-9,
  .rpl-estimator-wrap .col-lg-3,
  .rpl-estimator-wrap .col-md-5,
  .rpl-estimator-wrap .col-sm-3,
  .rpl-estimator-wrap .offset-md-5,
  .rpl-estimator-wrap .col-md-7 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .rpl-estimator-wrap .rpl-form-group {
    width: 100%;
  }

  .rpl-estimator-wrap .rpl-open-modal {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .rpl-estimator-wrap .rpl-terms-label {
    justify-content: flex-start;
    text-align: left;
    font-size: 15px;
  }

  .rpl-estimator-wrap input[type="number"] {
    width: 100%;
    min-width: 0;
  }

  .rpl-estimator-wrap #roofAreaSquares {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .rpl-estimator-wrap #roofAreaSquares + .input-group-append {
    flex: 0 0 auto;
  }

  .rpl-estimator-wrap .input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .rpl-estimator-wrap .input-group-append {
    margin-top: 0;
  }

  .rpl-estimator-wrap label {
    font-size: 18px;
  }

  .rpl-estimator-wrap .result label {
    font-size: 18px;
  }

  .rpl-estimator-wrap .total {
    font-size: 26px;
  }

  .rpl-estimator-wrap .rpl-total-title-col .total {
    font-size: 22px;
  }

  .rpl-estimator-wrap .rpl-total-range {
    font-size: 40px !important;
  }

  .rpl-estimator-wrap .rpl-line-item-row {
    padding: 8px 0;
  }

  .rpl-estimator-wrap .rpl-line-item-title,
  .rpl-estimator-wrap .rpl-line-item-amount {
    font-size: 16px;
  }

  .rpl-estimator-wrap .rpl-line-item-amount {
    text-align: left;
    margin-top: 4px;
  }

  .rpl-estimator-wrap .rpl-call-btn,
  .rpl-estimator-wrap .rpl-print-btn {
    width: 100% !important;
    margin-top: 8px;
  }

  .rpl-estimator-wrap #rpl-result .col-sm-12.offset-md-5.col-md-7.float-right {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    overflow: hidden;
  }

  .rpl-estimator-wrap #rpl-result .col-sm-12.offset-md-5.col-md-7.float-right .btn {
    display: block;
    float: none;
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }

  .rpl-estimator-wrap .btn-group {
    width: 100%;
  }

  .rpl-estimator-wrap .btn-group .btn {
    width: 50% !important;
  }

  .rpl-custom-tooltip,
  .rpl-custom-tooltip.rpl-custom-tooltip-roofPitchTooltip {
    max-width: calc(100vw - 16px);
    font-size: 15px;
  }

  .rpl-custom-tooltip .row {
    margin-left: 0;
    margin-right: 0;
  }

  .rpl-custom-tooltip [class*="col"] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 8px;
    padding-left: 0;
    padding-right: 0;
  }
}
