/* ПроМед — модальные формы заявок (замена Bitrix jqm). */

.promed-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 12px;
  box-sizing: border-box;
}
.promed-modal[hidden] { display: none; }

.promed-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.promed-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  padding: 28px 28px 24px;
  box-sizing: border-box;
}

.promed-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0;
}
.promed-modal-close:hover { color: #de002b; }

.promed-modal-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #333;
  margin: 0 0 18px;
  padding-right: 30px;
}

.promed-field { margin-bottom: 14px; }
.promed-field label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}
.promed-field input,
.promed-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
}
.promed-field input:focus,
.promed-field textarea:focus {
  outline: none;
  border-color: #de002b;
}
.promed-field textarea { resize: vertical; min-height: 70px; }

.promed-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.promed-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin: 4px 0 14px;
  cursor: pointer;
}
.promed-consent input { margin-top: 3px; }
.promed-consent a { color: #de002b; }

.promed-error {
  color: #de002b;
  font-size: 13px;
  margin-bottom: 12px;
}
.promed-error[hidden] { display: none; }

.promed-actions { text-align: center; }
.promed-submit {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  background: #de002b;
  color: #fff;
}
.promed-submit:hover { background: #c20026; }
.promed-submit:disabled { opacity: 0.6; cursor: default; }

.promed-success {
  font-size: 17px;
  text-align: center;
  color: #2e7d32;
  padding: 30px 10px;
}
.promed-success[hidden] { display: none; }

body.promed-no-scroll { overflow: hidden; }

@media (max-width: 560px) {
  .promed-modal-dialog { padding: 22px 18px 18px; }
}
