/* Sending a request, the assistant draft and the confirmation.
   Loaded last so these rules win at equal specificity. */

/* A field no person sees and no keyboard reaches: only automated submissions fill it. */
.hp-field{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

.consent-field{display:flex;gap:11px;align-items:flex-start;font-size:12px;line-height:1.7;
  color:var(--ink);background:var(--soft);border:1px solid var(--line);padding:14px 16px;margin:4px 0 0;cursor:pointer}
.elite-site .consent-field{background:#f1f0e8;border-color:#d9d9ca;color:#183b31}
.consent-field input{margin:3px 0 0;flex:0 0 auto;width:17px;height:17px;accent-color:#183b31}
.consent-field span{flex:1 1 auto}

#request-send-block{margin-top:26px}
#request-offline{border-left:3px solid var(--accent);padding-left:14px}

#request-text{max-height:min(46dvh,420px);overflow:auto}

/* Confirmation */
#request-result h3{font-size:22px;margin-bottom:14px}
#request-result h3:focus-visible{outline:2px solid #a17c41;outline-offset:5px}
.request-reference{font-size:13px;letter-spacing:.4px;margin-bottom:12px}
.request-reference b{display:inline-block;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:17px;
  letter-spacing:1.4px;background:#183b31;color:#f7f5ec;padding:7px 13px;margin-left:6px}
.request-next{margin:20px 0 0;padding-left:20px;font-size:12.5px;line-height:1.85;color:var(--muted)}
.request-next li{margin-bottom:9px}

/* The draft the assistant proposes, shown before anything is applied */
.assist-fields{border-top:1px solid var(--line);margin:22px 0 14px}
.assist-row{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap;
  padding:11px 0;border-bottom:1px solid var(--line)}
.assist-row span{flex:0 0 40%;font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted)}
.assist-row b{flex:1 1 45%;font-weight:500;font-size:13.5px;line-height:1.6}
.assist-row em{flex:0 0 auto;font-style:normal;font-size:9.5px;letter-spacing:1.2px;text-transform:uppercase;
  color:#8a6a2f;background:#f6efdf;border:1px solid #e3d2ab;padding:3px 8px}
.assist-row.is-uncertain b{border-left:2px solid #c9a961;padding-left:10px}
.assist-source{margin-top:6px;font-size:12px}
.assist-source summary{cursor:pointer;color:var(--muted);padding:9px 0}
.assist-source pre{white-space:pre-wrap;word-break:break-word;background:var(--soft);
  border-left:2px solid var(--line);padding:14px 16px;font-size:12.5px;line-height:1.75;margin:0}
.elite-site .assist-source pre{background:#f1f0e8;border-left-color:#c9a961}

.footer-legal{font-size:10px;line-height:1.8;color:var(--muted);margin:10px 0 0;opacity:.85}

@media (max-width:620px){
  .assist-row span{flex:1 1 100%}
  .assist-row b{flex:1 1 100%}
  #request-text{max-height:38dvh}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important}
}

.footer-legal-links{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;margin:12px 0 0}
.footer-legal-links a{color:inherit;opacity:.8;text-underline-offset:3px}
.footer-legal-links a:hover{opacity:1}

/* Contact channels. A channel with no value is removed at build time, so these
   rules only ever style links that actually lead somewhere. */
.footer-contact{display:flex;flex-direction:column;gap:9px;align-items:flex-start}
.footer-contact-title{font-size:10px;letter-spacing:2px;text-transform:uppercase;opacity:.65;margin-bottom:2px}
.footer-contact a{color:inherit;text-decoration:none;font-size:13px;border-bottom:1px solid transparent;padding-bottom:2px}
.footer-contact a:hover{border-bottom-color:currentColor}
.footer-hours{font-size:11px;opacity:.7;margin-top:4px}

.direct-channels{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap;
  border-top:1px solid var(--line);margin-top:22px;padding-top:16px;font-size:12px}
.direct-channels>span{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:var(--muted)}
.direct-channels a{color:inherit;font-weight:500;text-underline-offset:3px}

/* The contact column sits last; the links column keeps its own rules by class,
   not by position, so adding a column cannot break it again. */
.footer-main{align-items:flex-start}
@media (max-width:900px){ .footer-contact{margin-top:4px} }

/* The footer's one <a> among <button>s inherited the body ink: dark green on a
   dark green footer, contrast about 1.1. It had been invisible all along. */
.footer-main .footer-links a{color:#cbd7c3}

/* WhatsApp, always within reach.
   Brand colours, not WhatsApp green: on an ivory and deep-green palette the
   green would shout. The glyph carries the recognition. */
.whatsapp-float{position:fixed;right:18px;bottom:18px;z-index:20;
  display:inline-flex;align-items:center;gap:9px;
  min-height:52px;padding:0 20px 0 16px;
  background:#183b31;color:#f7f5ec;border:1px solid #2d5546;border-radius:30px;
  text-decoration:none;font-size:13.5px;letter-spacing:.3px;
  box-shadow:0 10px 30px rgba(8,28,22,.28);
  transition:transform .18s ease, box-shadow .18s ease}
.whatsapp-float svg{width:22px;height:22px;fill:currentColor;flex:0 0 auto}
.whatsapp-float:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(8,28,22,.36)}
.whatsapp-float:focus-visible{outline:2px solid #c9a961;outline-offset:3px}

/* iPhone home indicator */
@supports (padding:max(0px)){
  .whatsapp-float{bottom:max(18px,env(safe-area-inset-bottom));
    right:max(18px,env(safe-area-inset-right))}
}

/* A modal already has the visitor's attention; the button would only be a
   shape under the backdrop. */
body:has(dialog[open]) .whatsapp-float{opacity:0;pointer-events:none}

/* Room so it never sits on top of the last line of the footer.
   Tied to the button: no WhatsApp number means no button and no reserved space.
   The selector has to out-specify .elite-site .elite-footer in elite.css — a
   plain .elite-footer here simply loses. */
:root{--whatsapp-float-space:92px}
body.elite-site:has(.whatsapp-float) .elite-footer{padding-bottom:var(--whatsapp-float-space)}

@media (max-width:420px){
  .whatsapp-float{right:14px;bottom:14px;min-height:50px;padding:0 17px 0 14px;font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  .whatsapp-float{transition:none}
  .whatsapp-float:hover{transform:none}
}

/* Consent. It sits at the bottom, so the floating button steps aside rather
   than being covered — a button you cannot reach is worse than no button. */
.consent-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  padding:16px 5%;background:#122e25;color:#e5e9dc;
  box-shadow:0 -8px 28px rgba(8,28,22,.22);font-size:13px;line-height:1.7}
.consent-bar p{margin:0;max-width:62ch}
.consent-bar a{color:#d9c79a;text-underline-offset:3px}
.consent-actions{display:flex;gap:10px;flex-shrink:0}
.consent-bar button{min-height:44px;padding:11px 20px;font-size:12.5px;border-radius:3px;cursor:pointer;
  background:none;border:1px solid #4a6a5c;color:#e5e9dc}
.consent-bar button.consent-yes{background:#e6d5b0;border-color:#e6d5b0;color:#233f32}
.consent-bar button:focus-visible{outline:2px solid #c9a961;outline-offset:3px}

/* How far it has to step aside is measured, not guessed: the bar grows when its
   sentence wraps, and a fixed offset leaves the button underneath it on a phone.
   The fallback is only for the moment before the first measurement. */
body.has-consent-bar .whatsapp-float{bottom:calc(18px + var(--consent-bar,104px))}
@supports (padding:max(0px)){
  body.has-consent-bar .whatsapp-float{bottom:calc(max(18px,env(safe-area-inset-bottom)) + var(--consent-bar,104px))}
}
@media (max-width:620px){
  .consent-bar{flex-direction:column;align-items:stretch;gap:12px;padding:14px 16px}
  .consent-actions{justify-content:stretch}
  .consent-bar button{flex:1}
}
/* Changing your mind has to be as easy as agreeing was: same row, same weight
   as the legal links, and shown only when there is something to measure. */
.footer-legal-links .consent-open{background:none;border:0;padding:0;color:inherit;opacity:.8;
  font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.footer-legal-links .consent-open:hover{opacity:1}
.footer-legal-links .consent-open:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* WhatsApp, in WhatsApp's own green, so it is recognised before it is read:
   once in the header, once floating at the bottom of every screen. */
.wa-top,.whatsapp-float{background:#1fa855;border-color:#1a9a4d;color:#fff}
.wa-top:hover,.whatsapp-float:hover{background:#188f48}
.wa-top{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px 0 12px;border:1px solid #1a9a4d;border-radius:24px;text-decoration:none;font-size:13px;font-weight:600;letter-spacing:.2px;white-space:nowrap}
.wa-top svg{width:20px;height:20px;fill:currentColor;flex:0 0 auto}
.whatsapp-float{min-height:56px;font-size:15px;font-weight:600;box-shadow:0 10px 30px rgba(18,110,56,.4)}
@media(max-width:900px){.wa-top span{display:none}.wa-top{padding:0;width:42px;justify-content:center;border-radius:50%}}
@media(max-width:600px){.whatsapp-float{left:14px;right:14px;justify-content:center}}
@media(prefers-reduced-motion:no-preference){.whatsapp-float{animation:wa-pulse 3.2s ease-out 2s 2}}
@keyframes wa-pulse{0%{box-shadow:0 0 0 0 rgba(31,168,85,.55)}70%{box-shadow:0 0 0 16px rgba(31,168,85,0)}100%{box-shadow:0 0 0 0 rgba(31,168,85,0)}}
