/* Letterhead Forms. Colours come from Settings as CSS variables on .lhf-wrap.
   Fonts follow the theme; set --lhf-display for headings. */
.lhf-wrap{--lhf-display:inherit;--lhf-danger:#A83A2C;--lhf-radius:2px;color:var(--lhf-ink);font-size:16px;line-height:1.55}
.lhf-wrap *,.lhf-wrap *::before,.lhf-wrap *::after{box-sizing:border-box}
.lhf-form{margin:0}
.lhf-intro{margin:0 0 24px}
.lhf-section{border:0;margin:0 0 32px;padding:0;min-width:0}
.lhf-section-title{display:flex;align-items:center;gap:12px;font-family:var(--lhf-display);font-size:1.35em;line-height:1.2;font-weight:500;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid var(--lhf-line);width:100%}
.lhf-step{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--lhf-button);color:var(--lhf-button-text);font:600 13px/1 system-ui,sans-serif}
.lhf-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
.lhf-field{grid-column:1/-1;min-width:0;margin:0;padding:0;border:0}
.lhf-field.lhf-half{grid-column:auto}
/* 1.1.3: two fields side by side always start their boxes at the same height.
   In a half-width field the label comes first, then the box, then the hint and the error
   (the box never moves down because a neighbour has a hint). */
div.lhf-field.lhf-half{display:flex;flex-direction:column;align-self:start}
div.lhf-field.lhf-half>*{order:2}
div.lhf-field.lhf-half>.lhf-label{order:1}
div.lhf-field.lhf-half>.lhf-help{order:3;margin:6px 0 0}
div.lhf-field.lhf-half>.lhf-error{order:4}
.lhf-field[hidden]{display:none}
@media (max-width:560px){.lhf-grid{grid-template-columns:1fr}.lhf-field.lhf-half{grid-column:1/-1}}
.lhf-label{display:block;font-weight:600;font-size:15px;margin:0 0 6px;padding:0;color:var(--lhf-ink)}
.lhf-optional{font-weight:400;font-style:italic;color:var(--lhf-label);font-size:14px;margin-left:4px}
.lhf-help{margin:-2px 0 8px;font-size:14px;line-height:1.45;opacity:.85}
.lhf-input{display:block;width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--lhf-ink);border-radius:var(--lhf-radius);background:#fff;color:var(--lhf-ink);font:inherit;font-size:16px;line-height:1.4;box-shadow:none;-webkit-appearance:none;appearance:none}
select.lhf-input{background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) 21px,calc(100% - 15px) 21px;background-size:5px 5px;background-repeat:no-repeat;padding-right:40px}
textarea.lhf-input{min-height:140px;resize:vertical}
.lhf-input:focus,.lhf-choice input:focus-visible+span,.lhf-agree input:focus-visible,.lhf-file:focus-visible+.lhf-drop-label,.lhf-btn:focus-visible,.lhf-remove:focus-visible{outline:3px solid var(--lhf-accent);outline-offset:2px}
.lhf-choices{display:flex;flex-wrap:wrap;gap:8px}
.lhf-choice{position:relative;display:inline-flex;cursor:pointer;margin:0}
.lhf-choice input{position:absolute;opacity:0;width:1px;height:1px}
.lhf-choice span{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:9px 16px 9px 12px;border:1px solid var(--lhf-ink);border-radius:var(--lhf-radius);background:#fff;font-size:15px;line-height:1.3}
.lhf-choice span::before{content:"";flex:none;width:16px;height:16px;border:1.5px solid var(--lhf-ink);border-radius:50%;background:#fff}
.lhf-choice input:checked+span{background:var(--lhf-button);border-color:var(--lhf-button);color:#fff;font-weight:600}
.lhf-choice input:checked+span::before{border-color:var(--lhf-button-text);background:radial-gradient(circle,var(--lhf-button-text) 0 4px,transparent 4.5px)}
.lhf-conditions{margin:0 0 20px;padding:16px 20px 16px 40px;background:var(--lhf-paper);font-size:14.5px;line-height:1.55}
.lhf-conditions li{margin:0 0 6px}
.lhf-conditions li::marker{color:var(--lhf-label);font-weight:600}
.lhf-agree{display:flex;gap:12px;align-items:flex-start;cursor:pointer;font-weight:600;font-size:15px;line-height:1.45}
.lhf-agree input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--lhf-button)}
.lhf-drop{position:relative}
.lhf-file{position:absolute;opacity:0;width:1px;height:1px}
.lhf-drop-label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:120px;padding:20px;border:1.5px dashed var(--lhf-ink);border-radius:var(--lhf-radius);background:#fff;text-align:center;cursor:pointer;transition:background .15s}
.lhf-drop-label:hover,.lhf-drop.is-over .lhf-drop-label{background:var(--lhf-paper)}
.lhf-drop-icon{width:30px;height:24px;border:2px solid var(--lhf-label);border-radius:3px;position:relative;margin-bottom:6px}
.lhf-drop-icon::before{content:"";position:absolute;left:7px;top:5px;width:8px;height:8px;border:2px solid var(--lhf-label);border-radius:50%}
.lhf-drop-icon::after{content:"";position:absolute;right:-2px;bottom:-2px;width:0;height:0;border-left:9px solid transparent;border-bottom:9px solid var(--lhf-label)}
.lhf-has-files .lhf-drop-label{min-height:64px;flex-direction:row}
.lhf-has-files .lhf-drop-icon{margin:0 6px 0 0}
.lhf-previews{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.lhf-previews:empty{display:none}
.lhf-previews li{display:flex;align-items:center;gap:12px;padding:8px;border:1px solid var(--lhf-line);background:#fff;border-radius:var(--lhf-radius)}
.lhf-previews img,.lhf-file-icon{flex:none;width:56px;height:56px;object-fit:cover;border-radius:var(--lhf-radius);background:var(--lhf-paper)}
.lhf-file-icon{display:grid;place-items:center;font:600 11px/1 system-ui,sans-serif;color:var(--lhf-label)}
.lhf-file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.lhf-remove{flex:none;border:0;background:none;color:var(--lhf-danger);font:inherit;font-size:14px;text-decoration:underline;cursor:pointer;padding:8px}
.lhf-small{font-size:13px;opacity:.8;margin:0}
.lhf-error{margin:6px 0 0;color:var(--lhf-danger);font-weight:600;font-size:14px}
.lhf-error::before{content:"! ";font-weight:700}
.lhf-invalid .lhf-input,.lhf-invalid .lhf-drop-label,.lhf-invalid .lhf-choice span{border-color:var(--lhf-danger);border-width:2px}
.lhf-status{margin:0 0 24px;padding:14px 16px;border-left:4px solid var(--lhf-danger);background:#FBEDEA;color:var(--lhf-ink);font-weight:600}
.lhf-status[hidden]{display:none}
.lhf-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.lhf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding-top:8px;border-top:1px solid var(--lhf-line);padding-top:24px}
.lhf-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 28px;border:0;border-radius:var(--lhf-radius);background:var(--lhf-button);color:var(--lhf-button-text);font:inherit;font-weight:600;font-size:16px;cursor:pointer}
.lhf-btn:hover{filter:brightness(.88)}
.lhf-btn[disabled]{opacity:.7;cursor:progress}
.is-sending .lhf-btn-label::before{content:"";display:inline-block;width:14px;height:14px;margin-right:10px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:lhf-spin .8s linear infinite}
@keyframes lhf-spin{to{transform:rotate(360deg)}}
@media (max-width:560px){.lhf-btn{width:100%}}
.lhf-success{padding:28px 28px 24px;background:var(--lhf-paper);border-top:3px solid var(--lhf-accent);outline:0}
.lhf-eyebrow{display:block;font-weight:600;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--lhf-label);margin:0 0 8px}
.lhf-success-title{font-family:var(--lhf-display);font-size:1.5em;font-weight:500;line-height:1.25;margin:0 0 12px}
.lhf-ref{margin:0 0 16px}
.lhf-ref b{font-size:1.15em;letter-spacing:.02em}
.lhf-next{margin:0;padding-left:22px}
.lhf-next li{margin:0 0 6px}
.lhf-admin-note{padding:12px;border:1px dashed currentColor}
@media (prefers-reduced-motion:reduce){.is-sending .lhf-btn-label::before{animation:none}.lhf-drop-label{transition:none}}
.lhf-field,.lhf-status,.lhf-success{scroll-margin-top:140px}
@media (max-width:560px){.lhf-success{padding:22px 20px}.lhf-success-title{font-size:1.3em}}
/* 1.1.0 — one tick box per condition */
.lhf-cond-lead{margin:0 0 10px}
.lhf-cond-list{gap:0!important;background:var(--lhf-paper);padding:6px 0}
.lhf-cond{margin:0!important;border-bottom:1px solid var(--lhf-line)}
.lhf-cond:last-child{border-bottom:0}
.lhf-cond .lhf-agree{display:flex;gap:10px;align-items:flex-start;padding:12px 16px;min-height:44px;box-sizing:border-box;font-weight:400;font-size:14.5px;line-height:1.5;cursor:pointer}
.lhf-cond .lhf-agree input{width:22px;height:22px;min-width:22px;margin:0}
.lhf-cond-n{flex:none;min-width:1.4em;color:var(--lhf-label);font-weight:600}
.lhf-cond .lhf-agree:has(input:checked){background:rgba(255,255,255,.55)}
.lhf-cond .lhf-error{margin:0 16px 10px 64px}
.lhf-suffix-wrap{position:relative;display:block}.lhf-suffix-wrap .lhf-input{padding-right:72px}.lhf-suffix{position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--lhf-muted,#5b6770);font-size:15px}
