.tbBannerSection .slide-1 { background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1400&q=80'); }
.tbBannerSection .slide-2 { background-image: url('https://images.unsplash.com/photo-1553413077-190dd305871c?w=1400&q=80'); }
.tbBannerSection .slide-3 { background-image: url('https://images.unsplash.com/photo-1601598851547-4302969d0614?w=1400&q=80'); }
.tbBannerSection .slide-4 { background-image: url('https://images.unsplash.com/photo-1560448204-603b3fc33ddc?w=1400&q=80'); }
.tbBannerSection .slide-5 { background-image: url('https://images.unsplash.com/photo-1553413077-190dd305871c?w=1400&q=80'); }






.tbBannerSection { position: relative; }
.tbBannerSection .carousel-wrapper { margin-top: 100px; /*position: relative; /* overflow: hidden;*/ width: 100%; height: clamp(280px, 100vh, 1200px); }
.tbBannerSection .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; background-size: cover; background-position: center; }
.tbBannerSection .slide.active { opacity: 1; }
.tbBannerSection .slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom,rgba(0,0,0,0.10) 0%,rgba(0,0,0,0.45) 45%,rgba(0,0,0,0.15) 100%); }
.tbBannerSection .slide-text-layer { position: absolute; top: 5rem; left: 0; right: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem 1rem; pointer-events: none; }
.tbBannerSection .slide.active .slide-tag { opacity: 1; transform: translateY(0); }
.tbBannerSection .slide-title { font-family: var(--primary-font); font-size: 52px; font-weight: 700; line-height: 1.05; color: var(--text-white); text-shadow: 0 3px 20px rgba(0,0,0,0.5); margin-bottom: 15px; opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease 0.35s, transform 0.65s ease 0.35s; }
.tbBannerSection .slide.active .slide-title { opacity: 1; transform: translateY(0); }
.tbBannerSection .slide-subtitle { font-size: 26px; font-weight: 600; line-height: 1; color: var(--text-white); margin-bottom: 20px; opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s; }
.tbBannerSection .slide.active .slide-subtitle { opacity: 1; transform: translateY(0); }
.tbBannerSection .slide.active .slide-cta { opacity: 1; transform: translateY(0); }
.tbBannerSection .form-overlay { position: absolute; top: 35%; left: 0; right: 0; z-index: 10; padding: 0 3rem; }
.tbBannerSection .form-card { background: var(--text-primary); border-radius: 4px; padding: 2rem 2rem 2.2rem; max-width: 1100px; margin: 0 auto; box-shadow: 0 -4px 40px rgba(0,0,0,0.25); }
.tbBannerSection .form-title { font-family: var(--primary-font); font-size: 28px; font-weight: 700; color: var(--accent); text-align: center; margin-bottom: 15px; letter-spacing: 0.01em; }
.tbBannerSection .tbForm form .hs-richtext h6 { display: none; }
.tbBannerSection .tbForm { border-radius: 10px; border: none; padding: 0 0 20px; }
.tbForm, .tbForm form { background-color: var(--text-primary); }
.qualityContractorForm.tbForm form .hs-fieldtype-checkbox { margin: 5px 0 10px; }
.tbForm form .hs-richtext { margin: 0 0 1rem; text-align: center; }
.tbForm form fieldset:last-of-type { display: inline-flex; }
.tbForm form .hs_submit { display: inline-flex; float: right; }
.tbForm form fieldset.form-columns-2 .hs-form-field:not(:last-child) .input, .tbForm form fieldset.form-columns-3 .hs-form-field:not(:last-child) .input { margin-right: 10px !important; }
.tbForm form fieldset.form-columns-3 { display: flex; justify-content: space-between; }
.tbForm form fieldset.form-columns-3 .hs-form-field { width: 33.2%; }
.tbForm form .form-columns-2 .hs-form-field .hs-input, .tbForm form .form-columns-3 .hs-form-field .hs-input { line-height: 1.1; padding: 11px 15px !important; background-color: var(--bg-white-color); border: 1px solid var(--bg-white-color); border-radius: 2px; font-family: var(--primary-font); font-size: 16px; color: var(--text-primary); }
.tbForm form input, .tbForm form select { background-color: var(--bg-white-color); border: 1px solid rgb(232, 232, 232); padding: 10px 12px !important; border-radius: 5px; }
.tbForm form .hs-fieldtype-select .input:before { right: 15px; top: 14px; }
.tbForm form .hs-form-checkbox input+span:before { border: 2px solid var(--text-white); }
.tbForm form .terms-cls { font-size: 16px !important; color: var(--text-white); font-family: var(--primary-font); font-weight: 400; }
.tbForm form .terms-cls:hover, .tbForm form .terms-cls:focus { color: var(--accent); }
.tbForm form .hs-form-checkbox input:checked+span:before { color: var(--accent); }
.tbForm form .hs-button.primary { margin-top: 16px; align-items: center; appearance: none; -webkit-appearance: none; background-color: var(--accent); border: 1px solid var(--accent); border-radius: 0px; color: var(--text-primary); cursor: pointer; display: flex; font-family: var(--primary-font); font-size: 17px; font-weight: 500; height: 44px; justify-content: center; padding: 0 40px !important; text-align: center; transition: all .3s ease-in-out; white-space: nowrap; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; }
.tbForm form .hs-button.primary:hover, .tbForm form .hs-button.primary:focus { box-shadow: none; background-color: var(--text-primary); color: var(--text-white); border: 1px solid var(--accent); }
.tbForm form input[type=text], .tbForm form input[type=search], .tbForm form input[type=email], .tbForm form input[type=password], .tbForm form input[type=tel], .tbForm form input[type=number], .tbForm form input[type=file], .tbForm form select, .tbForm form textarea, .tbForm form input::placeholder, .tbForm form input::-webkit-input-placeholder, .tbForm textarea::placeholder { color: var(--text-primary); font-family: var(--primary-font); font-size: 16px; font-weight: 500; }
.tbForm form select, .tbForm .min-max-amount { color: var(--text-primary); }
.tbForm form select option { color: var(--text-primary); }
.tbForm form .hs_error_rollup { display: none; }
.tbForm form .hs-form-checkbox input+span { background-color: transparent; position: relative; cursor: pointer; padding-left: 32px; color: var(--text-white); font-weight: 400 !important; font-family: var(--primary-font); font-size: 16px !important; }
.tb-cls .tbForm form fieldset.form-columns-2:nth-of-type(3), .tb-cls .tbForm form fieldset.form-columns-2:nth-of-type(4) { display: inline-flex; width: 50%; }
.tb-cls .tbForm form fieldset.form-columns-2 .hs_project_size___search_main__cloned___field_test_.hs-form-field {  margin-right: 10px !important; }
.tbBannerSection .arrow { position: absolute; top: 42%; transform: translateY(-50%); z-index: 12; padding: 0; background-size: 100% 100%; background-repeat: no-repeat; border: none; color: var(--text-white); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; backdrop-filter: blur(4px); background: transparent; opacity: 0.5; }
.tbBannerSection .arrow:hover { opacity: 0.9; box-shadow: none; }
.tbBannerSection .arrow-prev { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"); left: 20px; }
.tbBannerSection .arrow-next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l4 4-4 4-1.5-1.5 2.5-2.5-2.5-2.5 1.5-1.5z'/%3E%3C/svg%3E"); right: 20px; }
.tbBannerSection .dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 12; display: flex; gap: 2px; }
.tbBannerSection .dot { position: relative; -ms-flex: 0 1 auto; flex: 0 1 auto; width: 30px; height: 3px; margin-right: 3px; margin-left: 3px; text-indent: -999px; cursor: pointer; background-color: rgba(255, 255, 255, .5); }
.tbBannerSection .dot:hover { background-color: var(--text-white); }
.tbBannerSection .dot.active { background: var(--accent); }

@media screen and (max-width: 1199px) {
  .tbBannerSection .slide-title { font-size: 48px; }
}

@media screen and (max-width: 991px) {
  .tbBannerSection .carousel-wrapper { margin-top: 75px; }
  .tbBannerSection .slide-title { font-size: 35px; }
  .tbBannerSection .slide-subtitle { font-size: 24px; }
}

@media screen and (max-width: 900px) {
  .tbBannerSection .form-row-4 { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 767px) {
  .tbBannerSection .arrow, .tbBannerSection .dots { display: none; }
  .tbBannerSection .slide-subtitle { font-size: 23px; margin-bottom: 10px; }
  .tbForm form fieldset.form-columns-3 { display: block; }
  .tbForm form fieldset.form-columns-3 .hs-form-field { width: 100%; }
  .tb-cls .tbForm form fieldset.form-columns-2:nth-of-type(3), .tb-cls .tbForm form fieldset.form-columns-2:nth-of-type(4) { display: block; width: 100%; }
  .tb-cls .tbForm form fieldset.form-columns-2 .hs-form-field { width: 100%; }
  .tbForm form fieldset.form-columns-2 .hs-form-field:not(:last-child) .input, .tbForm form fieldset.form-columns-3 .hs-form-field:not(:last-child) .input { margin-right: 0px !important; }
  .tbBannerSection .slide-text-layer { top: 1rem; }
  .tbBannerSection .form-overlay { padding: 0 1.5rem; top: 26%; }
  .tbBannerSection .slide-title { font-size: 28px; margin-bottom: 10px; }
  .tbBannerSection .slide-subtitle { font-weight: 500; font-size: 20px; }
}

@media screen and (max-width: 640px) {
  .tbBannerSection .tbForm form { padding: 0 0.7rem; height: 300px; overflow-y: auto; }
  .tbBannerSection .slide-text-layer { padding-bottom: 420px; }
  .tbBannerSection .form-row-3 { grid-template-columns: 1fr; }
  .tbBannerSection .form-row-4 { grid-template-columns: 1fr; }
  .tbBannerSection .dots { bottom: 440px; }
  .tbBannerSection .arrow { top: 28%; }
  .tbBannerSection .form-card { padding: 1.4rem 0.2rem 1.6rem; }
  .tbBannerSection .form-footer { flex-direction: column; align-items: flex-start; }
  .tbBannerSection .submit-btn { width: 100%; text-align: center; }
  .tbBannerSection .form-title { margin-bottom: 10px; font-size: 24px; }
  .tbBannerSection .form-overlay { padding: 0 0.6rem; top: 30%; }
  .tbBannerSection .slide-title { font-size: 22px; }
  .tbBannerSection .slide-subtitle { font-size: 18px; }
  .tbBannerSection .carousel-wrapper { margin-top: 70px; }
  .tbBannerSection .carousel-wrapper { height: clamp(640px, 70vh, 1200px); }
  .tbBannerSection .form-overlay { padding: 0 0.6rem; top: 24%; }
}