.email-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 14, 13, 0.7);
  backdrop-filter: blur(8px);
}

.email-popup-content {
  position: relative;
  width: min(100%, 420px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(23, 26, 24, 0.96), rgba(31, 73, 62, 0.94)),
    url("../images/bg/home-header.jpeg") center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(18px);
}

.email-popup.show .email-popup-content {
  animation: slideIn 0.45s ease forwards;
}

.email-popup-content h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  line-height: 1.16;
}

.email-popup-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.email-popup-content form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.email-popup-content input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #171a18;
  background: #fff;
}

.email-popup-content button {
  width: fit-content;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .email-popup-content {
    padding: 26px 22px;
  }

  .email-popup-content button {
    width: 100%;
  }
}
