.contact-dialog {
  box-sizing: border-box;
  width: min(34rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: clamp(1rem, 3.2vw, 2rem);
  border: 1px solid #d5e0e3;
  border-radius: 1.25rem;
  background: #fff;
  color: #12333d;
  box-shadow: 0 1.5rem 5rem #071c2660;
  overscroll-behavior: contain;
  text-align: start;
}
.contact-dialog::backdrop { background: #071c26a8; }
html:has(#contact-dialog[open]) { overflow: hidden; }
.contact-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.contact-dialog-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.contact-close {
  display: grid;
  flex: 0 0 2.75rem;
  place-items: center;
  height: 2.75rem;
  border: 1px solid #d5e0e3;
  border-radius: 50%;
  background: #f3f7f8;
  color: inherit;
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}
.contact-dialog form { display: grid; gap: .7rem; margin-block-start: .45rem; }
.contact-dialog [hidden] { display: none; }
.contact-field { display: grid; align-content: start; gap: .25rem; min-width: 0; }
.contact-field-pair { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: .65rem; }
.contact-hint { margin: 0; color: #435d66; font-size: .85rem; line-height: 1.45; }
.contact-field label { font-size: .9rem; line-height: 1.35; font-weight: 650; }
.contact-field small { color: #4e6570; font-size: .74rem; font-weight: 400; white-space: nowrap; }
.contact-field input, .contact-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.5rem;
  padding: .48rem .65rem;
  border: 1px solid #9fb1b8;
  border-radius: .55rem;
  background: #fbfcfd;
  color: #12333d;
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
}
.contact-field textarea { resize: vertical; min-height: 3.6rem; }
.contact-dialog :focus-visible { outline: 2px solid #206779; outline-offset: 2px; }
.contact-dialog [aria-invalid="true"] { border-color: #a52b2b; }
.contact-send {
  justify-self: start;
  min-height: 2.75rem;
  padding: .55rem 1.15rem;
  border: 0;
  border-radius: .65rem;
  background: #12333d;
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.contact-send:disabled { opacity: .65; cursor: wait; }
.contact-status { margin: .6rem 0; line-height: 1.45; }
.contact-status:empty { margin: 0; }
.contact-status[data-error] { color: #a52b2b; }
.contact-check {
  --altcha-border-radius: .55rem;
  --altcha-color-base: #f3f7f8;
  --altcha-color-border: #9fb1b8;
  --altcha-color-border-focus: #206779;
  --altcha-color-error-text: #a52b2b;
  --altcha-color-text: #12333d;
  --altcha-max-width: 100%;
}
.contact-check input[type="checkbox"] { accent-color: #12333d; }
@media (max-width: 370px) {
  .contact-field-pair { grid-template-columns: 1fr; }
}
[dir="rtl"] .contact-dialog-heading h2 { letter-spacing: normal; }
