/* v2.29: Free SEO audit form ([cml_seo_audit_form]). Inherits the theme's fonts; brand colour from Settings → Branding. */
.cml-sa { --cml-sa-brand: #0A4A86; --cml-sa-line: rgba(0, 0, 0, .18); --cml-sa-soft: rgba(0, 0, 0, .04); max-width: 760px; margin: 0 auto; box-sizing: border-box; }
.cml-sa *, .cml-sa *::before, .cml-sa *::after { box-sizing: border-box; }
.cml-sa-title { margin: 0 0 16px; }
.cml-sa-step { border: 1px solid var(--cml-sa-line); border-radius: 12px; padding: 18px 20px 6px; margin: 0 0 18px; min-width: 0; }
.cml-sa-step legend { font-weight: 700; font-size: 1.1em; padding: 0 6px; }
.cml-sa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cml-sa-field { display: block; margin: 0 0 14px; }
.cml-sa-field > span:first-child { display: block; font-weight: 600; margin-bottom: 5px; }
.cml-sa-field em { color: #b3261e; font-style: normal; }
.cml-sa input[type=text], .cml-sa input[type=email], .cml-sa input[type=tel], .cml-sa input[type=url], .cml-sa input[type=search], .cml-sa textarea {
    width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--cml-sa-line); border-radius: 8px; font: inherit; background: #fff; color: inherit;
}
.cml-sa input:focus, .cml-sa textarea:focus { outline: 2px solid var(--cml-sa-brand); outline-offset: 1px; border-color: var(--cml-sa-brand); }
.cml-sa-field--business, .cml-sa-field--address, .cml-sa-field--areas { grid-column: 1 / -1; }

.cml-sa-find { position: relative; background: var(--cml-sa-soft); border-radius: 10px; padding: 14px 14px 4px; margin: 0 0 18px; }
.cml-sa-search { padding-left: 38px !important; background: #fff 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='%23666' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center !important; }
.cml-sa-hint { margin: -6px 0 10px; font-size: .9em; opacity: .8; }
.cml-sa-searchwrap { position: relative; }
.cml-sa-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 10px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--cml-sa-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); max-height: 300px; overflow-y: auto; }
.cml-sa-results li { margin: 0; padding: 9px 10px; border-radius: 6px; cursor: pointer; color: #222; }
.cml-sa-results li strong { display: block; }
.cml-sa-results li span { display: block; font-size: .85em; color: #666; }
.cml-sa-results li[aria-selected=true], .cml-sa-results li.cml-sa-option:hover { background: rgba(10, 74, 134, .08); background: color-mix(in srgb, var(--cml-sa-brand) 10%, #fff); }
.cml-sa-results li.cml-sa-none { cursor: default; color: #555; font-size: .9em; }
.cml-sa-found { display: flex; flex-direction: column; gap: 3px; border-left: 4px solid var(--cml-sa-brand); background: #fff; border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.cml-sa-found[hidden] { display: none; }
.cml-sa-stars { color: #8a5a00; font-weight: 600; }
.cml-sa-note { font-size: .9em; opacity: .8; }
.cml-sa-again { align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--cml-sa-brand); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; }

.cml-sa-inline { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.cml-sa-inline label, .cml-sa-checks label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.cml-sa-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: -6px 0 16px; }
.cml-sa-checks input, .cml-sa-inline input, .cml-sa-consent input { margin-top: .25em; flex: none; accent-color: var(--cml-sa-brand); }
.cml-sa-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; }
.cml-sa-submit { background: var(--cml-sa-brand); color: #fff; border: 0; border-radius: 999px; padding: 13px 28px; font: inherit; font-weight: 700; cursor: pointer; }
.cml-sa-submit:hover { filter: brightness(1.1); }
.cml-sa-hp { position: absolute !important; left: -9999px !important; }
.cml-sa-ok, .cml-sa-bad { border-radius: 10px; padding: 14px 16px; }
.cml-sa-ok { background: #e7f4ea; color: #1e5631; }
.cml-sa-bad { background: #fbe9e7; color: #8c1d18; }

@media (max-width: 600px) {
    .cml-sa-grid, .cml-sa-checks { grid-template-columns: 1fr; }
    .cml-sa-step { padding: 14px 14px 4px; }
}

/* v2.30: a lead's own link fills in what we know */
.cml-sa-welcome { background: var(--cml-sa-soft); border-left: 4px solid var(--cml-sa-brand); border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; }
