.anaedo-mf-wrap{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1a1a1a;max-width:820px;margin:2rem auto;box-sizing:border-box}
.anaedo-mf-wrap *,.anaedo-mf-wrap *::before,.anaedo-mf-wrap *::after{box-sizing:border-box}
.anaedo-mf-modal{background:#fff;border:1px solid #d9dde3;border-radius:12px;padding:1.5rem;box-shadow:0 8px 30px rgba(0,0,0,.06)}
.anaedo-mf-header{display:flex;gap:1.25rem;align-items:center;border-bottom:2px solid #7a1220;padding-bottom:1rem;margin-bottom:1.25rem;flex-wrap:nowrap}
.anaedo-mf-header>div{flex:1 1 auto;min-width:0}
.anaedo-mf-logo{width:96px!important;max-width:96px!important;height:96px!important;min-width:96px;object-fit:contain;flex:0 0 96px;margin:0!important;display:block;border:0;border-radius:0;box-shadow:none}
.anaedo-mf-header h2{margin:0;font-size:1.25rem;color:#7a1220;letter-spacing:.02em}
.anaedo-mf-sub{margin:.15rem 0;color:#555;font-style:italic}
.anaedo-mf-header h3{margin:.35rem 0 0;font-size:1rem;letter-spacing:.05em}
.anaedo-mf-field{margin-bottom:1rem;display:flex;flex-direction:column;gap:.35rem}
.anaedo-mf-field label{font-weight:600;font-size:.9rem}
.anaedo-mf-field input[type=text],.anaedo-mf-field input[type=email],.anaedo-mf-field input[type=tel],.anaedo-mf-field input[type=date],.anaedo-mf-field input[type=number],.anaedo-mf-field textarea,.anaedo-mf-field select{width:100%;padding:.6rem .7rem;border:1px solid #cfd4dc;border-radius:8px;font-size:1rem;background:#fff}
.anaedo-mf-field input:focus,.anaedo-mf-field textarea:focus,.anaedo-mf-field select:focus{outline:2px solid #7a1220;border-color:#7a1220}
.anaedo-req{color:#c1121f}
.anaedo-mf-consent{border:1px solid #e5e7eb;border-radius:10px;padding:1rem;margin-top:1rem;background:#fafafa}
.anaedo-mf-consent legend{padding:0 .5rem;font-weight:700;color:#7a1220}
.anaedo-mf-terms-box{max-height:200px;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:.75rem;margin-bottom:.75rem}
.anaedo-mf-terms-box pre{white-space:pre-wrap;font-family:inherit;font-size:.85rem;margin:0}
.anaedo-mf-check{display:flex;gap:.55rem;align-items:flex-start;font-size:.9rem;margin:.4rem 0;font-weight:400}
.anaedo-mf-check input{margin-top:.2rem}
.anaedo-mf-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.25rem;justify-content:flex-end}
.anaedo-btn{background:#f3f4f6;color:#111;border:1px solid #d1d5db;border-radius:8px;padding:.6rem 1rem;font-size:.95rem;cursor:pointer;font-weight:500}
.anaedo-btn:hover{background:#e5e7eb}
.anaedo-btn-primary{background:#7a1220;color:#fff;border-color:#7a1220}
.anaedo-btn-primary:hover{background:#5a0d18}
.anaedo-mf-signature{border:1px solid #e5e7eb;border-radius:10px;padding:.75rem;background:#fff}
.anaedo-mf-sig-tabs{display:flex;gap:.5rem;margin-bottom:.5rem}
.anaedo-mf-sig-tab{background:#fff;border:1px solid #d1d5db;padding:.35rem .8rem;border-radius:999px;cursor:pointer;font-size:.85rem}
.anaedo-mf-sig-tab.is-active{background:#7a1220;color:#fff;border-color:#7a1220}
.anaedo-mf-sig-canvas{border:1px dashed #94a3b8;border-radius:8px;background:#fff;width:100%;height:180px;touch-action:none}
.anaedo-mf-sig-tools{margin-top:.4rem}
.anaedo-mf-sig-upload-preview img,.anaedo-mf-photo-preview img{max-width:200px;max-height:200px;border:1px solid #d1d5db;border-radius:8px;margin-top:.5rem}
.anaedo-mf-photo-tools{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.anaedo-mf-camera-video{max-width:100%;background:#000;border-radius:8px;margin-top:.5rem}
.anaedo-mf-review{border:1px solid #e5e7eb;border-radius:10px;padding:1rem;background:#fafafa;max-height:60vh;overflow:auto}
.anaedo-mf-review dl{display:grid;grid-template-columns:1fr 2fr;gap:.5rem 1rem;margin:0}
.anaedo-mf-review dt{font-weight:600;color:#374151}
.anaedo-mf-review dd{margin:0;word-break:break-word}
.anaedo-mf-review img{max-width:180px;border:1px solid #d1d5db;border-radius:8px}
.anaedo-mf-success{text-align:center;padding:2rem 1rem}
.anaedo-mf-success h3{color:#7a1220}
/* Lightbox */
.anaedo-mf-lightbox{position:fixed;inset:0;z-index:99999;display:none;padding:1rem;overflow:auto;max-width:none;margin:0}
.anaedo-mf-lightbox.is-open{display:block}
.anaedo-mf-lightbox .anaedo-mf-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.7)}
.anaedo-mf-lightbox .anaedo-mf-modal{position:relative;z-index:1;max-width:820px;margin:2rem auto}
.anaedo-mf-close{position:absolute;top:.5rem;right:.75rem;background:transparent;border:0;font-size:1.75rem;cursor:pointer;line-height:1;color:#111}
@media (max-width:640px){
  .anaedo-mf-modal{padding:1rem;border-radius:10px}
  .anaedo-mf-header{flex-direction:column;text-align:center;gap:.75rem}
  .anaedo-mf-logo{width:80px!important;max-width:80px!important;height:80px!important;min-width:80px;flex:none;margin:0 auto!important}
  .anaedo-mf-header>div{width:100%}
  .anaedo-mf-review dl{grid-template-columns:1fr}
  .anaedo-mf-actions{justify-content:stretch}
  .anaedo-mf-actions .anaedo-btn{flex:1 1 auto}
}

/* ============ Trigger Button (styled + floating) ============ */
.anaedo-tb-wrap{display:flex;margin:1rem 0}
.anaedo-tb-align-left{justify-content:flex-start}
.anaedo-tb-align-center{justify-content:center}
.anaedo-tb-align-right{justify-content:flex-end}
.anaedo-tb-align-full .anaedo-tb{width:100%}
.anaedo-tb{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;line-height:1.15;border:1px solid transparent;cursor:pointer;font-weight:600;overflow:hidden;transition:transform .15s ease,background .2s ease,color .2s ease,box-shadow .2s ease;background:var(--anaedo-btn-bg);color:var(--anaedo-btn-fg);border-color:var(--anaedo-btn-bg)}
.anaedo-tb:hover{background:var(--anaedo-btn-hover);border-color:var(--anaedo-btn-hover);transform:translateY(-1px)}
.anaedo-tb-label{font-size:1em}
.anaedo-tb-overlay{font-size:.72em;font-weight:500;opacity:.85}
/* Sizes */
.anaedo-tb-size-sm{padding:.4rem .8rem;font-size:.85rem}
.anaedo-tb-size-md{padding:.65rem 1.1rem;font-size:1rem}
.anaedo-tb-size-lg{padding:.9rem 1.5rem;font-size:1.1rem}
.anaedo-tb-size-xl{padding:1.1rem 1.9rem;font-size:1.25rem}
/* Shape */
.anaedo-tb-shape-square{border-radius:2px}
.anaedo-tb-shape-rounded{border-radius:10px}
.anaedo-tb-shape-pill{border-radius:999px}
/* Variants */
.anaedo-tb-variant-outline{background:transparent;color:var(--anaedo-btn-bg);border-color:var(--anaedo-btn-bg)}
.anaedo-tb-variant-outline:hover{background:var(--anaedo-btn-bg);color:var(--anaedo-btn-fg)}
.anaedo-tb-variant-ghost{background:transparent;color:var(--anaedo-btn-bg);border-color:transparent}
.anaedo-tb-variant-ghost:hover{background:color-mix(in oklab,var(--anaedo-btn-bg) 12%, transparent);color:var(--anaedo-btn-bg)}
.anaedo-tb-variant-gradient{background:linear-gradient(135deg,var(--anaedo-btn-bg),var(--anaedo-btn-bg2));border-color:transparent}
.anaedo-tb-variant-gradient:hover{filter:brightness(1.05)}
/* Background style overlays */
.anaedo-tb-bg-shine::before{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);animation:anaedo-shine 3s infinite}
.anaedo-tb-bg-stripes{background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.12) 0 8px,transparent 8px 16px),linear-gradient(var(--anaedo-btn-bg),var(--anaedo-btn-bg))}
.anaedo-tb-bg-dots{background-image:radial-gradient(rgba(255,255,255,.25) 1.2px,transparent 1.4px),linear-gradient(var(--anaedo-btn-bg),var(--anaedo-btn-bg));background-size:10px 10px,auto}
.anaedo-tb-bg-glass{background:color-mix(in oklab,var(--anaedo-btn-bg) 70%, transparent);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-color:color-mix(in oklab,var(--anaedo-btn-fg) 25%, transparent)}
/* Highlight animations */
@keyframes anaedo-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in oklab,var(--anaedo-btn-bg) 55%, transparent)}50%{box-shadow:0 0 0 12px color-mix(in oklab,var(--anaedo-btn-bg) 0%, transparent)}}
@keyframes anaedo-glow{0%,100%{box-shadow:0 0 8px color-mix(in oklab,var(--anaedo-btn-bg) 60%, transparent)}50%{box-shadow:0 0 22px color-mix(in oklab,var(--anaedo-btn-bg) 90%, transparent)}}
@keyframes anaedo-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes anaedo-shine{0%{left:-60%}60%,100%{left:120%}}
.anaedo-tb-hl-pulse{animation:anaedo-pulse 1.8s ease-out infinite}
.anaedo-tb-hl-glow{animation:anaedo-glow 2.2s ease-in-out infinite}
.anaedo-tb-hl-bounce{animation:anaedo-bounce 1.6s ease-in-out infinite}
.anaedo-tb-hl-shine::after{content:"";position:absolute;inset:-2px;border-radius:inherit;border:2px solid color-mix(in oklab,var(--anaedo-btn-bg) 60%, transparent);animation:anaedo-glow 2s ease-in-out infinite;pointer-events:none}
/* Floating */
.anaedo-tb-floating{position:fixed;z-index:99998;margin:0}
.anaedo-tb-fpos-bottom-right{right:1.25rem;bottom:1.25rem}
.anaedo-tb-fpos-bottom-left{left:1.25rem;bottom:1.25rem}
.anaedo-tb-fpos-top-right{right:1.25rem;top:1.25rem}
.anaedo-tb-fpos-top-left{left:1.25rem;top:1.25rem}
.anaedo-tb-fpos-bottom-center{left:50%;bottom:1.25rem;transform:translateX(-50%)}
.anaedo-tb-floating .anaedo-tb{box-shadow:0 10px 30px rgba(0,0,0,.18)}
@media (max-width:640px){
  .anaedo-tb-floating{margin:0}
  .anaedo-tb-fpos-bottom-right,.anaedo-tb-fpos-bottom-left,.anaedo-tb-fpos-top-right,.anaedo-tb-fpos-top-left{left:auto;right:.75rem;bottom:.75rem;top:auto}
  .anaedo-tb-fpos-bottom-center{bottom:.75rem}
}

/* ============ Brand refresh (burgundy + gold) ============ */
.anaedo-mf-wrap{color:#1f1a1a}
.anaedo-mf-modal{border-top:6px solid #7a1220;box-shadow:0 12px 40px rgba(122,18,32,.12)}
.anaedo-mf-header{border-bottom:3px double #d4a72c}
.anaedo-mf-header h2{color:#7a1220;font-weight:700}
.anaedo-mf-header h3{color:#4a4a4a;font-weight:600;text-transform:uppercase;font-size:.95rem}
.anaedo-mf-sub{color:#7a1220;opacity:.85}
.anaedo-mf-field label{color:#2a2a2a}
.anaedo-mf-consent{background:#fdf7ed;border-color:#e8d59a}
.anaedo-mf-consent legend{color:#7a1220}
.anaedo-mf-terms-box{border-color:#e8d59a}
.anaedo-mf-success h3{color:#7a1220}
.anaedo-mf-sig-canvas{background:#fffdf7;border:1px dashed #b48325;cursor:crosshair}
.anaedo-mf-sig-tab.is-active{background:#7a1220;border-color:#7a1220}

/* Header alignment hardening (theme override safe) */
.anaedo-mf-modal .anaedo-mf-header{align-items:center}
.anaedo-mf-modal .anaedo-mf-header h2,
.anaedo-mf-modal .anaedo-mf-header h3,
.anaedo-mf-modal .anaedo-mf-sub{line-height:1.25;padding:0;text-align:left;overflow-wrap:break-word}
.anaedo-mf-modal .anaedo-mf-header h2{font-size:clamp(1.05rem,2.4vw,1.4rem)}
.anaedo-mf-modal .anaedo-mf-header h3{font-size:clamp(.85rem,1.8vw,1rem)}
@media(max-width:640px){
  .anaedo-mf-modal .anaedo-mf-header h2,
  .anaedo-mf-modal .anaedo-mf-header h3,
  .anaedo-mf-modal .anaedo-mf-sub{text-align:center}
}

/* ============ v1.2.0 Theming engine (per-form colours, text & form factors) ============ */
.anaedo-mf-wrap{
  --anaedo-primary:#7a1220;
  --anaedo-primary-dark:#5a0d18;
  --anaedo-accent:#d4a72c;
  --anaedo-text:#1f1a1a;
  --anaedo-muted:#555555;
  --anaedo-surface:#ffffff;
  --anaedo-panel:#fdf7ed;
  --anaedo-border:#d9dde3;
  --anaedo-btn-text:#ffffff;
  --anaedo-font:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --anaedo-base:1rem;
  --anaedo-title:1.25rem;
  --anaedo-heading:.95rem;
  --anaedo-logo:96px;
  --anaedo-pad:1.5rem;
  --anaedo-radius:12px;
  --anaedo-width:820px;
}
.anaedo-mf-wrap{font-family:var(--anaedo-font);color:var(--anaedo-text);font-size:var(--anaedo-base);max-width:var(--anaedo-width)}
.anaedo-mf-wrap .anaedo-mf-modal{background:var(--anaedo-surface);border-color:var(--anaedo-border);border-top-color:var(--anaedo-primary);border-radius:var(--anaedo-radius);padding:var(--anaedo-pad)}
.anaedo-mf-lightbox .anaedo-mf-modal{max-width:var(--anaedo-width)}
.anaedo-mf-wrap .anaedo-mf-header{border-bottom-color:var(--anaedo-accent)}
.anaedo-mf-wrap .anaedo-mf-logo{width:var(--anaedo-logo)!important;max-width:var(--anaedo-logo)!important;height:var(--anaedo-logo)!important;min-width:var(--anaedo-logo);flex:0 0 var(--anaedo-logo)}
.anaedo-mf-wrap .anaedo-mf-modal .anaedo-mf-header h2{color:var(--anaedo-primary);font-size:var(--anaedo-title)}
.anaedo-mf-wrap .anaedo-mf-modal .anaedo-mf-header h3{color:var(--anaedo-muted);font-size:var(--anaedo-heading)}
.anaedo-mf-wrap .anaedo-mf-sub{color:var(--anaedo-primary)}
.anaedo-mf-wrap .anaedo-mf-field label{color:var(--anaedo-text)}
.anaedo-mf-wrap .anaedo-mf-field input:focus,.anaedo-mf-wrap .anaedo-mf-field textarea:focus,.anaedo-mf-wrap .anaedo-mf-field select:focus{outline-color:var(--anaedo-primary);border-color:var(--anaedo-primary)}
.anaedo-mf-wrap .anaedo-mf-consent{background:var(--anaedo-panel);border-color:color-mix(in oklab,var(--anaedo-accent) 45%,transparent)}
.anaedo-mf-wrap .anaedo-mf-consent legend{color:var(--anaedo-primary)}
.anaedo-mf-wrap .anaedo-mf-terms-box{border-color:color-mix(in oklab,var(--anaedo-accent) 45%,transparent)}
.anaedo-mf-wrap .anaedo-mf-review{background:var(--anaedo-panel);border-color:color-mix(in oklab,var(--anaedo-accent) 35%,transparent)}
.anaedo-mf-wrap .anaedo-mf-success h3{color:var(--anaedo-primary)}
.anaedo-mf-wrap .anaedo-mf-sig-canvas{border-color:var(--anaedo-accent)}
.anaedo-mf-wrap .anaedo-mf-sig-tab.is-active{background:var(--anaedo-primary);border-color:var(--anaedo-primary);color:var(--anaedo-btn-text)}
.anaedo-mf-wrap .anaedo-btn-primary{background:var(--anaedo-primary);border-color:var(--anaedo-primary);color:var(--anaedo-btn-text)}
.anaedo-mf-wrap .anaedo-btn-primary:hover{background:var(--anaedo-primary-dark);border-color:var(--anaedo-primary-dark)}
