/* CTA section */
.cta {
  text-align: center;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
  pointer-events: none;
}

.gallery.visible + .cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: var(--core-white);
}

.cta p {
  max-width: 520px;
  margin: 0 auto 2rem auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* Modal */
.cta-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.cta-modal.show {
  display: flex;
}

.cta-modal-content {
  background: #0c0c0c;
  padding: 2rem;
  border-radius: 1.2rem;
  width: min(460px, 90%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-close {
  float: right;
  font-size: 1.6rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
}

.cta-close:hover {
  color: var(--core-white);
}

.cta-modal-content h3 {
  margin-bottom: 0.4rem;
  color: var(--core-green);
}

.cta-modal-content p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-modal-content input,
.cta-modal-content textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--core-white);
  border-radius: 0.5rem;
}

.cta-submit {
  width: 100%;
  padding: 0.9rem;
  border-radius: 0.5rem;
  border: none;
  background: linear-gradient(135deg, var(--core-green), var(--core-purple));
  color: var(--core-white);
  font-weight: 700;
  cursor: pointer;
}

.cta-fallback {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.cta-fallback a {
    text-decoration: none;
    color: var(--core-green);
}

.cta-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  min-height: 1em;
}