/* Затемнённый и размытый фон */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.4s ease-out forwards;
}

/* Блок с формой */
.popup-glass {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 50px 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
  animation: popupScale 0.5s ease-out;
  transform-origin: center;
  opacity: 0;
  animation-fill-mode: forwards;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 200, 255, 0.3);
}

/* Заголовок */
.popup-glass h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #111827;
  text-align: center;
}

/* Подзаголовок или описание */
.popup-glass p {
  font-size: 16px;
  color: #334155;
  text-align: center;
  margin-bottom: 30px;
}

/* Поля формы */
.popup-glass form input {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  background: #f9fafb;
  color: #1e293b;
  transition: all 0.2s ease;
}

.popup-glass form input:focus {
  border-color: #3b82f6;
  outline: none;
  background-color: #fff;
}

/* Кнопка */
.popup-glass form button {
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.popup-glass form button:hover {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  transform: translateY(-1.5px);
}

/* Крестик */
.close-popup {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.close-popup:hover {
  color: #1e293b;
  transform: rotate(90deg);
}

/* Анимации */
@keyframes popupScale {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
  100% {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
  }
}

/* Адаптивность */
@media (max-width: 600px) {
  .popup-glass {
    padding: 30px 20px;
    max-width: 90%;
  }

  .popup-glass h2 {
    font-size: 22px;
  }

  .popup-glass form button,
  .popup-glass form input {
    font-size: 15px;
    padding: 14px;
  }
}
