.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.popup-overlay.hidden {
  display: none;
}

.popup-container {
  background: #fff;
  border-radius: 24px;
  max-width: 1242px;
  width: 100%;
  padding: 16px 0 16px 18px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: popupSlideIn 0.4s ease-out;
  margin: auto;
  max-height: 90vh;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  border: 1px solid #d7d7d7;
}

.popup-close:hover {
  transform: scale(1.1);
}

.popup-close::before,
.popup-close::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2px;
  background: #1a1a1a;
}

.popup-close::before {
  transform: rotate(45deg);
}

.popup-close::after {
  transform: rotate(-45deg);
}

.popup-left {
  flex: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: auto;
  max-width: 470px;
  width: 100%;
}

.popup-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
  object-position: top;
}

.popup-right {
  flex: 1;
  padding: 30px 45px 20px;
  background: #fff;
  overflow-y: auto;
  overflow-y: auto;
  max-height: 95vh;
  align-self: center;
}

.popup-title {
  font-weight: 600;
  font-size: 31.27px;
  line-height: 41.69px;
  letter-spacing: -0.32px;
  text-align: center;
  vertical-align: middle;
  color: rgba(30, 46, 97, 1);
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 7px;
}

.popup-title .highlight {
  background: linear-gradient(90deg, #01b0db 0%, #a4e931 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.popup-subtitle {
  color: rgba(0, 149, 255, 1);
}

.popup-description {
  color: #636877;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  text-align: center;
  vertical-align: middle;
  margin-bottom: 25px;
}

.popup-right form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 400;
  font-size: 12.93px;
  line-height: 17.24px;
  letter-spacing: -0.13px;
  color: #010101;
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 16px;
  border: 1px solid #cbd5e0;
  border-radius: 10.35px;
  background: #f7fafc;
  transition: all 0.3s;
  font-size: 15px;
  line-height: normal;
  height: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-group textarea {
  font-family: inherit;
  min-height: inherit !important;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.popup-right input[type="submit"] {
  background: linear-gradient(135deg, #202859 0%, #02b1dc 50%, #a7ed35 100%);
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;

  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
  margin: 0 auto;
  margin-top: 10px;
  height: auto;
  max-width: 292px;
  width: 100%;
}

.popup-right input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
  color: #fff;
}

.submit-btn:active {
  transform: translateY(0);
}
.popup-right .wpcf7-spinner {
  margin: 0 auto;
}
@media only screen and (max-width: 1400px) and (min-width: 1025px) {
  .popup-container {
    max-width: 88.7143vw;
  }
  .popup-left{
    max-width: 34.5vw;
  }
}
@media only screen and (max-width: 1024px) {
  .popup-right {
    padding: 20px;
  }
  .popup-container {
    border-radius: 20px;
    padding: 0;
    overflow-y: auto;
    max-height: inherit;
    flex-direction: column;
    max-width: 480px;
  }
  .popup-close {
    width: 40px;
    height: 40px;
    top: 4px;
    right: 4px;
  }
  .popup-right input[type="submit"] {
    height: auto;
    margin-top: 10px;
  }
  .popup-right {
    max-height: inherit;
    overflow: inherit;
  }
  .popup-left img {
    border-radius: 0;
  }
  .popup-title {
    font-size: 26px;
    line-height: 29px;
    letter-spacing: -0.2px;
  }
  .popup-left {
    max-width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
