.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; 
}
.form-context-note{margin:.1rem 0 .35rem;padding:.65rem .8rem;border-radius:.7rem;background:rgba(13,59,102,.07);font-size:.9rem}.contextual-contact-cta{margin-top:.8rem}


/* v939: prepared planner materials share one contact-channel handoff layer. */
.contact-prepared-materials {
  position: relative;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(13,59,102,.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
  box-shadow: 0 7px 18px rgba(31,52,83,.055);
  color: #334761;
  align-self: start;
}
.contact-prepared-head { display:block; min-height:15px; margin-bottom:5px; }
.contact-prepared-head strong { display:block; color:var(--ink); font-size:12.5px; line-height:1.2; white-space:nowrap; }
.contact-prepared-head span {
  position:absolute;
  top:-8px;
  right:10px;
  z-index:1;
  padding:2px 6px;
  border:1px solid rgba(13,59,102,.13);
  border-radius:999px;
  background:#fff;
  box-shadow:0 3px 10px rgba(31,52,83,.08);
  color:var(--muted);
  font-size:10px;
  font-weight:720;
  line-height:1.15;
  white-space:nowrap;
  pointer-events:none;
}
.contact-prepared-list { display:grid; row-gap:5px; }
.contact-prepared-row { display:grid; grid-template-columns:16px minmax(0,1fr); column-gap:6px; align-items:center; min-width:0; min-height:18px; }
.contact-prepared-row input { width:14px; height:14px; margin:0; accent-color:var(--blue); }
.contact-prepared-link { display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; padding:1px 0; border:0; background:transparent; color:var(--blue); font:inherit; font-size:11.25px; font-weight:720; line-height:1.3; text-align:left; cursor:pointer; }
.contact-prepared-link:hover,.contact-prepared-link:focus-visible { text-decoration:underline; outline:none; }
.contact-prepared-download-mark { flex:0 0 auto; color:#7b8ca3; font-size:12px; font-weight:800; }
.contact-prepared-empty { margin:0!important; color:var(--muted)!important; font-size:10.8px!important; line-height:1.28!important; }
.contact-prepared-share { margin:6px 0 0; padding:5px 8px; border:1px solid rgba(13,59,102,.15); border-radius:999px; background:#fff; color:#25415f; font-size:10.5px; font-weight:760; line-height:1.15; cursor:pointer; }
.contact-prepared-share[hidden] { display:none!important; }
/* Channel feedback is intentionally outside Contact layout flow. Opening Email,
   WhatsApp or Telegram must never change the prepared-material row height or
   stretch the neighboring Contact form. */
.contact-prepared-status {
  position: fixed !important;
  left: 24px !important;
  bottom: 24px !important;
  z-index: 950 !important;
  width: min(430px, calc(100vw - 48px)) !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(13,59,102,.16) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 14px 34px rgba(15,42,74,.18) !important;
  color: #334761 !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  pointer-events: none !important;
}
.contact-prepared-status[hidden] { display:none!important; }
@media (max-width:820px) {
  .contact-prepared-status {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
  }
}
@media (max-width:820px) {
  .contact-prepared-materials { order:6!important; width:100%; padding:10px 11px; }
  .contact-prepared-head strong { font-size:12.8px; }
  .contact-prepared-link { font-size:11.8px; }
}

/* Keep the Telegram card at the normal contact-card height when the prepared-material panel makes the final desktop grid row taller. */
@media (min-width:821px) {
  .contact-methods > .contact-link.telegram { align-self:start; }
}
