/* other css is already using same classes in the other form plugin */

#firstNameValidationErrorModal, #lastNameValidationErrorModal, #emailValidationErrorModal, #phoneValidationErrorModal, #messageValidationErrorModal, #submitValidationErrorModal, #serviceValidationErrorModal, #turnstileValidationErrorModal {
    display: none;
}

#messageInputModal {
	border: 2px solid black!important;
}

/* modal  */

#contact-modal {
    display: none;
}

.closeModalButton {
    position: absolute;
    top: 0;
    right: 0;
  	background-image: url('https://buildexconstruction.co.uk/wp-content/uploads/2024/05/blackX.svg'); /* Path to your close icon image */
    background-repeat: no-repeat;
    background-position: center;
    border: none!important;
  	width: 40px!important;
  	height: 40px;
    background-size: 24px 24px; 
    cursor: pointer;
  	border-radius: 0!important;
}

.closeModalButton:hover {
	background-color: rgb(0,0,0,0.2)!important;
}

.modalTitle {
    font-size: 32px;
    font-family: "Rubik", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-head {
    display: flex;
}

#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
  	overflow-y: auto;
    
}

/* Modal content area */
.modalWrapper {
    padding: 20px;
    z-index: 9999;
    position: relative; 
    
    width: fit-content;
    margin: auto;
    min-width: 800px;
  	
}

.contactModalFormWrapper {
    background-color: white;
    padding: 24px;
  	max-height: 800px;
    overflow-y: auto; /* Enables vertical scrolling */
  	position: relative;
}


@media (min-width: 767px) and (max-width: 1119px) {
    .modalWrapper {
        min-width: 70%;
    }
}

@media (max-width: 767px) {
    .modalWrapper {
      	padding: 20px 0px;
        min-width: 90%;
      	width: 100%;
    }
}