/* Lead Forms — minimal default styles. Inherits the theme's font and colours.
   Turn off in Forms > Settings > "Default styles" to style everything in your theme. */

.lf-form-wrap { --lf-gap: 16px; --lf-radius: 6px; --lf-border: rgba(0, 0, 0, .18); --lf-error: #c62828; --lf-accent: currentColor; }
.lf-form { margin: 0; }
.lf-fields { display: flex; flex-wrap: wrap; gap: var(--lf-gap); }
.lf-field { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lf-w-half { flex-basis: calc(50% - var(--lf-gap) / 2); }
.lf-w-third { flex-basis: calc(33.333% - var(--lf-gap) * 2 / 3); }
@media (max-width: 640px) { .lf-w-half, .lf-w-third { flex-basis: 100%; } }

.lf-field[hidden], .lf-cond-pending { display: none !important; }
.lf-label { font-weight: 600; font-size: .95em; }
.lf-req { color: var(--lf-error); }

.lf-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius); font: inherit; background: #fff; color: inherit; }
textarea.lf-input { resize: vertical; }
.lf-input:focus { outline: 2px solid rgba(0, 0, 0, .25); outline-offset: 1px; }
.lf-file { padding: 8px; }

.lf-choices { display: flex; flex-direction: column; gap: 6px; }
.lf-choice { display: flex; align-items: flex-start; gap: 8px; font-weight: normal; cursor: pointer; }
.lf-choice input { margin-top: .25em; }

.lf-help, .lf-file-note { opacity: .7; font-size: .85em; }
.lf-error { color: var(--lf-error); font-size: .85em; }
.lf-error:empty { display: none; }
.lf-has-error .lf-input { border-color: var(--lf-error); }

.lf-notice { margin: 0 0 var(--lf-gap); padding: 10px 14px; border-radius: var(--lf-radius); background: #fdecea; color: var(--lf-error); }
.lf-notice[hidden] { display: none; }
.lf-success { padding: 14px 16px; border-radius: var(--lf-radius); background: #e8f5e9; color: #1b5e20; }
.lf-success:focus { outline: none; }
.lf-success p:last-child { margin-bottom: 0; }

.lf-captcha { margin-top: var(--lf-gap); }
.lf-submit-row { margin-top: calc(var(--lf-gap) + 4px); }
.lf-submit { cursor: pointer; padding: 11px 26px; border-radius: var(--lf-radius); font: inherit; font-weight: 600; }
.lf-busy .lf-submit { opacity: .6; cursor: progress; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.lf-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
