.tst-estimate-form,
.tst-before-after-card {
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 24px 70px rgba(17, 22, 27, 0.18);
}

.tst-estimate-form {
  color: #11161b;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
}

.tst-form-heading {
  border-bottom: 1px solid rgba(17, 22, 27, 0.12);
  margin-bottom: 4px;
  padding-bottom: 18px;
}

.tst-form-heading span {
  color: #f04f18;
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tst-form-heading h3 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1;
  margin: 0;
}

.tst-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.tst-estimate-form label {
  color: #11161b;
  display: grid;
  font-size: 0.84rem;
  font-weight: 900;
  gap: 8px;
}

.tst-estimate-form input,
.tst-estimate-form select,
.tst-estimate-form textarea {
  background: rgba(251, 250, 247, 0.9);
  border: 1px solid rgba(17, 22, 27, 0.12);
  color: #11161b;
  min-height: 52px;
  outline: none;
  padding: 13px 14px;
}

.tst-estimate-form textarea {
  min-height: 132px;
  resize: vertical;
}

.tst-estimate-form input:focus,
.tst-estimate-form select:focus,
.tst-estimate-form textarea:focus {
  border-color: #f04f18;
  box-shadow: 0 0 0 3px rgba(240, 79, 24, 0.14);
}

.tst-upload {
  background: rgba(240, 79, 24, 0.05);
  border: 1px dashed rgba(17, 22, 27, 0.28);
  padding: 16px;
}

.tst-button {
  align-items: center;
  background: #f04f18;
  border: 0;
  box-shadow: 0 16px 36px rgba(240, 79, 24, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 54px;
  padding: 16px 22px;
}

.tst-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.tst-honeypot {
  left: -9999px;
  position: absolute;
}

.tst-form-status {
  font-weight: 800;
  margin: 0;
}

.tst-form-status.is-success {
  color: #165f3d;
}

.tst-form-status.is-error {
  color: #a32913;
}

.tst-privacy {
  color: #68727a;
  font-size: 0.84rem;
  margin: 0;
}

.tst-before-after-card {
  overflow: hidden;
}

.tst-before-after {
  aspect-ratio: 4 / 3;
  background: #b9b4aa;
  overflow: hidden;
  position: relative;
}

.tst-before-after__image {
  align-items: end;
  background-position: center;
  background-size: cover;
  display: flex;
  inset: 0;
  padding: 18px;
  position: absolute;
}

.tst-before-after__image span {
  background: rgba(17, 22, 27, 0.78);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.tst-before-after__before {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  z-index: 2;
}

.tst-before-after__after {
  justify-content: end;
  z-index: 1;
}

.tst-before-after__divider {
  background: #ffffff;
  bottom: 0;
  left: var(--split);
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  z-index: 3;
}

.tst-before-after__divider::after {
  align-items: center;
  background: #f04f18;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(17, 22, 27, 0.26);
  color: #ffffff;
  content: "<>";
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
}

.tst-before-after input {
  cursor: ew-resize;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 4;
}

.tst-before-after-card__copy {
  padding: 24px;
}

.tst-before-after-card__copy h3 {
  font-size: 1.24rem;
  line-height: 1.1;
  margin: 0;
}

.tst-before-after-card__copy p {
  color: #68727a;
  line-height: 1.56;
}

@media (max-width: 700px) {
  .tst-form-grid {
    grid-template-columns: 1fr;
  }
}
