.site-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 99999;
}

.site-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.site-modal-card {
  position: relative;
  width: min(100%, 420px);
  padding: 32px 28px 24px;
  box-sizing: border-box;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  text-align: center;
  z-index: 100;
}

.site-modal-status {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.site-modal-status.success {
  background: #e9f9ef;
  color: #138a36;
}

.site-modal-status.error {
  background: #fff0f0;
  color: #c62828;
}

.site-modal-title {
  margin: 0 0 10px;
  color: #172033;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.site-modal-text {
  margin: 0;
  color: #5d6881;
  font-size: 16px;
  line-height: 1.6;
}

.site-modal-actions {
  margin-top: 22px;
}

.site-modal-button {
  min-width: 160px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: #1e73be;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.site-modal-button:hover,
.site-modal-button:focus {
  background: #155a96;
  transform: translateY(-1px);
}

.site-modal-button:focus-visible {
  outline: 3px solid rgba(30, 115, 190, 0.25);
  outline-offset: 2px;
}

.lead-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 14, 24, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
  z-index: 99;
  overflow-y: auto;
}

.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lead-modal__card {
  position: relative;
  width: min(100%, 620px);
  margin: auto;
  padding: 36px 32px 30px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.38);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.24s ease;
}

.lead-modal.is-open .lead-modal__card {
  transform: translateY(0) scale(1);
}

.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.lead-modal__close:hover,
.lead-modal__close:focus-visible {
  background: rgba(15, 23, 42, 0.14);
  transform: scale(1.04);
}

.lead-modal__eyebrow {
  margin: 0 0 10px;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead-modal__title {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead-modal__text {
  max-width: 52ch;
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.65;
}

.lead-modal__form {
  margin-top: 26px;
}

.lead-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-modal__label {
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}

.lead-modal__input {
  /* width: 100%;
  min-height: 52px; */
  padding: 14px 16px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.2;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lead-modal__input::placeholder {
  color: #94a3b8;
}

.lead-modal__input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.14);
  outline: none;
}

.lead-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.lead-modal__button {
  min-width: 180px;
  min-height: 52px;
  padding: 0 22px;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(234, 88, 12, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.lead-modal__button:hover,
.lead-modal__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 34px rgba(234, 88, 12, 0.28);
}

.lead-modal__button:disabled {
  opacity: 0.7;
  cursor: wait;
}

body.lead-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .site-modal {
    padding: 16px;
  }

  .site-modal-card {
    padding: 28px 20px 20px;
    border-radius: 16px;
  }

  .site-modal-title {
    font-size: 24px;
  }

  .site-modal-text {
    font-size: 15px;
  }

  .lead-modal {
    padding: 16px;
  }

  .lead-modal__card {
    width: 100%;
    padding: 28px 20px 22px;
    box-sizing: border-box;
    border-radius: 22px;
  }

  .lead-modal__grid {
    grid-template-columns: 1fr;
  }

  .lead-modal__actions {
    justify-content: stretch;
  }

  .lead-modal__button {
    width: 100%;
  }
}
