/* styles-main-match.css */
/* Used when there is a MATCH logo in the header */

/* ////////////////////////////// */
/* //// Page Container Styles /// */
/* ////////////////////////////// */
@media only screen and (max-width: 1023px){
  form { 
    text-align: center;
  }
  
  ul {
    text-align: left;
  }
}

header {
  z-index: 201;
}

.en__component--row.en__component--row--1:first-of-type {
  z-index: 200;
}

/* ////////////////////////////// */
/* ///// Partner Styles ///////// */
/* ////////////////////////////// */

/* Based on economical insurance logo */
#partnerLogo { 
  height: 30px;
  left: 140px;
  position: absolute;
  top: 0;
  width: 82px;
}

@media(min-width:450px) {
  /* Based on economical insurance logo */
  #partnerLogo { 
    height: 40px;
    left: 200px;
    width: 112px;
  }
}

#partnerLogo img { 
  height: 100%;
  width: auto;
}

@media only screen and (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

/* /////////////////////////////// */
/* / Form Progress Bar Container / */
/* ////////////////////////////// */
.progress-bar-container .h1 {
  margin-bottom: 1em;
}

.en__component--row.en__component--row--1:nth-of-type(3n) {
  padding-top: 10px;
}

@media only screen and (min-width: 768px) {
  .en__component--row--1 .en__component--copyblock.progress-bar-container {
	  margin-bottom: 0;
  }

  .progress-bar-container .h1 {
    font-size: 2rem;
  }
}

@media only screen and (min-width: 1024px) {
  .en__component--row--1 .en__component--copyblock.progress-bar-container {
	  margin-bottom: 0;
  }

  .en__component--row.en__component--row--1:nth-of-type(3n) {
	  padding-top: 0;
  }
}


/* ////////////////////////////// */
/* /////// Main Title /////////// */
/* ////////////////////////////// */
.en__component--row--1 .en__component--copyblock.main-title-container {
  margin: 1em;
}

.main-title-container .h1 {
  font-size: 1.4375rem;
  /* 23px */
  margin-bottom: 1em;
}

@media only screen and (min-width: 768px) {
  .en__component--row--1 .en__component--copyblock.main-title-container {
    margin: 1.5em;
	  margin-bottom: 0;
  }
}

@media only screen and (min-width: 1024px) {
  .en__component--row--1 .en__component--copyblock.main-title-container {
    margin: 2em;
    margin-bottom: 0;
  }
}

/* ////////////////////////////// */
/* /// General Form Styles ////// */
/* ////////////////////////////// */
.en__field--withOther .en__field__element--radio .en__field__item--other input {
  border-radius: 0px 8px 8px 0;
}

/* ///////////////////////////////// */
/* // Custom Amount Radio Buttons // */
/* ///////////////////////////////// */

/* Hiding the fourth on Desktop */
@media only screen and (min-width: 768px) {
  .custom-radio-buttons .en__field__element--radio .en__field__item:nth-of-type(4n) {
    display: none;
  }
}

/* "Other" Button, Left of Donation Amount Input Field */
.custom-radio-buttons .en__field--radio .en__field__element--radio .en__field__item:nth-of-type(5n){
  margin-right: 0;
  width: 80px;
}

.custom-radio-buttons .en__field__item:nth-of-type(5n) input[type="radio"] + .en__field__label {
  border-radius: 8px 0 0 8px;
  border-right: 0;
}

.custom-radio-buttons .en__field--withOther .en__field__element--radio .en__field__item {
  margin: .5em;
  width: 44%;
  width: -webkit-calc(50% - 1em);
  width: calc(50% - 1em);
}

.custom-radio-buttons .en__field--withOther .en__field__element--radio .en__field__item.en__field__item--other {
  display: inline-block;
  margin-left: -1px;
  width: calc(100% - 96px);
}

@media only screen and (min-width: 768px) {
  .custom-radio-buttons .en__field--radio .en__field__element--radio .en__field__item:nth-of-type(5n){
    width: 25%
  }

  .custom-radio-buttons .en__field--withOther .en__field__element--radio .en__field__item {
    width: 25%;
  }

  .custom-radio-buttons .en__field--withOther .en__field__element--radio .en__field__item.en__field__item--other {
    margin-left: 0;
    /*width: calc(100% - 1em);*/
    width: auto;
  }
}

/* ////////////////////////////// */
/* //// Template Layout ///////// */
/* ////////////////////////////// */
@media only screen and (max-width: 1023px) {
  .en__component--row.en__component--row--1:first-of-type > .en__component--column {
    color: #fff;
  	margin: auto;
  	max-width: 600px;
  	padding: 20px;
  }
} 

@media only screen and (min-width: 1024px) {
  .en__component--row.en__component--row--1:first-of-type {
    padding-top: 115px;
    margin-right: -1em;
    height: 100%;
    max-height: inherit;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: 50%;
  }
}

/* Background Image */
.en__component--row--1:nth-of-type(1) {
  height: 30vh;
    /* ^ 30vh allows for error message */
  min-height: 200px;
  max-height: 100%;
}

@media only screen and (max-width: 499px) {
  .en__component--row--1:nth-of-type(1) {
	  height: 0vh;
  }
}

@media only screen and (min-width: 500px) {
  .en__component--row--1:nth-of-type(1) {  
    background-position: bottom;
    min-height: 300px;
  }
}

@media only screen and (min-width: 768px) {
  .en__component--row--1:nth-of-type(1) {
    background-position: bottom;
    min-height: 400px;
  }
}

@media only screen and (min-width: 1024px){
  .en__component--row--1:nth-of-type(1) {
    background-image: linear-gradient(#111 30%, #aaa 70%);
  }
}

.en__component--imageblock {
	background: #333;
  background-image: url(https://aaf1a18515da0e792f78-c27fdabe952dfc357fe25ebf5c8897ee.ssl.cf5.rackcdn.com/1951/form-card-v2.jpg);
  background-size: cover;
  background-position: right;
  display: none;
	height: 100% !important;
	left: 0;
	position: absolute !important;
	right: 0;
  text-align: right;
	top: 0;
  width: 100% !important;
}

@media only screen and (min-width: 1024px){
  .en__component--imageblock {
    display: block;
    opacity: 0;
    -webkit-transition: opacity .750s ease-in-out;
    transition: width opacity .750s ease-in-out;
  }
}

.en__component--row--1:nth-of-type(1) img {
  display: none;
} 

.en__component--row--1:nth-of-type(1) .portal-logo-container img {
  display: inline-block;
} 

@media only screen and (max-width: 1023px){
	.en__component--row--1:nth-of-type(3){
		margin: auto;
    max-width: 620px;   
    text-align: left;
	}
	
	.en__component--advrow {
		max-width: 600px;
		text-align: left;
	}
}

@media only screen and (max-width: 767px){
	.en__component--advrow {
		max-width: 620px;
	}
}

/* Background Image gradient overlay [Keep This] */
.en__component--row--1:not(.ty-bg-image):first-of-type::before{
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.2) 80%); 
}

.en__component--copyblock.text-for-image.mobile-only {
	height: 0;
	overflow: visible;
}

.en__component--row--1 .en__component--copyblock.text-for-image {
  margin: 0;
}

@media(min-width: 1024px) {
  .en__component--row--1 .en__component--copyblock.text-for-image {
    margin: 0 40px;
  }
}

.en__component--copyblock.text-for-image .h1 {
  font-size: 1.625rem;
  /* 26px */
  line-height: 1.5 ;
}

@media(min-width: 1024px) {
  .en__component--copyblock.text-for-image .h1 {
    font-size: 2.5rem;
    /* 40px */
    line-height: 1.25 ;
  }
}

/* Footer */
.footer-container p {
  margin: 0 0 .75rem 0;
}

.footer-container .footer-contact {
  padding-top: 0;
}


/* Updated March 25 2020 - AD */
/* styles-main-match.css */