html, body, section, div,
menu, nav, footer, dl, dt, dd, fieldset, td,
ul, ol, li, p {
	margin: 0;
	padding: 0;
}

* {
	box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
	font-size: 1em;
	font-weight: normal;
	margin: 0;
	padding: 0;
}

:root {
	--color-steel: #eeeff1;
	--color-primary: #262752;
	--color-heading: #036bb3;
	--color-link-underline: #00b0da;
	--color-action: #009a3d;
}

body {
	background-color: var(--color-steel);
	font-family: "Figtree", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 100%;
	color: var(--color-primary);
	padding: 1em;
}

main {
	background-color: #fff;
	margin: 1em auto;
	max-width: 50em;
	padding: 2em;
	border-radius: 1em;
}

footer {
	text-align: center;
	padding: 1em 2em 2em 2em;
}

	footer a {
		white-space: nowrap;
		font-weight: 500;
		text-decoration: none;
		color: var(--color-primary);
	}

		footer a:hover {
			text-decoration: underline;
		}

/*#region Logo */
p.logo {
	margin-bottom: 1em;
}

	p.logo img {
		display: block;
		max-width: 75vw;
		width: 30em;
	}
/*#endregion */

/*#region Form */

fieldset.form {
	display: block;
	border: none;
	margin-top: 2em;
	margin-bottom: 2em;
}

	fieldset.form legend {
		display: none;
	}

	fieldset.form li.text {
		list-style-type: none;
		display: flex;
		align-items: center;
		position: relative;
	}

		fieldset.form li.text + li.text {
			margin-top: 1em;
		}

		fieldset.form li.text label {
			display: block;
			width: 12em;
			flex: 0 0 auto;
		}

	fieldset.form li.required label {
		font-weight: 600;
	}

	fieldset.form li.text input[type=text] {
		display: block;
		width: calc(100% - 14em);
		flex: 0 0 auto;
		font-family: Figtree, sans-serif;
		font-size: 1em;
		color: var(--color-primary);
		font-weight: 400;
		padding: 0.5em 0.75em;
		border-radius: 0.25em;
		border: 1px solid var(--color-primary);
	}

	fieldset.form li.text.short input[type=text] {
		width: 16em;
		max-width: calc(100% - 14em);
	}

	fieldset.form li.text.cur input[type=text] {
		text-align: right;
	}

	fieldset.form li.text > span {
		position: absolute;
		right: 1em;
		top: 50%;
		transform: translateY(-50%);
	}

	fieldset.form li.sep {
		margin-top: 1em;
	}

	fieldset.form .buttons {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 1em;
		margin-top: 3em;
	}


		fieldset.form .buttons input[type=submit] {
			display: block;
			background-color: var(--color-action);
			color: #fff;
			font-weight: 600;
			font-size: 1.125em;
			font-family: Figtree, sans-serif;
			padding: 0.75em 1.5em;
			border-radius: 0.125em;
			border: none;
		}

div.worldpay-logos {
	transform: scale(0.8);
}

	div.worldpay-logos table {
		margin: 0 auto 0 auto;
	}

dialog {
	width: 50em;
	max-width: calc(100% - 2em);
	border: none;
	border-radius: 0.5em;
	background-color: var(--color-primary);
	padding: 2em;
}

	dialog::backdrop {
		background-color: rgba(255, 255, 255, 0.75);
	}

	dialog .freeform {
		color: #fff;
	}

		dialog .freeform a {
			color: #fff;
		}

	dialog button {
		position: absolute;
		top: 1em;
		right: 1em;
		border: none;
		background-color: transparent;
	}

		dialog button svg {
			pointer-events: none;
			width: 3em;
			height: 3em;
		}


@media(max-width: 600px) {
	fieldset.form li.text {
		display: block;
	}

	fieldset.form li.text label {
		width: 100%;
		margin-bottom: 0.25em;
	}

	fieldset.form li.text input[type=text]{
		width: 100%;
		padding: 0.75em;
	}

		fieldset.form li.text > span {
			top: 0.125em;
			left: -1.25em;
			transform: none;
		}

	fieldset.form li.text.short input[type=text] {
		width: 50%;
		max-width: 50%;
	}

	fieldset.form .buttons {
		flex-direction: column;
		margin-top: 2em;
	}

	fieldset.form .buttons input[type=submit] {
		width: 100%;
		padding: 1em;
	}

	div.worldpay-logos {
		margin: 1em auto;
		transform: none;
	}

	dialog{
		margin: 1em;
	}
}

/*#endregion */

/*#region Freeform Page content */
.freeform {
	color: var(--color-primary);
}

	.freeform h2 {
		font-size: 2em;
		color: var(--color-heading);
		font-weight: 600;
		margin: 0 0 0.5em 0;
	}

	.freeform * + h2 {
		margin-top: 1em;
	}

	.freeform h3 {
		font-size: 1.25em;
		color: var(--color-heading);
		font-weight: 600;
		margin: 0 0 0.5em 0;
	}

	.freeform * + h3 {
		margin-top: 1em;
	}

	.freeform h3.borderTop {
		background-color: red;
	}

	.freeform ul,
	.freeform ol {
		padding: 0 0 0 1em;
	}

	.freeform p {
		line-height: 140%;
	}

		.freeform p + p {
			margin-top: 1em;
		}

	.freeform a {
		color: var(--color-primary);
		font-weight: 500;
		text-decoration: underline;
		text-underline-offset: 0.25em;
		-moz-text-decoration-color: var(--color-link-underline);
		text-decoration-color: var(--color-link-underline);
	}

/*#endregion */
