/* --- HERO SECTION BASE --- */
.tdg-hero-section {
  position: relative;
  margin-top: -30px;
  
  /* FORCE FULL WIDTH BREAKOUT */
  width: 100vw; 
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  
  /* Existing Styles */
  height: 814px; 
  display: flex;
  align-items: center; 
  box-sizing: border-box; 
  padding-bottom: 84px; 
  padding-top: 0;
  font-family: 'Outfit', sans-serif;
  overflow: visible; 
  z-index: 10;
}

/* --- VIDEO BACKGROUND --- */
.hero-bg-wrapper {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 0;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: absolute;
  top: 0; 
  left: 0;
}

.hero-overlay {
  position: absolute; 
  inset: 0;
  background-color: #3C6381; 
  opacity: 0.64; 
  mix-blend-mode: multiply;
  z-index: 1; 
}

/* --- CONTENT WRAPPER --- */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 100px;
}

/* --- GRID LAYOUT --- */
.hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  flex-wrap: wrap;
  gap: 40px;
}

/* --- LEFT COLUMN TEXT --- */
.hero-text-col {
  flex: 0 1 750px; 
}

/* 1. EYEBROW TEXT */
.hero-kicker {
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 500; 
  font-size: 16px;
  line-height: 43px;
  letter-spacing: 1.6px;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* 2. HEADLINE TEXT */
.hero-headline,
.hero-headline > *,
.hero-headline h1, 
.hero-headline h2,
.hero-headline p,
.hero-headline div,
.hero-headline span {
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 200 !important;
  font-size: 74px !important; 
  line-height: 78px !important;
  letter-spacing: 0px;
  color: #FFFFFF;
  text-transform: capitalize;
  margin: 0 0 25px 0; 
}

/* THE GRADIENT (Targets BOLD text) */
.hero-headline strong,
.hero-headline span[style*="bold"],
.hero-headline b {
  font-weight: 400 !important; 
  background: linear-gradient(90deg, #FFFFFF 0%, #E3DACD 1%, #C7A666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; 
  display: inline-block;
}

/* 3. SUBHEAD TEXT */
.hero-subhead p,
.hero-subhead {
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-weight: 500; 
  font-style: italic;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0.9px;
  color: #FFFFFF;
  max-width: 600px;
  margin-bottom: 50px; 
}

/* --- BUTTONS --- */
.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* PRIMARY BUTTON */
.btn-hero-primary {
  background: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 32px;
  letter-spacing: 0px;
  color: #7FA6BC;
  padding: 12px 40px;
  border-radius: 27px;
  text-decoration: none;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.btn-hero-primary:hover {
  background: #85B7D4;
  color: #FFFFFF;
  border-color: #85B7D4;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* SECONDARY BUTTON */
.btn-hero-outline {
  position: relative;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-weight: 500; 
  font-size: 17px;
  line-height: 32px;
  letter-spacing: 0px;
  color: #FFFFFF;
  padding: 12px 40px;
  border-radius: 27px;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-hero-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 27px; 
  padding: 3px;
  background: linear-gradient(176deg, #FFFFFF 0%, #E3DACD 47%, #C7A97F 100%);
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-hero-outline:hover {
  color: #193549;
  background: linear-gradient(180deg, #FFFFFF 0%, #E3DACD 36%, #C7A97F 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  line-height: 36px;
}

.btn-hero-outline:hover::before {
  opacity: 0;
}

/* --- RIGHT COLUMN (BADGE) --- */
.hero-badge-col {
  flex: 0 0 auto;
  align-self: flex-end; 
  margin-bottom: -50px; 
  position: relative;
  z-index: 5;
}

.trust-badge {
  width: 198px;
  height: auto; 
  transition: transform 0.3s ease; 
  /** cursor: pointer;    **/             
}

.trust-badge:hover {
  transform: scale(1.1); 
}

/* --- FORM BAR (Opens Down on Desktop) --- */
.hero-form-bar-wrapper {
  position: absolute;
  top: 730px; 
  left: 0;
  width: 100%;
  z-index: 20; 
  background: linear-gradient(180deg, #679AB8 0%, #6498B6 50%, #21647E 100%);
  height: 84px; 
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.hero-form-bar-wrapper:hover {
  height: 175px; 
}

/* Form Bar Header */
.form-bar-header {
  height: 84px; 
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 15px; 
  flex-shrink: 0;
  cursor: pointer;
  text-align: center;
  position: relative;
  z-index: 2;
}

.form-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center; 
}

.bar-title p, 
.bar-title h3, 
.bar-title div,
.bar-title span {
  margin: 0;
  color: #ffffff; 
  font-family: 'Outfit', sans-serif;
  font-weight: 400; 
  font-size: 22px; 
  line-height: 26px;
  letter-spacing: 0.44px;
}

.bar-title strong,
.bar-title b {
  font-weight: 600 !important;
  text-decoration: underline;
  text-underline-offset: 4px; 
}

.mobile-toggle-indicator { 
  display: none; 
}

/* Hidden Form Area */
.form-hidden-area {
  margin-top: -20px; 
  padding-bottom: 25px; 
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-form-bar-wrapper:hover .form-hidden-area {
  opacity: 1;
}

/* --- HUBSPOT FORM STYLING --- */
.form-hidden-area .hs-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr auto !important;
  gap: 20px; 
  max-width: 1200px; 
  margin: 0 auto; 
  width: 100%;
  align-items: end;
}

.form-hidden-area .hs-form fieldset {
  display: contents !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.form-hidden-area .hs-form-field {
  width: 100% !important;
  margin-bottom: 0 !important;
}

.form-hidden-area label { 
  display: none !important; 
}

.form-hidden-area .hs-input {
  background-color: rgba(255, 255, 255, 0.23) !important;
  border: 1px solid transparent !important; 
  border-radius: 10px !important; 
  color: #ffffff !important;
  padding: 0 20px !important; 
  height: 50px !important; 
  font-family: 'Outfit', sans-serif;
  width: 100% !important;
  box-sizing: border-box !important;
}

.form-hidden-area .hs-input::placeholder {
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 400; 
  font-size: 13px;
  line-height: 50px; 
  letter-spacing: 0.26px;
  color: #FFFFFF !important;
  opacity: 0.77 !important;
}

.form-hidden-area .actions { 
  margin: 0 !important; 
  padding: 0 !important;
  grid-column: auto;
}

.form-hidden-area .hs-button {
  background: #073345 !important;
  border: none !important;
  color: #fff !important;
  padding: 0 45px !important; 
  height: 50px !important; 
  border-radius: 50px !important;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  line-height: 50px; 
  margin-top: 0 !important;
  white-space: nowrap; 
}

.form-hidden-area .hs-button:hover {
  background: #052633 !important; 
}

/* ============================================
   MOBILE RESPONSIVE (768px and below)
   ============================================ */
@media (max-width: 768px) {
  
  /* --- HERO SECTION --- */
  /* ============================================
   MOBILE RESPONSIVE (768px and below)
   ============================================ */
@media (max-width: 768px) {
  
  /* --- HERO SECTION --- */
  .tdg-hero-section {
    height: auto !important; 
    min-height: auto !important;
    display: block !important;
    padding-top: 80px !important;
    padding-bottom: 0 !important;
    overflow-x: hidden !important; /* Prevents horizontal scrollbar */
    overflow-y: visible !important;
    
    /* --- THE FIX: FORCE FULL SCREEN WIDTH --- */
    width: 100vw !important;      /* Changed from 100% */
    max-width: 100vw !important;  /* Changed from 100% */
    
    position: relative !important;
    left: 50% !important;         /* Push to middle */
    right: 50% !important;
    margin-left: -50vw !important; /* Pull edges to screen limits */
    margin-right: -50vw !important;
    
    box-sizing: border-box !important;
  }

  /* --- VIDEO BACKGROUND --- */
  .hero-bg-wrapper {
    height: calc(100% - 0px) !important;
    min-height: auto !important;
    position: absolute !important;
    width: 100% !important;
    bottom: auto !important;
    clip-path: inset(0) !important;
  }

  /* --- CONTENT WRAPPER --- */
  .content-wrapper {
    padding: 0 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* --- GRID LAYOUT --- */
  .hero-grid {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding-bottom: 20px !important;
    padding-top: 50px !important;
    box-sizing: border-box !important;
  }

  .hero-text-col {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* --- TYPOGRAPHY --- */
  .hero-kicker { 
    font-size: 10px !important; 
    line-height: 1.5 !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    display: block !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-wrap: balance !important;
  }

  .hero-headline, 
  .hero-headline h1, 
  .hero-headline h2,
  .hero-headline p, 
  .hero-headline span,
  .hero-headline strong { 
    font-size: 38px !important; 
    line-height: 40px !important;
    text-wrap: balance !important; 
    
    text-align: center !important;
    font-weight: 200 !important;
    margin-bottom: 20px !important;
    display: block !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  .hero-subhead, 
  .hero-subhead p { 
    font-size: 14px !important; 
    line-height: 23px !important;
    text-align: center !important;
    margin: 0 auto 30px auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* --- BUTTONS --- */
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .btn-hero-primary, 
  .btn-hero-outline {
    font-size: 17px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    white-space: normal !important;
    padding: 14px 20px !important;
  }

  /* --- BADGE --- */
  .hero-badge-col {
    display: none !important;
  }

  /* --- FORM BAR --- */
  .hero-form-bar-wrapper {
    position: relative !important; 
    top: 0 !important; 
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 50px !important; /* Added 50px spacing */
    height: auto !important;
    padding: 30px 20px 40px 20px !important;
    background: linear-gradient(180deg, #679AB8 0%, #6498B6 50%, #21647E 100%) !important;
    width: 100vw !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    z-index: 30 !important;
  }

  .hero-form-bar-wrapper:hover {
    height: auto !important;
  }

  /* Form Header */
  .form-bar-header {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
    gap: 15px !important;
  }
  
  .form-header-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  
  .bar-icon {
    max-width: 40px !important;
    height: auto !important;
  }

  .bar-title,
  .bar-title p, 
  .bar-title h3,
  .bar-title div,
  .bar-title span {
    font-size: 22px !important;
    line-height: 28px !important;
    color: #ffffff !important;
    text-align: center !important;
    margin: 0 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
  }
  
  .bar-title strong,
  .bar-title b {
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
  }

  /* Form Area */
  .form-hidden-area {
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  /* HubSpot Form - Stack Vertically */
  .form-hidden-area .hs-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .form-hidden-area .hs-form fieldset {
    display: contents !important;
  }
  
  .form-hidden-area .hs-form-field {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Input Fields */
  .form-hidden-area .hs-input {
    background-color: rgba(255, 255, 255, 0.23) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important; 
    border-radius: 10px !important; 
    color: #ffffff !important;
    padding: 0 20px !important; 
    height: 50px !important; 
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-hidden-area .hs-input::placeholder {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important; 
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
  }
  
  .form-hidden-area .hs-input:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
  }

  /* Submit Button */
  .form-hidden-area .actions { 
    margin: 0 !important; 
    padding: 0 !important;
    width: 100% !important;
  }

  .form-hidden-area .hs-button {
    background: #073345 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0 30px !important; 
    height: 50px !important; 
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    font-family: 'Outfit', sans-serif !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 50px !important;
    text-align: center !important;
    transition: background 0.3s ease !important;
  }

  .form-hidden-area .hs-button:hover {
    background: #052633 !important; 
  }
  
  /* Error Messages */
  .form-hidden-area .hs-error-msgs {
    margin-top: 5px !important;
  }
  
  .form-hidden-area .hs-error-msg {
    color: #FFD9D9 !important;
    font-size: 13px !important;
    font-family: 'Outfit', sans-serif !important;
  }
 /* --- MOBILE FORM HEADER FINAL --- */

  /* 1. Container: Flex Row, Top Aligned */
  .form-header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 25px !important; 
    width: 100%;
  }

  .form-header-left .bar-icon {
    width: 48px !important;
    height: auto !important;
    min-width: 48px !important;
    margin: 0 !important;
    display: block !important;
    margin-top: 5px !important;
  }

  /* 3. Text Wrapper */
  .form-header-left .bar-title {
    flex: 1 !important;
    text-align: left !important;
    display: block !important;
    padding-right: 10px !important;
    
    /* TRICK: Pulls the second line left to hide the space */
    text-indent: -5px !important; 
  }
  
  /* 4. Force Left Alignment for all children */
  .form-header-left .bar-title p,
  .form-header-left .bar-title span,
  .form-header-left .bar-title div {
    text-align: left !important;      
    margin-left: 0 !important;
    display: block !important;
  }

  /* 5. Headline Styling */
  .form-header-left .bar-title strong {
    display: block !important;
    width: 100%;
    line-height: 1.2 !important;
    
    /* UPDATED: Increased vertical gap to 15px */
    margin-bottom: 20px !important; 
    
    /* Reset indent so the headline stays normal */
    text-indent: 0 !important; 
  }
  
}