/**
 * @file
 * Block with the hall rent calculator on a hall page.
 */

.hall-rent-calc {
  background: #f9f9f9;
  border-radius: 10px;
  box-sizing: border-box;
  margin: 50px auto 0;
  max-width: 960px;
  padding: 40px 40px 40px;
}

.hall-rent-calc__field {
  text-align: center;
}

.hall-rent-calc__label {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 auto 20px;
  max-width: 460px;
  text-align: center;
}

.hall-rent-calc__input-wrapper {
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  width: 300px;
}

.hall-rent-calc__input {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
  appearance: textfield;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-sizing: border-box;
  color: #000000;
  font-family: inherit;
  font-size: 18px;
  height: 60px;
  line-height: 58px;
  padding: 0 60px;
  text-align: center;
  width: 100%;
}

.hall-rent-calc__input::-webkit-inner-spin-button,
.hall-rent-calc__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hall-rent-calc__input:focus {
  border-color: #dcdcdc;
  outline: none;
}

.hall-rent-calc__step {
  background: url('/themes/_custom_/main_theme/img/vector/svg_sprite.svg') no-repeat;
  border: 0;
  cursor: pointer;
  height: 18px;
  margin-top: -9px;
  padding: 0;
  position: absolute;
  top: 50%;
  width: 9px;
  z-index: 2;
}

.hall-rent-calc__step--decrease {
  background-position: -387px 0;
  left: 32px;
}

.hall-rent-calc__step--decrease:hover {
  background-position: -387px -29.5px;
}

.hall-rent-calc__step--decrease[disabled] {
  background-position: -387px -58px;
  cursor: default;
}

.hall-rent-calc__step--increase {
  background-position: -410px 0;
  right: 32px;
}

.hall-rent-calc__step--increase:hover {
  background-position: -410px -29.5px;
}

.hall-rent-calc__step--increase[disabled] {
  background-position: -410px -58px;
  cursor: default;
}

.hall-rent-calc .tarif-price-container {
  margin: 35px auto 30px;
  max-width: 620px;
  padding: 0;
}

.hall-rent-calc__guests {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 30px;
  text-align: center;
}

.hall-rent-calc__tariffs {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 60px;
  justify-content: center;
}

.hall-rent-calc__tariff {
  flex: 1 1 300px;
  max-width: 380px;
  text-align: center;
}

.hall-rent-calc__tariff-head {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 0 auto 15px;
  max-width: 360px;
}

.hall-rent-calc__tariff-ico {
  flex: 0 0 56px;
  height: 51px;
  line-height: 0;
}

.hall-rent-calc__tariff-ico img {
  height: 100%;
  width: auto;
}

.hall-rent-calc__tariff-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.hall-rent-calc__tariff-total {
  color: #c01718;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.hall-rent-calc__cta {
  margin-top: 40px;
}

/* Anchor target: booking form below the hall content. */
.paragraph--only-form,
.paragraph--form {
  scroll-margin-top: 100px;
}

@media only screen and (max-width: 999px) {
  .hall-rent-calc {
    margin-top: 40px;
    padding: 35px 25px 30px;
  }

  .hall-rent-calc__label {
    font-size: 18px;
  }

  .hall-rent-calc__tariff-total {
    font-size: 28px;
  }
}

@media only screen and (max-width: 600px) {
  .hall-rent-calc {
    margin: 30px 15px 0;
    padding: 30px 18px 25px;
  }

  .hall-rent-calc__label {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .hall-rent-calc__input {
    font-size: 16px;
    height: 54px;
    line-height: 52px;
    padding: 0 50px;
  }

  .hall-rent-calc__step--decrease {
    left: 24px;
  }

  .hall-rent-calc__step--increase {
    right: 24px;
  }

  .hall-rent-calc__guests {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .hall-rent-calc__tariff-head {
    gap: 15px;
  }

  .hall-rent-calc__tariff-ico {
    flex-basis: 46px;
    height: 42px;
  }

  .hall-rent-calc__tariff-name {
    font-size: 17px;
  }

  .hall-rent-calc__tariff-total {
    font-size: 24px;
  }

  .hall-rent-calc__cta a {
    box-sizing: border-box;
    max-width: 320px;
    width: 100%;
  }

  .paragraph--only-form,
  .paragraph--form {
    scroll-margin-top: 80px;
  }
}