/* ═══════════════════════════════════════════════
   MODAL — Start a collection
   Requires: recollectible-ds.css
   ═══════════════════════════════════════════════ */

#rc-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#rc-modal-backdrop.open { display: flex; }

#rc-modal {
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 600px;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rc-modal-in 0.22s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
@keyframes rc-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#rc-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-grey-m);
  padding: 0;
  transition: color var(--t-fast);
}
#rc-modal-close:hover { color: var(--c-black); }

#rc-modal .rc-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 32px;
  text-align: center;
}
#rc-modal h2 {
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--text-2xl);
  line-height: 36px;
  letter-spacing: -0.04em;
  color: var(--c-black);
  margin: 0;
}
#rc-modal .rc-subtitle {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 24px;
  color: var(--c-grey-d);
  margin: 0;
}

#rc-modal form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}


@media (max-width: 600px) {
  #rc-modal { padding: 40px 24px; }
}
