/*
 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
*/

/* ==========================================================================
   Gravity Forms - Newsletter (Footer) — scoped to form ID 4
   ========================================================================== */

#gform_wrapper_4 {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#gform_wrapper_4 form {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0;
  width: 100%;
}

#gform_wrapper_4 .gform-body {
  flex: 1 1 0%;
  min-width: 0;
}

#gform_wrapper_4 .gform_fields {
  display: flex;
  gap: 0;
}

#gform_wrapper_4 .gfield {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

#gform_wrapper_4 input[type="email"],
#gform_wrapper_4 input[type="text"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: var(--radius-full) !important;
  color: var(--light) !important;
  padding: var(--space-xs) var(--space-m) !important;
  font-size: var(--text-m) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  line-height: 1.5 !important;
  height: auto !important;
}

#gform_wrapper_4 input[type="email"]::placeholder,
#gform_wrapper_4 input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#gform_wrapper_4 input[type="email"]:focus,
#gform_wrapper_4 input[type="text"]:focus {
  outline: none;
  border-color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

#gform_wrapper_4 .gform_footer,
#gform_wrapper_4 .gform_page_footer {
  margin: 0 !important;
  padding: 0 0 0 var(--space-xs) !important;
  flex: 0 0 auto;
}

#gform_wrapper_4 .gform-button,
#gform_wrapper_4 input[type="submit"],
#gform_wrapper_4 button[type="submit"] {
  background: var(--primary) !important;
  color: var(--light) !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  padding: var(--space-xs) var(--space-l) !important;
  font-size: var(--text-m) !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  height: auto !important;
}

#gform_wrapper_4 .gform-button:hover,
#gform_wrapper_4 input[type="submit"]:hover,
#gform_wrapper_4 button[type="submit"]:hover {
  background: var(--primary-90) !important;
}

#gform_wrapper_4 .gfield_label {
  display: none !important;
}

#gform_wrapper_4 .gfield_validation_message,
#gform_wrapper_4 .gform_validation_errors {
  color: var(--light) !important;
}

@media (max-width: 768px) {
  #gform_wrapper_4 form {
    flex-wrap: wrap !important;
  }
  #gform_wrapper_4 .gform-body {
    flex: 1 1 100%;
  }
  #gform_wrapper_4 .gform_footer {
    width: 100%;
    padding: var(--space-xs) 0 0 0 !important;
  }
  #gform_wrapper_4 .gform-button,
  #gform_wrapper_4 input[type="submit"],
  #gform_wrapper_4 button[type="submit"] {
    width: 100%;
  }
}

/* ==========================================================================
   Footer Nav Menus — vertical layout, no default padding
   ========================================================================== */

.site-footer__menu .bricks-nav-menu {
  flex-direction: column !important;
  gap: var(--space-xs);
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.site-footer__menu .bricks-nav-menu li {
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer__menu .bricks-nav-menu a {
  color: #999999 !important;
  text-decoration: none;
  font-size: var(--text-l) !important;
  line-height: 1.6 !important;
  padding: 0 !important;
  transition: color 0.2s ease;
}

.site-footer__menu .bricks-nav-menu a:hover {
  color: var(--light) !important;
}

/* Contact items match menu line-height */
.site-footer__contact-item {
  line-height: 1.6 !important;
}

/* ==========================================================================
   Footer Layout
   ========================================================================== */

/* Newsletter: text left, form right */
.site-footer__newsletter {
  flex-wrap: nowrap !important;
}

.site-footer__newsletter-text {
  flex: 0 0 auto;
  min-width: 200px;
}

.site-footer__newsletter-form {
  flex: 1 1 auto !important;
  min-width: 250px;
  max-width: 500px;
}

/* Copyright: single line */
.site-footer__copyright {
  flex-wrap: nowrap !important;
}

.site-footer__copyright-made {
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .site-footer__newsletter {
    flex-wrap: wrap !important;
  }
  .site-footer__newsletter-form {
    min-width: 100%;
    max-width: 100%;
  }
  .site-footer__copyright {
    flex-wrap: wrap !important;
    text-align: center;
    justify-content: center !important;
  }
}
