html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p,
blockquote, pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp, small,
strike, strong, sub, sup, tt, var, b, u, i, center,dl, dt,
d, li, fieldset, form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside, canvas, details,
embed, figure, figcaption, footer, header, hgroup, menu, nav,
output, ruby, section, summary, time, mark, audio, video {
  padding: 0;
  border: 0;
  vertical-align: baseline;
  margin: 0;
  box-sizing: border-box;
}

/*

Changing color of form reponse to white

*/

.wpcf7-response-output {
  /*  color:white; */
}

/***** Grid *****/

.calc-container {
  font-family: Open Sans, sans-serif;
  font-weight: 400;
  width: 100%;
}

.calculator-wrap {
  padding: 0;
  background: #c83527;
}
.row {
  margin-left: -5px;
  margin-right: -5px;
}

.calc_row:after,
.calc_clearfix:after {
  content: "";
  display: table;
  clear: both;
  margin-right: -5px;
  margin-left: -5px;
}

*[class^="col-md-"] {
  float: left;
}

.col-md-6 {
  width: 100%;
  padding: 0 5px;
}

.col-md-5 {
  width: 83.33333%;
  padding: 0 5px;
}

.col-md-4 {
  width: 66.666666%;
  padding: 0 5px;
}

.col-md-3 {
  width: 50%;
  padding: 0 5px;
}

.col-md-2 {
  width: 33.33333%;
  padding: 0 5px;
}

.col-md-1 {
  width: 16.66666%;
  padding: 0 5px;
}

.choose-calc {
  display: table;
  background: #c83527;
  padding: 130px 12px;
  width: 320px;
}

.calc-wrapper input[type = "text"][readonly],
.calc-wrapper ~ input.wpcf7-form-control,
.calc-wrapper ~ textarea.wpcf7-textarea,
.calc-wrapper output {
  width: 100%;
  height: 30px;
  margin: 0 0 10px;
  border-radius: 4px;
  box-sizing: border-box;
  background: #fff;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  padding-left: 15px;
  padding-right: 15px;
  border:none;
}

output {
  padding: 6px 10px;
  font-weight: 700;
}

.calc-wrapper ~ textarea.wpcf7-textarea {
  min-height: 60px;
}

.calc-wrapper ~ input[type = "text"].wpcf7-form-control {
  border: none;
  padding-left: 15px;
  padding-right: 15px;
}

input[type=range] {
  position: relative;
  -webkit-appearance: none; /* Скрывает слайдер, чтобы можно было создать свой */
  width: 100%; /* Указание параметра ширины требуется для Firefox. */
  margin-bottom: 30px;
}

.calc-wrapper #salinvoices:before,
.calc-wrapper #purinvoices:before,
.calc-wrapper #wages_for_emp:before,
.calc-wrapper #remotes:before,
.calc-wrapper #flats:before,
.calc-wrapper #workers:before {
  content: '0';
  position: absolute;
  top: 10px;
  font-weight: 700;
  color: #333;
}

.calc-wrapper #salinvoices:after,
.calc-wrapper #purinvoices:after,
.calc-wrapper #wages_for_emp:after,
.calc-wrapper #remotes:after,
.calc-wrapper #flats:after,
.calc-wrapper #workers:after {
  position: absolute;
  top: 10px;
  font-weight: 700;
  color: #333;
  right: 0;
}


.calc-wrapper #flats:before {
  content: '1';
}
.calc-wrapper #salinvoices:after,
.calc-wrapper #purinvoices:after {
  content: '2000'
}

.calc-wrapper #salinvoices.csv:after,
.calc-wrapper #purinvoices.csv:after {
  content: '9000';
}

.calc-wrapper #wages_for_emp:after,
.calc-wrapper #wages_for_emp:after,
.calc-wrapper #wages_for_emp:after {
  content: '300';
}

.calc-wrapper #remotes:after {
  content: '8';
}

.calc-wrapper #flats:after {
  content: '120';
}
.calc-wrapper #workers:after {
  content: '20';
}

.calc-wrapper ~ .wpcf7 .wpcf7-form-control-wrap input,
.calc-wrapper ~ .wpcf7 .wpcf7-form-control-wrap textarea {
  width: 100%;
  height: 30px;
  border: none;
  padding: 0 15px;
  color: #2c2c2c;
  margin-bottom: 10px;
  box-sizing: border-box;
  border-radius: 6px;
  background-color: #fff;
}

.calc-wrapper ~ .wpcf7 .wpcf7-form-control-wrap textarea {
  min-height: 150px;
}


.calc-wrapper ~ span.wpcf7-not-valid-tip {
  color: #fff;
  font-size: 12px;
  display: block;
  margin: -5px 0 15px;
}
fieldset {
  border: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  outline: none;
}

.input__gray {
  background: #ececec!important;
  border: none;
}

input[type=range]::-ms-track {
    height: 5px;
    width: 100%;
    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;

    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;
    cursor: pointer;
    /*remove default tick marks*/
    color: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 6px;
    background: #c83527;
    border: none;
    border-radius: 10px;
}

input[type=range]::-moz-range-track {
    width: 300px;
    height: 5px;
    background: #c83527;
    border: none;
    border-radius: 3px;
}

input[type=range]::-ms-fill-lower {
    background: #c83527;
    border-radius: 10px;
}
input[type=range]::-ms-fill-upper {
    background: #c83527;
    border-radius: 10px;
}
input[type=range]:focus::-ms-fill-lower {
    background: #c83527;
}
input[type=range]:focus::-ms-fill-upper {
    background: #c83527;
}

input[type=range]:focus {
  outline: none; /* Убирает голубую границу у элемента. Хотя, возможно, и стоит создавать некоторое оформления для состояния фокуса в целях обеспечения доступности. */
}

input[type=range]::-ms-track {
  width: 100%;
  cursor: pointer;
  background: transparent; /* Скрывает слайдер, чтобы можно было добавить собственные стили. */
  border-color: transparent;
  color: transparent;
}

/* Специальные правила для браузеров на движках WebKit/Blink */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #c83527;
  cursor: pointer;
  margin-top: -4px;
}

/* Тоже самое для Firefox */
input[type=range]::-moz-range-thumb {
  border: none;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #c83527;
  cursor: pointer;
}

/* Тоже самое для IE */
input[type=range]::-ms-thumb {
  border: none;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #c83527;
  cursor: pointer;
}


.input__gray {
  background: #ececec!important;
  border: none;
}

::-webkit-input-placeholder {
  font-weight: 700;
  color: #333;
}

:-moz-placeholder { /* Firefox 18- */
  font-weight: 700;
  color: #333;
}

::-moz-placeholder {  /* Firefox 19+ */
  font-weight: 700;
  color: #333;
}

:-ms-input-placeholder {
  font-weight: 700;
  color: #333;
}

.calc-btn,
.calc-wrapper ~ .wpcf7 .wpcf7-form-control.wpcf7-submit {
  font-size: 12px;
  width: 80%!important;
  height: 40px;
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  display: table;
  width: auto;
  line-height: 5px;
  margin: 0 auto;
  border: solid 2px #fff;
}

.calc-btn__white,
.calc-wrapper ~ .wpcf7-form-control.wpcf7-submit {
  color: #fff;
  border: solid 2px #fff;
  background: transparent;
}

.calc-btn__white:hover,
.calc-btn__white:focus,
.calc-wrapper ~ .wpcf7-form-control.wpcf7-submit:hover,
.calc-wrapper ~ .wpcf7-form-control.wpcf7-submit:focus {
  color: #c83527;
  background: #fff;
  border: solid 2px #fff;
}

.calc-header {
  width: 45%;
  background: #c83527;
  color: #fff;
  float: right;
  padding-top: 10px;
}
.calc-header_text {
  width: 100%;
  background: #747474;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  padding: 10px 0;
}

.live-calc {
  text-align: center;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  padding: 15px 0;
  border-radius: 10px 10px 0 0;
  margin: 10px 10px 0;
  color: #2c2c2c;
}

.live-calc ~ .calc_row.mar-bot-30 {
  background: #fff;
  margin: 0 10px 0;
  color: #2c2c2c;
}

.live-calc_sum {
  font-size: 30px;
  font-weight: 700;
  color: #2c2c2c;
  margin-top: 15px;
}

.live-calc_sum span {
  font-size: 14px;
}

.live-calc_sum__red {
  color: #c83527;
}

.section {
  padding: 30px 5px;
  font-size: 14px;
  background: #fff;
}

.section__red {
  background: #d23f31;
  color: #fff;
}

.section__gray {
  background: #f4f4f4;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.round_radio {
  display: none;
}

.round_radio+label {
  position: relative;
  display: inline-block;
  margin-left: 33px;
}

.round_radio.first+label {
  margin-left: 0;
}

.round_radio+label:before {
  content: ' ';
  display: table;
  background: url(../images/checkboxes.png);
  width: 20px;
  height: 20px;
  margin: 0 auto 10px;
  cursor: pointer;
}

.round_radio__gray+label:before {
  background-position: 0px 0px;
}

.round_radio__gray:checked+label:before {
  background-position: 0px -25px;
}

.round_radio__red+label:before {
  background-position: -25px 0px;
}

.round_radio__red:checked+label:before {
  background-position: -25px -25px;
}

.form-block {
  position: relative;
  display: table;
  margin: 10px auto 40px;
}

.form-block:last-child {
  margin: 10px auto 0;
}


.form-block_line {
  position: relative;
  top: 12px;
  width: 98%;
  width: 90%;
  display: table;
  margin: 0 auto;
}

.form-block_label {
  font-weight: 700;
}

.form-block_label:first-child {
  left: 0;
}

.form-block_label:last-child {
  right: 0;
}

.form-block_line__gray {
  border-bottom: solid 4px #ececec;
}

.form-block_line__red {
  border-bottom: solid 4px #c83527;
}

.calc-btn_radio {
  display: none;
}

.calc-btn_radio.first+label {
  margin-left: 0;
}

.calc-btn_radio+label:before {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  float: left;
  width: 50%;
  border: solid 2px #d23f31;
  padding: 10px 30px;
  color: #d23f31;
  cursor: pointer;
  box-sizing: border-box;
  background: #fff;
  text-align: center;
}

.calc-btn_radio__csv+label:before {
  content: 'CSV';
  border-radius: 4px 0 0 4px;
}

.calc-btn_radio__koondtabel+label:before {
  content: 'XLS';
  border-radius: 0 4px 4px 0;
}

.calc-btn_radio:checked+label:before {
  background: #d23f31;
  color: #fff;
}

.calc-btn-group {
  margin-top: 35px;
  width: 100%;
}

.calc-btn-group li:first-child a{
  border-radius: 4px 0 0 4px;
}

.calc-btn-group li:last-child a{
  border-radius: 0 4px 4px 0;
}

.calc-btn-group li a {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  float: left;
  width: 50%;
  border: solid 2px #fff;
  padding: 10px 30px;
  color: #fff;
  cursor: pointer;
}

.calc-btn-group li:hover a,
.calc-btn-group li:focus a {
  color: #d23f31;
  background: #fff;
  border: solid 2px #fff;
}

.slider_label {
  position: relative;
  top: 10px;
}

.slider_input {
  width: 85px;
}

.contact-set {
  margin-bottom: 15px;
}

.contact-set:last-child {
  margin-bottom: 0;
}

.contact-set_label {
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-set_input {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.4);
}

.contact_btn {
  display: table;
  margin: 0 auto;
  width: auto;
  padding: 10px 80px;
}

.live-details {
  font-size: 10px;
  padding: 10px 0 0 0;
}

.live-details p {
  margin-bottom: 5px;
}

.message {
  overflow: hidden;
  box-sizing: border-box;
  padding: 10px;
  font-size: 13px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  margin: 0 10px 0;
  color: #2c2c2c;
}

.message>div {
  min-height: 40px;
}

#toggle {
  position:absolute;
  appearance:none;
  cursor:pointer;
  left:-100%;
  top:-100%;
}

#toggle + label {
  cursor: pointer;

  position: absolute;
  bottom: -4px;
  left: 50%;
  margin-left: -5px;
}
#toggle + label:after {
  content:"\f103";
  font-family: FontAwesome;
  color: #c83527;
}

.live-details {
  transition: margin 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
}

#toggle:checked ~ .live-details {
  padding-top: 100px;
}

#toggle:checked ~ .message {
  top: 150px;
}

#toggle:checked ~ .live-details {
  margin-top: 40px;
}

#toggle:checked + label:after {
  content:"\f102";
  font-family: FontAwesome;
  color: #c83527;
}

.message p {
  margin: 0;
  text-align: center;
  line-height: 24px;
}

.priceRangeInfo{
    position: relative;
    height: 30px;
    margin-top: 60px;
}
.priceRangeInfo label{
    position: absolute;
    top: -30px;
    left: 10px;
}                            /* moves label field */
.priceRangeInfo #buying_slider_min{
    top: -40px;
    position: absolute;
    left: 100px;
}       /* moves first input field */
.priceRangeInfo #buying_slider_max{
    top: -40px;
    position: absolute;
    left: 170px;
}      /* move second input field */
.priceRangeInfo div.ui-slider{
    position: absolute;
}                   /* move both sliders - adressing 1st slider with CSS is hard */
.priceRangeInfo div:last-child{
    position: absolute;
    left: 0px;
}

.customradio {
  margin-bottom: 50px !important;
  margin-top: 15px !important;;
}

.customradio li {
  width: 70px;
  height: 2em;
  text-align: center;
  line-height: 2em;
  margin: 0 1em;
  display: inline-block;
  color: white;
  position: relative;
}
@media (max-width: 768px) {
  .customradio li {
  width: 50px;
  height: 2em;
  text-align: center;
  line-height: 2em;
  margin: 0 1em;
  display: inline-block;
  color: white;
  position: relative;
  }
}

.customradio li:before{
  content: '';
  position: absolute;
  top: .9em;
  left: -55px;
  width: 80px;
  height: .2em;
  background: #ececec;
}

.customradio__red li:before{
  background: #c83527;
}

.customradio li:first-child:before {
  display: none;
}

.customradio .active {
  background: blue;
}

.customradio label {
  position: absolute;
  top: 2px;
  color: #333;
  width: 70px;
}

.salselect,
.calc-wrapper input[type = "text"].salselect,
.calc-wrapper input[type = "text"] {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  border: solid 1px #c83527;
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
}

.calc-wrapper input[type = "text"] {
  height: 30px;
}

.mar-bot-40 {
  margin-bottom: 40px;
}

.mar-bot-30 {
  margin-bottom: 30px;
}

.mar-bot-15 {
  margin-bottom: 15px;
}

.xs-bot-20 {
  margin-bottom: 20px;
}

.calc-wrapper .text-wrap {
  padding: 0;
  margin-top: 0;
  background: #c83527;
}

.wpcf7 {
  width: 100%;
  max-width: 100%!important;
}

.calc-wrapper ~ .wpcf7-form {
  margin-top: 0;
  background: #c83527;
  padding: 40px 15px;
}

.calc-wrapper .section__gray {
  min-height: 360px;
}

.tooltiptext{
  display: none;
  background: #fff;
  border: none!important;
}

.qtip-content {
  position: relative;
  bottom: 0;
  width: 280px;
  background: #fff;
  border: solid 1px #f0f0f0;
  -webkit-box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.15);
  -moz-box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.15);
  box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.15);
  font-size: 12px;
  line-height: 17px;
}

.arb_calc_tooltip {
  position: relative;
  top: 12px;
  left: 5px;
}

.arb_calc_tooltip1 {
  position: relative;
  top: 2px;
  left: 5px;
}

.calc-wrapper #BCalcForm {
  width: 55%;
  float: left;
}

.calc-wrapper #BCalcForm label {
  line-height: 14px;
}

.calc-wrapper ~ .wpcf7 {
  width: 45%;
  float: right;
  background: #c83527;
  padding: 10px;
}

.hidden {
  display: none!important;
}

.visible {
  display: block!important;
}

.half-width {
  width: 35%;
}

.half-width ~ .half-width {
  width: 65%;
}


.ui-widget-content {
  position: relative;
  background-color: #c83527;
  border-radius: 10px;
  margin: 0 0 10px;
}

.ui-slider-horizontal {
  height: .6em;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
  background-color: #c83527;
  border-radius: 10px;
  margin: 0 0 10px;
  cursor: pointer;
}

.ui-slider-horizontal .ui-slider-handle {
  top: -.3em;
  margin-left: -.6em;
}

.ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 1.2em;
  height: 1.2em;
  cursor: default;
  -ms-touch-action: none;
  touch-action: none;
}

.desktop {
  display: block;
}
.mobile {
  display: none;
}

.alert {
  color: #c83527;
  margin-bottom: 15px;
  margin-top: -7px;
  font-size: 12px;
}

.cart_totals table td,
.cart_totals table th {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: block;
  }
}

@media (max-width: 801px) {
  .calc-wrapper #BCalcForm,
  .calc-header,
  .calc-wrapper ~ .wpcf7 {
    width: 100%;
    float: none;
  }
  .calc-wrapper .text-wrap {
    position: relative;
  }
  .col-md-4,
  .col-md-2 {
    width: 100%;
    float: none;
  }
  .input__gray {
    width: 100%!important;
  }
}

@media (min-width: 660px) and (max-width: 1024px) {
  .half-width {
    width: 35%;
  }
  .half-width.pull-right {
    float: left;
  }
}

@media (max-width: 340px) {
  .customradio_interval li {
    margin: 0 12px;
    font-size: 12px;
  }
}

@media (min-width: 769px) {
#panemeujuma {
    position: sticky;
    top: 60px;


  z-index: 10;      /* tagab, et on peal teiste elementide */

}
}

#panemeujuma.fixed-active {
  box-sizing: border-box;
width: 100%;  

  background: #c83527;
  padding: 10px 15px;
  color: white;
  border-radius: 5px;
  box-sizing: border-box; /* et padding ei muuda laiust */
  z-index: 10; /* vajadusel, et peal oleks */
}
.live-calc {
    text-align: center;
    background: #c83527;
    font-size: 14px;
    font-weight: 400;
    padding: 15px 0;
    border-radius: 10px 10px 0 0;
    margin: 10px 10px 0;
    color: white;
}
.live-calc_sum {
    font-size: 30px;
    font-weight: 700;
    color: white;
    margin-top: 15px;
}
