/* colors to replace
 * white, red, maroon, yellow, gray
 */	

/*progressbar*/
#progressbar {
  margin-top: 50px;
  margin-bottom: 30px;
  overflow: hidden;
  /*CSS counters to number the steps*/
  counter-reset: step;
  margin-left: 0px !important;
  padding-left: 0px;
  display: flex;
}
#progressbar li {
  flex-grow: 1;
  list-style-type: none;
  color: white;
  text-transform: uppercase;
  font-size: 12px;
  float: left;
  position: relative;
}
#progressbar li:before {
  content: counter(step);
  counter-increment: step;
  width: 20px;
  line-height: 20px;
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  background: gray;
  border-radius: 15px;
  padding: 1px;
  margin: 0 auto 5px auto;
  position: relative;
  z-index: 2;
  text-align: center;
}
/*progressbar connectors*/
#progressbar li:after {
  content: '';
  width: 100%;
  height: 2px;
  background: gray;
  position: absolute;
  left: -50%;
  top: 10px;
  z-index: 1; /*put it behind the numbers*/
}
#progressbar li:first-child:after {
  /*connector not needed before the first step*/
  content: none; 
}
/*marking active/completed steps green*/
/*The number of the step and the connector before it = green*/
#progressbar li.active:before,  #progressbar li.active:after{
  background: red;
  color: white;
}





.wpcf7_inf {
  text-align: center;
  position: relative;
  margin-left: auto !important;
  margin-right: auto !important;
}
.wpcf7_inf fieldset {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  /*stacking fieldsets above each other*/
  position: absolute;
  background: #ffffff;
  color: grey;
  padding: 8%;
}
/*Hide all except first fieldset*/
.wpcf7_inf fieldset:not(:first-of-type) {
  visibility: hidden;
}

/* heading styles */
.wpcf7_inf fieldset > label {
	font-size: 30px;
	margin-bottom: 30px;
	display: block;
}


/* next button basic styles */
input.next {
	font-size: 1.2rem;
	padding: 10px 50px;
}

/* textarea height */
.wpcf7_inf textarea {
	height: 100px;
}

/* icon styles */
.wpcf7_inf fieldset > i {
	color: red;
	font-size: 50px;
	height: 50px;
	margin-bottom: 10px;
	width: 50px;
	margin-top: 10px;
}


/* replace radio buttons and checkbox fields with the label */
.wpcf7_inf fieldset .wpcf7-radio input[type=radio],
.wpcf7_inf fieldset .wpcf7-radio input[type=checkbox]  {
  display: none;
}

.wpcf7_inf fieldset .wpcf7-radio label {
	padding: 20px;
	cursor: pointer;
	width: 100%;
	height: 100%;
	transition: background 0.2s ease;
	background: red;
	border-radius: 6px;
	display: inline-block;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.wpcf7_inf fieldset .wpcf7-radio label span {
	color: white !important;
	line-height: 1.2;
}
.wpcf7_inf fieldset .wpcf7-radio label:hover {
  background: maroon;
}
.wpcf7_inf fieldset .wpcf7-radio label:active {
  background: yellow;
}



/* cf7 fieldsets */
span.wpcf7-list-item {
	margin-left: 0px;
}




/* checklist helper class */
.checklist span.wpcf7-list-item {
	width: 100%;
}


/* columns helper classes for checkbox and radio fields */
fieldset.checklist .wpcf7-form-control,
fieldset.one-col .wpcf7-form-control,
fieldset.one-half .wpcf7-form-control,
fieldset.one-third .wpcf7-form-control,
fieldset.one-fourth .wpcf7-form-control,
fieldset.one-fifth .wpcf7-form-control,
fieldset.one-tenth .wpcf7-form-control {
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
	align-items: stretch;
	align-content: stretch;
}

fieldset.checklist span.wpcf7-list-item,
fieldset.one-col span.wpcf7-list-item,
fieldset.one-half span.wpcf7-list-item,
fieldset.one-third span.wpcf7-list-item,
fieldset.one-fourth span.wpcf7-list-item,
fieldset.one-fifth span.wpcf7-list-item,
fieldset.one-tenth span.wpcf7-list-item {
	flex: auto;
	display: flex;
	padding: 5px;
}

fieldset.checklist span.wpcf7-list-item label,
fieldset.one-col span.wpcf7-list-item label,
fieldset.one-half span.wpcf7-list-item label,
fieldset.one-third span.wpcf7-list-item label,
fieldset.one-fourth span.wpcf7-list-item label,
fieldset.one-fifth span.wpcf7-list-item label,
fieldset.one-tenth span.wpcf7-list-item label {
	display: flex;
	align-self: stretch;
	align-items: center;
	text-align: center;
}

fieldset.checklist span.wpcf7-list-item label span,
fieldset.one-col span.wpcf7-list-item label span,
fieldset.one-half span.wpcf7-list-item label span,
fieldset.one-third span.wpcf7-list-item label span,
fieldset.one-fourth span.wpcf7-list-item label span,
fieldset.one-fifth span.wpcf7-list-item label span,
fieldset.one-tenth span.wpcf7-list-item label span {
	width: 100%;
	text-align: center;
}

fieldset.checklist span.wpcf7-list-item label span,
fieldset.one-col span.wpcf7-list-item { width: 100%; }
fieldset.one-half span.wpcf7-list-item { width: 50%; }
fieldset.one-third span.wpcf7-list-item { width: 33%; }
fieldset.one-fourth span.wpcf7-list-item { width: 25%; }
fieldset.one-fifth span.wpcf7-list-item { width: 20%; }
fieldset.one-tenth span.wpcf7-list-item { width: 10%; }





/* radio and checkboxes in the checkmark list style */
.checklist .wpcf7-radio label {
	text-align: left;
}
.checklist .wpcf7-radio label:before {
	font-family: fontawesome;
	content: '\f1db';
	font-size: 42px;
	color: white;
	color: rgba(255,255,255,0.2);
	margin-right: 3px;
}
.checklist .wpcf7-radio span:hover label:before{
  content: '\f05d';
}
.checklist .wpcf7-radio span:active label:before,
.checklist .wpcf7-radio span:checked label:before {
  content: '\f058';
}





/* sweet alert popup */
.swal-icon--warning {
}
.swal-title {
  font-size: 24px;
  padding: 13px 5%;
  margin-bottom: 30px;
  line-height: 30px;
}
.swal-footer {
  display: flex;
}
.swal-button-container {
  flex: 1 50%;
}
.swal-button {
	background-color: #9cd21a;
	width: 100%;
	font-size: 24px;
	padding: 17px 10px;
	height: 100%;
}
.swal-button:focus {
  box-shadow: none;
}
.swal-button:active {
  background-color: #9cd21a;
}
.swal-button--cancel {
  background-color: #e5e5e5;
}


/* fix button from making the outer element too wide */
.wpcf7_inf input[type=submit] {
	white-space: normal;
}

/* ajax loader */
span.ajax-loader {
	position: absolute;
	display: block !important;
	top: 0px;
	left: 0px;
	background-color: rgba(255,255,255,0.8);
	height: 100% !important;
	width: 100% !important;
	background-repeat: no-repeat;
	background-position: center center;
	background-image: url(../img/loading.svg) !important;
}

/* error response below form */
.wpcf7_inf .wpcf7-response-output {
	margin-right: 0px;
}




@media screen and (max-width: 689px) {

	#progressbar li:before {
		width: 16px;
		line-height: 16px;
	}
	#progressbar li:after {
		top: 8px;
	}  
  
  	fieldset.one-third span.wpcf7-list-item,
	fieldset.one-fourth span.wpcf7-list-item,
	fieldset.one-fifth span.wpcf7-list-item,
	fieldset.one-tenth span.wpcf7-list-item {
		width: 100%;
	}
  
  
}


@media screen and (max-width: 479px) {
	
	fieldset.checklist span.wpcf7-list-item label {
		padding-left: 12px;
	}
	fieldset.checklist span.wpcf7-list-item label span,
	fieldset.one-col span.wpcf7-list-item,
	fieldset.one-half span.wpcf7-list-item {
		width: 100%;
	}
	
	fieldset {
		font-size: 16px;
	}
	.wpcf7_inf fieldset > label {
		font-size: 24px;
	}
	
}

