/* Morlix Forms presentation bridge. The active theme owns the visual language:
   themes can override --morlix-forms-* without patching the module. */
.mx-module-forms {
  --morlix-forms-text:var(--morlix-color-text,inherit);
  --morlix-forms-muted:var(--morlix-color-muted,#667085);
  --morlix-forms-surface:var(--morlix-color-surface,#fff);
  --morlix-forms-border:var(--morlix-color-border,#d0d5dd);
  --morlix-forms-accent:var(--morlix-color-primary,#1c334d);
  --morlix-forms-radius:var(--morlix-radius,0px);
  --morlix-forms-gap:var(--morlix-space-sm,12px);
  color:var(--morlix-forms-text);
}
.mx-module-forms .morlix-forms-error {
  display:block;color:var(--morlix-color-danger,#b42318);font-size:.875em;margin-top:5px;
}
.mx-module-forms .has-error :where(.mx-input,.mx-select,.mx-textarea) {
  border-color:var(--morlix-color-danger,#b42318);
}
.mx-module-forms .morlix-forms-checkbox {
  display:flex;align-items:flex-start;gap:var(--morlix-forms-gap);
  color:var(--morlix-forms-text);cursor:pointer;
}
.mx-module-forms .morlix-forms-checkbox input {margin-top:.25em;flex-shrink:0;}
.mx-module-forms :where(.mx-input,.mx-select,.mx-textarea) {
  width:100%;max-width:100%;box-sizing:border-box;
  font:inherit;color:var(--morlix-forms-text);
  border:1px solid var(--morlix-forms-border);
  border-radius:var(--morlix-forms-radius);
  background:var(--morlix-forms-surface);
}
.mx-module-forms .mx-field {min-width:0;}
.mx-module-forms .mx-form {max-width:100%;}
.mx-module-forms [data-morlix-form-button][disabled] {opacity:.65;cursor:wait;}
.mx-module-forms .morlix-forms-hp {
  position:absolute!important;left:-10000px!important;width:1px!important;
  height:1px!important;overflow:hidden!important;
}
.mx-module-forms[data-morlix-form-appearance="standard"] {
  --morlix-forms-text:#17202f;--morlix-forms-muted:#667085;
  --morlix-forms-border:#cbd5e1;--morlix-forms-surface:#fff;
  --morlix-forms-accent:#183c61;--morlix-forms-radius:3px;
  font-family:system-ui,-apple-system,sans-serif;
}
.mx-module-forms[data-morlix-form-appearance="standard"] .mx-card {
  background:#fff;color:#17202f;border:1px solid #dce3ec;
  padding:clamp(20px,3vw,38px);border-radius:3px;box-sizing:border-box;
}
.mx-module-forms[data-morlix-form-appearance="standard"] :where(.mx-input,.mx-select,.mx-textarea) {
  min-height:43px;padding:10px 12px;margin-top:6px;
}
.mx-module-forms[data-morlix-form-appearance="standard"] .mx-button {
  display:inline-flex;align-items:center;justify-content:center;
  background:#183c61;color:#fff;border:1px solid #183c61;
  padding:12px 20px;text-decoration:none;border-radius:3px;cursor:pointer;
}
.mx-module-forms[data-morlix-form-appearance="standard"] .mx-label {
  display:block;margin-bottom:2px;
}
.mx-module-forms[data-morlix-form-appearance="standard"] .mx-field {margin-bottom:16px;}
.mx-module-forms[data-morlix-form-appearance="standard"] .mx-muted {color:#667085;}
.mx-module-forms[data-morlix-form-appearance="standard"] .mx-stack>*+* {margin-top:14px;}
/* Independent modal namespace avoids any dependency on beta-access/Design Studio
   modal controllers and never modifies .morlix-modal or data-morlix-beta-open. */
body.morlix-forms-dialog-open {overflow:hidden;}
.morlix-forms-dialog {
  position:fixed;inset:0;z-index:2147482000;
  display:flex;align-items:center;justify-content:center;
  padding:20px;box-sizing:border-box;isolation:isolate;
}
.morlix-forms-dialog-overlay {
  position:absolute;inset:0;background:rgba(10,18,29,.68);
  backdrop-filter:blur(5px);cursor:default;
}
.morlix-forms-dialog-panel {
  position:relative;isolation:isolate;width:min(100%,660px);
  max-height:min(92vh,920px);max-height:min(92dvh,920px);overflow-y:auto;
  overscroll-behavior:contain;background:var(--morlix-forms-modal-bg,#fff);
  color:var(--morlix-forms-modal-text,#131c2a);
  border-radius:var(--morlix-forms-modal-radius,4px);
  box-shadow:0 25px 90px rgba(0,0,0,.26);
  padding:clamp(18px,3vw,32px);box-sizing:border-box;
  outline:0;
}
.morlix-forms-dialog-close {
  position:absolute;z-index:2;top:8px;right:10px;
  border:0;background:transparent;color:inherit;
  width:40px;height:40px;cursor:pointer;display:grid;place-items:center;
  font-size:30px;line-height:1;
}
.morlix-forms-dialog-content {padding-top:16px;min-height:70px;}
.morlix-forms-dialog-content>.mx-module-forms>.mx-container {
  width:100%;max-width:100%;margin:0;padding:0;box-sizing:border-box;
}
.morlix-forms-dialog-content .mx-module-forms .mx-card {
  box-shadow:none!important;border:0!important;
  padding:0!important;max-width:100%;
}
.morlix-forms-dialog-content .mx-module-forms .mx-title {
  padding-right:24px;
}
.morlix-forms-dialog-content .mx-module-forms .mx-form {
  padding-bottom:6px;
}
.morlix-forms-dialog-content .mx-module-forms .mx-input,
.morlix-forms-dialog-content .mx-module-forms .mx-textarea,
.morlix-forms-dialog-content .mx-module-forms .mx-select {
  min-height:40px;
}
.morlix-forms-dialog-error {color:#b42318;margin:0 0 14px;}
.morlix-forms-dialog-success {font-size:1.1rem;padding:12px 4px;}
@media(max-width:620px){
  .morlix-forms-dialog{padding:0;align-items:stretch;}
  .morlix-forms-dialog-panel{
    width:100%;height:100%;max-height:100dvh;
    border-radius:0;box-shadow:none;padding:18px 18px 28px;
  }
  .morlix-forms-dialog-content{padding-top:24px;}
}
