#ayari-message-widget, #ayari-message-widget * { box-sizing: border-box; }
.ayari-message-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 999990;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border: 0; border-radius: 999px;
  background: #153b63; color: #fff; font: 700 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 10px 30px rgba(13, 37, 62, .24); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ayari-message-fab:hover { background: #0d2c4b; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(13,37,62,.28); }
.ayari-message-fab:focus-visible, .ayari-message-close:focus-visible, .ayari-message-submit:focus-visible { outline: 3px solid #e0a92f; outline-offset: 3px; }
.ayari-message-fab-icon { display: inline-flex; width: 20px; height: 20px; }
.ayari-message-fab-icon svg { width: 100%; height: 100%; fill: currentColor; }
.ayari-message-backdrop { position: fixed; inset: 0; z-index: 999991; background: rgba(10, 23, 37, .48); backdrop-filter: blur(2px); }
.ayari-message-dialog {
  position: fixed; z-index: 999992; right: 24px; bottom: 92px;
  width: min(500px, calc(100vw - 32px)); max-height: min(78vh, 760px); overflow: auto;
  padding: 0; border: 1px solid rgba(17, 45, 72, .12); border-radius: 18px;
  background: #fff; color: #233548; box-shadow: 0 24px 70px rgba(8, 27, 46, .28);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ayari-message-dialog[hidden], .ayari-message-backdrop[hidden] { display: none !important; }
.ayari-message-dialog-header { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 24px 26px 18px; background: #f4f7fa; border-bottom: 1px solid #e6edf3; }
.ayari-message-eyebrow { margin: 0 0 7px; color: #9a7423; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.ayari-message-dialog-header h2 { margin: 0 0 6px; color: #153b63; font-size: 23px; font-weight: 750; line-height: 1.2; }
.ayari-message-dialog-header p:last-child { margin: 0; color: #627487; font-size: 13px; line-height: 1.5; }
.ayari-message-close { flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #e7edf3; color: #2c4358; font-size: 25px; line-height: 1; cursor: pointer; }
.ayari-message-close:hover { background: #dbe5ed; color: #153b63; }
.ayari-message-form { padding: 20px 26px 24px; }
.ayari-message-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 13px; }
.ayari-message-fields label { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #344b61; font-size: 12px; font-weight: 700; }
.ayari-message-fields label > span b { color: #b34b43; }
.ayari-message-fields label small { color: #7d8b99; font-weight: 500; }
.ayari-message-full { grid-column: 1 / -1; }
.ayari-message-fields input:not([type="file"]), .ayari-message-fields textarea {
  width: 100%; min-height: 43px; margin: 0; padding: 11px 12px; border: 1px solid #d7e0e8; border-radius: 8px;
  background: #fff; color: #20384d; font: 400 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: none;
}
.ayari-message-fields textarea { min-height: 104px; resize: vertical; }
.ayari-message-fields input:focus, .ayari-message-fields textarea:focus { border-color: #557fa6; outline: 2px solid rgba(85,127,166,.14); }
.ayari-message-fields input[type="file"] { display: block; width: 100%; max-width: 100%; padding: 10px; border: 1px dashed #b9c8d5; border-radius: 8px; background: #f9fbfc; color: #52697d; font-size: 12px; }
.ayari-message-upload-note { display: block; line-height: 1.45; }
.ayari-message-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ayari-message-feedback { display: none; margin: 15px 0 0; padding: 11px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.ayari-message-feedback.is-visible { display: block; }
.ayari-message-feedback.is-success { background: #edf8f0; color: #21653a; border: 1px solid #ccebd5; }
.ayari-message-feedback.is-error { background: #fff1f0; color: #a3372d; border: 1px solid #f3cfcb; }
.ayari-message-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ayari-message-submit { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: #153b63; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.ayari-message-submit:hover { background: #0d2c4b; color: #fff; }
.ayari-message-submit:disabled { opacity: .65; cursor: wait; }
.ayari-message-actions > small { color: #8492a0; font-size: 10px; }
@media (max-width: 540px) {
  .ayari-message-fab { right: 14px; bottom: 14px; min-height: 50px; padding: 0 17px; font-size: 14px; }
  .ayari-message-dialog { right: 8px; bottom: 74px; width: calc(100vw - 16px); max-height: calc(100vh - 94px); border-radius: 15px; }
  .ayari-message-dialog-header { padding: 19px 18px 15px; }
  .ayari-message-dialog-header h2 { font-size: 20px; }
  .ayari-message-form { padding: 16px 18px 20px; }
  .ayari-message-fields { grid-template-columns: 1fr; gap: 13px; }
  .ayari-message-full { grid-column: auto; }
  .ayari-message-actions { align-items: flex-start; flex-direction: column; }
}
