/* ===== Modal base ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  color: red;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: inherit;
}

.modal-form textarea {
  resize: vertical;
}

/* Contact methods */
.contact-methods {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.contact-methods label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Prevent body scroll */
body.modal-open {
  position: fixed;
  width: 100%;
}



.btn.btn-primary {
  margin-top: 3rem;
}