.popup {
  position: fixed;
  background: rgba(64, 64, 64, 0.5);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in;
}

.popup.active {
  opacity: 1;
  pointer-events: all;
}

.popup .inner {
  background: var(--blue2);
  width: 100%;
  max-width: 957px;
  padding: 32px;
  position: relative;
}

.popup .inner .close {
  content: '';
  position: absolute;
  top: 13px;
  right: 13px;
  width: 13px;
  height: 13px;
  background-image: url('../images/icon-close.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 2;
}
#popup-admin.popup .inner .close {
  filter: brightness(0);
}

.popup .inner .form-text {
  text-align: center;
  color: #fff;
  font-size: 26px;
  line-height: 1.5em;
  font-weight: 700;
	font-family: "Reddit Sans", sans-serif;
}

#popup-admin .inner {
  background: #fff;
}

#popup-admin .inner p {
  color: var(--blue2);
  font-weight: 300;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 24px;
}
#popup-admin .inner > *:last-child {
  margin-bottom: 0;
}

.popup form {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.popup form p {
  width: 50%;
}

.popup form label {
  color: #fff;
  font-size: 20px;
  font-weight: 300;
	font-family: "Reddit Sans", sans-serif;
}

.popup form label a {
  color: #fff;
  text-decoration: underline;
}

.popup form input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--orange);
}

.popup form textarea {
  font-size: 20px;
	font-family: "Reddit Sans", sans-serif;
  font-weight: 300;
  color: var(--blue2);
  padding: 11px 25px;
  width: 100%;
  height: 240px;
}

.popup form input[type="text"],
.popup form input[type="email"],
.popup form input[type="tel"],
.popup form select {
  height: 48px;
  line-height: 48px;
  padding: 0 23px;
  font-size: 20px;
	font-family: "Reddit Sans", sans-serif;
  font-weight: 300;
  color: var(--blue2);
  width: 100%;
  border: 1px solid transparent;
}

.popup form textarea::placeholder,
.popup form input[type="text"]::placeholder,
.popup form input[type="email"]::placeholder,
.popup form input[type="tel"]::placeholder,
.popup form input[type="select"]::placeholder {
  opacity: 0;
}

.popup .wpcf7-not-valid-tip {
  display: none;
}

.popup-product form > p {
  width: calc(50% - 12px);
}

/* .popup-product form > p:nth-child(odd) {
  width: calc(60% - 12px);
}

.popup-product form > p:nth-child(even) {
  width: calc(40% - 12px);
} */

.popup-product form > p:nth-child(7),
.popup-product form > p:nth-child(8),
.popup-product form > p:nth-child(9) {
  width: 100%;
}

.popup-product form > p:last-of-type {
  text-align: center;
  width: 100%;
}

.popup-product form p.form-text {
  width: 100%;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form-control-wrap .placeholder {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 26px;
  pointer-events: none;
  font-size: 20px;
  font-weight: 300;
	font-family: "Reddit Sans", sans-serif;
}

.wpcf7-form-control-wrap textarea + .placeholder {
  top: 12px;
  transform: none;
}

.wpcf7-form-control-wrap .placeholder .required {
  color: var(--orange);
}

.wpcf7-form-control-wrap textarea:not(:placeholder-shown) + .placeholder,
.wpcf7-form-control-wrap input:not(:placeholder-shown) + .placeholder {
  display: none !important;
}

.wpcf7-list-item-label {
  position: relative;
  top: -3px;
}

.wpcf7-list-item-label,
.wpcf7-list-item-label a {
  color: #fff;
}

.wpcf7-acceptance .wpcf7-list-item-label::after {
  content: "*";
  color: var(--orange);
}

form .kk-button {
  text-align: center;
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  cursor: pointer;
}

.popup form .kk-button {
  pointer-events: none;
}

form .kk-button input {
  background: transparent;
  border: none;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 600;
  color: var(--blue2);
  width: 100%;
  display: block;
  height: 56px;
  line-height: 56px;
  z-index: 2;
  position: relative;
  transition: all 0.2s ease-in-out;
  padding: 0 79px;
  cursor: pointer;
}

.active form .kk-button input {
  pointer-events: all;
  cursor: pointer;
}

form .kk-button input:hover {
  color: #fff;
}

.wpcf7-response-output {
  display: none;
}

form [aria-invalid="true"] {
  border-color: var(--orange) !important;
}

.popup-ajanlat form > p {
  width: 100% !important;
}

.wpcf7 .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output {
  border: none;
  color: #fff;
  text-align: center;
  font-size: 20px;
  width: 100%;
  margin: 2em 0;
}

@media screen and (max-width: 768px ) {
  .popup .inner {
    max-width: 100%;
    width: 500px;
    padding: 25px;
  }

  .popup .inner .form-text {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .popup form input[type="text"],
  .popup form input[type="email"],
  .popup form input[type="tel"], 
  .popup form select {
    height: 40px;
    font-size: 18px;
    padding: 0 16px;
  }

  .wpcf7-form-control-wrap .placeholder {
    left: 20px;
  }

  .wpcf7-form-control-wrap .placeholder {
    font-size: 18px;
  }

  .popup form textarea {
    height: 180px;
    font-size: 18px;
  }

  .popup form > p {
    width: 100% !important;
  }

  .popup form label {
    font-size: 18px;
  }

  .wpcf7-list-item-label {
    top: -2px;
  }

  .popup form input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  form .kk-button input {
    padding: 0 34px;
  }
  
  form .kk-button,
  form .kk-button input {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    padding: 0 41px;
  }

  .wpcf7 form.sent .wpcf7-response-output {
    font-size: 16px;
  }
}

@media screen and (max-width: 567px ) {
  .popup form {
    gap: 8px;
  }

  .popup form input[type="text"],
  .popup form input[type="email"],
  .popup form input[type="tel"], 
  .popup form select {
    height: 24px;
    font-size: 14px;
    padding: 0 10px;
  }

  .wpcf7-form-control-wrap .placeholder {
    font-size: 14px;
  }

  .popup form input[type="checkbox"] {
    width: 12px;
    height: 12px;
  }
  
  .popup form label {
    font-size: 10px;
  }

  .wpcf7-form-control-wrap .placeholder {
    left: 16px;
  }
}