.contact-form .contact-message-voice-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact-message-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 28px;
  margin: 0 0 7px;
}

.contact-form .contact-message-label {
  flex: 0 0 auto;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #334761;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.contact-message-actions {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.contact-voice-button {
  position: static;
  flex: 0 0 auto;
  width: 154px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(197, 212, 229, .95);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #17324d;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 42, 74, .08);
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.contact-voice-button:hover,
.contact-voice-button:focus-visible {
  border-color: rgba(24, 91, 157, .42);
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 42, 74, .12);
}

.contact-voice-button.is-listening {
  border-color: rgba(235, 180, 55, .72);
  background: linear-gradient(180deg, #fff7df, #f8d587);
  color: #16283c;
}

.contact-voice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.contact-voice-button[hidden] {
  display: none !important;
}

.contact-message-clear {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(13, 59, 102, .14);
  border-radius: 999px;
  color: #42566f;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 3px 10px rgba(13, 59, 102, .08);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.contact-message-clear[hidden] {
  display: none !important;
}

.contact-message-clear:hover,
.contact-message-clear:focus-visible {
  color: #10213a;
  background: #fff;
  border-color: rgba(246, 179, 33, .38);
  outline: none;
}

.contact-message-input-wrap {
  position: relative;
  width: 100%;
  margin: 0;
}

.contact-form .contact-message-voice-field .contact-message-input-wrap textarea {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding-right: 14px !important;
}

@media (max-width: 520px) {
  .contact-message-toolbar {
    gap: 8px;
    min-height: 26px;
    margin-bottom: 7px;
  }

  .contact-message-actions {
    gap: 6px;
  }

  .contact-voice-button {
    width: 134px;
    height: 26px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .contact-message-clear {
    width: 24px;
    height: 24px;
    font-size: 17px;
  }

  .contact-voice-choice-buttons {
    flex-direction: column;
  }
}

.contact-voice-choice { position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(13,59,102,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  color: #3f4f68;
  font-size: 12px;
  line-height: 1.3;
  box-shadow: 0 12px 24px rgba(15,42,74,.12); }
.contact-voice-choice[hidden] { display: none !important; }
.contact-voice-choice-buttons { display: flex; gap: 8px; width: 100%; }
.contact-voice-choice-buttons button { flex: 1 1 0; min-height: 30px; padding: 0 10px; border: 1px solid rgba(13,59,102,.14); border-radius: 999px; color: #24415f; background: #fff; font-size: 12px; font-weight: 800; line-height: 1; box-shadow: none; cursor: pointer; }
.contact-voice-choice-buttons button:hover,
.contact-voice-choice-buttons button:focus-visible { background: rgba(246,179,33,.18); border-color: rgba(246,179,33,.34); outline: none; }


.contact.section-shell { padding-bottom: 28px !important; 
}

.site-footer { padding-top: 4px !important; 
}

@media (max-width: 820px) {.contact.section-shell { padding-bottom: 22px !important; 
}
}

#contact { scroll-margin-top: 64px !important; 
}

html.contact-anchor-mode body { padding-bottom: 140px !important; 
}

html.contact-anchor-mode .site-footer { margin-bottom: 0 !important; 
}

.field-error { display: block; margin-top: 6px; color: #b42318; font-size: 12px; line-height: 1.35; 
}

.field-error[hidden] { display: none !important; 
}

.contact-form input[aria-invalid="true"] { border-color: rgba(180, 35, 24, .72) !important; box-shadow: 0 0 0 3px rgba(180, 35, 24, .08) !important; 
}
