/* Popup Form */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px);
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup {
  transform: scale(1) translateY(0);
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.popup__close:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.popup__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 50%;
}

.popup__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-white);
}

.popup__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 8px;
}

.popup__text {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popup__form .form-input {
  padding: 14px 16px;
  font-size: var(--fs-body);
}

.popup__form .btn {
  margin-top: 8px;
}

.popup__consent {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.popup__consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Animation */
@keyframes popupShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.popup.shake {
  animation: popupShake 0.3s ease;
}
