/* Services 11.4.3 dialog styles consolidated for homepage reuse, no catalog rules. */
html.lead-modal-open{overflow:hidden}
.lead-dialog:not([open]){display:none}
.lead-dialog{width:min(600px,calc(100% - 40px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;margin:auto;padding:0;border:1px solid #c9d4c5;border-radius:10px;background:var(--paper);color:var(--ink);box-sizing:border-box}
.lead-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.lead-dialog::backdrop{background:rgba(4,27,23,.65)}
.lead-dialog-header{position:relative;flex-shrink:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 28px 18px;background:var(--paper);border-bottom:1px solid var(--line)}
.lead-dialog-header>div{min-width:0}
.lead-dialog h2{font-size:36px;line-height:1.12;letter-spacing:-.7px;max-width:340px}
.lead-close{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #80998b;border-radius:4px;background:transparent;color:var(--green);font:28px/1 var(--sans);cursor:pointer}
.lead-close:hover{background:#e8eee5}
.lead-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:16px;padding:20px 28px 28px}
.lead-service-context{white-space:normal;overflow-wrap:anywhere;max-width:100%;font-size:14px;line-height:1.5;margin-bottom:16px;color:var(--muted)}
.lead-preview-note{margin:0 0 18px;padding:10px 12px;border-left:2px solid #80998b;background:#e9ede4;font-size:13px;line-height:1.55;color:var(--ink)}
[data-lead-form]{display:grid;gap:18px;margin:0}
[data-lead-form] label{display:grid;gap:7px;min-width:0;font:600 14px/1.45 var(--sans)}
[data-lead-form] :is(input,textarea){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:46px;margin:0;padding:11px 12px;border:1px solid #8a9d8f;border-radius:4px;background:#fff;color:var(--ink);font:400 16px/1.4 var(--sans)}
[data-lead-form] input[type="hidden"]{display:none}
[data-lead-form] textarea{resize:vertical;min-height:104px}
[data-lead-form] .field-optional{font-weight:400;color:var(--muted)}
.reply-channels{min-width:0;margin:0;padding:0;border:0}
.reply-channels legend{padding:0;margin-bottom:10px;font:600 14px/1.5 var(--sans)}
.channel-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
[data-lead-form] label.channel-chip{display:flex;align-items:center;gap:8px;min-height:46px;padding:10px 12px;border:1px solid #9dac9b;border-radius:24px;font-size:14px;font-weight:400;cursor:pointer}
[data-lead-form] .channel-chip input{appearance:auto;flex:0 0 16px;width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:var(--green)}
[data-lead-form] label.channel-chip,[data-lead-form] label.channel-chip input[type="radio"]{-webkit-tap-highlight-color:transparent}
[data-lead-form] .channel-chip:has(input:checked){background:var(--green);border-color:var(--green);color:var(--paper)}
[data-lead-form] .reply-field label{margin-bottom:7px}
.field-help{font-size:13px;font-weight:400;line-height:1.6;color:var(--muted);margin-top:7px}
.field-error{font-size:13px;line-height:1.5;color:#843c29;margin-top:6px}
.field-error:empty{display:none}
[data-lead-form] [aria-invalid="true"]{border-color:#843c29}
[data-lead-form] label.lead-consent{display:flex;align-items:flex-start;gap:12px;font:400 13px/1.6 var(--sans);min-height:44px;cursor:pointer}
[data-lead-form] .lead-consent input{appearance:auto;flex:0 0 20px;width:20px;height:20px;min-height:0;padding:0;margin:1px 0 0;accent-color:var(--green)}
[data-legal-status="LEGAL_PENDING"]{margin-top:-10px}
.lead-actions{display:flex;flex-direction:column;gap:12px;padding-top:4px}
.lead-actions button[type="submit"]{box-sizing:border-box;width:100%;min-height:52px;padding:13px 20px;border:1px solid var(--green);border-radius:6px;background:var(--green);color:#fff;font:600 16px/1.4 var(--sans);cursor:pointer;transition:background-color .15s,border-color .15s}
.lead-actions button[type="submit"]:not(:disabled):hover{background:#245440;border-color:#245440}
.lead-actions button[type="submit"]:not(:disabled):active{background:#102c22;border-color:#102c22}
.lead-actions button[type="submit"]:focus-visible{outline:3px solid #b47d30;outline-offset:3px}
.lead-actions button[type="submit"]:disabled{background:#e4e7df;border-color:#c1cabc;color:#616b60;cursor:not-allowed}
[data-lead-form][aria-busy="true"] .lead-actions button[type="submit"]{background:#315a49;border-color:#315a49;color:#fff;cursor:wait}
[data-lead-form] :is(input,textarea){scroll-margin-block:16px}
[data-delivery-state="error"] .field-help[role="status"]{color:#843c29}
.lead-dialog :is(button,a,input,textarea):focus-visible,[data-lead-form] :is(input,textarea):focus-visible{outline:3px solid #b47d30;outline-offset:3px}
/* Radio focus belongs to the whole pill; preserve native fallback without :has(). */
@supports selector(.channel-chip:has(input:focus-visible)){
 [data-lead-form] label.channel-chip:has(input[type="radio"]:focus-visible){outline:3px solid #b47d30;outline-offset:3px}
 [data-lead-form] .channel-chip input[type="radio"]:focus-visible{outline:none}
}
@media(max-width:700px){
 .lead-dialog{inset:0;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;border:0;border-radius:0}
 .lead-dialog-header{padding:calc(20px + env(safe-area-inset-top)) 20px 16px;gap:8px}
 .lead-dialog h2{font-size:32px;max-width:none}
 .lead-dialog-body{padding:20px 20px calc(28px + env(safe-area-inset-bottom))}
 .channel-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .channel-options .channel-chip:last-child{grid-column:auto}
 [data-lead-form] label.channel-chip{min-height:48px}
}

[data-lead-form] [data-legal-status] a{text-decoration:underline;text-underline-offset:3px}

/* One shared confirmation for modal and inline forms; generated once by lead-preview.js. */
[data-lead-form][hidden],.lead-success[hidden]{display:none}
.lead-success{box-sizing:border-box;display:grid;justify-items:center;align-content:center;gap:20px;width:100%;min-height:360px;padding:32px 12px 48px;text-align:center;animation:lead-confirm-in .2s ease-out}
.lead-success-icon{display:grid;place-items:center;width:68px;height:68px;border:1px solid #9eb4a3;border-radius:50%;background:#e8eee5;color:var(--green);font:400 36px/1 var(--sans)}
.lead-success h2,.lead-dialog .lead-success h2{max-width:440px;margin:0;color:var(--green);font-size:36px;line-height:1.15;letter-spacing:-.6px}
.lead-success h2:focus-visible{outline:2px solid #b47d30;outline-offset:7px;border-radius:4px}
.lead-success p{max-width:32ch;margin:0;color:var(--muted);font:400 16px/1.6 var(--sans)}
.lead-success-close{box-sizing:border-box;min-height:52px;min-width:180px;margin-top:8px}
.lead-dialog.is-success .lead-dialog-header{justify-content:flex-end;border-bottom:0;padding-bottom:0}
.lead-dialog.is-success .lead-dialog-header>div{display:none}
.lead-dialog.is-success .lead-dialog-body{display:flex;flex:1;align-items:center}
@keyframes lead-confirm-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){
 .lead-success{min-height:320px;padding:24px 0 44px}
 .lead-success h2,.lead-dialog .lead-success h2{font-size:30px;letter-spacing:-.4px}
 .lead-success-close{width:100%}
}
@media(prefers-reduced-motion:reduce){.lead-success{animation:none}}

/* Sending progress stays on the submit button; no second progress line. */
[data-lead-form][aria-busy="true"] button[type="submit"]::before{content:"";display:inline-block;width:14px;height:14px;margin-inline-end:10px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:lead-spin .8s linear infinite}
@keyframes lead-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){[data-lead-form][aria-busy="true"] button[type="submit"]::before{animation:none}}
