/* Модальное окно заявки: пергаментный лист на тёмном лесу. */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 9, 6, .72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lead-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: 92vh;
  overflow: auto;
  background-image: url('/assets/parchment.png');
  background-size: cover;
  background-color: var(--c-paper);
  border: 1px solid rgba(120, 92, 42, .4);
  border-radius: var(--r-md);
  padding: 32px 28px 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .65), inset 0 0 70px rgba(120, 92, 42, .12);
  color: #2b2317;
}
.lead-modal__sheet h2 { font-size: 24px; margin: 0 0 6px; color: #221b11; }
.lead-modal__sub { font-size: var(--fs-small); color: #5a4d36; margin: 0 0 18px; }

.lead-modal__close {
  position: absolute;
  top: 10px; right: 14px;
  border: none; background: none;
  font-size: 26px; line-height: 1;
  color: #7a6a4c; cursor: pointer;
}
.lead-modal__close:hover { color: #3b301c; }

.lead-modal label {
  display: block;
  font-family: var(--f-sans);
  font-size: 13px;
  color: #4f442e;
  margin: 12px 0 5px;
}

.lead-modal input:not([type="checkbox"]),
.lead-modal textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 15px;
  color: #241d13;
  background: rgba(255, 252, 244, .92);
  border: 1px solid rgba(120, 92, 42, .35);
  border-radius: var(--r-sm);
}
.lead-modal textarea { min-height: 88px; resize: vertical; }
.lead-modal input:focus,
.lead-modal textarea:focus { outline: 2px solid rgba(182, 144, 63, .55); outline-offset: 1px; }

.lead-modal__consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 16px 0 4px !important;
  font-size: 12.5px !important;
  line-height: 1.45;
  color: #5a4d36 !important;
}
.lead-modal__consent input { margin-top: 3px; }

.lead-modal__send {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: none;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--c-gold) 0%, var(--c-gold-2) 100%);
  color: #1b1508;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(60, 45, 15, .35);
}
.lead-modal__send:hover { background: linear-gradient(180deg, #e6c26a 0%, #c19a45 100%); }
.lead-modal__send:disabled { opacity: .6; cursor: default; }

.lead-modal__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-modal__msg { font-family: var(--f-sans); font-size: 13.5px; margin: 12px 0 0; }
.lead-modal__msg--ok { color: #2f6b3a; }
.lead-modal__msg--err { color: #9b3a28; }
.lead-modal__msg a { display: inline-block; margin-top: 8px; color: #6b5220; }
