/* Ask the AI - floating assistant for I Can Handyman.
   Brand tokens from the design canvas: navy #1E3A5C, yellow #F5C400,
   yellow tint #FFF8DC, border strong #B9C4CF. */

.ask-launch{
  position:fixed;right:18px;bottom:18px;z-index:60;
  display:inline-flex;align-items:center;gap:9px;
  min-height:52px;padding:0 20px;border:0;border-radius:999px;
  background:#f5c400;color:#1e3a5c;
  font-family:inherit;font-size:15px;font-weight:800;cursor:pointer;
  box-shadow:0 10px 28px rgba(15,26,38,.28), 0 2px 0 #c9a000;
}
.ask-launch:hover{background:#ffd21f}
.ask-launch svg{display:block}

.ask-panel{
  position:fixed;right:18px;bottom:82px;z-index:61;
  display:flex;flex-direction:column;
  width:min(390px,calc(100vw - 32px));max-height:min(560px,calc(100vh - 120px));
  border:2.5px solid #b9c4cf;border-radius:20px;overflow:hidden;
  background:#fff;box-shadow:0 24px 60px rgba(15,26,38,.30);
}
/* display:flex above outranks the UA [hidden] rule, so closing the panel set
 * hidden=true and changed nothing on screen - the X looked dead. Keep this
 * beside the rule that causes it, and do the same for any element we toggle
 * with .hidden rather than a class. */
.ask-panel[hidden]{display:none!important}
.ask-launch[hidden]{display:none!important}

.ask-head{
  display:flex;align-items:center;gap:9px;
  padding:13px 15px;background:#1e3a5c;color:#fff;
}
.ask-head strong{font-size:16px}
.ask-head small{flex:1;color:#a8b9c9;font-size:12px}
.ask-close{
  width:32px;height:32px;flex:0 0 auto;
  border:0;border-radius:9px;background:rgba(255,255,255,.14);
  color:#fff;font-size:20px;line-height:1;cursor:pointer;
}
.ask-close:hover{background:rgba(255,255,255,.26)}

.ask-log{flex:1;overflow-y:auto;padding:15px;display:flex;flex-direction:column;gap:12px;background:#f3f5f7}
.ask-intro{margin:0;color:#56626e;font-size:14px;line-height:1.5}

.ask-msg{padding:13px 15px;border-radius:14px;background:#fff;border:1px solid #e2e7ec}
.ask-msg p{margin:0;font-size:14px;line-height:1.55;color:#4a5663}
.ask-you{align-self:flex-end;max-width:88%;background:#1e3a5c;border-color:#1e3a5c}
.ask-you p{color:#fff}
.ask-bot strong{display:block;margin-bottom:5px;color:#1e3a5c;font-size:15px}
.ask-bot ul{margin:9px 0 0;padding-left:19px;color:#4a5663;font-size:13.5px;line-height:1.5}
.ask-bot li{margin-bottom:4px}

/* hazard stop state */
.ask-stop{border-color:#e8b0a6;background:#fff1ef}
.ask-stop strong{color:#a5291b}

/* shown only when the job cannot be finished remotely */
.ask-pro{margin-top:11px;padding:11px 13px;border-left:5px solid #1e3a5c;border-radius:10px;background:#f3f5f7}
.ask-pro strong{font-size:13.5px}
.ask-pro small{display:block;margin-top:7px;color:#7a8794;font-size:12px;line-height:1.45}

.ask-cta{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;margin-top:12px;padding:0 16px;border-radius:12px;
  background:#f5c400;color:#1e3a5c;text-decoration:none;font-size:14px;font-weight:800;
  box-shadow:0 2px 0 #c9a000;
}
.ask-cta:hover{background:#ffd21f}

.ask-form{display:flex;gap:9px;padding:12px;border-top:1px solid #e2e7ec;background:#fff}
.ask-input{
  flex:1;min-width:0;padding:10px 12px;resize:none;
  border:2px solid #dde3e9;border-radius:12px;
  font:inherit;font-size:14px;color:#1e3a5c;
}
.ask-input:focus{outline:none;border-color:#f5c400}
.ask-send{
  flex:0 0 auto;min-height:44px;padding:0 18px;border:0;border-radius:12px;
  background:#1e3a5c;color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;
}
.ask-send:hover{background:#16283d}
.ask-send:disabled{opacity:.55;cursor:default}

@media(max-width:520px){
  .ask-launch{right:12px;bottom:12px;min-height:48px;padding:0 16px;font-size:14px}
  .ask-panel{right:8px;left:8px;bottom:70px;width:auto;max-height:calc(100vh - 100px)}
}

/* Paid network match — shown only when the job needs someone on site. */
.ask-network{margin-top:11px;padding:12px 14px;border:2px solid #f5c400;border-radius:12px;background:#fff8dc}
.ask-network strong{display:block;margin-bottom:4px;color:#1e3a5c;font-size:14px}
.ask-network p{margin:0;color:#6b5600;font-size:13.5px;line-height:1.5}

/* Launcher X: collapses the pill to a bare circle so it stops covering the page.
   The circle still opens the chat; closing the chat returns to the circle. */
.ask-launch-x{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;margin-left:2px;margin-right:-6px;
  border-radius:50%;background:rgba(30,58,92,.14);
  color:#1e3a5c;font-size:16px;line-height:1;
}
.ask-launch-x:hover{background:rgba(30,58,92,.28)}
.ask-launch-mini{
  width:52px;height:52px;padding:0;border-radius:50%;justify-content:center;
}
.ask-launch-mini .ask-launch-label,
.ask-launch-mini .ask-launch-x{display:none}
@media(max-width:520px){
  .ask-launch-mini{width:48px;height:48px}
}

/* The panel close was 32px - under the 44px floor, which is why it felt like it
   could not be X'd out. Give it a real target and a clearer hit area. */
.ask-close{
  width:44px;height:44px;flex:0 0 auto;
  font-size:26px;line-height:1;
}
/* The launcher is a circle by default, so it never covers page content. */
.ask-launch{width:56px;height:56px;padding:0;border-radius:50%;justify-content:center}
.ask-launch .ask-launch-label,
.ask-launch .ask-launch-x{display:none}
@media(max-width:520px){
  .ask-launch{width:52px;height:52px}
  .ask-close{width:46px;height:46px}
}

/* "Call now and talk to a live tech" - the offer with Austin's own payment handles. */
.ask-call{margin-top:12px;padding:12px 14px;border:2px solid #f5c400;border-radius:12px;background:#fff8dc}
.ask-call strong{display:block;margin-bottom:4px;color:#1e3a5c;font-size:14px}
.ask-call p{margin:0 0 10px;color:#6b5600;font-size:13.5px;line-height:1.5}
.ask-call-row{display:flex;flex-wrap:wrap;gap:8px}
.ask-call-row .ask-cta{margin-top:0;flex:1 1 auto;min-width:150px}
.ask-cta-quiet{background:#fff;color:#1e3a5c;box-shadow:0 2px 0 #dde3e9}
.ask-cta-quiet:hover{background:#f3f5f7}
.ask-call small{display:block;margin:-4px 0 10px;color:#7a6a3a;font-size:12.5px;line-height:1.45}

/* Quick picks - visible the moment the circle opens, then re-tuned to wherever
   the conversation has gone. Someone who does not know what to type can still move. */
.ask-chips{display:flex;flex-wrap:wrap;gap:7px;padding:10px 12px 0;background:#fff}
.ask-chip{
  min-height:38px;padding:0 12px;border:2px solid #dde3e9;border-radius:999px;
  background:#fff;color:#1e3a5c;font:inherit;font-size:13px;font-weight:700;cursor:pointer;
}
.ask-chip:hover{background:#fff8dc;border-color:#f5c400}
/* After the turn limit the offer is the whole message, so let it read that way. */
.ask-call-final{border-width:2.5px;background:#fff8dc}

/* WhatsApp escape hatch inside the chat. Green so it reads as WhatsApp and not
   as another of our buttons - people recognise the colour before the words. */
.ask-cta-wa{background:#25d366;border-color:#1eb457;color:#06331a}
.ask-cta-wa:hover{background:#1eb457;color:#fff}
