/* Быстрая отправка файлов: отдельный файл нужен, чтобы стили формы не
   зависели от кеша и правил большого калькулятора. */

.simple-form,
.simple-form * {
  box-sizing: border-box;
}

.simple-form .drag-n-drop__zone {
  border: 1px dashed #aaa;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.simple-form .drag-n-drop__zone.drag-n-drop_hover {
  border-color: #f41818;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(244, 24, 24, .08);
}

.simple-form .drag-n-drop__hint {
  max-width: 560px;
  margin-top: 17px;
  padding: 0 15px;
  color: #777;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.simple-form .simple-form__response {
  min-height: 20px;
  margin: 27px 0 30px;
  color: #000;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* Ровно четыре файла в строке на широком экране. */
.simple-form .simple-form__previews {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start;
  gap: 34px 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 70px;
  padding: 0;
}

.simple-form .simple-form__previews:empty {
  display: none !important;
}

.simple-form .simple-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: center;
}

.simple-form .simple-preview__media {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 160px !important;
  margin: 0 0 12px !important;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.simple-form .simple-preview__media img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
}

.simple-form .simple-preview__delete {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 5;
  display: block;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 0;
  outline: none;
  background: #fff url(/include/calcalucator-form/images/icon-del.svg) no-repeat center;
  background-size: 21px 21px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  cursor: pointer;
  opacity: 1;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.simple-form .simple-preview__delete:hover,
.simple-form .simple-preview__delete:focus {
  border-color: #aaa;
  background-image: url(/include/calcalucator-form/images/icon-del-a.svg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

.simple-form .simple-preview__name {
  display: -webkit-box;
  width: 100%;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: #222;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Универсальная иконка документа с цветом конкретного формата. */
.simple-form .simple-preview__file-icon {
  --file-color: #777;
  position: relative;
  display: block;
  width: 78px;
  height: 98px;
  padding: 0;
  color: #fff;
  background: #fff;
  border: 1px solid #d4d4d4;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .1);
  clip-path: none;
}

.simple-form .simple-preview__file-icon::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 25px;
  height: 25px;
  background: linear-gradient(225deg, #fff 49%, #d4d4d4 50%, #f1f1f1 53%);
}

.simple-form .simple-preview__file-icon span {
  position: absolute;
  right: -7px;
  bottom: 13px;
  left: -7px;
  display: block;
  padding: 7px 2px;
  background: var(--file-color);
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: .02em;
  text-align: center;
}

.simple-form .simple-preview__file-icon--pdf {
  --file-color: #e11d2e;
}

.simple-form .simple-preview__file-icon--word {
  --file-color: #2867b2;
}

.simple-form .simple-preview__file-icon--excel {
  --file-color: #218346;
}

.simple-form .simple-preview__file-icon--powerpoint {
  --file-color: #d35230;
}

/* Форма заказа по макету калькулятора. */
.simple-form .user-info {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 38px 141px 50px;
  background: #f5f5f5 !important;
  margin-bottom: 77px;
}

.simple-form .user-info__sub-title {
  margin: 0;
  color: #ff0a24;
  font-family: 'Caveat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: .03em;
  text-align: center;
}

.simple-form .user-info__title {
  margin: 0 0 40px;
  color: #000;
  font-family: 'Raleway', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 47px;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
}

.simple-form .user-info__input,
.simple-form .fake-select__header,
.simple-form .user-info__textarea {
  width: 100%;
  background: #fff !important;
}

.simple-form .user-info__input {
  display: block;
  height: 50px;
  margin: 0 0 25px;
  padding: 0 20px;
  border: 1px solid #fff;
  border-radius: 0;
  outline: none;
}

.simple-form .user-info__input.error,
.simple-form .fake-select__header.error {
  border-color: #f41818;
}

.simple-form .fake-select {
  position: relative;
  width: 100%;
  margin: 0 0 25px;
}

.simple-form .fake-select__header {
  min-height: 50px;
  padding: 12px 45px 12px 20px;
  border: 1px solid #fff;
  background: #fff url(/include/calcalucator-form/images/chevron-down.svg) no-repeat right 20px center !important;
  color: #000;
  cursor: pointer;
}

.simple-form .fake-select__selected,
.simple-form .fake-select__default {
  min-height: 25px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 25px;
}

.simple-form .fake-select__list {
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  max-height: 290px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.simple-form .fake-select__item {
  margin: 0;
  padding: 11px 20px;
  list-style: none;
}

.simple-form .user-info__textarea {
  position: relative;
  min-height: 80px;
  margin: 0 0 18px;
}

.simple-form .user-info__textarea-placeholder {
  position: absolute;
  top: 16px;
  right: 20px;
  left: 20px;
  z-index: 2;
  color: #aaa;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 21px;
  pointer-events: none;
}

.simple-form .user-info__textarea-placeholder b {
  color: #000;
  font-weight: 700;
}

.simple-form .user-info__textarea-placeholder.is-hidden {
  display: none;
}

.simple-form .user-info__textarea textarea {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 80px;
  margin: 0;
  padding: 14px 20px;
  resize: vertical;
  border: 1px solid #fff;
  border-radius: 0;
  outline: none;
  background: #fff !important;
  color: #000;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  line-height: 21px;
}

.simple-form .user-info__textarea textarea:focus {
  border-color: #aaa;
}

.simple-form .user-info__pay-info {
  max-width: none;
  margin: 0 0 18px;
}

.simple-form .simple-form__form-error {
  min-height: 18px;
  margin: 0 0 8px;
  color: #f41818;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.simple-form .calucator-form__submit {
  width: 169px;
  max-width: none;
}

.simple-form .calucator-form__submit.disabled,
.simple-form .calucator-form__submit:disabled {
  background: #aaa;
  cursor: not-allowed;
  opacity: 1;
}

.simple-modal {
  z-index: 3100;
}

@media (max-width: 900px) {
  .simple-form .simple-form__previews {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .simple-form .user-info {
    padding: 32px 50px 42px;
  }
}

@media (max-width: 650px) {
  .simple-form .simple-form__previews {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px 14px;
    margin-bottom: 45px;
  }

  .simple-form .simple-preview__media {
    height: 135px !important;
  }

  .simple-form .drag-n-drop__zone {
    padding: 35px 15px;
  }

  .simple-form .user-info {
    padding: 28px 20px 38px;
  }

  .simple-form .user-info__title {
    font-size: 28px;
    line-height: 34px;
  }
}

@media (max-width: 420px) {
  .simple-form .simple-form__previews {
    grid-template-columns: 1fr !important;
  }

  .simple-form .simple-preview__media {
    height: 190px !important;
  }
}