#popup-overlay,
#popup-overlay-matching{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / .5);
    z-index: 1000;
    overflow-y: scroll;
    cursor: pointer;
}
#popup{
    display: none;
    width: 100%;
    max-width: 792px;
    position: fixed;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    overflow: auto;
    z-index: 1001;
    max-height: 85vh;
    overflow: auto;
    min-height: 50vh;
}
#popup-matching{
  display: none;
    width: 100%;
    max-width: 342px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: auto;
    z-index: 1001;
    max-height: 90%;
    overflow: auto;
}
#popup.show,
#popup-matching.show{
    animation: slideUp 0.5s ease-out forwards;
}
#popup.hide,#popup-matching.hide{animation:slideDown 0.5s ease-in forwards}
#close-popup,
#close-popup-matching{
    border-radius: 50%;
    border: none;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    float: right;
    background-color: #F1F1F1;
    position: relative;
}
#close-popup::after,
#close-popup-matching::after{
    content: "✕";
    position: absolute;
    top: 51%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 19px;
    color: black;
}
.popup-button-container{
      width: fit-content;
    float: right;
  position: absolute;
  right:50px;
}
.newsletter-form .input-row input[type="text"]{
   font-size: 14px;
  padding: 13px 24px;
  color:black;
} 
.newsletter-form .input-row select:has(option:not(:disabled):checked) {
    color: #000;
}
.input-row-consent-p a{
  color:#FF5F30;
  text-decoration: underline;
}
.newsletter-form .input-row select {
    color: #C1C4C9;
    font-size: 14px;
  padding: 13px 24px;
}
.newsletter-form .input-row-newsletterform-text{
      margin-bottom: 20px;
    margin-top: 30px;
}
.input-row-consent-p p{
  font-size: 12px;
  margin-bottom: 20px;
}
.input-row-Consent label{
  display: flex;
  gap:10px;
}
.checkbox-label p{
  font-size: 14px;
}
.generated-form .required{
  display: none;
}
.generated-form input[type="checkbox"]{
  width:auto;
}
.close-popup.primary-outlined-btn{
  padding: 10px 17px;
}
 .input-row.error input
.input-row.error select{
  border:1px solid red!important;
}
.generated-form .input-row-Consent{margin-bottom: 30px;}

/* CHECKBOX */
input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #999;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all .2s ease;
  border:1px solid #ddd;
  padding:10px!important;
}
@media(max-width:600px){
  .generated-form{
    margin-top:50px;
  }
  .input-row-newsletterform-title{
    width: 100%;
  }
  .input-row-newsletterform-title::before{
    margin-right: 20px;
  }
}
/* Error */
.input-row.error input[type="checkbox"]:not(:checked) {
  border-color: #dc3545;
  appearance: none;
}

/* Checked */
input[type="checkbox"]:checked {
  background-color: #FF5F30;
  border-color: #FF5F30;
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
/* .no-results p {
  text-align: center;
  margin-top:100px;
  font-size: 24px;
} */
.success-message{
      display: block;
    min-height: 300px;
    text-align: center;
    align-content: center;
    justify-items: center;
}
/* .success-message p{
      font-size: 24px;
} */

@keyframes slideUp {
	from {
		transform: translate(-50%, 100%);
		opacity: 0;
	}

	to {
		transform: translate(-50%, -50%);
		opacity: 1;
	}
}

@keyframes slideDown {
	from {
		transform: translate(-50%, -50%);
		opacity: 1;
	}

	to {
		transform: translate(-50%, 100%);
		opacity: 0;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}