.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 12;
}

.popup-container .gfield_label {
  display: none;
}

.popup-container .gfield input[type=email] {
  width: 100% !important;
}

.popup-container .gform_button {
  border: 1px solid #7337a0 !important;
}

.popup {
  background: #5b3378;
  padding: 20px 30px;
  border-radius: 24px;
  text-align: center;
  max-width: 900px;
  width: 100%;
  color: #fff;	
  -webkit-filter: drop-shadow(0px 0px 8px #2e2e2e);
  filter: drop-shadow(0px 0px 8px #2e2e2e);
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Show popup with animation */
.popup-container.show {
  opacity: 1;
  visibility: visible;
}

.popup-container.show .popup {
  transform: translateY(0);
  opacity: 1;
}

/* Close animation */
.popup-container.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.popup-container.hide .popup {
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.popup h2 {
  color: #fff !important;
}

.close-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
}

.form-wrapper {
  margin-top: 3rem;
}

.close-popup{
  display: flex;
  justify-content: flex-end;
}
.close-popup a{
  font-size: 1.2rem;
  background-color: rebeccapurple;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  display: inline-block;
}

.intro-text {
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  text-align: left;
  margin-bottom: 30px;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: 1.25fr 1fr; /* Two equal columns */
  gap: 10px; /* Space between columns */
}

.img-wrapper {
  display: flex;
  align-items: center;
  justify-content: end;
}

.img-wrapper img {
  width: 100% !important;
}

@media (max-width: 900px) {
  .popup {
    max-width: 750px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .grid-wrapper {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .grid-wrapper {
      grid-template-columns: 1fr; /* Stacks into one column */
  }

  .popup {
    max-width: 550px;
  }

  .img-wrapper {
    justify-content: center;
    margin-bottom: 30px;
  }
}

@media (max-width: 640px) {
  .popup-container .gform_wrapper.gravity-theme .ginput_complex span.name_last {
    margin-bottom: 0;
  }

  .popup-container .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 8px;
  }

  .popup h2 {
    font-size: 32px !important;
  }

  .popup .intro-text {
    font-size: 16px;
    line-height: 1.2em;
  }

  .popup-container.show .popup {
    overflow-y: scroll;
    max-height: 600px;
    overflow-x: hidden;
  }
}

@media (max-width: 440px) {
  .yellow-underline:after {
    left: -40px !important;
  }
}

.subscribe-img {
  max-width: 20rem;
  -webkit-filter: drop-shadow(0px 0px 8px #fff);
  filter: drop-shadow(0px 0px 8px #fff);
}