body {
  background-color: #f3f3f3;
}

.form-and-badge-container {
  background-color: #f3f3f3;
  max-width: 1300px;
  margin: 0 auto;
  padding-top:160px;
  padding-bottom:60px;
  width: 100%;
  min-height: 700px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.form-wrapper {
  width: 45%;
  height: 100%;
  max-width: 507px;
  margin-left: 50px;
}

.badge-title-wrapper {
  width: 45%;
  margin-top: 75px;
  margin-right: 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.badge-title h1 {
  font-size: 36px;
  text-align: center;
  font-weight: 700;
  line-height: 1.1em;
  margin-bottom: 25px;
  color: #000;
}
 
.badge-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.badge-images {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;

}
.badge-images img {
  width: 150px;
  max-width: 150px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px;
  transition: transform 0.3s ease;
}
/* special handling for diamond badges
.badge-images img[src*="capterra" i],
.badge-images img[alt*="capterra" i] {
  width: 140px;
  height: 180px;
  padding: 5px;
}

/* special handling for hexagonal badges
.badge-images img[src*="software" i],
.badge-images img[alt*="software" i] {
  width: 150px;
  height: 150px;
  padding: 5px;
}

/* special handling for rectangular badges
.badge-images img[src*="g2" i],
.badge-images img[alt*="g2" i] {
  width: 155px;
  height: 155px;
  padding: 8px;
}
*/

.badge-images img:hover {
  transform: scale(1.05);
}

.badge-images img.very-wide {
  width: 190px;
  height: 148px;
  padding: 5px;
}
.badge-images img.wide {
  width: 165px;
  height: 150px;
  padding: 6px;
}
.badge-images img.square {
  width: 150px;
  height: 150px;
  padding: 7px;
}
.badge-images img.narrow {
  width: 140px;
  height: 160px;
  padding: 8px;
}

.badge-images img.very-narrow {
  width: 130px;
  height: 170px;
  padding: 5px;
}

.form-wrapper .form {
  /*
	max-width:478px;*/
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  margin-left: 30px;
  background: #ffffff;
  box-shadow: -5px 4px 39px rgba(0, 0, 0, 0.17);
  border-radius: 20px;
  border-top: 4px solid #FFE03F;
  }

.form-wrapper .form h3 {
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  max-height: 35px;
  max-width: 467px;
  margin-bottom: 20px;
}

.form .hs-form-radio { 
  list-style:none;
  margin-left:0px;
}

.input-fields {
  width: 100%;
}

.form form input[type=text],
.form .ss-main .ss-single-selected,
.form form input[type=email],
.form form input[type=password],
.form form input[type=tel],
.form form input[type=number],
.form form input[type=file],
.form form textarea {
    color: #555;
    font-weight: 400;
    font-size: 14px;
    margin-top:5px;
    background-color: #FFF;
     border: 1px solid #bdbdbd;
     border-radius: 5px;
     display: block;
     font-size: 14px;
     font-weight: 600;
     line-height: 1.4;
     padding: 15px;
     width: 90%;
     max-width: 417.5px;
     appearance: none;
     -webkit-appearance: none;
     transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form form input[type=text]:focus,
.form form input[type=email]:focus,
.form form input[type=password]:focus,
.form form input[type=tel]:focus,
.form form input[type=number]:focus,
.form form textarea:focus {
  border-color: #FFE03F;
  box-shadow: 0 0 0 3px rgba(255, 224, 63, 0.1);
  outline: none;
}

.form form select {
    color: #555;
    font-weight: 400;
    font-size: 14px;
    margin-top: 5px;
    background-color: #FFF;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
    display: block;
    font-weight: 600;
    line-height: 1.4;
    width: 95%;
    max-width:100%;
    padding: 15px;
    height: auto;
    min-height: 40px;
    appearance: none;
   -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.form form select:focus {
  border-color: #FFE03F;
  box-shadow: 0 0 0 3px rgba(255, 224, 63, 0.1);
  outline: none;
}

/*target the job role dropdown specifically */
.hs_department select {
  min-height: 40px !important;
  max-width: 95% !important;
  min-width: 417.5px !important;
  size: 3;
}

.form .hs-form-field {
    margin-bottom: 1.3rem;
}

.form form label {
    color: #031723;
    font-weight: 700;
    display: block;
    margin-bottom: 0.35rem;
    font-size: 14px;
  
}
.form form label[for*="required"]::after,
.form form label.hs-form-required::after {
  content: " *";
  color: #e74c3c;
  font-weight: bold;
}

/*form label {
    margin-bottom: 0.35rem;
}
*/

.form form .hs-button,
.form form input[type=submit] {
    background-color: #FFE03F;
    font-size: 16px;
    padding: 15px 49px 15px 25px;
    color: #031723;
    line-height: 150%;
    border-radius: 40px;
    font-weight: 700;
	  margin-bottom:25px;
    border: 1px solid #fab14a;
    background-image: url(https://www.contractsafe.com/hubfs/ContractSafe%202023/Icons/main-btn-arrow.svg);
    background-position: 90%;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 180px;
}
  /*original code;
  .form form .hs-button, .form form input[type=submit]:after, .mobile-form-wrapper .hs-button, .mobile-form-wrapper .form form input[type=submit]:after {
    content: url(https://www.contractsafe.com/hubfs/ContractSafe%202023/Icons/main-btn-arrow.svg);
 
    margin-top: 5px;
    padding-right:40px;
}
  */

.form form .hs-button:hover,
.form form input[type=submit]:hover {
  background-image: 
  url(https://www.contractsafe.com/hubfs/ContractSafe%202023/Icons/main-btn-arrow.svg), linear-gradient(270deg,#ffe03f 3.77%,#f8b951 106.56%);
  text-decoration: underline;
  color:#031723;
  background-position: 90%;
  background-repeat: no-repeat;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 224, 63, 0.3);
}

.hs-error-msgs {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
}

/* Tablet Styles */
@media (max-width:1050px) {
  
	.form-and-badge-container {
    padding-top:150px !important;
    padding-bottom:50px !important
  }
  
  .badge-title h1 {
    font-size: 30px;
    margin-bottom: 20px;
  }
  
  .badge-images {
    grid-template-columns: repeat(2, 1fr)
  }
  
  .badge-images img.very-wide { width: 150px; height: 115px; }
  .badge-images img.wide { width: 135px; height: 125px; }
  .badge-images img.square { width: 120px; height: 120px; }
  .badge-images img.narrow { width: 110px; height: 130px; }
  .badge-images img.very-narrow { width: 100px; height: 140px; }
  
}
 
/* Smaller Tablet Styles */
	@media(max-width:965px) {

   .form-and-badge-container {
      margin: 20px 20px;
      padding-top: 125px !important;
    } 
 
    .badge-title h1 {
      font-size: 22px;
      font-weight: 600;
    }
 
    .form-wrapper {
    width: 48%;
    margin-left: 10px;
    }
    
    .badge-title-wrapper {
    width: 48%;
    margin-right: 10px;
    }
    
   .form-wrapper .form {
    width: 95%;
    margin-left: 0px;
   }
  
    .form-wrapper .form h3 {
    font-size: 22px;
    line-height: 28px;
    }
    
  .badge-images img.very-wide { width: 120px; height: 95px; }
  .badge-images img.wide { width: 110px; height: 100px; }
  .badge-images img.square { width: 95px; height: 95px; }
  .badge-images img.narrow { width: 85px; height: 105px; }
  .badge-images img.very-narrow { width: 80px; height: 115px; }
  
}

/* Mobile Styles */
@media (max-width:767px) {
		
    .form-and-badge-container {
      padding-top: 80px!important;
      margin: 10px 0px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    .form-wrapper {
       width: 90%;
       max-width: 450px;
       margin-left:0px;
       order: 1;
       margin-bottom: 30px;
     }
  .badge-title-wrapper {
      width: 90%;
      margin: 20px 0 30px;
      order: 2;
  }
   .badge-title h1 {
      font-size: 20px;
      line-height: 1.3;
      margin-bottom: 10px;
  }
  .badge-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .badge-images img.very-wide { width: 85px; height: 65px; }
  .badge-images img.wide { width: 80px; height: 70px; }
  .badge-images img.square { width: 75px; height: 75px; }
  .badge-images img.narrow { width: 65px; height: 80px; }
  .badge-images img.very-narrow { width: 60px; height: 85px; }
  
  .form-wrapper .form {
    padding: 15px;
    width: 95%;
  }
  
  .form form input[type=text],
  .form .ss-main .ss-single-selected,
  .form form input[type=email], .form form input[type=password], .form form input[type=tel], .form form input[type=number], .form form input[type=file], .form form textarea {
    font-size: 14px;
    padding: 12px;
    width: 95%;
  }

  .hs_department select {
  min-height: 35px !important;
  max-width: 95% !important;
  min-width: 317.5px !important;
  size: 3;
  }
  
  .form form label {
    font-size: 14px;
  }
  
  .form form .hs-button, .form form input[type=submit] {
    font-size: 14px;
    padding: 12px 40px 12px 20px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {

  .badge-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .badge-images img {
    max-width: 65px;
  }
  .badge-title h1 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .badge-title-wrapper {
    margin: 15px 0 25px;
  }
  
  .badge-images img.very-wide { width: 75px; height: 55px; }
  .badge-images img.wide { width: 70px; height: 60px; }
  .badge-images img.square { width: 65px; height: 65px; }
  .badge-images img.narrow { width: 55px; height: 70px; }
  .badge-images img.very-narrow { width: 50px; height: 75px; }
  
}

