.form-text-section form fieldset:has(.hs-region) ~ fieldset .hs-city,
.form-text-section form fieldset:has(.hs-region) ~ fieldset .hs_state_dropdown,
.form-text-section form fieldset:has(.hs-region) ~ fieldset .hs-zip,
.form-text-section form fieldset:has(.hs-region) ~ fieldset:has(.hs-county),
.form-text-section form .hs_state_dropdown option[value="Other"], 
.form-text-section form .input:has(+.hs-error-msgs) input[name="zip"] + .hs-error-msgs{
  display:none;
}

.form-text-section form fieldset:has(option[value="United States"]:checked) ~ fieldset .hs-city,
.form-text-section form fieldset:has(option[value="United States"]:checked) ~ fieldset .hs_state_dropdown,
.form-text-section form fieldset:has(option[value="United States"]:checked) ~ fieldset .hs-zip,
.form-text-section form fieldset:has(option[value="Canada"]:checked) ~ fieldset .hs-zip,
.form-text-section form fieldset:has(option[value="United States"]:checked) ~ fieldset:has(.hs-county){
  display:inline-block;
  width: 100%;
}

.form-text-section form fieldset:has(option[value="Canada"]:checked) ~ fieldset .hs-zip{
  width:100% !important;
}

.form-text-section form input[name="representative"],
.form-text-section form:has(input[name="representative"]) input[name="county"]{
  pointer-events: none;
  opacity: 0.7;
}

.form-text-section form .input:has([name="city"].invalid) + .hs-error-msgs,
.form-text-section form .input:has([name="zip"].invalid) + .hs-error-msgs,
.form-text-section form .input:has([name="county"].invalid) + .hs-error-msgs{
  display: none;
}

.form-text-section:has(.hs_error_rollup) form .input:has([name="city"].invalid) + .hs-error-msgs,
.form-text-section:has(.hs_error_rollup) form .input:has([name="zip"].invalid) + .hs-error-msgs,
.form-text-section:has(.hs_error_rollup) form .input:has([name="county"].invalid) + .hs-error-msgs{
  display: block;
}

.form-text-section .county-select-form-field{
display:none;
}

.form-text-section .county-select-form-field:has(option:nth-child(3)){
display:block;
}

.form-text-section {
  padding:100px 0px 180px; 
  overflow: hidden;
}
.two-col-form-flex {  align-items: flex-start; }
.form-text-section h1{
  font-weight: 700;
  font-size: 48px;
  position:relative;
  margin: 0 0 40px;
  line-height: 1.33;
  padding-bottom: 24px;
}
.form-text-section h1:after {
  position: absolute;
  content: "";
  height: 4px;
  width: 60px;
  background: #003595;
  left: 0;
  bottom: 0;
  border-radius: 2px;
}
.form-text-section .two-col-form-left {
  width: 49.3%;
  background: #FFFFFF;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 60px 50px;

}
.form-text-section .two-col-form-left.switchleft{ order:1;}
.form-text-section form .hs-form-field>label {
  line-height:30px;
  margin-bottom: 8px;
}
.form-text-section form div.hs-form-field {
  margin-bottom: 23px;
}

.form-text-section form ul.inputs-list {
  padding-top: 0px;
}


.form-text-section .two-col-form-right {
  width: 42%;
  margin-right:0
}
.form-text-section .inputs-list li.hs-form-radio{
  display: inline-block;
  margin-right: 26px;
  margin-bottom: 8px;
}

.form-text-section form .input ul.inputs-list li label input[type="radio"]+span{
  padding-left: 24px;
}

.form-text-section form .input ul.inputs-list li label input[type="radio"]+span:before{
  height: 12px;
  width: 12px;
  top: 4.5px;
}

.form-text-section form .input ul.inputs-list li label input[type="radio"]:checked+span:before{
  box-shadow: 0 0 0 2px #fff inset;
}

.form-text-section form select{
  background-image: url('https://www.premierbuildingsystems.com/hubfs/Premier%20SIPS/logos/down%20arrow.svg');
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 13px auto;
}

.form-text-section form .input ul.inputs-list li label input[type="checkbox"]+span:before{
  height: 18px;
  width: 18px;
  border-radius: 3px;
  top: 3px;
}

.form-text-section form div.hs-form-field .input>ul>li>label.hs-form-booleancheckbox-display{
  font-weight: 500;
  font-size: 14px;
  line-height: 26px;
  display:flex;
}

.form-text-section form .input ul.inputs-list li label input[type="checkbox"]:checked+span:before{
  box-shadow: none;
}

.form-text-section form .input ul.inputs-list li label input[type="checkbox"]:checked+span:after{
  position: absolute;
  content: '';
  height: 7px;
  width: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  left: 3px;
  top: 6px;
}

.form-text-section input[type="file"]{
  position: relative;
  height: 52px;
}

.form-text-section .upload_cont{
  position: relative;
  width: 100% !important;
  font-weight: 500;
  background-color: rgba(255,255,255,1.0);
  color: #252525;
  border-radius: 4px;
  border: 2px solid #e6e6e6;
  cursor: pointer;
  margin: -55px 0 17px;
  padding: 13px 117px 13px 15px;
}

.form-text-section .file-upload-button-label{
  position: absolute;
  height: 105%;
  top: -2px;
  right: -2px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  padding: 13px 16.3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* .form-text-section form .hs-form-required {
opacity:0; 
} */
.form-text-section .contact-info-contact p {
  font-weight: 500;
  font-size: 14px;
  line-height: 26px;
}

.form-text-section form ul.inputs-list.hs-error-msgs {font-size:12px;}

.form-text-section .contact-info {
  padding-top: 0px;
  margin-top: 60px;
}
.form-text-section .contact-info .contact-container {
  padding-top: 43px;
}
.form-text-section .contact-info h4 {
  margin-bottom: 25px;
}
.form-text-section .contact-information{
  margin-bottom: 17px;
}
.form-text-section .hs_submit.hs-submit {
  margin-top: 33px;
}
.form-text-section form input[type=submit], .form-text-section form .hs-button {
  padding:26px 30px 26px 11px;
  background-position: center right 37%;
}
.form-text-section input[type=file] {
  opacity:0; 
}


@media (max-width: 1600px) {
  .form-text-section form .hs-button, .form-text-section form input[type=submit] {
    background-position: center right 30%;
  }
}
@media (max-width: 1280px) {
  .form-text-section {
    padding: 100px 0;
  }
  .form-text-section .two-col-form-left {
    width: 57.3%;
  }
  .form-text-section .two-col-form-right {
    width: 37%;
  }
  .form-text-section form .hs-button, .form-text-section form input[type=submit] {
    background-position: center right 32%;
  }
  .form-text-section h1{
    font-size: 36px;
  }
}

@media (max-width: 1024px) {
  .form-text-section {
    padding: 70px 0;
  }
  .form-text-section form .hs-form-field>label {
    line-height: 1.4; 
  }
  .form-text-section .two-col-form-left {
    padding:30px; 
  }
  .form-text-section .file-upload-button-label {
    top:-1px; 
  }
  .form-text-section h1{
    font-size: 32px;
    margin-bottom: 25px;
    padding-bottom: 15px;
  }
}

@media(max-width:900px){
  .form-text-section .inputs-list li.hs-form-radio{
    display: block;
    margin-right: 0;
  }
  .form-text-section .two-col-form-left {
    order:2; 
  }

  .form-text-section form div.hs-form-field {
    margin-bottom: 14px;
  }
  .form-text-section .two-col-form-right {
    margin-bottom: 30px;
  }
  .form-text-section .contact-info {
    margin-top: 30px;
  }
  .form-text-section .contact-info h4 {
    margin-bottom: 20px;
  }
  .form-text-section .contact-info .contact-container {
    padding-top: 30px;
  }
  .form-text-section .two-col-form-left,.form-text-section .two-col-form-right {
    width:100%;
  }

  .form-text-section .upload_cont {
    font-size:14px; 
    margin: -55px 0 3px;
  }
  .form-text-section .hs_submit.hs-submit {
    margin-top: 8px;
  }
  .form-text-section form .hs-button, .form-text-section form input[type=submit] {
    background-position: center right 38%;
  }
}
@media(max-width:767px){
  .form-text-section form .hs-button, .form-text-section form input[type=submit] {
    background-position: center right 30%;
  } 
  .form-text-section h1{
    font-size: 26px;
  }
}
@media (max-width: 480px) {
  .form-text-section form .hs-button, .form-text-section form input[type=submit] {
    background-position: center right 22%;
  }
}
@media (max-width: 375px) {
  .form-text-section form .hs-button, .form-text-section form input[type=submit] {
    background-position: center right 10%;
  }
}
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .form-text-section .file-upload-button-label {
      top:-1px; 
    }
  }
}