{# --- Dynamic Spacing Styles --- #}
{% require_css %}
<style>
  # {
    padding-top: ;
    padding-bottom: ;
  }
  @media (max-width: 767px) {
    # {
      padding-top: ;
      padding-bottom: ;
    }
  }
</style>
{% end_require_css %}

/* --- BASE BANNER STRUCTURE --- */
.banner-with-form {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: visible; 
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: flex-end; 
  padding-bottom: 80px; 
  z-index: 99; 
}

/* Background Images */
.banner-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: top center !important; 
  z-index: 0;
}

.mobile-bg { display: none; }

/* Overlay */
.banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

/* Content Wrapper */
.content-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  flex-direction: column; /* Stacks items vertically */
  align-items: center;    /* Centers items horizontally */
}

/* --- TOP OVERLAY HEADLINE --- */
.top-headline-wrapper {
  text-align: center;
  margin-top: 180px; /* Pushes the headline down away from the menu */
  margin-bottom: 140px; /* Space between headline and form card */
  width: 100%;
  z-index: 3;
}

.top-headline-wrapper .banner-title {
  font-family: 'Roboto', sans-serif; 
  font-style: italic;
  font-size: 64px;
  line-height: 1.1;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

/* --- FORM CARD --- */
.green-form-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #71a847; 
  padding: 40px 50px;
  border-radius: 4px;
  width: 100%;
  max-width: 1025px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-bottom: -550px; 
}

/* Header */
.form-header {
  text-align: center;
  margin-bottom: 30px;
}
.form-header h2 {
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 10px 0;
}
.form-title {
  padding-bottom: 10px;
}

/* Subheadline Styles */
.subheadline-text {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  line-height: 1.4;
  margin: 20px 0 5px 0; 
  font-weight: 400;
}
.subheadline-text a {
  color: #fbe134; 
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s ease;
}
.subheadline-text a:hover {
  color: #ffffff; 
  text-decoration: none;
}
.subheadline-text p {
  margin: 0;
  padding: 0;
  display: inline; 
}

.header-underline {
  width: 120px;
  height: 3px;
  background-color: #f49c20;
  margin: 0 auto;
  border-radius: 2px;
}

/* --- CUSTOM EMBED CODE CENTERING --- */
.embed-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.embed-code-container > * {
  width: 100%;
  max-width: 100%;
}

/* --- FORM FIELDS --- */
.green-form-card .hs-form-field > label {
  display: none !important;
}
.green-form-card .hs-input {
  background-color: #f7f7f7 !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 12px 15px !important;
  height: 50px;
  color: #333;
  font-family: 'Roboto', sans-serif;
  font-style: italic; 
  width: 100% !important;
  box-sizing: border-box;
  margin-bottom: 5px; 
}

/* Flexbox Grid for Fields */
.green-form-card .hs-form fieldset {
  display: flex !important;
  flex-wrap: wrap !important;
  max-width: none !important;
  margin: 0 -10px !important;
}
.green-form-card .hs-form-field {
  width: 50% !important;
  float: none !important;
  padding: 0 10px !important;
  margin-bottom: 15px !important;
  box-sizing: border-box !important;
}

/* Button Centering */
.green-form-card .actions {
  text-align: center;
  padding-top: 10px;
  width: 100%;
}
.green-form-card .hs-button.primary {
  background-color: #fbe134; 
  color: #333;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  padding: 12px 60px;
  border-radius: 30px; 
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.green-form-card .hs-button.primary:hover {
  transform: scale(1.05);
  background-color: #F49C20;
}

/* =========================================
   RECAPTCHA HIDE & LEGAL TEXT STYLING
   ========================================= */

/* --- HIDE GOOGLE RECAPTCHA BADGE --- */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* --- Style & Clear the Legal Text --- */
.recaptcha-legal-text {
  clear: both;
  width: 100%;
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8); /* Adjusted for green background readability */
  text-align: center;
  margin-top: 25px; 
  line-height: 1.4;
}
.recaptcha-legal-text a {
  color: #ffffff;
  text-decoration: underline;
  padding-top: .5rem;
}
.recaptcha-legal-text a:hover {
  text-decoration: underline;
}

/* =========================================
   CHECKBOX STYLING (Products/Services)
   ========================================= */

/* 1. The Main "White Box" Container */
.green-form-card .hs-fieldtype-checkbox {
  background-color: #f7f7f7 !important;
  border-radius: 3px !important;
  padding: 20px 25px !important;
  width: 100% !important;
  margin-top: 10px;
  clear: both;
  box-sizing: border-box !important;
}

/* 2. The Label ("Which Products...") */
.green-form-card .hs-fieldtype-checkbox > label {
  display: block !important;
  color: #3E3E3F !important;
  font-family: 'Roboto', sans-serif;
  font-size: 18px; 
  font-weight: 700;
  font-style: italic;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  width: 100%;
}

/* 3. The List Container (Grid Wrapper) */
.green-form-card .inputs-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* 4. THREE Column Layout - The Item Wrapper */
.green-form-card .inputs-list li {
  width: 33.33% !important; 
  margin-bottom: 10px !important;
  padding-right: 5px;
  box-sizing: border-box !important;
}

/* 5. The Flex Container (Aligns Box and Text)  */
.green-form-card .hs-form-checkbox-display {
  display: flex !important;
  align-items: center !important; 
  width: 100%;
  margin: 0 !important;
}

/* 6. The Checkbox Square */
.green-form-card .hs-form-checkbox-display input {
  -webkit-appearance: none;
  appearance: none;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #71a847 !important; 
  background-color: #fff !important;
  border-radius: 3px;
  cursor: pointer;
  float: none !important;
  margin-top: 0 !important; 
  margin-right: 12px !important;
  flex-shrink: 0; 
  position: relative; 
}

/* Checked State */
.green-form-card .hs-form-checkbox-display input:checked {
  background-color: #fbe134 !important; 
  border-color: #fbe134 !important;
}
.green-form-card .hs-form-checkbox-display input:checked::after {
  content: '✔';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  font-size: 12px;
  font-weight: 900;
}

/* 7. Option Text */
.green-form-card .hs-form-checkbox-display span {
  color: #3E3E3F !important;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.2; 
  cursor: pointer;
  margin: 0 !important; 
}

/* --- FOOTER SPACER LOGIC --- */
.footer-spacer {
  display: block;
  width: 100%;
  clear: both;
  height: 550px; 
}


/* =========================================
   --- MOBILE RESPONSIVE --- 
   ========================================= */
@media (max-width: 767px) {
  .desktop-bg { display: none; }
  
  .mobile-bg { 
      display: block;
      height: 650px !important; 
      bottom: auto !important; 
      background-position: center center !important; 
      background-size: cover !important;
      background-attachment: scroll !important;
  }
  
  .banner-overlay {
      height: 650px !important;
      bottom: auto !important;
  }
  
 .banner-with-form {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    left: auto; right: auto;
    min-height: auto;
    overflow: visible !important; 
    display: block; 
    padding-bottom: 100px !important; 
    z-index: 99;
    background-color: #ffffff !important; 
  }

  .content-container {
      padding-top: 120px !important; 
      padding-bottom: 0; 
  }

  /* Top Headline Mobile Settings */
  .top-headline-wrapper {
    margin-top: 40px;
    margin-bottom: 25px;
  }
  .top-headline-wrapper .banner-title {
    font-size: 27px !important;
    max-width: 310px;
    margin: 0 auto;
    align-content: center;
  }

  /* Form Card Mobile Settings */
  .green-form-card {
    padding: 30px 20px;
    margin-bottom: -150px !important; 
    width: 100%;
    box-sizing: border-box;
  }
  .form-header h2 {
    font-size: 22px;
  }
  .subheadline-text {
    font-size: 16px;
    margin: 10px 0 12px 0;
  }
  .green-form-card .hs-form-field {
    width: 100% !important;
    float: none;
    padding: 0 !important;
    margin-bottom: 15px !important;
  }
  .green-form-card .hs-form fieldset {
    margin: 0 !important;
  }
  
  /* Checkboxes Mobile Settings */
  .green-form-card .hs-fieldtype-checkbox {
     padding: 20px 20px !important; 
  }
  .green-form-card .inputs-list li {
     width: 100% !important;
  }

  .footer-spacer {
     height: 150px; 
  }
}