*,
::after,
::before {
  box-sizing: border-box;
}

/* The Modal (background) */
.slats__modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 130px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  padding-bottom: 20px;
  font-family: 'Open Sans';
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.slats__modal input[type="number"] {
  -moz-appearance: textfield;
  background-clip: padding-box;
  background-color: #fff;
  border-radius: 0.25rem;
  border: 1px solid #b66a40;
  color: #494c50;
  display: block;
  font-size: 14px;
  font-weight: 400;
  height: 25px;
  line-height: 1;
  padding: 0.275rem 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: 100%;
  min-height: 25px;
  margin-bottom: 0;
}

/* Modal Content */
.slats__modal .modal-content {
  -webkit-animation-duration: 0.4s;
  -webkit-animation-name: animatetop;
  animation-duration: 0.4s;
  animation-name: animatetop;
  background-color: #fefefe;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  margin: auto;
  padding: 0;
  position: relative;
  width: 360px;
}
#modalCalculator .modal-header {
  padding-bottom: 0;
}
.slats__modal h2 {
  line-height: 1;
  margin: 0 !important;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.slats__modal .close,
.slats__modal .closeMoreInfo {
  color: #494c50;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.slats__modal .close:hover,
.slats__modal .closeMoreInfo:hover,
.slats__modal .close:focus,
.slats__modal .closeMoreInfo:focus {
  color: #494c50;
  text-decoration: none;
  cursor: pointer;
}

.slats__modal .modal-header {
  padding: 10px 30px;
  background-color: #fff;
  color: #494c50;
  border-radius: 15px;
}

.slats__modal .modal-body {
  padding: 10px 30px;
  border-radius: 15px;
}

.slats__modal .modal-footer {
  background-color: #b66a40;
  border-radius: 15px;
  bottom: 0;
  color: #fff;
  display: flex;
  margin-bottom: 80px;
  opacity: 0;
  padding: 70px 10px 20px;
  position: absolute;
  text-align: center;
  transition: all 1s;
  width: 360px;
  z-index: -1;
}

.slats__modal .modal-footer .modal-foooter-col {
  width: 50%;
}
.slats__modal .modal-footer.show {
  bottom: -190px;
  opacity: 1;
}

.slats__modal .form-group {
  margin-bottom: 0.7rem;
}
.slats__modal label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #494c50;
  font-size: 14px;
  text-transform: none;
  font-weight: 400;
  padding: 0;
}
.slats__modal .form-control {
  background-clip: padding-box;
  background-color: #fff;
  border-radius: 0.25rem;
  border: 1px solid #b66a40;
  color: #494c50;
  display: block;
  font-size: 14px;
  font-weight: 400;
  height: 25px;
  line-height: 1;
  padding: 0.275rem 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: 100%;
  min-height: 25px;
}

.slats__modal .form-divider {
  border: 1px solid #7b8187;
  width: 100%;
  margin-bottom: 10px;
  margin-top: 15px;
}

.slats__modal .form-inline {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -ms-flex-align: center;
  align-items: center;
  justify-content: space-between;
}

.slats__modal .form-inline .form-control {
  display: inline-block;
  width: auto;
  vertical-align: middle;
}

.slats__modal .form-inline .form-group {
  width: 47%;
  margin-right: 10px;
}
.slats__modal .form-inline .form-group:nth-child(2) {
  margin-right: 0;
}
.slats__modal .form-inline .form-group .form-control {
  width: 100%;
}

.slats__modal .btn-calculate,
.slats__modal .btn-subtmit-form {
  border: 1px solid #b66a40;
  background-color: #b66a40;
  width: 100%;
  padding: 4px 8px;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  font-size: 13px;
  text-transform: capitalize;
  font-weight: 400;
  font-family: 'Open Sans';
}

.slats__modal .btn-calculate:hover,
.slats__modal .btn-subtmit-form:hover {
  cursor: pointer;
}
.slats__modal .btn-subtmit-form {
  width: 50%;
  display: block;
  margin: 15px auto auto;
}
.slats__modal .more-info-link {
  color: #fff;
  display: block;
  font-size: 16px;
  pointer-events: none;
  text-align: center;
  text-decoration: underline;
  line-height: 1;
}

.slats__modal .more-info-text {
  color: #fff;
  margin-top: 14px;
  font-size: 16px;
}

#modalMoreInfo.slats__modal ul > li:not(:last-child) {
  margin-bottom: 0;
}
.slats__modal .more-info-link:hover {
  cursor: pointer;
}

.slats__modal .results-container {
  font-size: 16px;
}

.slats__modal .input-results {
  background-clip: padding-box;
  background-color: #fff;
  border-radius: 0.25rem;
  border: 1px solid #b66a40;
  color: #494c50;
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  height: 30px;
  margin: 0 10px;
  padding: 0.375rem 0.75rem;
  text-align: center;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: 100px;
}

#modalMoreInfo.slats__modal .modal-content {
  width: 80%;
  max-width: 500px;
}

#modalMoreInfo.slats__modal h2 {
  margin: 0;
}

.slats__modal .form-email label {
  font-weight: bold;
}

#modalMoreInfo.slats__modal ul {
  list-style: none; /* Remove default bullets */
  margin: 0;
}

#modalMoreInfo.slats__modal ul li::before {
  content: "\2022"; /* Add content: \2022 is the CSS Code/unicode for a bullet */
  color: #b66a40; /* Change the color */
  font-weight: bold; /* If you want it to be bold */
  display: inline-block; /* Needed to add space between the bullet and the text */
  width: 1em; /* Also needed for space (tweak if needed) */
  margin-left: -1em; /* Also needed for space (tweak if needed) */
}

.calculator-container {
  display: flex;
}

.calculator__container--right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 10px;
  width: 100%;
}

.btn-click-here {
  background: transparent;
  border: 0;
  color: #b66a40;
  font-size: 20px;
  padding: 10px 0;
  text-align: left;
  text-transform: uppercase;
  width: 180px;
}

.btn-click-here:hover {
  background: transparent;
}

.btn-click-here:focus {
  border: 0;
  outline: none;
}

.btn-click-here:hover {
  cursor: pointer;
}

.slats__modal .error-message {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  color: #721c24;
  display: none;
  margin-top: 15px;
  padding: 0.75rem 1.25rem;
  position: relative;
}
.slats__modal .error-message.show-error {
  display: block;
}

.slats__modal .info-message {
  background-color: #c6def5;
  border-color: #c6def5;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  color: black;
  display: none;
  padding: 0.75rem 1.25rem;
  position: relative;
}

@media screen and (max-width: 786px) {
  #modalMoreInfo.slats__modal .modal-content {
    margin-top: 45px;
  }
  #modalMoreInfo.slats__modal ul {
    padding-left: 15px;
  }
  .calculator-container {
    display: block;
    text-align: center;
  }
  
  .btn-click-here {
    margin: 0 auto;
    text-align: center;
  }

}
