/* Styles for the parts rebuilt for the static site: review cards, native forms, the map gate. Colour tokens are the theme's. */
:root { --ks-ink: var(--wp--preset--color--ink, #12303a); --ks-teal: var(--wp--preset--color--teal, #0e7c86); --ks-line: var(--wp--preset--color--line, #d6e2e2); --ks-mint: var(--wp--preset--color--mint, #e9f2f0); --ks-cream: var(--wp--preset--color--cream, #f4f7f7); }
html.has-modal-open { overflow: hidden; }

/* reviews (replaces the Trustindex widget) */
.ks-rev-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin: 0 0 20px; font-size: 1rem; }
.ks-rev-head strong { font-size: 1.6rem; line-height: 1; }
.ks-stars { color: #e5a50a; letter-spacing: 1px; }
.ks-rev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ks-rev-list li { background: #fff; border: 1px solid var(--ks-line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ks-rev-list blockquote { margin: 0; padding: 0; border: 0; font-size: .98rem; line-height: 1.55; }
.ks-rev-list blockquote p { margin: 0; }
.ks-rev-by { margin: auto 0 0; font-size: .9rem; font-weight: 600; }
.ks-rev-src { font-weight: 400; color: var(--wp--preset--color--muted, #55666a); }
.ks-rev-more { margin: 18px 0 0; }

/* forms (replaces Gravity Forms) */
.ks-form { display: grid; gap: 20px; max-width: 720px; }
.ks-form .ks-field { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; }
.ks-form label, .ks-form legend { font-weight: 600; font-size: .98rem; padding: 0; }
.ks-form .ks-req { color: #b3261e; }
.ks-form input[type=text], .ks-form input[type=email], .ks-form input[type=tel], .ks-form select, .ks-form textarea { width: 100%; font: inherit; color: var(--ks-ink); background: #fff; border: 1px solid #8aa0a3; border-radius: 8px; padding: 12px 14px; min-height: 48px; box-sizing: border-box; }
.ks-form textarea { min-height: 120px; resize: vertical; }
.ks-form input:focus-visible, .ks-form select:focus-visible, .ks-form textarea:focus-visible { outline: 3px solid var(--ks-teal); outline-offset: 1px; }
.ks-form [aria-invalid=true] { border-color: #b3261e; }
.ks-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.ks-row label { font-weight: 500; }
@media (max-width: 560px) { .ks-row { grid-template-columns: 1fr; } }
.ks-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; min-height: 32px; }
.ks-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ks-teal); }
.ks-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ks-err { margin: 0; color: #b3261e; font-size: .9rem; }
.ks-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ks-submit-btn { cursor: pointer; }
.ks-submit-btn[aria-busy=true] { opacity: .7; pointer-events: none; }
.ks-status { margin: 0; font-size: .95rem; }
.ks-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* map gate */
.map-gate { display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; min-height: 300px; padding: 28px 22px; background: var(--ks-mint); border: 1px solid var(--ks-line); border-radius: 12px; }
.map-gate p { margin: 0; max-width: 34ch; }
.map-gate button { cursor: pointer; }
iframe[src*="google.com/maps"] { width: 100%; min-height: 300px; border: 0; }
