/* Keep the independent phone mask on the same visual baseline as other fields. */
.md-lead-form .t-input-group_ph,
.md-lead-form .t-input-group_ph .t-input-block {
  height: auto !important;
  min-height: 0 !important;
}

.md-lead-form input[name="Phone"] {
  position: static !important;
  inset: auto !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  vertical-align: middle !important;
}

.md-redesign #allrecords .t702 .md-lead-form input[name="Phone"] {
  height: 46px !important;
  min-height: 46px !important;
  padding: 8px 0 !important;
  line-height: 30px !important;
}

.md-redesign.md-conversion #allrecords #rec2496063921 .md-lead-form input[name="Phone"] {
  height: 60px !important;
  min-height: 60px !important;
  padding: 12px 0 !important;
  line-height: 36px !important;
}

/* Accessible custom validation, independent from Tilda's form transport. */
.md-lead-form :is(.t-form__successbox, .t-form-successbox) {
  display: none !important;
}

.md-lead-form .t-submit.md-btn-sending {
  opacity: .8 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  cursor: wait !important;
}

.md-lead-form .md-field-error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0 !important;
  color: #a81020;
  font: 500 12px/1.4 MDGeologica, Manrope, sans-serif;
  letter-spacing: 0;
  animation: md-field-error-in 160ms ease-out both;
}

.md-lead-form .md-field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 10px/1 sans-serif;
}

.md-redesign #allrecords .md-lead-form .md-field-invalid :is(.t-input, .t-select, textarea) {
  border-color: #c91624 !important;
  box-shadow: 0 1px 0 #c91624 !important;
}

.md-redesign #allrecords .md-lead-form .md-field-invalid .t-checkbox__indicator {
  border-color: #c91624 !important;
  box-shadow: 0 0 0 3px rgb(201 22 36 / 12%);
}

.md-lead-form .md-form-error {
  margin: 14px 0 !important;
  padding: 13px 15px;
  border: 1px solid rgb(201 22 36 / 28%);
  border-radius: 8px;
  background: rgb(201 22 36 / 7%);
  color: #8f101d;
  font: 500 13px/1.5 MDGeologica, Manrope, sans-serif;
  animation: md-field-error-in 180ms ease-out both;
}

.md-lead-form .md-form-success {
  display: none;
  margin: 8px 0 !important;
  padding: 24px;
  border: 1px solid rgb(35 116 74 / 24%);
  border-radius: 10px;
  background: rgb(35 116 74 / 8%);
  color: #174f32;
  text-align: left;
  animation: md-field-error-in 200ms ease-out both;
}

.md-lead-form .md-form-success strong,
.md-lead-form .md-form-success span {
  display: block;
}

.md-lead-form .md-form-success strong {
  margin-bottom: 7px;
  font: 600 24px/1.2 MDGeologica, Manrope, sans-serif;
}

.md-lead-form .md-form-success span {
  font: 400 14px/1.55 MDGeologica, Manrope, sans-serif;
}

#rec2496063921 .md-lead-form .md-form-success {
  border-color: rgb(130 225 170 / 28%);
  background: rgb(130 225 170 / 10%);
  color: #c9f6dc;
}

#rec2496063921 .md-lead-form :is(.md-field-error, .md-form-error) {
  color: #ff8a94;
}

#rec2496063921 .md-lead-form .md-form-error {
  border-color: rgb(255 138 148 / 35%);
  background: rgb(255 138 148 / 9%);
}

@keyframes md-field-error-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .md-lead-form :is(.md-field-error, .md-form-error, .md-form-success) { animation: none; }
}
