/*
Theme Name:		DIESA 2022
Author:			CMS Web Solutions
Author URI:		http://cmswebsolutions.com
*/

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

html {
    font-size: 112.5%;
}

body {
	margin: 0 auto;
	font-family: Verdana, Tahoma, sans-serif;
	font-weight: 400;
	position: relative;
	color: #26397b;
	background-color: #fffefe;
	scroll-behavior: smooth;
	text-rendering: optimizeSpeed;
	line-height: 1.556;
}

@media (prefers-reduced-motion: reduce) {
	* {
		-webkit-animation-duration: 0.01ms !important;
		        animation-duration: 0.01ms !important;
		-webkit-animation-iteration-count: 1 !important;
		        animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

header, main, footer, iframe, embed, figcaption, figure, section, summary {
	display: block;
	position: relative;
	margin: 0 auto;
}

figure {
	display: table;
}

figcaption {
    display: table-caption;
	caption-side: bottom;
}

.inner {
	display: block;
	margin: 0 auto;
	padding: 0 1.5rem;
	max-width: 65rem;
	position: relative;
}

h1 {
	margin: .75rem 0;
	color: #26397b;
	font-size: 1.333rem;
	font-weight: 600;
	line-height: 1.417;
}

h2 {
	margin: 1.5rem 0 .75rem;
	color: #26397b;
	font-size: 1.333rem;
	font-weight: 600;
	line-height: 1.417;
}

h2.category {
	margin: .75rem 0 0;
	font-size: 1rem;
	font-weight: bold;
}

h2.category span {
	font-weight: 400;
}

h2 br {
	display: block;
}

h1 + h2 {
	margin: .25rem 0 .75rem;
}

h2 a {
	color: #26397b;
	-webkit-text-decoration-color: #aaa;
	text-decoration-color: #aaa;
}

h2 a:hover,
h2 a:focus {
	color: #333;
	-webkit-text-decoration-color: #222;
	text-decoration-color: #222;
}

h3 {
	margin: 1.5rem 0 .75rem;
	color: #26397b;
	font-size: 1.222rem;
	font-weight: 600;
}

h4 {
	margin: 1.5rem 0 .75rem;
	color: #26397b;
	font-weight: 600;
}

li, p + p, p * {
	margin-top: 0;
}

ul[class],
ol[class] {
  padding: 0;
}

ul[class],
ol[class] {
  list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
}

a {
	color: #26397b;
}

a:not([class]) {
	-webkit-text-decoration-skip: ink;
	        text-decoration-skip-ink: auto;
}

a[href^="tel:"] {
	text-decoration: none;
}

a:hover,
a:focus {
	color: #000;
	background-color: #fbc01f;
}

:focus {
	outline: 2px solid #cbdce4;
}

a:active {
	transition: color 2s;
	color: blue;
}

a img {
	border: none;
	outline: none;
}

iframe,embed {
	max-width: 100%;
}

.hidden {
	position: absolute;
	left: -1000rem;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: -1px;
	padding: 0;
	clip: rect(0,0,0,0);
	border: 0;
}

.clearfix {
	overflow: hidden;
	content: '';
	visibility: hidden;
	display: block;
	height: 1px;
	width: 1px;
	clear: both;
}

a.skip {
	position: absolute;
	z-index: 5;
	top: 0;
	left: -1000rem;
	color: #fff;
	background-color: #26397b;
	text-decoration: none;
	border-radius: 0 0 3px 3px;
}

a.skip:focus,
a.skip:hover {
	left: 1rem;
	top: 0;
	padding: .5rem 1rem;
}

.center {
	text-align: center;
}

header {
	padding: .5rem 0;
	color: #fff;
	background-color: #22316a;
}

header br {
	display: none;
}

header .inner {
	display: flex;
	flex-direction: column;
}

.logo {
	padding-top: .5rem;
	order: 2;
}

.tag {
	display: none;
	font-size: 0.889rem;
	font-style: italic;
}

.brand {
	padding-bottom: .5rem;
	border-bottom: 1px solid #fff;
}

.brand img {
	max-height: 50px;
	width: auto;
}

input,
textarea,
select {
	margin: 0;
	font: inherit;
}

input:focus {
	outline: 2px solid royalblue;
	box-shadow: 1px 1px 8px 1px royalblue;
}

button,
a.wp-block-button__link {
	color: #26397b;
	background-color: #fbc01f;
	border: 1px solid #fbc01f;
	border-radius: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: 1.5;
	padding: .5rem 1rem;
	text-align: center;
	text-decoration: none;
}

button:hover,
button:focus,
a.wp-block-button__link:hover,
a.wp-block-button__link:focus {
	color: #fbc01f;
	background-color: #26397b;
	border: 1px solid #26397b;
}

/* Home */
.hero {
	padding: 1rem 0;
	color: #fff;
	background: #26397b;
}

.hero img {
	display: none;
}

.hero h1 {
	font-size: 2.111rem;
	line-height: 1.263;
	color: #fff;
}

.hero h1 span {
	color: #fbc01f;
}

.cta {
	padding: .5em 1.5em;
	color: #fff;
	background-color: #26397b;
}

.cta a {
	color: #fff;
}

.cta a:hover,
.cta a:focus {
	color: #26397b;
}

.grid.second {
	background-color: #f8f8f8;
}

.how ol {
	/* padding: 1.5rem 1.5rem 1.5rem 3.5rem;
	color: #fff;
	background-color: #26397b; */
	counter-reset: custom-counter;
	list-style: none;
}

.how ol li {
	margin: 0 0 1rem 0;
	padding-left: 10px;
	counter-increment: custom-counter;
	position: relative;
}

.how ol li::before {
	content: counter(custom-counter);
	color: #26397b;
	font-size: 1.333rem;
	font-weight: bold;
	position: absolute;
	top: 0;
	left: -42px;
	line-height: 38px;
	width: 38px;
	height: 38px;
	background-color: #fbc01f;
	border-radius: 50%;
	text-align: center;
}

/* Form styles */

main .inner.form {
	max-width: 52.5rem;
}

.frm_rootline_group {
	margin: 1rem 0 .5rem;
}

.frm_pages_complete {
	display: none;
}

.frm_primary_label h3 {
	margin: .5rem 0;
	outline: 0;
}

.frm_style_formidable-style.with_frm_style div.frm_description {
	margin: 0 0 1rem;
	padding: 1rem;
	color: #26397b;
	background-color: #f8f8f8;
}

.frm_form_field .frm_radio, 
.frm_form_field .frm_radio + .frm_radio {
	margin: .5rem 0;
}

.frm_style_formidable-style.with_frm_style .frm_submit button.frm_prev_page {
	margin-left: -1rem;
	background-color: transparent;
	border: 1px solid transparent;
	text-decoration: underline;
}

.frm_style_formidable-style.with_frm_style .frm_submit button.frm_prev_page:hover,
.frm_style_formidable-style.with_frm_style .frm_submit button.frm_prev_page:focus {
	color: #26397b;
	background-color: #fbc01f;
	border: 1px solid #fbc01f;
	text-decoration: none;
}

/*
rez@busyninja.ca 
Adding styles for our progress-bar
*/
div.diesa_progress {
	width: 100%;
	height: 35px; 
	background-color: #e5e5e5;
	border-radius: 20px;
	overflow: hidden;
}

div.diesa_progress_bar {
	height: 35px; 
	background-color: #fbc01f;
}

/* Results */

.overview {
	padding: .25rem 1.5rem 1rem;
	background-color: #e5e5e5;
	border-radius: 4px;
}

.overview ul {
	padding-left: 0;
}

.overview li {
	list-style: none;
	line-height: 2;
}

.download {
	margin-top: .5rem;
	padding: 1rem 2rem;
	background-color: #fbc01f;
	border-radius: 4px;
}

.download a {
	font-weight: bold;
	text-decoration: none;
}

.download a::before {
	content: '';
	display: inline-block;
	margin-right: .25rem;
	background: url(img/pdf.png) center center no-repeat;
	width: 64px;
	height: 84px;
	vertical-align: middle;
}

.results h2.category {
	margin-top: 1.5rem;
	padding: 1.5rem;
	color: #fff;
	background-color: #26397b;
	border-radius: 4px;
	font-size: 1.333rem;
	font-weight: normal;
}

.results h2.category b {
	color: #fbc01f;
}

.response {
	font-weight: bold;
}

.response b {
	padding: .25rem .5rem;
	background-color: #e5e5e5;
}

.action {
	margin-bottom: 2rem;
	padding: .75rem 2rem 2rem;
	background-color: #fef0ca;
}

.action h4 {
	font-size: 1.556rem;
}

.quick_read img,
.dig_deeper img {
	margin-right: .5rem;
	float: left;
}

.dig_deeper img {
	margin-bottom: 1rem;
}

footer {
	margin-top: 2rem;
	padding: 1rem;
	width: 100%;
	color: #fff;
	background-color: #26397b;
}

footer h3,
footer a {
	color: #fff;
}

footer a:hover,
footer a:focus {
	color: #26397b;
	background-color: #fbc01f;
}

@media screen and (min-width: 37.5em) {
    .alignleft,img.alignleft {
        float: left;
        margin: 0 1.5rem 1.5rem 0;
    }
    
    .alignright,img.alignright {
        float: right;
        margin: 0 0 1.5rem 1.5rem;
    }
    
    .aligncenter,img.aligncenter {
        display: block;
        clear: both;
        margin: 1.5rem auto;
	}
}

@media screen and (min-width: 56.25em) {

	header .inner {
		padding: .5rem 1.5rem;
		display: inline-block;
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-direction: row;
	}

	header br {
		display: block;
	}

	h2 br {
		display: none;
	}

	.logo {
		padding-top: 0;
		flex-basis: 50%;
		order: 0;
	}

	.brand {
		display: inline-block;
		display: flex;
		justify-content: space-between;
		padding-bottom: 0;
		border-bottom: none;
	}

	.tag {
		display: block;
	}

	.brand img {
		margin: auto auto auto .5rem;
	}

	.hero .inner {
		display: inline-block;
		display: flex;
		justify-content: space-between;
	}

	.hero .content {
		flex: 1 1 auto;
	}

	.hero img {
		margin: auto;
		display: block;
	}

	.grid .inner {
		display: inline-flex;
		display: flex;
		justify-content: space-between;
	}

	.grid.first .inner {
		align-items: center;
	}

	.grid.first .content {
		flex-basis: 65%;
	}

	.grid.first .content + div {
		margin: 0 auto;
	}

	.grid.second .inner {
		gap: 2rem;
	}

	.grid.second div {
		flex-basis: 50%;
		gap: 2rem;
	}

	.results .intro {
		display: inline-block;
		display: flex;
		justify-content: space-between;
	}

	.results .summary {
		margin: 2rem 0 0 2rem;
	}

	@supports (display:grid) {
		.results .intro {
			display: grid;
			grid-template-columns: 60% 40%;
		}
	}

}




/*
 * Dialogs
 * From https://www.w3.org/WAI/ARIA/apg/example-index/dialog-modal/dialog.html
 * 
 */

 .hidden {
	display: none;
}
  
[role="alertdialog"],
[role="dialog"] {
	box-sizing: border-box;
	padding: 15px;
	border: 1px solid #000;
	background-color: #fff;
	min-height: 100vh;
}

/* for testing only */
/* [role="alert"] {
	padding: 10px;
	border: 2px solid hsl(206deg 74% 54%);
	border-radius: 4px;
	background: hsl(206deg 74% 90%);
} */
  
@media screen and (min-width: 640px) {
	[role="alertdialog"],
	[role="dialog"] {
	  position: absolute;
	  top: 4rem;
	  left: 50vw; /* move to the middle of the screen (assumes relative parent is the body/viewport) */
	  transform: translateX(
		-50%
	  ); /* move backwards 50% of this element's width */
  
	  min-width: calc(640px - (15px * 2)); /* == breakpoint - left+right margin */
	  min-height: auto;
	  box-shadow: 0 19px 38px rgb(0 0 0 / 12%), 0 15px 12px rgb(0 0 0 / 22%);
	  padding: 1em 2em;
	}
}
  
  .dialog_label {
	text-align: center;
  }
  
  .dialog_form .label_text {
	box-sizing: border-box;
	padding-right: 0.5em;
	display: inline-block;
	font-size: 16px;
	font-weight: bold;
	text-align: right;
  }
  
  .dialog_form .label_info {
	box-sizing: border-box;
	padding-right: 0.5em;
	font-size: 12px;
	width: 30%;
	text-align: right;
	display: inline-block;
  }
  
  .dialog_form_item {
	margin: 10px 0;
  }
  
  .dialog_form_item .wide_input {
	box-sizing: border-box;
	max-width: 70%;
	width: 27em;
  }
/*   
  .dialog_form_item .city_input {
	box-sizing: border-box;
	max-width: 70%;
	width: 17em;
  }
  
  .dialog_form_item .state_input {
	box-sizing: border-box;
	max-width: 70%;
	width: 15em;
  }
  
  .dialog_form_item .zip_input {
	box-sizing: border-box;
	max-width: 70%;
	width: 9em;
  } */
  
  .dialog_form_actions {
	padding: 1rem 0;
  }
  
.dialog_form_actions button {
	margin-bottom: .5em;
}

.dialog_close_button {
	float: right;
	position: absolute;
	top: 10px;
	left: 92%;
	height: 25px;
}
  
.dialog_close_button img {
	border: 0;
}
  
  .dialog_desc {
	padding: 10px 20px;
  }
  
  /* native <dialog> element uses the ::backdrop pseudo-element */
  /* dialog::backdrop, */
  .dialog-backdrop {
	display: none;
	position: fixed;
	overflow-y: auto;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
  
  @media screen and (min-width: 640px) {
	.dialog-backdrop {
	  background: rgb(0 0 0 / 30%);
	}
  }
  
  .dialog-backdrop.active {
	display: block;
  }
  
  .no-scroll {
	overflow-y: auto !important;
  }
  
  /* this is added to the body when a dialog is open */
  .has-dialog {
	overflow: hidden;
  }
  
  /* styling for alert-dialog example */
  .notes {
	display: block;
	font-size: 1rem;
	line-height: 1.3;
	min-width: 400px;
	max-width: 100%;
	width: 33%;
  }
  
  .visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: auto;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
  }
  
  #notes_save {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
  }
  
  #notes_save svg {
	display: block;
	width: 0.75rem;
  }
  
  #notes_save .icon {
	display: none;
  }
  
  @keyframes rotate {
	0% {
	  transform: rotate(0deg);
	}
  
	100% {
	  transform: rotate(360deg);
	}
  }
  
  #notes_save.loading .spinner {
	display: block;
	animation: rotate 2s linear infinite;
  }
  
  #notes_save.saved .check {
	display: block;
  }