.popup-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 48, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  z-index: 200;
  padding: 20px;
  animation: overlay-in 0.25s ease;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: auto 0;
  background: var(--card);
  padding: 34px 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: popup-in 0.3s ease;
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-box h2 {
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
}

.popup-subtitle {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 20px;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tint);
  color: var(--ink);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.popup-close:hover {
  background: var(--border);
  transform: rotate(90deg);
}

.popup-box form {
  display: flex;
  flex-direction: column;
}

.popup-box label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  margin-top: 14px;
}

.popup-box label:first-of-type {
  margin-top: 0;
}

.popup-box input,
.popup-box textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}

.popup-box input:focus,
.popup-box textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--card);
}

.popup-submit {
  margin-top: 22px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.popup-submit:hover {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  transform: translateY(-2px);
}

.popup-success {
  text-align: center;
  padding: 10px 4px 4px;
}

.popup-success h2 {
  margin-bottom: 10px;
}

.popup-success p {
  color: var(--text);
  font-size: 14.5px;
  margin-bottom: 22px;
  line-height: 1.6;
}
