:root {
  --lead-background: #17151d;
  --lead-foreground: #f5f4f7;
  --lead-muted: #aaa6b5;
  --lead-border: #403b4b;
  --lead-primary: #dfbc67;
  --lead-primary-foreground: #17151d;
  --lead-danger: #ef8c89;
  --lead-backdrop: #08070cbf;
  --lead-shadow: 0 24px 80px #00000066;
}
.lead-capture-dialog { width: min(620px, calc(100% - 32px)); max-height: 90dvh; padding: 28px; border: 1px solid var(--lead-border); border-radius: 8px; background: var(--lead-background); color: var(--lead-foreground); box-shadow: var(--lead-shadow); font-family: Montserrat, Arial, sans-serif; letter-spacing: 0; }
.lead-capture-dialog::backdrop { background: var(--lead-backdrop); }
.lead-capture-dialog h2 { margin: 0 35px 24px 0; font-size: 24px; line-height: 1.3; color: var(--lead-foreground); }
.lead-capture-close { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; background: transparent; border: 0; color: var(--lead-muted); cursor: pointer; font-size: 26px; line-height: 1; }
.lead-capture-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-capture-form label, .lead-extra label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 500; }
.lead-capture-form input, .lead-capture-form select, .lead-capture-form textarea { width: 100%; min-width: 0; box-sizing: border-box; background: var(--lead-background); color: var(--lead-foreground); border: 1px solid var(--lead-border); border-radius: 5px; font: inherit; font-size: 14px; padding: 11px 12px; }
.lead-capture-form textarea { min-height: 95px; resize: vertical; }
.lead-capture-form input:focus, .lead-capture-form select:focus, .lead-capture-form textarea:focus { outline: 2px solid var(--lead-primary); outline-offset: 2px; }
.lead-capture-wide { grid-column: 1 / -1; }
.lead-capture-submit { min-height: 44px; padding: 10px 20px; font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 5px; background: var(--lead-primary); color: var(--lead-primary-foreground); cursor: pointer; }
.lead-capture-submit:disabled { opacity: .6; cursor: wait; }
.lead-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; grid-column: 1 / -1; margin: 16px 0; }
.lead-extra input, .lead-extra select { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; padding: 11px 12px; border: 1px solid var(--lead-border); border-radius: 5px; background: var(--lead-background); color: var(--lead-foreground); }
.lead-consent { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 9px !important; grid-column: 1 / -1; margin: 4px 0 12px; font-size: 12px !important; font-weight: 400 !important; line-height: 1.6; }
.lead-consent input { width: 16px !important; height: 16px !important; flex: 0 0 16px; margin-top: 3px; accent-color: var(--lead-primary); }
.lead-capture-note { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.6; }
.lead-capture-note[data-error="true"] { color: var(--lead-danger); }
.lead-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden; }
@media (max-width: 540px) { .lead-capture-dialog { padding: 22px 18px; } .lead-capture-form, .lead-extra { grid-template-columns: 1fr; } }
.lead-phone-row { display: grid !important; grid-template-columns: minmax(90px, 42%) minmax(0, 1fr); gap: 8px; width: 100%; }
.lead-phone-row > select.lead-phone-country, .lead-phone-row > input { width: 100%; min-width: 0; box-sizing: border-box; margin: 0; }
.lead-phone-row > select.lead-phone-country { padding: 11px 7px; font: inherit; font-size: 12px; border: 1px solid var(--lead-border); border-radius: 5px; background: var(--lead-background); color: var(--lead-foreground); }
.lead-phone-country:focus-visible { outline: 2px solid var(--lead-primary); outline-offset: 2px; }

html[data-mmg-theme="light"] { --lead-background: #fffaf1; --lead-foreground: #261237; --lead-muted: #695375; --lead-border: #c5b6d2; --lead-primary: #dfbc67; --lead-danger: #a82528; }
.lead-phone-row > input { color: var(--lead-foreground) !important; -webkit-text-fill-color: var(--lead-foreground) !important; caret-color: var(--lead-foreground); }
.lead-phone-row > input::placeholder { color: var(--lead-muted); -webkit-text-fill-color: var(--lead-muted); opacity: 1; }
.lead-extra input, .lead-extra select { color: var(--lead-foreground); -webkit-text-fill-color: var(--lead-foreground); }
html[data-mmg-theme="light"] form[data-lead-ready="true"] :is(input:not([type="checkbox"]),select,textarea) { background: var(--lead-background) !important; color: var(--lead-foreground) !important; -webkit-text-fill-color: var(--lead-foreground) !important; border-color: var(--lead-border); caret-color: var(--lead-foreground); }
