.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  animation: popupFadeIn 0.3s ease;
}

.popup-overlay.active {
  display: flex;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.popup-box {
  background: #fff;
  border-radius: 16px;
  max-width: 580px;
  width: 92%;
  padding: 28px 40px 24px;
  position: relative;
  animation: popupSlideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.popup-close:hover {
  color: #333;
}

.popup-icon {
  max-width: 160px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.popup-box h2 {
  font-family: 'Playfair Display', serif;
  color: #0B2447;
  font-size: 22px;
  margin: 0 0 6px;
}

.popup-box p {
  color: #666;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.5;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.popup-form input:focus {
  border-color: #0B2447;
}

.popup-form button {
  background: #0B2447;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.popup-form button:hover {
  background: #163a5e;
}

.popup-form button:disabled {
  background: #999;
  cursor: not-allowed;
}

.popup-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 10px;
}

.popup-success {
  color: #0B2447;
  font-size: 16px;
  font-weight: 600;
  padding: 20px 0;
}

.popup-no-thanks {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: underline;
}

.popup-no-thanks:hover {
  color: #666;
}

.popup-exit-box {
  border-top: 4px solid #e74c3c;
}

.popup-exit-box h2 {
  color: #e74c3c;
}

.exit-discount {
  font-size: 16px !important;
  color: #333 !important;
}

.popup-exit-box .popup-form button {
  background: #e74c3c;
}

.popup-exit-box .popup-form button:hover {
  background: #c0392b;
}
