@media screen and (max-width: 767px) {
	:root {
		--sidebar-w: 100vw;
	}
}

@media screen and (min-width: 768px) {
	:root {
		--sidebar-w: 300px;
	}
}

body.admin-bar {
	--offset: 32px;
}

body:not(.admin-bar) {
	--offset: 0px;
}

#contact-form-table {
	border-collapse: collapse;
	width: 100%
}

#contact-form-table td:first-child {
	padding: 0 10px 10px 0;
}

#contact-form-table td:last-child {
	padding: 0 0 10px 0;
}

#contact-form-table textarea,
#contact-form-table input[type="text"] {
	width: 100%;
	border-radius: 0;
	border: 1px solid #0a0094;
	padding: 10px;
	outline: none;
}

#contact-form-table input[type="text"].e {
	border: 1px solid red;
}

#contact-form-table textarea {
	resize: none;
}

#contact-form {
	padding: 10px;
}

#contact-form-banner {
	background: #0a0094;
	color: #fff;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 8px 8px 0 0;
}

#form-submit {
	border-radius: 9999px;
	background: transparent;
	color: #fff;
	font-size: 1.125em;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	border: none;
	margin: 0;
	height: 45px;
}

#contact-form-container {
	/*display: none;*/
	position: fixed;
	background: #fff;
	padding: 0;
	z-index: 100;
	width: 400px;
	box-shadow: 2px 2px 5px #666;
	border-radius: 5px;
	opacity: 0;
	transition: opacity 0.3s;
	overflow: hidden;
	height: 0;
	border-radius: 8px;
}

#contact-form-container.active {
	opacity: 1;
	height: auto;
	overflow: initial;
	transition: opacity 0.3s;
}

#sidebar-close,
#closebutton2 {
	position: absolute;
	right: 0;
	top: 0;
	font-size: 40px;
	width: 40px;
	height: 40px;
	background: #0a0094;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	opacity: 0.8;
	z-index: 30;
}

#sidebar-close {
	top: calc(10px + var(--offset));
	right: 10px;
}

#closebutton-takk {
	cursor: pointer;
	background: #0a0094;
	color: #fff;
	border: none;
	font-size: 18px;
	font-family: arial, "sans-serif";
	font-weight: bold;
	padding: 1rem 2rem;
	border-radius: 999px;
	margin-top: 20px;
}

#upload-button {
	color: #0a0094;
	border: 0;
	padding: 10px;
	background: none;
	font-weight: bold;
	font-size: 16px;
	cursor: pointer;
}

#upload-button.thankyou {
	cursor: default;
}

#file {
	height: 0;
	visibility: hidden;
	width: 0;
}

#thankyou-container {
	height: 100%;
	padding: 20px;
	text-align: center;
	font-weight: bold;
	align-content: center;
}

#thankyou-container h2 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	font-size: 4rem;
}

#upload-button-subtext {
	color: #0a0094;
	font-style: italic;
	font-size: 12px;
	margin: 0;
	padding: 0!important;
}

#sidebar {
	position: fixed;
	top: 0;
	display: block;
	background: #fff;
	height: 100vh;
	width: var(--sidebar-w);
	right: calc(var(--sidebar-w) * -1);
	z-index: 100;
	border-left: 1px solid #0a0094;
	transition: right 0.1s ease-in-out;
}

#sidebar.active {
	right: 0;
}

#sidebar-text {
	padding: var(--offset) 20px 20px 20px;
	background: #0a0094;
	color: #fff;
	height: 30%;
	align-content: end;
}

#sidebar-form-container {
	padding: 10px;
}

#sidebar-form-container table {
	width: 100%;
}

#sidebar-form-container input,
#sidebar-form-container textarea {
	border: 1px solid #555;
	border-radius: 3px;
}

#sidebar-form-container input[type="image"] {
	border: none;
	background: #0a0094;
	border-radius: 99999px;
	height: 45px;
	padding: 0 !important;
}

#sidebar-form-container input[type="image"].spin {
	background-color: transparent;
}

#sidebar-form-container .req.e {
	background-color: #ffd4d4;
}

#sidebar-form-container td > *:not(#file) {
	width: 100%;
	padding: 10px;
	font-family: arial;
	margin-bottom: 10px;
}

#upload-button {
	background: #fff!important;
	color: #0a0094!important;
	border: 2px solid #0a0094!important;
	min-height: 45px;
	height: auto !important;
}

#upload-button {
	background-color: #0a0094;
	color: #fff;
	border: none;
	border-radius: 9999px;
	color: #fff;
	font-size: 1.125em;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	margin: 0;
	height: 45px;
}

@media only screen and (max-width: 767px) {
	#contact-form-container {
		width: 100%;
	}
}
