/* =========================================
   BASE LAYOUT & TYPOGRAPHY
   ========================================= */
.tdg-section-wrapper {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
}

.tdg-contact-card {
  width: 100%;
  max-width: 1029px;
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.tdg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.relative-z {
  position: relative;
  z-index: 2;
}

.card-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-header h2 {
  font: normal normal normal 50px/60px 'Outfit', sans-serif;
  color: #fff;
  margin-bottom: 10px;
}

.sub-head {
  font: italic normal 600 15px/35px 'Raleway', sans-serif;
  letter-spacing: 0.75px;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 40px;
}

/* =========================================
   HUBSPOT FORM - COMPLETE RESET
   ========================================= */

.tdg-form-scope * {
  box-sizing: border-box !important;
}

.tdg-form-scope .hs-form,
.tdg-form-scope .hs-form fieldset {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.tdg-form-scope .hs-form fieldset::after {
  content: "";
  display: table;
  clear: both;
}

/* =========================================
   FIELD LAYOUT - USING FLOATS
   ========================================= */

.tdg-form-scope .hs-form-field {
  float: left;
  padding: 0 !important;
  margin: 0 0 15px 0 !important;
  clear: none !important;
}

/* First Name - 50% left */
.tdg-form-scope .hs_firstname {
  width: calc(50% - 8px) !important;
  margin-right: 16px !important;
}

/* Last Name - 50% right */
.tdg-form-scope .hs_lastname {
  width: calc(50% - 8px) !important;
}

/* Email - 50% left */
.tdg-form-scope .hs_email {
  width: calc(50% - 8px) !important;
  margin-right: 16px !important;
}

/* Phone - 50% right */
.tdg-form-scope .hs_phone {
  width: calc(50% - 8px) !important;
}

/* Company - Full width */
.tdg-form-scope .hs_company {
  width: 100% !important;
  clear: both !important;
}

/* Checkbox section - Full width with white card */
.tdg-form-scope .hs_what_could_be_slowing_your_growth {
  width: 100% !important;
  clear: both !important;
  background-color: #fff;
  border-radius: 14px;
  padding: 35px 40px 40px 40px !important;
  margin-top: 10px !important;
  margin-bottom: 125px !important;
}

/* Submit button - Full width */
.tdg-form-scope .hs_submit,
.tdg-form-scope .actions {
  width: 100% !important;
  clear: both !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================
   INPUT FIELD STYLING
   ========================================= */

.tdg-form-scope input[type="text"],
.tdg-form-scope input[type="email"],
.tdg-form-scope input[type="tel"] {
  height: 50px !important;
  border-radius: 14px !important;
  border: none !important;
  padding: 0 20px !important;
  background-color: #fff !important;
  color: #0C313F !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  width: 100% !important;
}

.tdg-form-scope input::placeholder {
  color: #0C313F !important;
  opacity: 0.7 !important;
}

/* Hide labels on input fields */
.tdg-form-scope .hs_firstname label,
.tdg-form-scope .hs_lastname label,
.tdg-form-scope .hs_email label,
.tdg-form-scope .hs_phone label,
.tdg-form-scope .hs_company label {
  display: none !important;
}

/* =========================================
   CHECKBOX SECTION
   ========================================= */

.tdg-form-scope .hs_what_could_be_slowing_your_growth > label {
  display: block !important;
  text-align: left !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  color: #0C313F !important;
  margin-bottom: 25px !important;
}

.tdg-form-scope .inputs-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 20px !important;
}

.tdg-form-scope .inputs-list li {
  width: calc(50% - 10px) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tdg-form-scope .hs-form-checkbox,
.tdg-form-scope .hs-form-checkbox-display {
  display: flex !important;
  align-items: flex-start !important;
}

.tdg-form-scope .hs-form-checkbox input[type="checkbox"],
.tdg-form-scope .hs-form-checkbox-display input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 2px 10px 0 0 !important;
  accent-color: #0C313F !important;
  flex-shrink: 0 !important;
}

.tdg-form-scope .hs-form-checkbox label,
.tdg-form-scope .hs-form-checkbox-display span {
  font-size: 14px !important;
  color: #0C313F !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  text-align: left !important;
  font-family: 'Outfit', sans-serif !important;
}

/* =========================================
   SUBMIT BUTTON (The "Pro" Gradient Fix)
   ========================================= */

/* 1. Position the wrapper to overlap the white card */
.tdg-form-scope .hs_submit,
.tdg-form-scope .actions {
  width: 100% !important;
  clear: both !important;
  text-align: center !important;
  margin-top: -65px !important; /* PULLS BUTTON UP INTO WHITE CARD */
  margin-bottom: 30px !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 100 !important; /* Ensures it sits on top */
}
.tdg-form-scope .hs_what_could_be_slowing_your_growth .hs-form-required {
  display: none !important;
}

/* 2. The Button Styling using Background-Clip */
.tdg-form-scope input[type="submit"] {
  /* Sizing & Font */
  width: auto !important;
  padding: 12px 70px !important;
  height: auto !important;
  border-radius: 50px !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;

  /* THE GRADIENT BORDER TRICK */
  border: 2px solid transparent !important; /* Transparent border creates the space */
  
  /* Layer 1: Dark Teal Background (Clipped to the content only) */
  /* Layer 2: Gold Gradient (extends to the border area) */
  background: 
    linear-gradient(#2D4353, #2D4353) padding-box, 
    linear-gradient(192deg, #FFFFFF 0%, #E3DACD 47%, #C7A97F 100%) border-box !important;
}

/* 3. Hover State */
.tdg-form-scope input[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
  
  /* On hover, we remove the dark layer so the gold shines through */
  background: linear-gradient(192deg, #FFFFFF 0%, #E3DACD 47%, #C7A97F 100%) border-box !important;
  color: #0C313F !important; /* Dark text on gold background */
}

/* =========================================
   FOOTER ELEMENTS
   ========================================= */

.below-form-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 70px;
  margin-bottom: 50px;
}

.below-form-text {
  font-size: 16px;
}

.clarity-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 61px;
  background: linear-gradient(180deg, #9bbad1 0%, #7da3bf 100%);
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  font: italic normal 600 24px/28px Raleway;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.clarity-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 25px rgba(0,0,0,0.25);
}

/* =========================================
   MOBILE RESPONSIVE REFINEMENTS
   ========================================= */

@media (max-width: 768px) {
  
  /* --- 1. THE VIEWPORT BREAKOUT (Full Width Logic) --- */
  
  /* Unlock the wrapper so the child can stretch */
  .tdg-section-wrapper {
    overflow: visible !important;
    padding: 0 !important;        /* Remove side padding */
    width: 100% !important;
    margin-top: -50px !important; /* Keep overlap */
  }

  /* Force the card to touch screen edges */
  .tdg-contact-card {
    width: 100vw !important;      /* Full Screen Width */
    
    /* Pull to edges using negative margins */
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    
    border-radius: 0 !important;  /* Square corners */
    padding: 40px 20px !important; /* Keep internal text spacing */
    
    box-shadow: none !important;
    max-width: none !important;
    background-size: cover !important;
  }

  /* --- 2. HEADLINES & TYPOGRAPHY --- */
  .contact-header h2 {
    font: normal normal normal 35px/40px 'Outfit', sans-serif !important;
    margin-bottom: 15px;
  }
  
  .sub-head {
    font: italic normal 600 16px/25px 'Raleway', sans-serif !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 30px;
    opacity: 1 !important;
  }

  /* --- 3. FORCE FIELDS TO STACK --- */
  .tdg-form-scope .hs-form-field {
    width: 100% !important;
    float: none !important;
  }

  .tdg-form-scope .hs_firstname,
  .tdg-form-scope .hs_lastname,
  .tdg-form-scope .hs_email,
  .tdg-form-scope .hs_phone,
  .tdg-form-scope .hs_company {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .tdg-form-scope input[type="text"],
  .tdg-form-scope input[type="email"],
  .tdg-form-scope input[type="tel"] {
    font-size: 16px !important; 
  }

  /* --- 4. CHECKBOX SECTION (White Card) --- */
  .tdg-form-scope .hs_what_could_be_slowing_your_growth {
    padding: 25px 20px 40px 20px !important; 
    margin-bottom: 50px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tdg-form-scope .inputs-list li {
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  /* --- 5. SUBMIT BUTTON POSITIONING & SIZE --- */
  .tdg-form-scope .hs_submit,
  .tdg-form-scope .actions {
    margin-top: 0px !important;
    margin-bottom: 40px !important;
    display: flex !important;
    justify-content: center !important;
  }

  .tdg-form-scope input[type="submit"] {
    width: 100% !important; 
    max-width: 211px !important; /* Kept your specific width */
    padding: 5px 5px !important;
    font: normal normal 600 17px/34px 'Outfit', sans-serif !important;
    letter-spacing: 0px !important;
    white-space: normal !important; 
  }

  /* --- 6. BELOW FORM AREA (Icon + Text Flow) --- */
  .below-form-area {
    display: block !important; 
    text-align: center !important; 
    margin-top: 30px;
    margin-bottom: 35px;
  }

  /* The Icon */
  .below-form-area img {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    margin-top: -4px !important;
    width: 18px !important;
    height: auto !important;
    max-width: 18px !important;
  }

  /* The Text */
  .below-form-text {
    display: inline !important; 
    font: normal normal 500 19px/27px 'Raleway', sans-serif !important;
    letter-spacing: 0.95px !important;
  }
  
  .below-form-text p, 
  .below-form-text span {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* --- 7. BOTTOM CLARITY CTA --- */
  .clarity-btn {
    font-size: 24px;
    line-height: 28px
      font-weight: 600;
    height: auto;
    padding: 19px 4px;
    margin-bottom: 35px;
  }
}