/*
 Theme Name:     All for Children
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/

/* Misc */

/* Hack to fix radio and checkbox appearance */
.ginput_container_radio input,
.ginput_container_checkbox input{
    width: auto!important;
}
.gfield_radio,
.gfield_checkbox {
    display: flex;
    flex-direction: column;
}

/* Keep images from disappearing in slider on mobile */
.et_pb_slide_image {
    display: block!important;
}

/* center widgets */
.footer-widget {
    display: grid;
    text-align: center;
}

.de-thinking-of-adoption p {
    padding-top: 5px;
}
#de-note-to-birth-mother img {
    display: block;
}
/* Image Zoom Panel */
.de-image-zoom-text {
  display: none!important;
}
.de-image-zoom {
  overflow: hidden;
}
.de-image-zoom img {
  transition: transform .2s;
  margin: 0 auto;
  display: block;
}
.de-image-zoom:hover img {
  -ms-transform: scale(1.2); /* IE 9 */
  -webkit-transform: scale(1.2); /* Safari 3-8 */
  transform: scale(1.2); 
  filter: blur(2px);
  -webkit-filter: blur(2px);
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
}
.de-image-zoom .et_overlay {
  color: white;
  text-shadow: 0.04em 0.04em 0.04em rgba(0,0,0,0.8);
  padding: 20px;
  line-height: 1em;
  font-size: 24px
}
.de-image-zoom .et_overlay p,
.de-image-zoom .et_overlay h1,
.de-image-zoom .et_overlay h2,
.de-image-zoom .et_overlay h3,
.de-image-zoom .et_overlay h4,
.de-image-zoom .et_overlay h5,
.de-image-zoom .et_overlay ul {
 color: white;
 line-height: 1.1em;
}
.de-image-zoom .et_overlay p {
  margin-bottom: 10px;
}

/* weForms */
/* Show progress bar on mobile */
@media only screen and (max-width: 768px){
    .wpuf-form-add .wpuf-form .wpuf-multistep-progressbar {
        display: inline!important;
    }
}
@media all and (min-width: 1100px) { /* Media Width Dependant */
    ul.wpuf-form li .wpuf-label  {
        width: 40%!important;
    }
    .de-any-questions textarea { /* Text Area Width */
        width: 450px
    }
    button.wpuf-multistep-prev-btn.btn.btn-primary { /* Previous Button */
        left: 35%!important;
    }
    button.wpuf-multistep-next-btn.btn.btn-primary { /* Next Button */
        right: 35%!important;
    }
}
@media all and (min-width: 981px) and (max-width: 1099px) {
    .de-any-questions textarea { /* Text Area Width */
        width: 350px
    }
    button.wpuf-multistep-prev-btn.btn.btn-primary { /* Previous Button */
        left: 25%!important;
    }
    button.wpuf-multistep-next-btn.btn.btn-primary { /* Next Button */
        right: 25%!important;
    }
}
@media all and (min-width: 768px) and (max-width: 980px) {
    .de-any-questions textarea { /* Text Area Width */
        width: 350px
    }
    button.wpuf-multistep-prev-btn.btn.btn-primary { /* Previous Button */
        left: 15%!important;
    }
    button.wpuf-multistep-next-btn.btn.btn-primary { /* Next Button */
        right: 15%!important;
    }
}
@media all and (max-width: 767px) {
    .de-any-questions textarea { /* Text Area Width */
        width: 300px
    }
    .weforms_submit_btn {
        font-size: 16px!important;
    }
    button.wpuf-multistep-prev-btn.btn.btn-primary { /* Previous Button */
        left: 10px!important;
        font-size: 16px!important;
    }
    button.wpuf-multistep-next-btn.btn.btn-primary { /* Next Button */
        right: 10px!important;
        font-size: 16px!important;
    }
    .wpuf-multistep-fieldset {
        font-size: 75%;
    }
    ul.wpuf-step-wizard li {
        font-size: 12px!important;
    }
}
@media all and (max-width: 425px) {
    .de-any-questions textarea { /* Text Area Width */
        margin-bottom: 0px!important;
        padding-bottom: 0px!important;
        height: 90px;
    }
    .wpuf-multistep-progressbar ul li {
        /*line-height: 12px;*/
    }
    .wpuf-submit {
        padding-top: 0px!important;
    }
    .wpuf-label {
        padding-bottom: 5px!important;
    }
    .wpuf-el {
        margin-bottom: 5px!important;
    }
}
button.wpuf-multistep-next-btn.btn.btn-primary { /* Next Button */
    border: 1px solid #2C3B86!important;
    background-color: #2C3B86!important;
}
button.wpuf-multistep-prev-btn.btn.btn-primary { /* Previous Button */
    border: 1px solid #2C3B86!important;
    background-color: #2C3B86!important;
    display: inline!important;
}
ul.wpuf-form li .wpuf-label .required { /* Required Asterik */
    color: #ED820E!important;
}
.field-size-small.has-error,
.field-size-medium.has-error,
.field-size-large.has-error{ /* Error Background Color */
    background-color: #F8C48B!important;
}
div.wpuf-error-msg { /* Error Message */
    text-align: center!important;
    color: #ED820E;
    font-weight: bold;
}
div.wpuf-errors { /* Error Alert */
    text-align: center!important;
    padding: 15px 15px 15px 0!important;
    color: #ED820E!important;
    font-weight: bold;
}
ul.wpuf-step-wizard {  /* Reduce padding at bottom of progress bar */
    margin-bottom: 20px!important;
}
#change-language a {
    padding-left: 20px;
    font-size: small;
    color: #2C3B86;
}
input.weforms_submit_btn { /* Submit Button */
    background-color: #ED820E;
    padding: 10px 20px;
    border-radius: 3px;
    border: 0px;
    font-size: 24px;
    color: white;
}
.wpuf-name-field-first-name input,
.wpuf-name-field-last-name input,
.de-any-questions textarea,
.phonefield {
    font-size: 18px!important;
}
.wpuf-name-field-first-name,
.wpuf-name-field-last-name {
    float: none!important;
}
.wpuf-name-field-first-name input,
.wpuf-name-field-last-name input {
    width: 300px!important;
}
.phonefield {
    width: 150px!important;
}
.wpuf-name-field-last-name input[type=text] {
    margin-top: 10px;
}
/* =Theme customization starts here
------------------------------------------------------- */

/* Gravity Forms Styles */
.et_pb_dcgd_gravity_divi_module h3.dcgd_title { 
font-size: 40px;
color : white;
}

body .dcgd_gravity_divi_wrapper {
padding-top: 20px!important;
padding-right: 30px!important;
padding-bottom: 30px!important;
padding-left: 30px!important;
/* border-radius: 30px 30px 30px 30px;
box-shadow: 6px 6px 18px 0px rgba(0,0,0,0.5); */
color : white;
font-size : 16px;
line-height : 1.5em;
}

body .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield select {
padding-top: 13px!important;
padding-bottom: 13px!important;
border-radius: 5px;
}    

body .gform_wrapper .gform_body .gform_fields .gfield input[type=text], textarea, button, select {
border-radius: 5px;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

body .gform_wrapper .gform_footer {
text-align: right;
}

body .gform_wrapper .gform_footer input[type=submit] {
border: 2px solid;
line-height: 1.7em!important;
margin: 0 0 0 18px;
text-transform: uppercase;
box-shadow: 6px 6px 18px 0px rgba(0,0,0,0.5);
border-color: #246865;
font-size: 14px;
padding-top: 12px!important;
padding-right: 36px!important;
padding-bottom: 12px!important;
padding-left: 36px!important;
margin-top: 20px!important;
}

body .gform_footer button.dcgd_submit_button {
padding-right: 36px;
padding-left: 36px;  
color : white;
border-radius: 12px;
}

body .gform_footer button:hover.dcgd_submit_button {
border-color : white; 
color : white;
border-radius: 12px;    
}

body .gform_footer button:hover.dcgd_submit_button {
padding-right: 36px;
padding-left: 36px;
}

/* Change column order */
@media all and (max-width: 980px) {
    /*** wrap row in a flex box ***/
    .custom-row-column-order {
      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
        -webkit-flex-wrap: wrap; /* Safari 6.1+ */
        flex-wrap: wrap;
    }
     
    /*** custom classes that will designate the order of columns in the flex box row ***/
    .first-on-mobile {
        -webkit-order: 1;
        order: 1;
    }
     
    .second-on-mobile {
        -webkit-order: 2;
        order: 2;
    }
     
    .third-on-mobile {
        -webkit-order: 3;
        order: 3;
    }
     
    .fourth-on-mobile {
        -webkit-order: 4;
        order: 4;
    }
    /*** add margin to last column ***/
        .custom_row:last-child .et_pb_column:last-child {
        margin-bottom: 30px;
    }
}

#footer-addresses {
  padding:  20px;
  background-color:#0F2A82; 
  color:white; 
}

#address-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

@media all and (min-width: 981px) {
    .footer-address {
      text-align:center; 
      padding:  20px;
      width:  280px;
      font-size:16px; 
      line-height: 1.3em;
    }
}
@media all and (max-width: 980px) {
    .footer-address {
      text-align:center; 
      padding:  20px;
      width:  220px;
      font-size:16px; 
      line-height: 1.3em;
    }
}

#footer-address-title {
  text-align:center; 
  font-size:24px; 
  font-weight:bold; 
  margin:20px;
}