.contact-dialog, .contact-dialog * { box-sizing: border-box }
.contact-dialog {
  color: var(--ink,#161616); background: #fff; width: min(94vw, 600px);
  max-width: 100%; max-height: min(92vh, 760px); max-height: min(92dvh, 760px);
  border: 0; border-top: 4px solid var(--green,#67c430); padding: 0; overflow: auto;
  box-shadow: 0 24px 75px #0006; overscroll-behavior: contain;
}
.contact-dialog::backdrop { background: rgb(0 0 0 / 66%) }
.contact-panel { padding: clamp(18px,4vw,32px) }
.contact-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px }
.contact-kicker { font-size: .79rem; letter-spacing: .14em; color: #305824; font-weight: 750; margin: 0 0 2px }
.contact-head h2 { font-size: clamp(1.38rem,4vw,1.9rem); line-height: 1.15; margin: 0 }
.contact-intro { margin: 10px 0 16px; color: #4c5049 }
.contact-demo { background:#edf6e9; padding:.6rem .7rem; margin-bottom:.8rem; font-size:.9rem; color:#274220 }
.contact-close { border:1px solid var(--line,#d7dcd3); background:#fff; color:#171717; width:44px; height:44px; flex:none; cursor:pointer; padding:0; font: 1.7rem/1 Arial,sans-serif }
.contact-close:hover { background:#f2f5ef }
.contact-fields { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px }
.contact-field { display:grid; align-content:start; gap:3px; margin-bottom:9px; min-width:0 }
.contact-field label { font-size:.9rem; font-weight:700 }
.contact-field input, .contact-field textarea {
  width:100%; min-width:0; min-height:42px; border: 1px solid #aeb8a9; border-radius:0;
  color:#171717; background:#fff; padding:7px 9px; font: inherit; font-size:16px;
}
.contact-field textarea { resize:vertical; display:block; min-height:68px }
.contact-field [aria-invalid="true"] { border-color:#a42424 }
.contact-consent { margin:4px 0 13px }
.contact-consent label { display:flex; align-items:flex-start; gap:.55rem; font-size:.88rem; line-height:1.35; cursor:pointer }
.contact-consent input { flex:none; width:19px; height:19px; margin:0; accent-color:#517e36 }
.contact-dialog a { color: #2d5526; text-decoration: underline; text-underline-offset:2px }
.contact-error { color:#9c2626; font-size:.83rem; line-height:1.25 }
.contact-submit-row { display:flex; flex-wrap:wrap; align-items:center; gap: 12px }
.contact-submit { min-height:44px; color:#12220b; background:var(--green,#67c430); border:0; border-radius:0; padding:8px 17px; font:inherit; font-weight:750; cursor:pointer }
.contact-submit:disabled { cursor:wait; opacity:.65 }
.contact-status { font-size:.9rem; margin:12px 0 0; padding:10px 12px; background:#a42424; color:#fff; overflow-wrap:anywhere; }
.contact-dialog :focus-visible { outline: 2px solid #2d6821; outline-offset:3px }
.contact-nojs { margin: 1rem auto; max-width: 62ch; padding: 0 1rem }
.contact-dialog [hidden] { display:none !important }
@media (max-width:440px) {
  .contact-fields { grid-template-columns:minmax(0,1fr) }
  .contact-dialog { max-height:92vh; max-height:92dvh }
}
@media (prefers-reduced-motion:no-preference) {
  .contact-dialog[open] { animation:contact-enter 200ms ease-out both }
  .contact-dialog[open]::backdrop { animation:contact-fade-in 200ms ease-out both }
  .contact-dialog[data-closing] { animation:contact-exit 160ms ease-in both }
  .contact-dialog[data-closing]::backdrop { animation:contact-fade-out 160ms ease-in both }
  @keyframes contact-enter { from { opacity:0; transform:translateY(14px) scale(.99) } to { opacity:1; transform:none } }
  @keyframes contact-exit { from { opacity:1; transform:none } to { opacity:0; transform:translateY(10px) scale(.99) } }
  @keyframes contact-fade-in { from { opacity:0 } to { opacity:1 } }
  @keyframes contact-fade-out { from { opacity:1 } to { opacity:0 } }
}

.contact-hint { color:#555b51; font-size:.875rem; line-height:1.35 }


.contact-controls { border:0; margin:0; padding:0; min-inline-size:0 }
.contact-controls:disabled { opacity:.62 }
.contact-sending { margin:8px 0 0; min-height:44px; display:flex; align-items:center; font-weight:700; color:#305824 }
.contact-success { margin-top:16px; overflow-wrap:anywhere }
.contact-thanks { font-size:1.2rem; font-weight:750; margin:0 0 .65rem }
.contact-success p:not(.contact-thanks) { margin:.5rem 0 }
.contact-success blockquote { margin:.5rem 0; padding:.75rem 1rem; background:#edf6e9; border-inline-start:3px solid #67c430; white-space:pre-wrap }
@media (prefers-reduced-motion:no-preference) {
  .contact-dots span { animation:contact-sending-dot 1.05s ease-in-out infinite }
  .contact-dots span:nth-child(2) { animation-delay:.16s }
  .contact-dots span:nth-child(3) { animation-delay:.32s }
  @keyframes contact-sending-dot { 0%,65%,100% { opacity:1 } 35% { opacity:.3 } }
}
