/*
Theme Name: ITS Divi Child Theme
Description: Divi 5 Child Theme
Version: 1.0.0
Author: ITS Consulting Inc.
Author URI: https://www.itsconsultinginc.ca/
Theme URI: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: Divi
*/

/* ========== Custom CSS from Generator ========== */



/* Brian */

/*--- Gravity Forms---*/
[id^="gform_"]:not([id*="wrapper"]):not([id*="submit"]):not([id*="confirmation"]) {
  	width: 90%;
	margin: auto;
}
[id^="gform_"] input,
[id^="gform_"] textarea,
[id^="gform_"] select,
[id^="gform_"] option {
	background-color: transparent;
	border: none;
	border-bottom: 1px solid #88D340;
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	transition: border-bottom-color 0.2s ease;
}

[id^="gform_"] .ginput_container_fileupload {
    position: relative;
}
[id^="gform_"] .gf-custom-filename {
    position: absolute;
    left: 130px; /* adjust to sit after your button */
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 16px;
    font-family: 'Sen', sans-serif;
    pointer-events: none;
}

[id^="gform_"] input:not([type="file"]),
[id^="gform_"] textarea,
[id^="gform_"] select {
    color: #ffffff !important;
}

/* File input text (Choose file / filename) needs its own color since
   the browser renders part of it against a native light background */
[id^="gform_"] .ginput_container_fileupload input[type="file"] {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

[id^="gform_"] input, [id^="gform_"] select {
    height: 52px;
    padding: 12px 0;
}
[id^="gform_"] input:focus,
[id^="gform_"] textarea:focus,
[id^="gform_"] select:focus {
    outline: none;
    border-bottom: 1px solid #ffffff;
}
[id^="gform_"] input::placeholder,
[id^="gform_"] textarea::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}
[id^="gform_submit_button_"].button {
	font-size: 18px;
	padding: 6px 20px;
	color: #000000 !important;
	background-color: #ffffff;
	border: 1px solid #fff;
	transition: all 0.2s ease;
	border-radius: 999px !important;
}
[id^="gform_submit_button_"].button:hover {
	background: transparent;
	color: #ffffff !important;
	cursor: pointer;
	filter: none;
}
body .gform_wrapper .datepicker {
	width: 150px !important;
}
[id^="gform_wrapper_"] .gform_footer {
    display: flex;
    justify-content: flex-end;
}
.ginput_container.ginput_container_text {
	border: none !important;
}
.gform_confirmation_message {
    color: #ffffff !important;
}
[id^="gform_"] option {
    color: #000000 !important;
    background-color: #ffffff !important;
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
	font-family: 'Sen', sans-serif;
	border-radius: 0 !important;
}
/* File picker / upload styling */
[id^="gform_"] .ginput_container_fileupload input[type="file"] {
    width: 100%;
    height: 52px;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #88D340;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Sen', sans-serif;
    transition: border-bottom-color 0.2s ease;
}
[id^="gform_"] .ginput_container_fileupload input[type="file"]:focus {
    outline: none;
    border-bottom: 1px solid #ffffff;
}
/* Upload button inside file input (modern browsers) */
[id^="gform_"] .ginput_container_fileupload input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 8px 16px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #ffffff;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Sen', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}
/* Safari/older Chromium fallback */
[id^="gform_"] .ginput_container_fileupload input[type="file"]::-webkit-file-upload-button {
    margin-right: 14px;
    padding: 8px 16px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #ffffff;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Sen', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}
[id^="gform_"] .ginput_container_fileupload input[type="file"]::file-selector-button:hover,
[id^="gform_"] .ginput_container_fileupload input[type="file"]::-webkit-file-upload-button:hover {
    background: transparent !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* Drag-and-drop uploader (if enabled in Gravity Forms) */
[id^="gform_"] .gform_drop_area {
    border: 1px dashed #88D340;
    background: transparent;
    color: #ffffff;
    border-radius: 8px;
    padding: 16px;
}
/* Date picker labels */
[id^="gform_"] .gfield--type-date .gfield_label,
[id^="gform_"] .gfield_contains_required .gfield_label,
[id^="gform_"] .gfield_label {
    color: #ffffff !important;
}
[id^="gform_"] .gform_drop_instructions,
[id^="gform_"] .gform_fileupload_rules,
[id^="gform_"] .gform_fileupload_filename {
    color: #ffffff !important;
}

[id^="gform_wrapper_"] [id^="gform_submit_button_"].button {
    color: #000000 !important;
}
[id^="gform_wrapper_"] [id^="gform_submit_button_"].button:hover {
    color: #ffffff !important;
}



/* Sanjin */

/* Improve spacing on Small Laptop Screens */
@media (max-width: 1360px) and (min-width: 981px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .et_pb_row { padding-top: 40px; padding-bottom: 40px; }
}

/* Add spacing between words in your Divi menu */
.cec-menu .et_pb_menu__menu li a {

/* you can also bump out each menu item */
  margin: 0 0.8em;
}

/* Add menu vertical spacing */
.cec-menu .et_pb_menu__menu li {
  margin-bottom: 0.8em;
}

@media (min-width: 981px) {
  .cec-menu .nav li ul {
    width: 460px;
  }

  .cec-menu .nav li ul li {
    width: 100%;
  }

  .cec-menu .nav li ul li a {
    display: block;
    white-space: normal; /* allows wrapping properly */
    width: 100%;
    box-sizing: border-box;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

.section-anchor {
  scroll-margin-top: 100px;
}


/* --- Hide Safelayout Preloader reminder --- */
#sl-pl-rate-reminder, #sl-pl-upgrade-reminder{
	display: none!important;
}

#input_2_6, #input_1_13 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  color-scheme: dark;
}

#input_2_6::file-selector-button, #input_1_13::file-selector-button {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: #fff !important;
  color-scheme: light;
}