/* body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
} */

.popup {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 95%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s;
}

.popup-content {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  height: 85%;
  max-height: 550px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideIn 0.5s;
  flex-direction: column;
}

.popup-left {
  background-color: #c0b5e6;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.popup-image {
  width: 110%;
  max-width: 390px;
  height: 105%;
  max-height: 370%;
  border-radius: 1%;
}

.popup-right {
  padding: 20px;
  text-align: center;
  flex: 1;
}

.popup-right h2 {
  margin-top: 5px;
  /* margin: 20px; */
  font-size: 44px;
}

.popup-right p {
  margin-top: -5px;
  font-size: 22px;
}

.discount {
  color: #9220e9;
}

form {
  margin-top: 20px;
}

form input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.apply-button {
  width: 100%;
  padding: 10px;
  background-color: #9220e9;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.apply-button:hover {
  background-color: #7a1ab6;
  transition: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.no-thanks {
  display: block;
  margin-top: 10px;
  color: #999;
  text-decoration: none;
}

.no-thanks:hover {
  text-decoration: underline;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 25px;
  font-weight: bold;
  color: #6a0dad;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.close:hover,
.close:focus {
  color: #8b3edf;
}

@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 600px) {
  .popup-content {
    flex-direction: row;
  }

  .popup {
    margin-top: 50px;
  }

  .popup-left {
    width: 50%;
  }

  .popup-right {
    width: 50%;
  }

  h2 {
    font-size: 30px;
  }

  p {
    font-size: 18px;
  }
}

@media (max-width: 499px) {
  .popup-left {
    display: none;
  }

  .popup {
    margin-top: 50px;
  }
  .popup-right {
    width: 100%;
  }
}
