/* Fullscreen overlay */
#modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
	display: flex;
	justify-content: center;
	align-items: center;
	visibility: hidden;
	opacity: 0;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
	z-index: 1000;
}

/* Contact form modal */
.request-a-demo-form {
	position: relative;
	background-color: #fff;
	border-radius: 0.5rem;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
	color: var(--cuaternary-gray);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0 1rem;
	max-width: 375px;
	padding: 1.5rem;
	width: 100%;
	max-height: 100%;
	overflow-y: auto;
}

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

.request-a-demo-form .form-group label {
	color: var(--primary-gray);
	font-size: small;
}

.request-a-demo-form .form-group input {
	border-radius: 0.25rem;
	border: 1px solid var(--tertiary-gray);
	color: var(--primary-gray);
	height: 2.5rem;
	outline: none;
	padding: 1.5rem 1rem;
}

.request-a-demo-form .form-group span.required {
	color: red;
}

.request-a-demo-form #submitForm {
	background-color: var(--tertiary-orange);
	border: 0;
	color: white;
	height: 2.5rem;
	text-transform: uppercase;
	width: 100%;
}

.request-a-demo-form .checkbox {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Active state to show modal */
#modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.request-a-demo-form .form-group .input-error {
	border: 1px solid rgb(238, 75, 75);
}
