.popupdynamic-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
}
.popupdynamic-box {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  width: 90%;
  max-width: 700px;
  height: 60%;
  min-height: 460px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}
.popupdynamic-left {
  background: #651b53;
  color: white;
  padding: 2px 0 2px 2px;
  width: 45%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.popupdynamic-left h2 {
  margin: 0;
  font-size: 24px;
  font-weight: normal;
}

.popupdynamic-left h1 {
  font-size: 40px;
  margin: 10px 0 0;
}

.popupdynamic-left img {
  /* height: 100%; */
}
.popupdynamic-right {
  padding: 30px;
  width: 55%;
  position: relative;
  background-image: url(../images/food-background.jpg);
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.popupdynamic-right h2 {
  font-size: 28px;
  text-align: center;
  color: #333;
  margin-bottom: 18px;
}

.popupdynamic-right p {
  color: #333;
  line-height: 1.5;
}
.popupdynamic-right input[type="email"] {
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

.popupdynamic-right label {
  display: block;
  font-size: 13px;
  margin: 10px 0;
  color: #666;
}
.popupdynamic-right button {
  color: white;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}

.popupdynamic-right .primary {
  width: 76%;
  background-color: #651b53;
  color: white !important;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}
.popupdynamic-right .secondary {
  width: 76%;
  background-color: #651b53;
  color: white;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}

.popupdynamic-right .no-thanks {
  background: #651b53 !important;
  font-size: 15px !important;
  width: 38% !important;
}
.popupdynamic-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #000;
}

.blur-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 6px 0 0 6px;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(15px) brightness(0.6);
  z-index: 1;
  pointer-events: none;
}

.foreground {
  position: relative;
  z-index: 2;
  width: auto;
  height: 90%;
  object-fit: contain;
  background: transparent;
  margin: 5% auto;
}

@media (max-width: 600px) {
  .popupdynamic-box {
    flex-direction: column;
    min-height: 600px;
  }

  .popupdynamic-left {
    height: 64%;
    overflow: hidden;
    padding: 2px 2px 0 2px;
  }

  .popupdynamic-left,
  .popupdynamic-right {
    width: 100%;
    text-align: center;
    position: static;
  }

  .popupdynamic-close {
    top: 3px;
    right: 5px;
    font-size: 39px;
    color: #fff;
    z-index: 9;
  }
  .blur-wrapper {
    border-radius: 6px 6px 0 0 !important;
  }
  .popupdynamic-right h2 {
    font-size: 25px;
    margin-bottom: 8px;
  }
  .popupdynamic-right .primary {
    width: 69%;
    padding: 6px;
  }
  .popupdynamic-right p {
    margin-bottom: 1px;
  }
  .popupdynamic-right .no-thanks {
    display: none;
  }
}