/*
 Theme Name:   Zeko Lite Child
 Description:  Zeko Lite Child Theme
 Template:     zeko-lite
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  zeko-lite-child
*/

/*Contact Form 7 Styling*/
.wpcf7-checkbox{
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 500px){
    .wpcf7-checkbox{
        grid-template-columns: 1fr;
    }
}

.site-content{
  padding: 3.5em 0 0;
}

.custom-logo{
  width: auto;
  height: 100%;
  max-height: 100px;
}

p.site-title{
  display: none;
}

/* Menu */
.main-navigation li{
  padding: 10px 12px;
}

.main-navigation ul li > a{
  font-size: .8rem;
}

.main-navigation ul ul a,
.main-navigation.toggled ul ul a{
  font-size: .8rem;
}

#map{
  width: 100%;
  height: 30vw;
  min-height: 300px;
  margin-bottom: 20px;
}

div.wpcf7{
  margin-bottom: 3em;
}

.split-input > p{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  margin-bottom: 20px;
}

.wpcf7 input:not([type="file"]):not([type="submit"]), .wpcf7 select, .wpcf7 textarea{
  transition: border-color 250ms ease;
  border: 1px solid #dedede !important;
}

.wpcf7 input:not([type="file"]):not([type="submit"]):focus,
.wpcf7 input:not([type="file"]):not([type="submit"]):hover,
.wpcf7 select:focus,
.wpcf7 select:hover,
.wpcf7 textarea:focus,
.wpcf7 textarea:hover{
  border-color: #9e0122 !important;
}

.form-image input[type="file"]{
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

.form-image label{
  color: white;
  padding: 5px 10px 5px 36px;
  display: inline-block;
  cursor: pointer;
  background-image: url(media/upload.svg);
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: 10px 50%;
}

.form-image label{
  background-color: #9e0122;
}

.form-image label:hover{
  background-color: black;
}

.form-image label *{
	pointer-events: none;
}

.image-upload-preview img{
  width: 100%;
  height: auto !important;
  max-width: 150px !important;
}

.split-input br{
  display: none;
}

select.wpcf7-select{
  width: 100%;
  padding: 4px 8px;
  background-image:
    linear-gradient(45deg, transparent 50%, grey 50%),
    linear-gradient(135deg, grey 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  background-color: white;
  border-radius: 0;
}

textarea{
  padding: .5em;
  resize: vertical;
  min-height: 250px;
}

.form-hint{
  font-size: 14px;
  padding: 1em;
  border: 1px solid #dedede;
  margin-bottom: 1em;
}

.form-hint p:empty{
  display: none;
}

.form-hint p{
  margin-bottom: 0;
}

.form-hint-title{
  margin-bottom: 1em;
  display: block;
  font-family: "Oswald", "Helvetica Neue", helvetica, arial, sans-serif;
}

.form-hint-title:before{
  content: '\2139';
  width: 24px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid #9e0122;
  background-color: transparent;
  color: #9e0122;
  display: inline-block;
  margin-right: .5em;
  box-sizing: initial;
}

.form-group{
  position: relative;
  border: 1px solid #dedede;
  padding: 1em;
  margin-bottom: 2em;
  border-radius: 5px;
}

.group-title{
  background-color: #fbfbfb;
  position: absolute;
  top: -14px;
  left: 11px;
  padding: 0 5px;
  font-family: "Oswald", "Helvetica Neue", helvetica, arial, sans-serif;
}

.group-title:before{
  content: '';
  position: absolute;
  width: calc(100% - 10px);
  height: 2px;
  background-color: #9e0122;
  left: 5px;
  bottom: 0;
}

.req-field{
  color: #9e0122;
}

span.wpcf7-list-item{
  margin: 0;
}

.wpcf7-radio > span:not(:last-child){
  margin-right: 1rem;
}

@media (max-width: 600px){

  .split-input > p{
    grid-template-columns: 1fr;
  }

}

@media (max-width: 500px){

  body .wpcf7{
    padding: 1em;
  }

  .wrap{
    padding-left: 1em;
    padding-right: 1em;
  }

}

/* Homepage Membership CTA */
.elementor-shortcode .wpcf7{
  background-color: transparent;
  padding: 0;
}

.mem-grid{
  display: grid;
  grid-template-columns: 1fr 200px;
  grid-gap: 40px;
}

.mem-cta-email input{
  padding: 1rem 2rem;
}

.mem-cta-send input[type="submit"]{
  background-color: #1b1f22;
  width: 200px;
  height: 58px;
}

.mem-cta-send input[type="submit"]:hover{
  background-color: white;
  color: #1b1f22;
}


.mem-grid p:empty{
  display: none;
}

.mem-grid .ajax-loader{
  display: none;
}

.mem-grid .wpcf7-not-valid-tip{
  color: white;
}

.mem-grid div.wpcf7-response-output{
  margin: 0;
  color: white;
}

@media (max-width: 600px) {

  .mem-grid{
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }

  .mem-cta-send input[type="submit"]{
    width: 100%;
    height: 58px;
  }

}
