/* Bună guvernare CTA modal */

/* The CTA trigger is a <button>; reset native button chrome so it matches
   the shared .proiect-cta__button (which was originally an <a>). */
button.proiect-cta__button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.bg-cta-modal[hidden] {
  display: none;
}

.bg-cta-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bg-cta-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.bg-cta-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.bg-cta-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.bg-cta-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.bg-cta-modal__body {
  margin-top: 8px;
}

.bg-cta-modal__intro {
  margin-bottom: 24px;
}

.bg-cta-modal__intro > *:last-child {
  margin-bottom: 0;
}

/* Prevent background scroll while the modal is open. */
body.bg-cta-modal-lock {
  overflow: hidden;
}
