/* Styles are scoped to the sticky CTA dialog; the inline application form is independent. */
#stickyCta .cta-label { min-width: 0; }
@media (max-width: 600px) {
    #stickyCta .cta-link { min-height: 52px; padding: 13px 40px 13px 10px; gap: 12px; font-size: clamp(12px, 3.65vw, 15px); font-weight: 500; letter-spacing: 0; line-height: 1.4; }
    #stickyCta .cta-label { white-space: nowrap; }
    #stickyCta .cta-link > i { flex: 0 0 18px; font-size: 18px; animation: none; }
    #stickyCta .close-btn { right: 8px; width: 28px; height: 28px; }
}
#leadModal {
    --lead-ink: #18332f;
    --lead-muted: #64756f;
    --lead-border: #dce5df;
    --lead-accent: #16764f;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 30, 25, .58);
    backdrop-filter: blur(5px);
    color: var(--lead-ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
#leadModal[hidden], #leadModal [hidden] { display: none !important; }
#leadModal *, #leadModal *::before, #leadModal *::after { box-sizing: border-box; }
#leadModal .lead-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100dvh - 48px);
    margin: 0;
    padding: 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 90px rgba(0, 25, 15, .24);
    transform: none;
}
#leadModal .lead-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; color: #56675f; background: #f1f5f2; font-size: 18px;
}
#leadModal .lead-modal-close:hover { background: #e4eee7; }
#leadModal .lead-modal-header { margin: 0 0 26px; text-align: left; padding: 0; }
#leadModal .lead-eyebrow { display: block; margin: 0 48px 8px 0; color: var(--lead-accent); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
#leadModal h2 { margin: 0 38px 8px 0; font: 650 27px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.6px; color: var(--lead-ink); }
#leadModal .lead-modal-header > p { margin: 0; color: var(--lead-muted); font-size: 14px; line-height: 1.6; }
#leadModal .lead-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 24px 0 0; padding: 0; }
#leadModal .lead-steps li { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 10px; background: #f5f7f5; color: #6c7972; font-size: 13px; font-weight: 550; }
#leadModal .lead-step-number { flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e6ece7; color: #6c7972; font-size: 12px; }
#leadModal .lead-steps [aria-current="step"] { background: #eaf5ee; color: #176543; }
#leadModal .lead-steps [aria-current="step"] .lead-step-number { background: var(--lead-accent); color: #fff; }
#leadModal .lead-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
#leadModal .lead-full { grid-column: 1 / -1; }
#leadModal .form-group { margin: 0; padding: 0; min-width: 0; border: 0; }
#leadModal .form-group > label, #leadModal legend { display: block; float: none; width: auto; margin: 0 0 9px; padding: 0; color: #30483c; font-size: 14px; font-weight: 600; line-height: 1.5; }
#leadModal .req { margin-left: 3px; color: #a54536; }
#leadModal input:not([type="checkbox"]):not([type="radio"]), #leadModal select {
    display: block; width: 100%; min-width: 0; height: 52px; min-height: 52px;
    margin: 0; padding: 13px 15px; border: 1px solid var(--lead-border); border-radius: 11px;
    background-color: #fcfdfc; color: #243c31; font: 400 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
    box-shadow: 0 1px 2px rgba(18, 45, 29, .02);
    transition: border-color .15s, box-shadow .15s;
}
#leadModal input::placeholder { color: #829087; opacity: 1; font-size: 14px; }
#leadModal select {
    appearance: none; cursor: pointer; padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235c7163' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
    text-overflow: ellipsis;
}
#leadModal select:invalid { color: #77867d; }
#leadModal option { color: #243c31; background: white; }
#leadModal input:focus, #leadModal select:focus { outline: none; border-color: #319369; box-shadow: 0 0 0 3px rgba(49, 147, 105, .13); }
#leadModal [aria-invalid="true"] { border-color: #b95b4b !important; }
#leadModal button:focus-visible, #leadModal a:focus-visible, #leadModal summary:focus-visible { outline: 3px solid #80ba9b; outline-offset: 3px; }
#leadModal .date-row { display: grid; grid-template-columns: .9fr 1.3fr 1.1fr; gap: 12px; }
#leadModal .lead-sublabel { display: block; margin: 0 0 6px; color: var(--lead-muted); font-size: 12px; font-weight: 500; }
#leadModal .radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#leadModal .radio-label { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 13px 16px; border: 1px solid var(--lead-border); border-radius: 11px; cursor: pointer; background: #fcfdfc; font-size: 15px; font-weight: 500; }
#leadModal .radio-label:has(input:checked) { border-color: #319369; background: #eef8f1; color: #155f3e; }
#leadModal input[type="radio"], #leadModal input[type="checkbox"] { appearance: auto; display: inline-block; flex: 0 0 19px; width: 19px; height: 19px; margin: 2px 0 0; padding: 0; accent-color: var(--lead-accent); }
#leadModal .form-group > .checkbox-label { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; font-weight: 400; line-height: 1.7; color: #5b6f62; }
#leadModal .checkbox-label a { color: #176543; text-underline-offset: 3px; }
#leadModal .lead-next-btn, #leadModal .lead-submit-btn, #leadModal .lead-close-btn {
    display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 52px;
    margin: 25px 0 0; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--lead-accent);
    color: white; font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1.5; cursor: pointer;
}
#leadModal .lead-next-btn:hover, #leadModal .lead-submit-btn:hover, #leadModal .lead-close-btn:hover { background: #105e3e; }
#leadModal button:disabled { opacity: .65; cursor: wait; }
#leadModal .form-buttons { display: grid; grid-template-columns: 96px 1fr; gap: 12px; margin-top: 25px; }
#leadModal .form-buttons button { margin: 0; }
#leadModal .lead-back-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px; background: white; color: #425a4a; border: 1px solid var(--lead-border); border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; }
#leadModal .pricing-info { margin: -6px 0 0; padding: 0; background: none; border: 0; }
#leadModal .lead-pricing-details { border: 1px solid #e4ebe5; border-radius: 11px; background: #f7faf7; }
#leadModal .lead-pricing-details summary { padding: 12px 14px; color: #42634e; cursor: pointer; font-size: 13px; font-weight: 550; }
#leadModal .pricing-box { margin: 0; padding: 3px 14px 14px; background: none; border: 0; }
#leadModal .pricing-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 8px; padding: 0; font-size: 13px; }
#leadModal .pricing-box p { margin: 8px 0 0; color: var(--lead-muted); font-size: 12px; line-height: 1.6; }
#leadModal .pricing-disclaimer { padding-top: 8px; border-top: 1px solid #e2e9e2; }
#leadModal .form-message { display: block; margin: 18px 0 0; padding: 12px 14px; border-radius: 9px; background: #fff1ed; color: #9c382a; font-size: 14px; line-height: 1.6; }
#leadModal .lead-draft-notice { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #d8eadb; border-radius: 10px; background: #f1f8f1; color: #3b6d49; font-size: 13px; line-height: 1.6; }
#leadModal .lead-success { padding: 36px 8px 16px; text-align: center; }
#leadModal .lead-success h3 { margin: 20px 0 12px; color: var(--lead-ink); font: 650 26px/1.3 system-ui, sans-serif; }
#leadModal .lead-success p { color: var(--lead-muted); font-size: 15px; line-height: 1.7; }
#leadModal .success-icon { color: var(--lead-accent); font-size: 56px; }
@media (max-width: 600px) {
    #leadModal { padding: 10px; align-items: center; }
    #leadModal .lead-modal-content { max-height: calc(100dvh - 20px); padding: 26px 20px max(22px, env(safe-area-inset-bottom)); border-radius: 20px; }
    #leadModal h2 { font-size: 24px; margin-right: 26px; }
    #leadModal .lead-modal-close { top: 10px; right: 10px; width: 40px; height: 40px; }
    #leadModal .lead-modal-header { margin-bottom: 24px; }
    #leadModal .lead-steps { gap: 7px; margin-top: 20px; }
    #leadModal .lead-steps li { padding: 10px 8px; gap: 7px; font-size: 11px; }
    #leadModal .lead-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    #leadModal .date-row { gap: 9px; }
    #leadModal .date-row select { padding-left: 11px; padding-right: 30px; background-position: right 9px center; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { #leadModal *, #leadModal { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
