/* Contact form fields added 2026-10-28 when the form moved to Zoho CRM:
   number of clinicians, state(s) of practice picker, the "email or phone" pair,
   the EHR follow-up questions (shown only when EHR Setup is ticked) and the updates opt-in. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.required-note .required,.states-field legend .required,.contact-pair legend .required,.services-field legend .required,.other-service .required{color:var(--mac-light-teal)}
.services-field legend .hint{font-size:12px;font-weight:400;color:#9eb7c8}
.services-field.invalid .service-option{border-color:var(--mac-error-border)}
.other-service[hidden]{display:none}
.other-service{margin:-4px 0 15px;padding:14px 14px 1px;border-left:3px solid var(--teal);background:#0a2b3a80;border-radius:0 9px 9px 0}

/* Fieldsets share the look of ordinary fields */
.states-field,.contact-pair,.ehr-field{border:0;padding:0;min-width:0}
.states-field legend,.contact-pair legend,.ehr-field legend{display:block;padding:0;font-size:13px;font-weight:600;margin-bottom:7px}
.contact-pair legend .hint{font-size:12px;font-weight:400;color:#9eb7c8}
.contact-pair{margin:0 0 15px;padding:14px 14px 0;border:1px dashed var(--mac-field-border);border-radius:9px}
.contact-pair .field{margin-bottom:14px}
.contact-pair.invalid,.states-field.invalid .state-picker summary{border-color:var(--mac-error-border)}

/* State(s) of practice: a drop-down list of tick boxes */
.state-picker{position:relative}
.state-picker summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:47px;padding:12px 13px;background:#041426d9;border:1px solid var(--mac-field-border);border-radius:7px;font-size:16px;line-height:1.35;cursor:pointer;color:#f7fbff}
.state-picker summary::-webkit-details-marker{display:none}
.state-picker summary::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid var(--mac-field-placeholder);border-bottom:2px solid var(--mac-field-placeholder);transform:rotate(45deg) translateY(-3px)}
.state-picker[open] summary::after{transform:rotate(225deg) translate(-2px,-1px)}
.state-picker summary:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-color:var(--teal)}
#states-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#states-summary.empty{color:var(--mac-field-placeholder)}
.state-panel{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 6px);background:var(--mac-field-bg);border:1px solid var(--teal);border-radius:9px;padding:10px;box-shadow:0 18px 40px #0007}
.state-filter{min-height:40px;padding:8px 11px;font-size:15px;margin-bottom:8px}
.state-list{max-height:240px;overflow-y:auto;display:grid;gap:2px}
.state-option{display:flex;align-items:center;gap:10px;margin:0;padding:7px 8px;border-radius:6px;font-size:15px;font-weight:400;cursor:pointer}
.state-option:hover{background:#0a2b3a}
.state-option span{font-size:15px;font-weight:400;color:#f7fbff}
.state-option input{width:18px;height:18px;min-height:0;margin:0;padding:0;flex:none;accent-color:var(--teal)}
.state-option[hidden]{display:none}

/* EHR follow-up */
.ehr-followup{margin:-4px 0 15px;padding:14px 14px 1px;border-left:3px solid var(--teal);background:#0a2b3a80;border-radius:0 9px 9px 0}
.ehr-followup[hidden],#which-ehr-field[hidden]{display:none}
.radio-row{display:flex;flex-wrap:wrap;gap:8px}
.radio-row .service-option{flex:1 1 110px}
.radio-row .service-option input{border-radius:50%}

/* Updates opt-in */
.optin{display:flex;align-items:flex-start;gap:10px;margin:0 0 18px;font-size:14px;font-weight:400;line-height:1.5;color:#d8e9f3;cursor:pointer}
.optin input{width:18px;height:18px;min-height:0;margin:2px 0 0;padding:0;flex:none;accent-color:var(--teal)}
.optin span{font-size:14px;color:#d8e9f3}

@media(max-width:600px){.contact-pair{padding:12px 12px 0}.state-list{max-height:200px}}

/* Email or phone that fails the check (2026-10-28) */
#inquiry input[aria-invalid=true]{border-color:var(--mac-error-border);border-width:2px}
.field-error{margin:6px 0 0;font-size:13px;line-height:1.4;color:var(--mac-error-text)}
