/*@import url('https://fonts.googleapis.com/css?family=Merriweather');*/
:root {
	--purple: #54547d;
	letter-spacing: 1px;
}

html, body {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	font-family: 'Merriweather';
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin: 0;
	padding: 0;
}

body > div {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	overflow-y: auto;
	scroll-behavior: smooth;
}

body > div > * {
	max-width: 700px;
	margin: auto;
}

main {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

main > * {
	padding-left: 0.5em;
	padding-right: 0.5em;
}

h1, h2, h3, h4, footer {
	color: var(--purple);
	text-align: center;
}

footer {
	margin: 6em 0 4em 0;
}

h1 {
	font-size: 2.25em;
	margin-top: 0.5em;
}

h2 {
	margin: 3em 0;
}

h3 {
	margin: 2em 0;
}

#header1 {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#main-subheader {
	font-size: 1.875em;
}

#header1 div {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	position: relative;
}

#header1 img:first-of-type {
	max-width: 100%;
	height: auto;
}

.qr-parent {
	position: relative;
}

.qr {
	position: absolute;
	opacity: 1;
	z-index: 1;
	transition: opacity 0.3s ease;
	top: 0;
}

.qr-parent:not(.showing-qr) .qr {
	opacity: 0;
	z-index: -1;
}

#header1 nav {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#header1 nav ol {
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	grid-gap: 0.75em;
	justify-content: center;
}

#header1 nav ol li:last-child {
	width: 100%;
	display: flex;
	justify-content: center;
}

main section {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin-top: 5em;
	align-self: stretch;
}

main > section p {
	text-align: justify;
	line-height: 2;
}

main section img {
	max-width: 100%;
	margin: 2em auto;
}

#header1 nav a, address a {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	grid-gap: 0.75em;
	min-width: 70px;
}

#header1 nav a:link,
address a:link,
#header1 nav a:visited,
address a:visited,
#header1 nav a:hover,
address a:hover,
#header1 nav a:active,
address a:active {
	color: var(--purple);	
}

#header1 nav a span:last-child, 
address a span:last-child {
	height: 48px;
	width: 48px;
	background: var(--purple);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#header1 nav a:not(:last-child,:hover) {
	opacity: 0.95;
}

ul {
	list-style-type: none;
	padding: 0;
	margin: auto;
}

ul li {
	display: flex;
	align-items: center;
	grid-gap: 0.75em;
}

ul li::before {
	content: '';
	background: url('/logo.png');
	height: 2.25em;
	width: 2.25em;
	background-size: contain;
	transform: translateY(-2px);
	opacity: 0.8;
	flex-shrink: 0;
}

a:link,
a:visited,
a:hover,
a:active {
	color: var(--purple);
}

.quote-link {
	display: inline-block;
	padding: 0.75em 4em;
	background: var(--purple);
	border-radius: 32px;
	margin-top: 4em;
	color: white;
	text-decoration: underline;
	border: none;
	align-self: center;
}

nav .quote-link {
	margin-top: 1em;
}

a.quote-link:link,
a.quote-link:visited,
a.quote-link:hover,
a.quote-link:active {
	color: white !important;	
}

.sr-only {
    position: fixed !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    left: -99999999px !important;
    top: -999999999px !important;
    opacity: 0 !important;
}

fieldset {
	display: flex;
	flex-direction: column;
	margin: 0;
	border: none;
}

legend {
	text-align: center;
}

fieldset > span {
	display: flex;
	margin-top: 2em;
}

input[type='text'],
input[type='email'],
input[type='tel'],
textarea {
	padding: 1.25em 0.75em 0.75em 0.75em;
	padding-top: 2em;
	border: 1px solid var(--purple);
	border-radius: 3px;
	margin-top: 2em;
}

textarea {
	padding-top: 3em;
}

input[type='text'] + label,
input[type='email'] + label,
input[type='tel'] + label,
.textarea-label {
	position: relative;
	display: flex;
	height: 0;
}

input[type='text'] + label > span,
input[type='email'] + label > span,
input[type='tel'] + label > span,
.textarea-label > span {
	position: absolute;
	top: -3.25em;
	left: 0.75em;
	color: var(--purple);
}

.textarea-label > span {
	top: 2.125em;	
}

input[type='radio'] + label {
	display: flex;
	padding: 0.75em 3em;
	border: 2px solid var(--purple);
	color: var(--purple);
	cursor: pointer;
}

input[type='radio'] + label:hover {
	display: flex;
	padding: 0.75em 3em;
	border: 2px solid var(--purple);
	color: var(--purple);
	background: rgb(84 84 125 / 10%);
}

input[type='radio']:checked + label {
	background: var(--purple);
	color: white;
}

input[type='submit'] {
	appearance: none;
	font-size: unset;
	font-family: unset;
	cursor: pointer;
}

address {
	display: flex;
	justify-content: center;
	grid-gap: 1.5em;
	align-self: stretch;
	font-style: unset;
	padding: 1em;
}

#quote-success {
	color: var(--purple);
	text-align: center;
	transition: opacity 0.2s ease-in;
}

.hidden {
	opacity: 0;
}

.bye {
	display: none;
}