/* Модальное окно заявки. Палитра подобрана под тему сайта. */

body.order-modal-open {
  overflow: hidden;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.72);
}

.order-modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 4px;
  padding: 28px 24px 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.order-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #8a8a8a;
  cursor: pointer;
  padding: 4px 8px;
}

.order-modal__close:hover {
  color: #111;
}

.order-modal__title {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.order-modal__item {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f4f4f2;
  border-left: 3px solid #ee6b14;
  font-size: 14px;
  line-height: 1.4;
}

.order-modal__item strong {
  display: block;
  font-weight: 600;
}

.order-modal__item span {
  display: block;
  margin-top: 3px;
  color: #666;
}

.order-field {
  display: block;
  margin-bottom: 13px;
}

.order-field > span {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: #444;
}

.order-field em {
  font-style: normal;
  color: #999;
}

.order-field input,
.order-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: #111;
}

.order-field input:focus,
.order-field textarea:focus {
  outline: none;
  border-color: #ee6b14;
  box-shadow: 0 0 0 2px rgba(238, 107, 20, 0.18);
}

.order-field textarea {
  resize: vertical;
  min-height: 62px;
}

/* Приманка для ботов: убрана с экрана, но доступна для автозаполнения роботом. */
.order-field__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.order-modal__submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  border: 0;
  border-radius: 3px;
  background: #ee6b14;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.order-modal__submit:hover:not(:disabled) {
  background: #d75d0d;
}

.order-modal__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.order-modal__note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
}

.order-modal__status {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #444;
}

.order-modal__status--error {
  color: #c0341a;
}

.order-modal__done {
  margin: 0;
  padding: 22px 4px;
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  color: #1d7a3d;
}

.order-modal__call {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e6e6e6;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.order-modal__call a {
  color: #111;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .order-modal {
    padding: 0;
    align-items: flex-end;
  }

  .order-modal__box {
    max-width: none;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }
}
