/* 
 Theme Name:     Bare bones for Divi
 Author:         Divi theme examples
 Author URI:     http://www.divithemeexamples.com 
 Template:       Divi
 Version:        1.0 
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */ 


/*** Square Service Buttons - Responsive ***/
/* Note: class has typo "serivce" not "service" */
.serivce_button.et_pb_button,
.service_button.et_pb_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.3 !important;
    font-size: clamp(12px, 2.5vw, 16px) !important;
}

/* Wrapper full width with padding for spacing */
.et_pb_button_module_wrapper:has(.serivce_button),
.et_pb_button_module_wrapper:has(.service_button) {
    width: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}



/*** MAKE SITE WIDER ON SMALLER SCREENS ***/
@media only screen and (max-width: 980px) {
.et_pb_row {
width: 90%; /*** you might need !important ***/
}
}


/* ##### Menu Button STYLES ##### */

#top-menu .sub-menu {
   background-color: #ffffff; /* Background color dropdown */
   border-top: 3px solid #25313a; /* Top border color dropdown */
}

#top-menu .sub-menu li a {
   font-size: 14px; /* Font size dropdown */
   width: 100%;
   color: #000000;
   border-bottom: 1px solid #768792; /* Border bottom menu item color */
}

.sub-menu li:hover {
   background-color: #f0d36b; /* Hover color menu item */
}

.sub-menu .current_page_item {
   background-color: #f0d36b; /* Current menu item color dropdown */
}

#top-menu .sub-menu li {
   padding-left: 0px;
   padding-right: 0px;
   width: 100%;
}

#top-menu li li a {
   padding-top: 10px;
   padding-bottom: 8px;
}

#top-menu .sub-menu {
   padding-top: 0px;
   padding-bottom: 0px;
}

.nav ul li a:hover {
   opacity: 1;
   background-color: rgba(0,0,0,0);
}



/* Divi Engine CTA Button in the Divi Menu */

/* CTA button styles */
.menu_cta a {
    color: #ffffff!important; /* Change button text color here */
    background-color: #294208; /* Change button background color here */
     border-radius: 50px; /* Set this to 0px if you want a square CTA button */
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    text-align: center;
    line-height: 9px;
    font-weight: 600;
    padding: 18px 16px!important;
    text-transform: uppercase;
    display: block;
    padding-left: 32px!important;
    padding-right: 32px!important;
    border: 0px;
}

/* Media query to ensure hover styles are only applied to desktop */
@media (min-width: 981px) {
    
    /* Hover styles for our CTA Button */
    .menu_cta a:hover {
        opacity: 1!important;
        color: #f0d36b!important; /* Change hover button text color here */
        background-color: #294208; /* Change hover button background color here */
        transform: scale(1.1); /* If you don't want the button to get bigger when you hover on it, delete this line */
    }
}
    
/* Fix the padding in the primary menu to accomodate the button */
.et_pb_menu--with-logo .et_pb_menu__menu>nav>ul>li>a {
    padding-top: 0px;
    padding-bottom: 0px;
}
 
/* Make sure that the alignment in the menu is correct */
.et_pb_menu .et_pb_menu__menu>nav>ul>li {
    align-items: center;
}

/*Gravity Forms Spinner*/
.gform_ajax_spinner {
    box-sizing: border-box;
    margin-top: 11px;
    margin-left: 10px;
    border: 6px solid rgba(247,150,33,1);
    border-left: 6px solid rgba(247,150,33,0);
    border-top: 6px solid rgba(247,150,33,.15);
    border-right: 6px solid rgba(247,150,33,.5);
    animation: spinner 1.1s infinite linear;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    position: absolute;
    z-index: 1;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) { /* Adjusts styles for mobile */
    .gform_ajax_spinner {
        margin-left: 0;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 10px;
    }
}

    @keyframes spinner {
        0% {
            transform: translateX(-50%) rotate(0deg);
        }
        100% {
            transform: translateX(-50%) rotate(360deg);
        }
    }



/*Gravity Forms Address Field Full Width*/
#gform_6 #field_6_12 .ginput_complex.ginput_container {
  margin-inline: 0 !important;
}
#gform_6 #field_6_12 .ginput_container_address span {
  padding-inline: 0 !important;
}