.iv-lead-dialog {
  width: min(92vw, 440px);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 0;
  margin: auto;
  font-family: var(--mal-font-body, "DM Sans", ui-sans-serif, sans-serif);
  color: #1e293b;
  background: #fff;
  border: 1px solid rgba(30, 41, 59, 0.18);
  border-radius: 14px;
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.iv-lead-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.iv-lead-form {
  padding: 24px 24px 20px;
}

.iv-lead-form__header {
  margin-bottom: 20px;
}

.iv-lead-form__header h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.iv-lead-form__header p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(30, 41, 59, 0.78);
}

.iv-lead-field {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.iv-lead-field label,
.iv-lead-field legend {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.iv-lead-field input[type="text"],
.iv-lead-field input[type="email"],
.iv-lead-field input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(30, 41, 59, 0.22);
  border-radius: 10px;
  outline: none;
}

.iv-lead-field input:focus {
  border-color: var(--mal-btn1, #00c6e0);
  box-shadow: 0 0 0 3px rgba(0, 198, 224, 0.2);
}

.iv-lead-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
  border: 1px solid rgba(30, 41, 59, 0.16);
  border-radius: 10px;
  cursor: pointer;
}

.iv-lead-radio:has(input:checked) {
  border-color: var(--mal-btn1, #00c6e0);
  background: rgba(0, 198, 224, 0.08);
}

.iv-lead-radio input {
  margin-top: 3px;
  accent-color: var(--mal-btn1, #00c6e0);
}

.iv-lead-error {
  display: none;
  margin: 6px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #dc2626;
}

.iv-lead-error.is-visible {
  display: block;
}

.iv-lead-field-error {
  border-color: #dc2626 !important;
}

.iv-lead-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.iv-lead-submit {
  width: 100%;
  padding: 12px 18px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--mal-brand-dark, #1e293b);
  background: var(--mal-btn1, #00c6e0);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.iv-lead-submit:hover {
  background: var(--mal-btn1-hover, #22d3ee);
}

.iv-lead-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.iv-lead-form-error {
  margin: 0 0 12px;
}

.iv-lead-cancel {
  width: 100%;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid rgba(30, 41, 59, 0.18);
  border-radius: 10px;
  cursor: pointer;
}

.iv-thanks-dialog .iv-lead-form {
  text-align: center;
}

.iv-thanks-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.iv-thanks-dialog p {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(30, 41, 59, 0.78);
}

.mal-toast__btn {
  cursor: pointer;
}

.mal-toast__btn:hover {
  background: var(--mal-btn1-hover, #22d3ee);
}
