/* Pool Mastic Pros, Call Me form. Used by assets/callme.js (the sheet) and by
   the form placed in the hero of the home, city, service and application
   pages. Loaded in <head> so the hero form never renders unstyled. */

/* Top nav Call Now: smaller than the old Book Online button (Johnny, 28 Oct) */
header.nav .nav-inner > a.btn[data-cta^="Call Now"]{padding:9px 16px;font-size:.86rem;letter-spacing:.02em;border-radius:8px;box-shadow:none}

/* shared form */
.cm{font-family:inherit;color:#041E42}
.cm h2{font-size:1.35rem;line-height:1.2;margin:0;color:#041E42}
.cm-sub{margin:0 0 16px;font-size:.95rem;color:#5C6672;line-height:1.45}
.cm-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cm-f{margin-bottom:12px}
.cm label{display:block;font-size:.85rem;font-weight:700;margin-bottom:5px;color:#041E42;letter-spacing:0;text-transform:none}
.cm input{display:block;width:100%;box-sizing:border-box;font-family:inherit;font-size:16px;line-height:1.3;padding:12px 13px;min-height:48px;border:1.5px solid #C9D2DC;border-radius:10px;background:#fff;color:#041E42;-webkit-appearance:none;appearance:none;margin:0}
.cm input:focus{outline:none;border-color:#0C3468;box-shadow:0 0 0 3px rgba(12,52,104,.18)}
.cm input[aria-invalid=true]{border-color:#B42318}
.cm-err{display:block;font-size:.82rem;color:#B42318;margin-top:4px}
.cm-err:empty{display:none}
.cm-go{display:block;width:100%;min-height:52px;border:0;border-radius:12px;background:#E8481C;color:#fff;font-family:inherit;font-weight:800;font-size:1.05rem;cursor:pointer;margin-top:6px}
.cm-go:hover{background:#D23E15}
.cm-go[disabled]{opacity:.65;cursor:default}
.cm .cm-or,.cm-or{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin-top:10px;border:1.5px solid #041E42;border-radius:12px;color:#041E42;font-weight:700;text-decoration:none;text-align:center}
.cm .cm-or:hover{background:#041E42;color:#fff}
.cm .nw{white-space:nowrap}
.cm-msg{font-size:.9rem;color:#B42318;margin:8px 0 0}
.cm-msg:empty{display:none}
.cm-done{text-align:left;padding:2px 0 0;outline:none}
.cm-ok{width:44px;height:44px;border-radius:50%;background:#EAF5DF;color:#3E7A16;display:flex;align-items:center;justify-content:center;margin:0 0 14px}
.cm-ok svg{width:22px;height:22px}
.cm .cm-done-h{font-size:1.3rem;line-height:1.2;margin:0 0 4px;color:#041E42}
.cm-done-sub{margin:0 0 14px;font-size:.92rem;color:#5C6672}
.cm-steps{list-style:none;counter-reset:s;margin:0 0 16px;padding:0}
.cm-steps li{counter-increment:s;position:relative;padding:0 0 0 38px;margin:0 0 12px;font-size:.93rem;line-height:1.45;color:#2B3A4D}
.cm-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;background:#041E42;color:#fff;font-size:.78rem;font-weight:800;display:flex;align-items:center;justify-content:center}
.cm-steps li b{color:#041E42}
.cm-assure{margin:0 0 4px;padding-top:12px;border-top:1px solid #E4E9EF;font-size:.8rem;font-weight:700;letter-spacing:.04em;color:#5C6672}
@media(max-width:360px){.cm-row{grid-template-columns:1fr;gap:0}}

/* the sheet */
.cm-ov{position:fixed;inset:0;z-index:2147483000;background:rgba(4,30,66,.55);display:none;align-items:flex-end;justify-content:center;-webkit-tap-highlight-color:transparent}
.cm-ov.open{display:flex}
html.cm-lock .sticky-bar,html.cm-lock .mobile-bar{display:none!important}
.cm-ov .cm{background:#fff;width:100%;max-width:440px;border-radius:18px 18px 0 0;padding:22px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(4,30,66,.25);max-height:92vh;overflow:auto;transform:translateY(16px);transition:transform .2s ease}
.cm-ov.open .cm{transform:none}
@media(min-width:640px){.cm-ov{align-items:center}.cm-ov .cm{border-radius:18px;padding:26px 26px 24px}}
.cm-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:4px}
.cm-x{flex:none;width:44px;height:44px;margin:-8px -8px 0 0;border:0;background:none;font-size:28px;line-height:1;color:#5C6672;cursor:pointer;border-radius:10px}
@media(prefers-reduced-motion:reduce){.cm-ov .cm{transition:none}}

/* the hero form */
.cm-card{background:#fff;border-radius:16px;padding:20px 20px 18px;box-shadow:0 18px 50px rgba(0,0,0,.28);max-width:460px;margin:0 0 34px;text-align:left}
.cm-card h2{font-size:1.2rem;margin:0 0 4px}
.cm-card .cm-sub{margin-bottom:14px;font-size:.92rem}
.cm-card .cm-f{margin-bottom:10px}
@media(max-width:980px){.cm-card{max-width:none;margin-left:auto;margin-right:auto}}
