/* Armanch website chat. Brand: navy #123B5D, copper #C86432, chalk #F2F4F5, ink #27282B; Manrope headings, Inter text
   (Armanch Brand Standards 2026). Text colours meet WCAG AA on their backgrounds; copper is used for accents only
   (white text on copper is below AA). */
#armanch-chat [hidden]{display:none!important}#armanch-chat *{box-sizing:border-box}
#armanch-chat{position:fixed;right:20px;bottom:88px;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 112px);overflow:auto;margin:0;padding:20px;background:#F2F4F5;color:#27282B;font:16px/1.55 Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;border:1px solid #c9d3dc;border-top:4px solid #C86432;border-radius:16px;box-shadow:0 16px 60px #123b5d40}
#armanch-chat-launch{position:fixed;right:20px;bottom:20px;display:flex;align-items:center;gap:10px;border-radius:40px;padding:14px 20px;box-shadow:0 6px 24px #123b5d40}#armanch-chat-launch svg{width:24px;height:24px}
#armanch-chat h2,#armanch-chat h3{font-family:Manrope,Inter,system-ui,Arial,sans-serif;font-weight:700;color:#123B5D;letter-spacing:-.02em;line-height:1.2}
#armanch-chat .card h2{font-size:1.45rem;margin:0 0 10px}#armanch-chat .card h3{font-size:1.15rem;margin:18px 0 10px}
#armanch-chat a{color:#123B5D;text-decoration-color:#C86432;text-underline-offset:3px}#armanch-chat a:hover{color:#C86432}#armanch-chat a[href^="tel:"]{white-space:nowrap}
#armanch-chat #ac-close{float:right;margin:0 0 8px 12px;background:white;color:#123B5D;border:1px solid #c9d3dc;border-radius:50%;width:40px;height:40px;padding:0}
#armanch-chat .ac-notes{margin:0 52px 0 0}#armanch-chat .ac-notes p{margin:0 0 8px;padding:10px 12px;border-radius:8px;font-size:15px;line-height:1.45}
#armanch-chat .ac-beta{background:white;border-left:4px solid #C86432}#armanch-chat .ac-news{background:#123B5D;color:#F2F4F5}#armanch-chat .ac-news a{color:#F2F4F5;text-decoration-color:#C86432}#armanch-chat .ac-news a:hover{color:white}
#armanch-chat .ac-info{background:white;border:1px solid #c9d3dc;border-radius:14px;padding:16px 20px;margin:12px 0}
#armanch-chat .ac-info h2{font-size:1.15rem;margin:0 0 8px}
#armanch-chat .ac-info-page{border-top:1px solid #e1e6eb}
#armanch-chat .ac-info-page>summary{cursor:pointer;padding:10px 0;font:700 1rem/1.3 Manrope,Inter,system-ui,sans-serif;color:#123B5D}
#armanch-chat .ac-info-page[open]>summary{color:#C86432}
#armanch-chat .ac-info-intro{margin:0 0 8px;color:#4f5d6b;font-size:15px}
#armanch-chat .ac-info-q{margin:0 0 6px;background:#F2F4F5;border-radius:8px;padding:8px 12px}
#armanch-chat .ac-info-q>summary{cursor:pointer;font-weight:600;color:#123B5D}
#armanch-chat .ac-info-q p{margin:8px 0 2px;font-size:15px}
#armanch-chat .ac-info-ask{margin:8px 0 12px;font-size:15px}
#armanch-chat summary:focus-visible{outline:3px solid #C86432;outline-offset:3px;border-radius:4px}
#armanch-chat .ac-direct{padding:10px 12px;background:#F2F4F5;border-radius:8px}
#armanch-chat button:disabled{opacity:.55;cursor:not-allowed}
#armanch-chat button:focus-visible,#armanch-chat a:focus-visible,#armanch-chat input:focus-visible,#armanch-chat textarea:focus-visible,#armanch-chat select:focus-visible{outline:3px solid #C86432;outline-offset:3px}
#armanch-chat .ac-news a:focus-visible{outline-color:#F2F4F5}
#armanch-chat .bubble{overflow-wrap:anywhere;padding:15px;background:#e7edf3;border-radius:12px;margin:10px 0}
@media(max-width:550px){#armanch-chat{right:12px;bottom:80px;max-height:calc(100dvh - 96px);padding:12px}#armanch-chat .card{padding:16px}#armanch-chat-launch{right:12px;bottom:12px}#armanch-chat .two{grid-template-columns:1fr}}
#armanch-chat .preview-label{padding:20px;color:#4f5d6b;font-size:14px}
#armanch-chat .card{background:white;border:1px solid #c9d3dc;border-radius:14px;padding:24px;margin:12px 0}
#armanch-chat button,#armanch-chat input,#armanch-chat select,#armanch-chat textarea{font:inherit;padding:10px;border-radius:7px;border:1px solid #7d8c99}
#armanch-chat button{cursor:pointer;background:#123B5D;color:white;border-color:#123B5D;font-weight:600;margin:5px}#armanch-chat button:hover:not(:disabled){background:#0c2a43}
#armanch-chat #ac-close:hover{background:#F2F4F5}
#armanch-chat input,#armanch-chat select,#armanch-chat textarea{width:100%;margin:6px 0 12px;background:white;color:#27282B}
#armanch-chat input[type=checkbox]{width:auto;accent-color:#123B5D}#armanch-chat label{display:block}#armanch-chat textarea{min-height:90px}
#armanch-chat .notice{background:#fbeee6;border-left:4px solid #C86432;padding:16px;border-radius:10px}
#armanch-chat small{color:#4f5d6b}#armanch-chat #questions{display:flex;flex-wrap:wrap}#armanch-chat .required-mark{color:#b51f2b}
#armanch-chat .two{display:grid;grid-template-columns:1fr 1fr;gap:15px}#armanch-chat .two > small{grid-column:1/-1}
#armanch-chat .field-error{display:block;color:#27282B;background:#F2F4F5;border-left:4px solid #C86432;padding:2px 8px;margin:2px 0 12px}
#armanch-chat input[aria-invalid="true"],#armanch-chat textarea[aria-invalid="true"],#armanch-chat select[aria-invalid="true"]{border:2px solid #C86432}
#armanch-chat #submit-help{display:block;margin:8px 0}
#armanch-chat{z-index:99991}#armanch-chat-launch{z-index:99990;background:#123B5D;color:white;border:0;font:600 16px Inter,system-ui,sans-serif;cursor:pointer}#armanch-chat[hidden]{display:none!important}
/* Public website chat: the address field and wording review show only when the owner switched them on (classes set by
   public-assist.js). Photo uploads, history and summaries are not available publicly yet. */
#armanch-chat #validate-address,#armanch-chat #attachment-section,#armanch-chat:not(.assist-writing) .armanch-semantic-writing,#armanch-chat #ac-history,#armanch-chat #ac-summary{display:none!important}
#armanch-chat .ac-email-check,#armanch-chat .armanch-semantic-writing{margin:-4px 0 14px;padding:10px 12px;background:#F2F4F5;border-radius:8px}
#armanch-chat .ac-email-check label{margin-top:6px}#armanch-chat .ac-email-check input{max-width:12em;letter-spacing:.2em}
#armanch-chat button.ac-small,#armanch-chat .armanch-semantic-writing button{padding:6px 12px;font-size:15px;margin:4px 6px 4px 0}
#armanch-chat .ac-assist-help{margin:0 0 4px;font-size:14px;color:#4f5d6b}
#armanch-chat .ac-assist-status{margin:4px 0 0;font-size:14px}#armanch-chat .ac-assist-status:empty{display:none}
/* Owner result colours (28 Oct 2026): success navy; errors dark text on chalk with an orange border; pending neutral. */
#armanch-chat [data-result="success"]{color:#123B5D;font-weight:600}#armanch-chat [data-result="success"]::before{content:"\2713  "}
#armanch-chat [data-result="error"]{color:#27282B;background:#F2F4F5;border-left:4px solid #C86432;padding:4px 8px;border-radius:4px}#armanch-chat [data-result="error"]::before{content:"! ";font-weight:700;color:#C86432}
#armanch-chat .ac-info-wrap{position:relative;display:inline-block;margin:0 4px}#armanch-chat button.ac-info-icon{padding:0 6px;margin:0;min-width:28px;min-height:28px;background:white;color:#123B5D;border:1px solid #c9d3dc;border-radius:50%;font-weight:700;line-height:1}
#armanch-chat .ac-info-note{position:absolute;z-index:3;left:0;top:calc(100% + 6px);width:min(280px,70vw);padding:8px 10px;background:#27282B;color:#F2F4F5;border-radius:6px;font-size:14px;line-height:1.4;font-weight:400}
#armanch-chat .ac-address-list{list-style:none;margin:-6px 0 4px;padding:4px;background:white;border:1px solid #7d8c99;border-radius:7px}
#armanch-chat .ac-address-list li{margin:0}#armanch-chat button.ac-address-option{display:block;width:100%;margin:0;text-align:left;background:white;color:#27282B;border:0;border-radius:5px;font-weight:400}
#armanch-chat button.ac-address-option:hover,#armanch-chat button.ac-address-option:focus-visible{background:#e7edf3}
#armanch-chat .armanch-semantic-writing label{display:inline}#armanch-chat .armanch-semantic-writing p{margin:6px 0 0;font-size:14px}
#armanch-chat .armanch-semantic-writing textarea{min-height:70px;background:#fbfcfd}
#armanch-chat section:has(#ac-end-summary){display:none!important}

/* Attachments (0.6.0) */
#armanch-chat .ac-attachments{margin:0 0 14px}#armanch-chat .ac-attach-label{display:block;font-weight:600;margin-bottom:6px}#armanch-chat #ac-file-input{display:block;max-width:100%}#armanch-chat .ac-attach-list{list-style:none;margin:8px 0 0;padding:0}#armanch-chat .ac-attach-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;margin-bottom:6px;background:#F2F4F5;border-radius:8px;word-break:break-word}#armanch-chat .ac-attach-remove{min-height:44px;padding:0 14px;border:1px solid #123B5D;border-radius:6px;background:#fff;color:#123B5D;font-weight:600;cursor:pointer}#armanch-chat .ac-attach-remove:focus-visible{outline:3px solid #C86432;outline-offset:2px}

/* review 4: Select all buttons */
#armanch-chat .ac-select-all{display:inline-block;margin:4px 0 8px;padding:6px 14px;border:1px solid #123B5D;border-radius:6px;background:#fff;color:#123B5D;font:600 14px/1.2 inherit;cursor:pointer}
#armanch-chat .ac-select-all[aria-pressed="true"]{background:#123B5D;color:#fff}
#armanch-chat .ac-select-all:focus-visible{outline:3px solid #C86432;outline-offset:2px}
#armanch-chat.ac-has-attachments #attachment-section{display:none!important}
#armanch-chat .ac-info-links{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
#armanch-chat .ac-info-links a{display:inline-block;padding:6px 12px;border:1px solid #d9dee5;border-radius:6px;color:#123B5D;font-weight:600;text-decoration:none}
#armanch-chat .ac-info-links a:hover,#armanch-chat .ac-info-links a:focus-visible{border-color:#C86432}
#armanch-chat .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Owner final review 23 Nov 2026, item 5: the close button stays visible at the top while the form scrolls. */
#armanch-chat #ac-close{position:sticky;top:0;z-index:5;box-shadow:0 2px 8px #123b5d33}#armanch-chat .armanch-price{color:#C86432;font-weight:800;font-size:1.25em;white-space:nowrap}

/* Chat box step 1 (owner, 24 Nov 2026): left column Name then Email; the email-code box in the right column, top-aligned
   with Name. At 550 px and below the existing single-column rule applies: Name, Email, code box. */
@media(min-width:551px){
#armanch-chat .two{align-items:start}
#armanch-chat .two>label:has(>#name){grid-column:1;grid-row:1}
#armanch-chat .two>label:has(>#email){grid-column:1;grid-row:2}
#armanch-chat .two>.ac-email-check{grid-column:2;grid-row:1/span 2;align-self:start;margin-top:0}
#armanch-chat .two>#email-help{grid-column:1/-1;grid-row:3}
}
@media(max-width:550px){#armanch-chat .two{grid-template-columns:1fr}}

/* Chat box step 2 (owner, 24 Nov 2026): Phone and Service sit on the same line as their label (Phone after its i icon);
   the field wraps under the label when the line is too narrow. The phone box holds about 20 characters. */
#armanch-chat label.ac-inline{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;padding-bottom:6px}
#armanch-chat label.ac-inline>input,#armanch-chat label.ac-inline>select{flex:0 0 auto;margin:6px 0}
#armanch-chat label.ac-inline>.ac-info-wrap{margin:0}
#armanch-chat label.ac-inline>.field-error{flex-basis:100%}
#armanch-chat #phone{width:calc(20ch + 24px);max-width:100%}
#armanch-chat #hvac-service{width:auto;min-width:11em;max-width:100%}

/* Chat box step 3 (owner, 24 Nov 2026): "Photos or PDF (optional)" has the weight of the other field labels; "How did you
   find us?" sits as close to its dropdown as the other labels do. */
#armanch-chat .ac-attach-label{font-weight:400}
#armanch-chat #discovery-legend{margin-bottom:0}

/* Chat box step 6 (owner, 24 Nov 2026): the attachments i icon sits beside its label (outside the label, so a tap on the
   note never opens the file picker). */
#armanch-chat .ac-attach-head{margin-bottom:6px}#armanch-chat .ac-attach-head>.ac-attach-label{display:inline;margin:0}

/* Chat box step 4 (owner, 24 Nov 2026): the i icon in the "Subscribe for free (optional)" heading has the same size and
   text style as the other i icons. */
#armanch-chat h3 .ac-info-wrap{font:400 16px/1.55 Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;letter-spacing:normal;vertical-align:middle}

/* Chat box step 8 (owner, 24 Nov 2026): the grey "To send: ..." hint under Ask Armanch is not shown on screen; it stays
   available to screen readers only (the button still moves to the first missing field and outlines it). */
#armanch-chat #submit-help{position:absolute!important;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Chat box step 10 addition (owner, 24 Nov 2026): no sentence under "Reason for contacting us" for any reason. */
#armanch-chat #route-purpose{display:none!important}

/* Chat box step 13 (owner, 24 Nov 2026): the Donor - Support sentence under "What is your main purpose for joining us?". */
#armanch-chat #donor-note{margin:-6px 0 12px}#armanch-chat #donor-thanks{margin:4px 0 0}

/* Chat box step 13B (owner, 24 Nov 2026): the Donor - Support sentence stands out - bold, in a box with the site's copper
   border (#C86432) on a light copper tint; text in ink for contrast (white or copper text on light fails WCAG AA). */
#armanch-chat #donor-note{margin:2px 0 14px;padding:10px 12px;border:2px solid #C86432;border-radius:8px;background:#fbeee6;font-weight:700;color:#27282B}

/* Chat box step 14 (owner, 24 Nov 2026): Email on top with the code box beside it, Name under Email; on phones Email,
   code box, Name. Until the email is confirmed, Name and everything below are greyed out (and inert). */
@media(min-width:551px){
#armanch-chat .two>label:has(>#email){grid-column:1;grid-row:1}
#armanch-chat .two>label:has(>#name){grid-column:1;grid-row:2}
#armanch-chat .two>.ac-email-check{grid-column:2;grid-row:1;align-self:start}
}
@media(max-width:550px){
#armanch-chat .two>label:has(>#email){order:1}#armanch-chat .two>.ac-email-check{order:2}#armanch-chat .two>label:has(>#name){order:3}#armanch-chat .two>#email-help{order:4}
}
#armanch-chat .ac-locked{opacity:.45;filter:grayscale(1)}
#armanch-chat .ac-email-step{margin:4px 0 10px;font-weight:600}

/* Chat box step 14 fix (owner, 24 Nov 2026): Name sits directly under Email with the normal field gap, whatever the height
   of the code box; the box's extra height goes into an empty third row instead of pushing Name down. */
@media(min-width:551px){
#armanch-chat .two{row-gap:0;grid-template-rows:auto auto 1fr}
#armanch-chat .two>.ac-email-check{grid-row:1 / 4}
}