:root {
	--primary-color: #081351;
	--primary-color-hover: #2B356C;
	--alt-color: #7855C3;
	--alt-color-hover: #9274D2;
	--contrast-color: white;
	--border-color: #757575;
	--tag-color: #6FCFE1;
	--tag-color-hover: #9CD4DF;
	--color-gray: #7F7F7F;
}

*, ::before, ::after {
	box-sizing: border-box;
}

body {
	color: var(--primary-color);
	font-family: "Red Hat Text", Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 14px;
	min-width: 320px;
	background: #F6F6F6;
}

::selection, ::-moz-selection {
	background: var(--alt-color);
	color: var(--contrast-color);
}

@media (min-width: 960px) {
	body {
		font-size: 16px;
	}
}

.wrapper {
	padding: 0 3em;
	background: white;
}

h1 {
	text-align: center;
}

form.modal-form {
	margin: 0 auto;
	max-width: 45em;
	text-align: center;
	overflow: hidden;
	padding: 2em 0 4em;
}

form.paginated .page-numbers {
	margin: 2em auto;
	text-align: center;
}

form.paginated .page-numbers span {
	display: inline-block;
	margin: 0 0.5em;
	width: 3em;
	height: 3em;
	line-height: 2.75em;
	text-align: center;
	border: 0.15rem solid var(--border-color);
	font-weight: bold;
	border-radius: 1.5em;
	cursor: pointer;
}

form.paginated .page-numbers span:hover {
	background: rgba(0, 0, 0, 0.1);
}

form.paginated .page-wrapper {
	display: block;
	overflow: hidden;
	width: 100%;
}

form.paginated[data-page-index="1"] .page-numbers span:nth-child(1),
form.paginated[data-page-index="2"] .page-numbers span:nth-child(2),
form.paginated[data-page-index="3"] .page-numbers span:nth-child(3),
form.paginated[data-page-index="4"] .page-numbers span:nth-child(4),
form.paginated[data-page-index="5"] .page-numbers span:nth-child(5) {
	background: var(--primary-color);
	color: var(--contrast-color);
}

form.paginated .pages {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(5, 100%);
	overflow: hidden;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 5em;
	margin-bottom: -5em;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5em), 0 calc(100% - 5em));
}

form.paginated .pages p {
	margin: 1em 0;
	font-size: 1.2em;
}

form.paginated .pages .page {
	width: 100%;scroll-snap-align: center;
}

.text-with-dropdown {
	border: 0.15rem solid var(--border-color);
	height: 3em;
	line-height: 3em;
	border-radius: 1.5em;
	position: relative;
	margin: 2em auto;
	max-width: 30em;
}

.text-with-dropdown .field-name {
	position: absolute;
	top: 0;
	left: 1.5rem;
	background: white;
	padding: 0.5rem;
	font-size: 0.7em;
	text-transform: uppercase;
	height: 1rem;
	line-height: 1rem;
	margin-top: -1rem;
	letter-spacing: 0.1em;
	color: var(--alt-color);
	font-weight: bold;
}

.text-with-dropdown input {
	display: block;
	width: 100%;
	border: none;
	background: transparent;
	font: inherit;
	padding: 0 2em;
	outline: 0;
}

.text-with-dropdown .dropdown-arrow {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 3em;
	height: 2.75em;
	line-height: 2.75em;
	color: var(--alt-color);
	cursor: pointer;
	margin-top: -1px;
	margin-right: -1px;
	text-align: center;
	text-decoration: none;
}

.text-with-dropdown .dropdown-arrow::before {
	content: "\f078";
	font-family: "Font Awesome 7 Pro";
	font-weight: 900;
}

.text-with-dropdown .help {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 3em;
	height: 2.75em;
	line-height: 2.75em;
	color: var(--color-gray);
	cursor: pointer;
	margin-top: -1px;
	margin-right: -1px;
	text-align: center;
	text-decoration: none;
}

.text-with-dropdown .help::before {
	content: "\f05a";
	font-family: "Font Awesome 7 Pro";
	font-weight: 900;
}

.modal-form .text-with-dropdown .salary-help {
	display: none;
}

.text-with-dropdown .dropdown {
	display: grid;
	grid-template-rows: 0;
	transition: grid-template-rows 0.2s, box-shadow 0.2s;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: white;
	z-index: 100;
	line-height: 1.5em;
	border-radius: 1.5em;
	margin-top: 0.25em;
	overflow: hidden;
	max-height: 12em;
	overflow-y: auto;
}

.text-with-dropdown.open .dropdown {
	grid-template-rows: 1fr;
	box-shadow: 0 0.25em 1em rgba(0, 0, 0, 0.25);
	border: 0.15rem solid var(--border-color);
}

.text-with-dropdown .dropdown ul {
	list-style: none;
	display: block;
	padding: 0;
	margin: 0;
}

.text-with-dropdown .dropdown ul li {
	list-style: none;
	display: block;
	padding: 0;
	margin: 0;
}

.text-with-dropdown .dropdown ul li::before { display: none; }

.text-with-dropdown .dropdown ul li a {
	display: block;
	padding: 0.5em 2em;
	text-align: left;
	color: var(--alt-color);
	text-decoration: none;
}

.text-with-dropdown .dropdown ul li a:hover {
	background: #F0F0F0;
}

.options {
	margin: 2em auto;
}

.options .label {
	font-weight: bold;
	margin: 0 0 1em;
}

.options .inputs {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
}

aside .options .inputs {
	justify-content: flex-start;
}

.options .inputs label {
	display: block;
	margin: 0 1em;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	padding: 0.5em 0;
}

.options p.label {
	font-weight: inherit;
	margin-bottom: 0;
}

aside .options .inputs label {
	margin: 0 2em 0 0;
}

.options .inputs label input {
	position: absolute;
	bottom: 100%;
}

.options .inputs label span::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 0.15em solid var(--alt-color);
	margin: 0 0.5em 0.2em 0;
	vertical-align: middle;
	border-radius: 50%;
}

.options .inputs label input:checked + span::before {
	background: var(--alt-color);
}

.tags {
	margin: 2em auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	font-size: 0.7em;
}

.tags label {
	display: block;
	margin: 0 1em 1em 0;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	position: relative;
	overflow: hidden;
}

.modal-form .tags {
	justify-content: center;
}

.modal-form .tags label {
	margin: 0.5em;
}

.tags label input {
	position: absolute;
	bottom: 100%;
}

.tags label span {
	display: block;
	background: white;
	border: 0.15rem solid var(--tag-color);
	border-radius: 1em;
	padding: 0.5em 1em;
	cursor: pointer;
	opacity: 0.5;
}

.tags label:hover span {
	background: rgba(0, 0, 0, 0.1);
}

.tags label input:checked + span {
	background: var(--tag-color);
	opacity: 1;
}

.tags label:hover input:checked + span {
	background: var(--tag-color-hover);
}

.fields {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
}

.fields .field {
	width: calc(50% - 1em);
	margin: 0 0 2em;
	border: 0.15rem solid var(--border-color);
	border-radius: 1.75em;
	text-align: left;
	position: relative;
}

.fields .field.full {
	width: 100%;
}

.fields .field label {
	position: absolute;
	top: 0;
	left: 1.5rem;
	background: white;
	padding: 0.5rem;
	font-size: 0.7em;
	text-transform: uppercase;
	height: 1rem;
	line-height: 1rem;
	margin-top: -1rem;
	color: var(--alt-color);
}

.fields .field input,
.fields .field textarea {
	display: block;
	font: inherit;
	width: 100%;
	color: inherit;
	height: 3em;
	line-height: 3em;
	padding: 0 2em;
	border: none;
	border-radius: 3em;
	background: transparent;
	outline: 0;
	resize: none;
}

.checkbox {
	margin: 0 0 1rem 0;
}

.checkbox label {
	font-weight: bold;
	font-size: 0.9em;
}

.checkbox input {
	vertical-align: middle;
	margin: 0 0.5em 0 0;
}

.terms {
	font-size: 0.65em;
	color: var(--border-color);
	line-height: 1.5em;
	margin: 1rem 0 2rem;
}

.terms a {
	color: var(--alt-color);
	text-decoration: underline;
}

.buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	line-height: 3em;
}

.buttons input,
.button {
	display: block;
	border: 0.15rem solid var(--alt-color);
	padding: 0 1.5em;
	line-height: 2.75em;
	font: inherit;
	color: var(--primary-color);
	border-radius: 1.75em;
	text-decoration: none;
	background: white;
	cursor: pointer;
	font-weight: 700;
}

.buttons input:hover,
.button:hover {
	background: rgba(0, 0, 0, 0.1);
}

.buttons input.next,
.button.next {
	background: var(--alt-color);
	color: var(--contrast-color);
}

.buttons input.next:hover,
.button.next:hover {
	background: var(--alt-color-hover);
	border-color: var(--alt-color-hover);
}

.buttons input.disabled {
	pointer-events: none;
	cursor: not-allowed;
	opacity: 0.25;
}

.buttons.large input {
	font-size: 1.4em;
}