/* Form additions; the reference page's styles are retained in styles.css. */
button.eh-btn { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.eh-btn:focus-visible, .eh-secondary:focus-visible, .eh-close:focus-visible { outline: 3px solid #c9953c; outline-offset: 4px; }
section[id] { scroll-margin-top: 88px; }
.eh-dialog-open { overflow: hidden; }
.eh-dialog {
  position: fixed;
  inset: 0;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 36px;
  overflow-y: auto;
  border: 1px solid rgba(27,58,45,.12);
  border-radius: 24px;
  background: #fbf8f1;
  color: #1b3a2d;
  box-shadow: 0 28px 90px rgba(0,0,0,.22);
}
.eh-dialog::backdrop { background: rgba(16,35,27,.56); backdrop-filter: blur(5px); }
.eh-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #6b6560; cursor: pointer; font-size: 26px; }
.eh-close:hover { background: #f0ede4; color: #1b3a2d; }
.eh-dialog-title { margin: 6px 20px 12px 0; font-family: Georgia, serif; font-size: 32px; line-height: 1.15; }
.eh-dialog-description { margin: 0 0 24px; color: #6b6560; font-size: 14px; line-height: 1.65; }
.eh-field { display: block; margin-bottom: 16px; }
.eh-field-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.eh-field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d6d4c9; border-radius: 10px; background: #fff; color: #1b3a2d; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.eh-field input::placeholder { color: #8b877f; font-size: 14px; }
.eh-field input:focus { border-color: #1b3a2d; outline: none; box-shadow: 0 0 0 3px rgba(27,58,45,.10); }
.eh-field input[aria-invalid="true"] { border-color: #b2392d; }
.eh-field-error { display: block; margin-top: 5px; color: #a33025; font-size: 12px; line-height: 1.5; }
.eh-field-error:empty { display: none; }
.eh-form-submit { width: 100%; margin-top: 6px; min-height: 48px; }
.eh-form-submit:disabled { cursor: wait; opacity: .65; }
.eh-required { margin: 12px 0 0; text-align: center; color: #6b6560; font-size: 12px; }
.eh-submit-error { margin: 0 0 16px; color: #a33025; font-size: 14px; }
.eh-success { padding: 22px 0 8px; text-align: center; }
.eh-success-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: rgba(139,168,136,.18); color: #1b3a2d; font-size: 32px; }
.eh-success .eh-dialog-title { margin-right: 0; }
.eh-success .eh-btn { width: 100%; }
@media (max-width: 820px) { .eh-actions button { width: 100%; } }
@media (max-width: 480px) { .eh-dialog { padding: 30px 22px 24px; border-radius: 20px; } .eh-dialog-title { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
