/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* UTILS ----------------------------------------- */

.hide-imp { display: none !important; }
.show-imp { display: block !important; }


/* COMMON ----------------------------------------- */
/* low specificity so it can be overridden */



/* WP ADMIN ----------------------------------------- */

:root {
  --wp-admin--admin-bar--height: 0;
}
html {
  margin-top: 0 !important;
}
#wpadminbar {
  opacity: 0;
  transition: opacity 0.2s;
}
#wpadminbar:hover {
  opacity: 1;
}
@media screen and (max-width: 782px) {
  #wpadminbar { display: none; }
}


/* SCROLLSMOOTHER ----------------------------------------- */

#smooth-content {
  will-change : transform;
}


/* SHORTCODES ----------------------------------------- */

/* [avvio-featured-img-w-fallback id="" size=""] */
.avvio-feat-img {
  aspect-ratio: 1 / 1;
  background: #84D9A8;
  display: grid;
  place-content: center;
}
.avvio-feat-img img {
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.avvio-feat-img svg {
  width: 100%;
  height: auto;
  max-width: 120px;
  padding: 10px;
}


/* GRAVITY FORMS ----------------------------------------- */
/* recommended for overriding default: body .gform_wrapper .gform_body .gform_fields */
/* via https://docs.gravityforms.com/css-targeting-examples/ */

body .gform_wrapper .gform_required_legend {
  display: none;
}

body .gform_wrapper .gfield_label {
  font-size: clamp(16px, 14.421px + 0.439vw, 22px); /* --fs-label */
  font-weight: 400;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  display: flex;
  align-items: flex-start;
}

body .gform_wrapper .gfield_required {
  color: #E65F5C;
  font-size: 16px;
}

body .gform_wrapper .gchoice .gform-field-label {
  font-size: clamp(20px, 17.895px + 0.585vw, 28px);
  line-height: 1;
}

/* texty inputs */
body .gform_wrapper .gfield input[type="text"],
body .gform_wrapper .gfield input[type="email"],
body .gform_wrapper .gfield input[type="url"],
body .gform_wrapper .gfield input[type="tel"],
body .gform_wrapper .gfield input[type="number"] {
  background: transparent;
  border: 0;
  border-bottom: solid black 2px;
  border-radius: 0;
  box-shadow: none;
  font-size: clamp(16px, 14.947px + 0.292vw, 20px);
  outline: none;
  padding: 10px 0;
}
body .gform_wrapper .gfield textarea {
  background: transparent;
  border: 0;
  border-bottom: solid black 2px;
  border-radius: 0;
  box-shadow: none;
  font-size: 20px;
}
body .gform_wrapper .gfield textarea {
  background: rgba(201, 184, 163, 0.40);
  border-radius: 8px 8px 0 0;
}

/* radio/checkboxes */
body .gform_wrapper .gfield input.gfield-choice-input {
  width: 25px;
  height: 25px;
  background: transparent;
  box-shadow: none;
  border: solid black 2px;
}
body .gform_wrapper .gfield input.gfield-choice-input:before {
  color: black !important;
  background: black !important;
  width: 14px;
  height: 14px;
}
input + .gform-field-label {
  margin-left: 15px !important;
}

body .gform_wrapper .gf_list_inline .gchoice {
  padding-inline-end: 30px !important;
}

/* description */
body .gform_wrapper .gfield_description {
  font-size: 16px;
}
body .gform_wrapper .gfield_description:not(.validation_message) {
  color: inherit;
}


.gform_footer {
  margin-top: 70px !important;
}

/* submit (custom button added in functions.php) */
.custom-gf-button {
  
}
@media only screen and (min-width: 1024px) {
  .custom-gf-button {
    min-width: 400px !important;
  }
}
/* this needed because of annoying GF reset */
.custom-gf-button svg,
.custom-gf-button svg * {
  all: revert-layer !important;
}


/* BUTTONS ----------------------------------------- */

.CLIENT-button {
  width: 100% !important;
}

@media only screen and (max-width: 1024px) {
  .custom-button svg {
    width: 37px !important;
    height: 37px !important;
  }
}

@media only screen and (min-width: 768px) {
  .custom-button {
    width: unset !important;
  }
}


/* CUSTOM ANIMATIONS (added via functions.php) ----------------------------------------- */

/* Custom fadeInUp */
.brx-animate-customFadeInUp {
  animation-name: custom-fade-in-up;
}

@keyframes custom-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}