/*
 Theme Name:     SLR Theme
 Theme URI:      https://services.securityluebkeroofing.com/
 Description:    The custom SLR Theme
 Author:         Optimal Digital Marketing
 Author URI:     https://optimal.marketing
 Template:       Divi
 Version:        1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

.vertical-center .et_pb_column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------------------------------- GRAVITY FORMS CUSTOMIZATION ---------------------------------- */
#main-content .gform_required_legend {
  display: none;
}
#main-content .gform-theme--framework input.button {
  background: #fff;
  border: 1px solid #000;
  border-radius: 1px;
  box-shadow: none;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  padding: 0.75em;
  width: auto;
}
#main-content .gform-theme--framework input.button:hover {
  background: #fff;
  color: #000;
}

#main-content .gform-theme--foundation {
  --gf-form-gap-x: 16px;
  --gf-form-gap-y: 15px; /* MODIFIED */
  --gf-field-gap-x: 12px;
  --gf-field-gap-y: 12px;
  --gf-label-width: 30%;
  --gf-label-req-gap: 6px;
  --gf-form-footer-margin-y-start: 24px;
  --gf-form-footer-gap: 8px;
  --gf-field-date-width: 168px;
  --gf-field-time-width: 110px;
  --gf-field-list-btns-gap: 8px;
  --gf-field-list-btns-width: calc(
    32px + var(--gf-field-list-btns-gap) + var(--gf-field-gap-x)
  );
  --gf-field-pg-steps-gap-y: 8px;
  --gf-field-pg-steps-gap-x: 24px;
}
#main-content .gfield {
  position: relative;
}
#main-content
  .gfield:not(.gfield--type-select)
  label.gfield_label.gform-field-label {
  display: block;
  font-size: 12px;
  margin-left: 1em;
  opacity: 0;
  padding: 0.5em 0.2em 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}
#main-content .gfield--type-select label.gfield_label.gform-field-label, #main-content .gfield--type-select .gfield_required_asterisk {
  color: #fff;
}
#main-content .gfield.has-content label.gfield_label.gform-field-label {
  opacity: 1;
  top: 0%;
  transform: translateY(0%);
}

#main-content input[type="text"]::placeholder,
#main-content input[type="email"]::placeholder,
#main-content input[type="tel"]::placeholder,
#main-content input[type="url"]::placeholder,
#main-content input[type="password"]::placeholder,
#main-content input[type="search"]::placeholder,
#main-content input[type="number"]::placeholder,
#main-content input[type="date"]::placeholder,
#main-content textarea::placeholder {
  color: #303030;
  font-size: 18px;
  transition: color 0.1s ease;
}
/* make placeholder transparent on focus */
#main-content input[type="text"]:focus::placeholder,
#main-content input[type="email"]:focus::placeholder,
#main-content input[type="tel"]:focus::placeholder,
#main-content input[type="url"]:focus::placeholder,
#main-content input[type="password"]:focus::placeholder,
#main-content input[type="search"]:focus::placeholder,
#main-content input[type="number"]:focus::placeholder,
#main-content input[type="date"]:focus::placeholder,
#main-content textarea:focus::placeholder {
  color: transparent;
}

#main-content input[type="text"],
#main-content input[type="email"],
#main-content input[type="tel"],
#main-content input[type="url"],
#main-content input[type="password"],
#main-content input[type="search"],
#main-content input[type="number"],
#main-content input[type="date"],
#main-content textarea {
  border-radius: 1px;
  box-shadow: none;
  font-size: 18px;
  height: auto;
  padding: 0.375em 0.75em;
}
#main-content #gform_wrapper_1[data-form-index="0"].gform-theme,
[data-parent-form="1_0"] {
  --gf-color-primary: #fbd704;
  --gf-color-primary-darker: #ddbe0f;
  --gf-color-primary-lighter: #ffe44d;
  --gf-color-primary-rgb: 251, 215, 4;
}
#main-content .gfield.has-content input[type="text"],
#main-content .gfield.has-content input[type="email"],
#main-content .gfield.has-content input[type="tel"],
#main-content .gfield.has-content input[type="url"],
#main-content .gfield.has-content input[type="password"],
#main-content .gfield.has-content input[type="search"],
#main-content .gfield.has-content input[type="number"],
#main-content .gfield.has-content input[type="date"],
#main-content .gfield.has-content textarea {
  padding: 0.75em 0.75em 0;
  transition: all 0.3s ease;
}
#main-content input:focus-visible,
#main-content textarea:focus-visible {
  border-color: #fbd704;
  outline: 5px solid #fbd60495;
}
#main-content .gfield textarea.small {
  height: 8rem;
}
#main-content .gfield.has-content textarea.small {
  padding-top: 1.25em;
}

#main-content .gfield_validation_message {
  background: white;
  display: inline-block;
  padding: 0.25em 0.5em;
}
#main-content .gform_validation_errors {
  background: white;
}
#main-content .gform_page_footer {
  justify-content: space-between;
}
#main-content .gform-theme--framework input.gform_previous_button,
#main-content .gform-theme--framework input.gform_next_button {
  background-color: #fbd704;
}
#main-content .gform-theme--framework input.gform_previous_button {
  padding-left: 2.5em;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 0.5em center;
  background-size: 1.5em 1.5em;
}
#main-content .gform-theme--framework input.gform_previous_button:hover {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 0.5em center;
  background-size: 1.5em 1.5em;
}

#main-content .gform-theme--framework input.gform_next_button {
  padding-right: 2.5em;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  background-size: 1.5em 1.5em;
}
#main-content .gform-theme--framework input.gform_next_button:hover {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  background-size: 1.5em 1.5em;
}
#main-content .gform-theme--foundation .gf_page_steps {
  justify-content: space-around;
  position: relative;
}
.gform-theme--framework .gf_step {
  z-index: 2;
}
#main-content .gform-theme--framework .gf_step_number {
  background: #bc1019;
  border: none;
}
#main-content
  .gform-theme--framework
  .gf_step_completed
  .gf_step_number::after {
  background: #fbd704;
  border-color: #fbd704;
  color: #000;
}
#main-content .gform-theme--framework .gf_step_active .gf_step_number {
  background: #fff;
  font-weight: 800;
}
#main-content .gf_page_steps:after {
  content: "";
  width: 100%;
  height: 1px;
  display: block;
  top: 50%;
  background: #bc1019;
  position: absolute;
  z-index: 0;
}
/* ---------------------------------- END GRAVITY FORMS CUSTOMIZATION ---------------------------------- */
