/* --- Lead form modal (site-wide) --- */
body.sd-lead-open { overflow: hidden; }

.sd-lead-modal[hidden] { display: none; }

.sd-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sd-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(4px);
}

.sd-lead-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.35rem;
  border-radius: var(--sd-radius, 0.75rem);
  border: 1px solid var(--sd-border, rgba(255, 255, 255, 0.12));
  background: var(--sd-surface, #121820);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: sd-lead-fade-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sd-lead-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sd-lead-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sd-lead-modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.sd-lead-modal__close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--sd-text-muted, #94a3b8);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.sd-lead-modal__topic {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--sd-accent, #00e5c0);
}

.sd-lead-field {
  display: block;
  margin-bottom: 1rem;
}

.sd-lead-field__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.sd-lead-field input,
.sd-phone-input__country {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid var(--sd-border, rgba(255, 255, 255, 0.12));
  background: var(--sd-bg, #0b0f17);
  color: var(--sd-text, #e8edf5);
  font: inherit;
}

.sd-lead-field input:focus,
.sd-phone-input__country:focus {
  outline: 2px solid rgba(0, 229, 192, 0.45);
  outline-offset: 1px;
}

.sd-lead-field input.is-invalid {
  border-color: #f87171;
}

.sd-phone-input {
  display: grid;
  grid-template-columns: minmax(9.5rem, 42%) 1fr;
  gap: 0.5rem;
}

.sd-phone-input__country {
  font-size: 0.82rem;
  padding-left: 0.55rem;
  padding-right: 0.35rem;
}

.sd-lead-modal__status {
  margin: 0 0 0.75rem;
  min-height: 1.35rem;
  font-size: 0.9rem;
}

.sd-lead-modal__status:empty {
  display: none;
}

.sd-lead-modal__status.is-ok { color: var(--sd-accent, #00e5c0); }
.sd-lead-modal__status.is-error { color: #f87171; }

.sd-lead-modal__foot {
  display: flex;
  justify-content: stretch;
}

.sd-lead-modal__foot .sd-btn { width: 100%; }
