/*------Страница с формой----------*/

.block__paragraph {
  margin-top: 20px;
  text-indent: 20px;
  line-height: 1.4;
  text-align: justify;
}

.block__attention {
  color: #A11931;
}

.form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 768px;
  margin: 30px auto 0;
}

.form__fieldset {
  border: none;
}

.form__fieldset:not(:first-of-type) {
  margin-top: 10px;
}


.form__legend {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  color: #A32E47;
}

.form__list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 10px;
}

.form__item,
.form__wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.form__item--timezone {
  flex-wrap: nowrap;
}

.form__item--justify {
  justify-content: space-between;
}

.form__wrapper--half {
  width: calc((100% - 10px)/2);
  max-width: 325px;
}

.form__item--date {
  max-width: 420px;
}

.form__item--time {
  max-width: 315px;
  margin-left: auto;
}

.form__item:not(:first-of-type) {
  margin-top: 10px;
}

.form__label:not(:last-of-type) {
  margin-right: 10px;
}

.form__label-text {
  margin-right: 10px;
}

.form__sublegend {
  width: 100%;
  margin-bottom: 5px;
}

.form__input,
.form__select {
  font-family: "ElMessiri", Arial, Helvetica, sans-serif; 
}

.form__number {
  border: 1px solid #dcb6b6;
  border-radius: 5px;
}

.form__input {
  height: 32px;
  width: 100%;
  padding: 0 10px;
  font: 14px/32px "ElMessiri", Arial, Helvetica, sans-serif;
  vertical-align: middle;
  border: 1px solid #dcb6b6;
  border-radius: 5px;
  background: linear-gradient(#FFF, #fcf2d4);
  box-shadow: inset 1px -1px #F1F1F1, inset -1px 0 #F1F1F1, 0 1px 2px rgba(0,0,0,.1);
  text-shadow: 1px 1px #FFF;
}

.form__input:hover,
.form__input:focus {
  background: linear-gradient(#fcf2d4, #fcf2d4);
}

.form__input:focus,
.form__input:active {
    border: 1px solid #A32E47;
}

.form__input--disabled {
  background: #f5f5f5;
}

.form__input--disabled:hover,
.form__input--disabled:focus {
  background: #f5f5f5;
}


.form__input::-webkit-input-placeholder {
  font: 14px/32px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: 1;
}

.form__input::-moz-placeholder {
  font: 14px/32px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: 1;
}

.form__input:-moz-placeholder {
  font: 14px/32px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: 1;
}

.form__input:-ms-input-placeholder {
  font: 14px/32px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: 1;
}

.form__input:focus::-webkit-input-placeholder {
  opacity:0;
} 

.form__input:focus::-moz-placeholder {
  opacity:0;
}

.form__input:focus:-moz-placeholder {
  opacity:0;
}

.form__input:focus:-ms-input-placeholder { 
  opacity:0;
}

.form__input--disabled::-webkit-input-placeholder {
  font: 14px/32px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: .5;
}

.form__input--disabled::-moz-placeholder {
  font: 14px/32px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: .5;
}

.form__input--disabled:-moz-placeholder {
  font: 14px/32px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: .5;
}

.form__input--disabled:-ms-input-placeholder {
  font: 14px/32px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: .5;
}

.form__input--disabled:focus::-webkit-input-placeholder {
  opacity: .5;
} 

.form__input--disabled:focus::-moz-placeholder {
  opacity: .5;
}

.form__input--disabled:focus:-moz-placeholder {
  opacity: .5;
}

.form__input--disabled:focus:-ms-input-placeholder { 
  opacity: .5;
}


.form__number::-webkit-input-placeholder {
  font: 14px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: 1;
}

.form__number::-moz-placeholder {
  font: 14px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: 1;
}

.form__number:-moz-placeholder {
  font: 14px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: 1;
}

.form__number:-ms-input-placeholder {
  font: 14px "ElMessiri", Arial, Helvetica, sans-serif;
  color: #333333;
  opacity: 1;
}

.form__number:focus::-webkit-input-placeholder {
  opacity:0;
} 

.form__number:focus::-moz-placeholder {
  opacity:0;
}

.form__number:focus:-moz-placeholder {
  opacity:0;
}

.form__number:focus:-ms-input-placeholder { 
  opacity:0;
}

.form__label--name {
  flex-grow: 1;
  margin-right: 10px;
}

.form__label--city {
  width: 100%;
}

.form__label--timezone {
  flex-grow: 1;
}

.form__label--corrective,
.form__select--corrective {
  width: 100%;
}

.form__link,
.form__paragraph {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
}

.form__link,
.form__link-google {
  color: #D02830;
}

.form__link:hover,
.form__link-google:hover {
  text-decoration: underline;
}

.datepicker__input {
  min-width: 242px;
  margin-right: 20px;
}

.timepicker__input {
  width: 76px; 
  margin-right: auto;
}



.button, input.submit {
  min-height: 32px;
  min-width: 120px;  
  padding: 5px 10px;
  font-family: "ElMessiri", Arial, Helvetica, sans-serif;
  background-color: #A32E47;
  background: linear-gradient(#a32e47, #802337);
  color: #fcf2d4;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all .3s ease-out;
  text-shadow: 1px 1px rgba(0,0,0,.2);
}

.form__button {
  margin-right: 10px;
}

.button:hover {
  background: linear-gradient(#a32e47, #a32e47);
  box-shadow: 0 4px 10px rgba(0,0,0, 0.3);
}

.button:focus,
.button:active {
  background: linear-gradient(#802337, #a32e47);
  box-shadow: 0 4px 10px rgba(0,0,0, 0.3);
}

.calendar,
.time {
  min-width: 70px;
}

.form__button--timezone {
  margin-left: 10px;
  margin-right: 0;
}

.form__checkbox-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.form__label--save {
  position: relative;
  width: calc((100% - 20px)/2);
  max-width: 345px;
  padding-left: 30px;
  cursor: pointer;
}

.form__checkbox + .form__checkbox-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  height: 15px;
  margin-top: -8px;
  border: 1px solid #A32E47;
}

.form__checkbox:checked + .form__checkbox-indicator:before {
  content: "";
  display: block;
  position: absolute;
  top: 2px;
  left: 1px;
  width: 10px;
  height: 5px;
  border-left: 1px solid #A32E47;
  border-bottom: 1px solid #A32E47;
  transform: rotate(-45deg);
}

.form__main-button {
  min-width: 200px;
  max-width: 300px;
  margin: 20px auto 0;
  padding: 10px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: +1px;
}

.add-info {
  margin-top: 60px;
}

.add-info__paragraph {
  font-weight: 700;
}

.add-info__list {
  margin-top: 15px;
  margin-bottom: 30px;
}

.add-info__item:not(:first-of-type) {
  margin-top: 10px;
}

.add-info__link {
  color: #A11931;
}

.add-info__link:hover,
.add-info__link:focus,
.add-info__link:active {
  text-decoration: underline;
}


@media (max-width: 1285px) {
  .form__item--date,
  .form__item--time {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .calendar,
  .time {
    min-width: 130px;
  }
}

@media (max-width: 1199px) {
  .form__item--justify {
    flex-direction: column;
    align-items: flex-start;
    
  }

  .form__wrapper--half {
    width: 100%;
    max-width: 100%;
  }

  .form__wrapper--half:not(:first-of-type) {
    margin-top: 10px;
  }

  /* .form__wrapper--half {
   flex-direction: column;
    align-items: flex-start;
    max-width: 150px;
  }

  .form__wrapper--half .form__label {
    min-width: 130px;
  }

  .form__wrapper--half .form__label:not(:first-of-type) {
    margin-top: 10px;
  }

  .form__wrapper--half .form__number,
  .form__wrapper--half .form__select {
    width: 100%;
  }

  .form__item--justify {
    justify-content: flex-start;
  }

  .form__label--timezone {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 10px;
  }*/


  .form__checkbox-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .form__label--save {
    width: 100%;
  }

  .form__label--save:first-of-type {
    margin-right: 0;
  }

  .form__label--save:not(:first-of-type) {
    margin-top: 10px;
  }
}

@media (max-width: 1068px) {
  .form__button--timezone {
    max-width: 120px;
  }
}

@media (max-width: 496px) {
  .form__label--gender {
    min-width: 130px;
  }

  .form__label--gender .form__select {
    width: 100%;
  }

  .form__item--column {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 130px;
  }
  
  .form__item--column:last-of-type {
    margin-left: 20px;
  }

  .calendar,
  .time,
  .form__item--column .form__label,
  .form__item--column .form__select {
    width: 100%;
  }

  .form__item--column .form__label {
    margin-top: 10px;
  }

  .form__button {
    margin-right: 0;
  }

}

@media (max-width: 372px) {
  
  .form__label:not(:last-of-type) {
    margin-right: 0;
  }

  .form__label--name {
    width: 100%;
    margin-bottom: 10px;
  }

  .form__label--gender {
    width: 100%;
    margin-left: 0;
  }  

  .form__item--column:last-of-type {
    margin-left: auto;
  }

  .form__item--justify {
    flex-direction: row;
  }

  .form__wrapper--half {
    flex-direction: column;
    align-items: flex-start;
    max-width: 130px;
  }

  .form__wrapper--half:not(:first-of-type) {
    margin-top: 0;
  }

  .form__wrapper--half .form__label,
  .form__wrapper--half .form__number,
  .form__wrapper--half .form__select {
    width: 100%;
  }

  .form__wrapper--half .form__label:not(:first-of-type) {
    margin-top: 10px;
  }

 /* .form__wrapper--half {
    max-width: 130px;
  }

  .form__wrapper--half:last-of-type  {
    margin-left: auto;
  }*/


  .form__item--timezone {
    flex-wrap: wrap;
  }

  .form__button--timezone,
  .form__label--diff {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .form__button--timezone {
    margin-top: 10px;
  }

  
}
