.demo-dialog { max-width: 640px; padding: 28px 36px; background: #fdfbf8; border-color: #e4dcd3; color: #2b282d; box-shadow: 0 24px 80px #27231f2b; }
.demo-dialog::backdrop { background: #24232166; }
.demo-dialog:focus-visible,.demo-dialog :focus-visible { outline: 2px solid #786655; outline-offset: 3px; }
.demo-dialog .eyebrow { color: #786655; }
.demo-dialog .eyebrow .icon { color: #bf8b6c; }
.demo-dialog .dialog-close { color: #2b282d; }
.demo-dialog h2 { font-size: 32px; line-height: 1.2; margin: 12px 0; }
.demo-dialog > p { font-size: 16px; line-height: 1.6; max-width: 470px; color: #69645e; }
#demo-form { margin-top: 20px; }
#demo-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.demo-form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.demo-form-grid label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; font-size: 14px; font-weight: 500; color: #3c3936; }
.demo-form-grid label > span { color: #69645e; }
.demo-form-grid .demo-optional { margin-left: auto; font-size: 12px; font-weight: 400; color: #69645e; }
.demo-form-grid input,.demo-form-grid textarea { display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 11px 12px; border: 1px solid #ded9d2; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; color: #2b282d; box-shadow: 0 1px 2px #27231f06; }
.demo-form-grid input { min-height: 46px; }
.demo-form-grid textarea { min-height: 84px; resize: vertical; }
.demo-form-grid input::placeholder,.demo-form-grid textarea::placeholder { color: #76716b; opacity: 1; }
.demo-form-grid input:focus,.demo-form-grid textarea:focus { outline: 2px solid #786655; outline-offset: 2px; border-color: #786655; }
.demo-full-width { grid-column: 1/-1; }
.demo-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.demo-form-actions > span { color: #69645e; font-size: 12px; }
.demo-form-actions .button { min-height: 46px; font-size: 15px; }
#demo-fields:disabled { opacity: .7; }
#demo-fields:disabled .button { cursor: wait; transform: none; }
.demo-form-status { font-size: 14px; line-height: 1.55; margin-top: 16px; color: #a23542; }
.demo-form-status a { text-decoration: underline; }
.demo-success { margin-top: 26px; padding: 24px; background: #fff; border: 1px solid #ded9d2; border-radius: 12px; }
.demo-success-icon { width: 38px; height: 38px; display: grid; place-items: center; background: #eaf3ed; color: #4d775d; border-radius: 50%; margin-bottom: 16px; }
.demo-success h3 { font-size: 23px; }
.demo-success p { font-size: 16px; color: #69645e; margin: 12px 0 22px; }
.demo-success:focus { outline: none; }
.demo-honeypot,.demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.demo-dialog [hidden] { display: none !important; }
@media(min-width:561px) and (max-height:700px) {
  .demo-dialog { padding: 24px 32px; }
  .demo-dialog h2 { font-size: 30px; }
  #demo-form { margin-top: 16px; }
  .demo-form-grid { row-gap: 14px; }
  .demo-form-grid textarea { min-height: 80px; }
}
@media(max-width:560px) {
  .demo-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 30px 22px; }
  .demo-dialog h2 { font-size: 30px; }
  .demo-form-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .demo-form-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .demo-form-actions > span { text-align: center; }
}
