.contact-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 12px; color: #233441; box-shadow: 0 20px 70px #0005; font-family: 'Segoe UI', sans-serif; }
.contact-dialog[open] { display: flex; flex-direction: column; }
.contact-dialog::backdrop { background: #10212bd1; }
.contact-dialog-header { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: #2a3b4c; color: white; border-bottom: 3px solid #a65322; flex-shrink: 0; }
.contact-dialog h2 { margin: 0; font-size: 1.5rem; }
.contact-dialog-header p { margin: .35rem 0 0; font-size: .9rem; }
.contact-dialog button { cursor: pointer; font: inherit; min-height: 44px; border-radius: 6px; padding: .55rem 1rem; }
.contact-dialog .contact-close { color: white; font-size: 1.8rem; background: transparent; border: 0; padding: 0 .5rem; align-self: flex-start; line-height: 1; }
.contact-dialog form { display: flex; flex-direction: column; overflow: hidden; min-height: 0; margin: 0; }
.contact-dialog-body { padding: 1rem 1.5rem; overflow-y: auto; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
.contact-fields label, .captcha-controls label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; }
.contact-wide { grid-column: 1 / -1; }
.contact-dialog input, .contact-dialog select, .contact-dialog textarea { width: 100%; box-sizing: border-box; min-width: 0; min-height: 44px; padding: .55rem .7rem; border: 1px solid #9da9af; border-radius: 5px; font: inherit; background: white; color: #233441; font-weight: 400; }
.contact-dialog textarea { resize: vertical; min-height: 88px; }
.contact-dialog :focus-visible { outline: 3px solid #197bb2; outline-offset: 2px; }
.contact-hint { font-size: .8rem; line-height: 1.5; color: #52616b; margin: 0 0 .8rem; }
.contact-hint a { color: #174d6d; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-captcha { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid #c6d2d9; border-radius: 6px; background: #f4f7f8; }
.contact-captcha legend { float: none; width: auto; font-weight: 600; font-size: .9rem; margin: 0; padding: 0 .25rem; }
.contact-captcha p { margin: .25rem 0 .7rem; }
.captcha-controls { display: flex; align-items: flex-end; gap: 1rem; }
.captcha-controls input { max-width: 110px; }
.captcha-refresh, .contact-cancel { border: 1px solid #667983; color: #233441; background: white; }
.contact-dialog-footer { padding: .85rem 1.5rem; border-top: 1px solid #d7dfe3; display: flex; justify-content: flex-end; gap: .75rem; flex-shrink: 0; background: #fff; }
.contact-submit { border: 1px solid #a65322; color: white; background: #a65322; }
.contact-dialog button:disabled { opacity: .6; cursor: wait; }
.contact-error, .contact-success { border-radius: 6px; padding: .8rem; margin: 1rem 0 0; font-size: .9rem; }
.contact-error { background: #fff1ed; color: #812f17; }
.contact-success { background: #e9f5ed; color: #245134; }
.mobile-contact { grid-template-columns: 1fr 1fr; }
.mobile-contact button { border: 0; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: .4rem; background: #a65322; color: white; border-radius: 6px; font-size: .85rem; font-weight: 600; }
@media (max-width: 767px) { .mobile-contact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) {
  .contact-fields { grid-template-columns: 1fr; }
  .contact-dialog-header, .contact-dialog-body, .contact-dialog-footer { padding-left: 1rem; padding-right: 1rem; }
  .contact-dialog { max-height: calc(100dvh - 16px); }
}
