.popup-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: auto;
  width: 540px;
  height: auto;
  padding: 30px;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background-color: #3c3145;
  display: none;
  z-index: 9999;
}

@media only screen and (max-width: 1023px) {
  .popup-container {
    padding: 20px;
  }
}

.popup-container h2 {
  margin-bottom: 2rem;
  font-size: 3rem !important;
}

.popup-container p {
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

@media only screen and (max-width: 767px) {
  .popup-container {
    width: calc(100% - 40px);
    bottom: 0;
    left: 0;
    right: 0;
    margin: 20px;
    height: 64rem;
    max-height: calc(100% - 40px);
  }

  .popup-container h2 {
    font-size: 2rem !important;
  }

  .popup-content {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 100%;
    padding-right: 2rem;
  }
}

.popup-container .gform_fields {
  gap: 2rem 0 !important;
  margin-top: 2rem;
}

@media only screen and (max-width: 767px) {
  .popup-container .gform_fields {
    margin-top: 0 !important;
  }
}

.popup-container .gfield--width-half {
  width: calc(50% - 1rem) !important;
}

.popup-container .gform_footer {
  margin: 2rem 0 0 0 !important;
}

.popup-container .gform_wrapper {
  border-top: 1px solid #8e7b50;
}

.popup-container .textarea {
  height: 10rem !important;
}

.popup-close {
  background-color: #fff;
  color: #3c3145;
  font-weight: bold;
  border: none;
  display: flex;
  width: 36px;
  justify-content: center;
  align-items: center;
  height: 36px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: -15px;
  right: -15px;
  transition: background-color 100ms linear;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
  background-color: #261f2c;
  color: #fff;
}

.popup-content::-webkit-scrollbar {
  width: 10px;
}

.popup-content::-webkit-scrollbar-track {
  background: #ffffff;
}

.popup-content::-webkit-scrollbar-thumb {
  background-color: #261f2c;
  border-radius: 10px;
  border: 3px solid #ffffff;
}
