/* ===== Lead Modal ===== */
body.modal-open {
  overflow: hidden;
}

.cf-modal.hidden { display: none; }

.cf-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.cf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 150ms ease;
}

.cf-dialog {
  position: relative;
  width: min(92vw, 560px);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  padding: 1.25rem 1.25rem 1.5rem;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.cf-modal.open .cf-overlay { opacity: 1; }
.cf-modal.open .cf-dialog { opacity: 1; transform: translateY(0) scale(1); }

/* Close button */
.cf-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.cf-close:hover { background: #e7e7e7; }

/* Content */
.cf-steps h3 {
  font-size: 1.25rem;
  margin-top: .25rem;
  margin-bottom: .25rem;
}

.cf-sub {
  color: #555;
  margin-bottom: 1rem;
}

.cf-label {
  display: block;
  margin: .75rem 0;
}
.cf-label span {
  display: block;
  font-weight: bold;
  margin-bottom: .35rem;
}
.cf-label input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: .6rem;
  padding: .65rem .75rem;
  font-size: 1rem;
  outline: none;
}
.cf-label input:focus { border-color: #000; }

.cf-error {
  color: #c00;
  font-size: .85rem;
  min-height: 1.2em;
  margin-top: .25rem;
}

/* Step visibility */
.cf-step.hidden { display: none; }

/* Actions */
.cf-actions {
  margin-top: 1rem;
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}
.cf-actions.between {
  justify-content: space-between;
}

/* Buttons reuse your .btn base; add a subtle secondary */
.btn-secondary {
  background: #f2f2f2;
  color: #111;
}
.btn-secondary:hover {
  filter: brightness(0.98);
}

/* Small screens */
@media (max-width: 480px) {
  .cf-dialog {
    margin-top: 8vh;
    padding: 1rem 1rem 1.25rem;
  }
}