/* assets/enquiries.css
   Consolidated styles for Enquiries UI + Ask Us chat + Project chooser
   ------------------------------------------------------------------ */

/* ====== Design tokens ====== */
:root{
  --cate-teal:        #0b5c52;
  --cate-teal-weak:   #1E565F;
  --cate-sky:         #0ea5e9;
  --cate-bg:          #ffffff;
  --cate-panel:       #ffffff;
  --cate-border:      #e5e7eb;
  --cate-border-soft: #f1f5f9;
  --cate-shadow:      0 20px 40px rgba(0,0,0,.18);
  --ring:             3px rgba(59,130,246,.15);
  --text:             #0f172a;
  --muted:            #475569;
}

/* Reduce motion if the user prefers */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* ====== Phone input (prefix + local) ====== */
.cate-phone-group{
  display:flex; align-items:center;
  border:0; border-radius:6px; background:#fff; overflow:hidden;
}
.cate-prefix{
  padding:8px 10px; font-weight:600; white-space:nowrap; opacity:.85;
}
.cate-phone-group input[data-cate-phone-local]{
  border:0 !important; outline:none; flex:1; width:100%;
  padding:8px 10px; box-shadow:none !important;
}
.cate-phone-group input[data-cate-phone-local]:focus{
  outline:2px solid #a7f3d0; outline-offset:-2px;
}
/* Hide the original hidden field */
.cate-phone-group + input[data-cate-phone][type="hidden"]{ display:none !important; }

/* ====== Floating Chat (legacy panel) ====== */
#cate-launcher{
  position:fixed; right:18px; bottom:18px; z-index:2147483647;
  width:54px; height:54px; border-radius:50%;
  background:var(--cate-teal); color:#fff; border:0; box-shadow:0 10px 24px rgba(0,0,0,.18);
  cursor:pointer; font-size:20px;
}
#cate-launcher:focus{ outline:2px solid #bae6fd; outline-offset:2px; }

#cate-panel{
  position:fixed; right:18px; bottom:84px; z-index:2147483647;
  width:320px; max-height:70vh; background:var(--cate-panel); border-radius:14px;
  box-shadow:var(--cate-shadow); display:flex; flex-direction:column; overflow:hidden;
  border:1px solid var(--cate-border);
}
.cp-head{
  padding:10px 12px; background:#f8fafc; display:flex; justify-content:space-between; align-items:center;
}
.cp-x{
  border:0; background:#e5e7eb; width:28px; height:28px; border-radius:8px; cursor:pointer;
}
.cp-x:focus{ outline:2px solid #bae6fd; outline-offset:2px; }

.cp-msgs{
  padding:10px; overflow:auto; display:flex; flex-direction:column; gap:8px;
}
.msg{
  max-width:88%; padding:8px 10px; border-radius:12px; font-size:14px; line-height:1.35; color:var(--text);
}
.msg.bot{ background:#e9f7e9; border:1px solid #dcefe0; align-self:flex-start; }
.msg.user{ background:#eef2ff; border:1px solid #e0e7ff; align-self:flex-end; }

.cp-input{ display:flex; gap:8px; padding:10px; border-top:1px solid #eee; }
#cate-input{
  flex:1; border:1px solid #d1d5db; border-radius:10px; padding:10px;
}
#cate-input:focus{ border-color:#93c5fd; box-shadow:0 0 0 var(--ring); }
#cate-send{
  background:var(--cate-teal); color:#fff; border:0; border-radius:10px; padding:10px 14px; cursor:pointer;
}
#cate-send:disabled{ opacity:.6; cursor:not-allowed; }

/* Phone chip spacing inside panel */
.cate-chatbox{ margin:8px 0 2px; }

/* ====== Inline “Ask Us” button ====== */
#cate-askus-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:56px; min-height:56px; padding:0 28px; border-radius:10px;
  font-size:19px; font-weight:700; letter-spacing:.2px; line-height:1;
  border:none; cursor:pointer; color:#fff; background:var(--cate-teal-weak);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:transform .06s ease, box-shadow .12s ease, filter .12s ease;
}

#cate-askus-btn:hover{ filter:brightness(1.03); }
#cate-askus-btn:active{ transform:translateY(1px) scale(.99); }
#cate-askus-btn:focus{ outline:2px solid #bae6fd; outline-offset:2px; }

/* Optional alignment with WA button */
[data-cate-askus]{ margin-top:14px; }

/* ====== “Ask Us” panel (inline widget) tweaks ====== */
/* Breadcrumb (project selection status) */
.askus-crumb{
  padding:8px 12px; font-size:13px; color:#334155;
  background:#f8fafc; border-bottom:1px solid var(--cate-border);
}
.askus-crumb strong{ color:var(--cate-teal); }
.askus-crumb a{ color:var(--cate-sky); text-decoration:none; margin-left:4px; }
.askus-crumb a:hover{ text-decoration:underline; }

/* Project chooser pills */
.askus-chooser{
  display:flex; flex-wrap:wrap; gap:8px; padding:10px;
  border-top:1px solid var(--cate-border-soft); background:#f9fafb;
}
.askus-pill{
  flex:1 1 auto; padding:8px 12px; border-radius:20px;
  border:1px solid #cbd5e1; background:#fff; cursor:pointer;
  font-size:14px; font-weight:600; text-align:center; transition:background .2s;
}
.askus-pill:hover{ background:#f1f5f9; }
.askus-pill.primary{ background:var(--cate-teal); color:#fff; border-color:var(--cate-teal); }

/* ====== FullCalendar tweak (hide tiny dot next to “[ANC]”) ====== */
.fc .fc-daygrid-event-dot{ display:none !important; }
.fc .fc-daygrid-event-harness .fc-event-title{ padding-left:.1rem; }

/* ====== Small screens ====== */
@media (max-width: 420px){
  #cate-panel{ right:10px; bottom:78px; width:calc(100vw - 20px); }
  #cate-launcher{ right:10px; bottom:10px; }
}

/* ====== High-contrast focus (keyboard users) ====== */
:where(button, [role="button"], input, textarea, a):focus-visible{
  outline:2px solid #bae6fd; outline-offset:2px;
}

.askus-send{ background:#0ea5e9; color:#fff; border:0; border-radius:10px; padding:8px 14px; cursor:pointer; }

 /* ---- project crumb + chooser ---- */
.askus-crumb{
padding:8px 12px; background:#f8fafc; border-bottom:1px solid #e5e7eb;
font:13px/1.3 system-ui,-apple-system,Segoe UI,Roboto,Arial;
}
.askus-crumb a{ color:#2563eb; text-decoration:none; }
.askus-crumb a:hover{ text-decoration:underline; }

.askus-chooser{
 display:flex; flex-wrap:wrap; gap:8px;
 padding:10px 12px; border-top:1px dashed #e5e7eb;
}
.askus-pill{
 appearance:none; border:1px solid #cbd5e1; background:#fff; color:#0f172a;
 padding:8px 12px; border-radius:999px; font-weight:600; cursor:pointer;
 }
 .askus-pill.primary{ border-color:#0ea5e9; background:#e0f2fe; }

/* ===== AskUs inline widget (cate-askus.js) ===== */
[data-cate-askus]{
  max-width: 520px;
  font: 14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

/* CTA button */
.askus-btn{
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cate-teal-weak); color:#fff;
  border: 0; border-radius: 10px;
  padding: 18px 28px; min-height: 56px;
  font-size: 19px; font-weight: 400; line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: opacity .18s ease, transform .18s ease, filter .15s ease;
}
.askus-btn:hover{ filter: brightness(1.03); }
.askus-btn:active{ transform: translateY(1px); }
.askus-btn.fade{ opacity: 0; pointer-events: none; }
.askus-icon{ width: 22px; height: 22px; display: inline-block; }

/* Panel */
.askus-panel{
  display: none;
  background:#fff;
  border:1px solid var(--cate-border);
  border-radius:14px;
  box-shadow: var(--cate-shadow);
  overflow:hidden;
  margin-top: 10px;
  padding-bottom: 20px;
  /* spacing under the CTA */
}
.askus-panel.show{ display:block; animation:askus-pop .18s ease; }
@keyframes askus-pop{ from{opacity:.6; transform:translateY(6px)} to{opacity:1; transform:none} }

/* Header */
.askus-head{
  display:flex; align-items:center; justify-content:space-between;
  background:#0f172a; color:#fff; padding:10px 12px;
}
.askus-x{ background:transparent; border:0; color:#fff; font-size:18px; cursor:pointer; }

/* Messages + lines */
.askus-msgs{ padding:10px 12px; max-height: 320px; overflow:auto; white-space:pre-wrap; }
.askus-line{ margin:6px 0; }
.askus-who{ font-weight:700; margin-right:6px; }

/* Input row */
.askus-inputs{ display:flex; gap:8px; padding:10px 12px; border-top:1px solid var(--cate-border); }
.askus-input{
  flex:1; min-height:44px; max-height:160px; resize:vertical;
  padding:8px; border:1px solid #d1d5db; border-radius:10px;
}
.askus-send{
  background: var(--cate-sky); color:#fff; border:0;
  border-radius:10px; padding:8px 14px; cursor:pointer;
}

/* Project crumb + chooser */
.askus-crumb{
  padding:8px 12px; background:#0f172a; color:#cbd5e1;
  border-bottom:1px solid #0b1227;
}
.askus-crumb a{ color:#93c5fd; text-decoration:none; }
.askus-chooser{ display:flex; flex-wrap:wrap; gap:8px; padding:10px 12px 0; }
.askus-pill{
  border:1px solid #cbd5e1; background:#f8fafc; border-radius:999px;
  padding:6px 10px; cursor:pointer; font-weight:600;
}
.askus-pill.primary{ background:var(--cate-sky); color:#fff; border-color:var(--cate-sky); }

/* GCal button (after booking) */
.askus-gcal{
  display:inline-block; margin-top:6px; padding:6px 12px;
  border:1px solid #ccc; border-radius:6px; background:#f7f7f7; cursor:pointer;
}

/* Small screens */
@media (max-width: 480px){
  .askus-btn{ width:100%; }
}

/* AskUs: hint above the project buttons */
.askus-panel .askus-chooser-hint{
  margin: 6px 8px 8px;
  font-size: .9em;
  opacity: .8;
}


