/* ChaosCB contact page: dual-entry chat + callback grid.
   Reuses existing site tokens (--gold, --line, --shadow, --text, --muted). */

.ccb-contact-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:28px;
  margin-top:8px;
}
@media (max-width:960px){
  .ccb-contact-grid{grid-template-columns:1fr}
}

.ccb-contact-card{
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));
  border:1px solid rgba(224,184,111,.18);
  border-radius:22px;
  padding:24px 22px 22px;
  box-shadow:var(--shadow);
  display:flex;flex-direction:column;gap:10px;
}
.ccb-contact-eyebrow{
  color:var(--gold);
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin-bottom:4px;
}
.ccb-contact-heading{
  margin:0 0 6px;
  font-size:clamp(22px,3vw,28px);
  line-height:1.14;
  letter-spacing:-.02em;
  color:#fff;
}
.ccb-contact-sub{
  margin:0 0 6px;
  color:#d6cdbf;
  font-size:15px;
  line-height:1.5;
}

/* ---------- Chat panel ---------- */
.ccb-chat{
  display:flex;flex-direction:column;gap:12px;margin-top:10px;
}
.ccb-chat-log{
  border:1px solid rgba(224,184,111,.12);
  border-radius:16px;
  background:rgba(10,10,12,.55);
  padding:14px;
  min-height:220px;
  max-height:440px;
  overflow-y:auto;
  display:flex;flex-direction:column;gap:14px;
}
.ccb-msg{max-width:92%}
.ccb-msg-label{
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:4px;
}
.ccb-msg-body{
  color:#eee6d6;
  font-size:15px;
  line-height:1.55;
  white-space:pre-wrap;
  word-wrap:break-word;
}
.ccb-msg-ai .ccb-msg-label{color:var(--gold)}
.ccb-msg-user{align-self:flex-end;text-align:right}
.ccb-msg-user .ccb-msg-body{
  background:linear-gradient(180deg,rgba(224,184,111,.10),rgba(224,184,111,.04));
  border:1px solid rgba(224,184,111,.18);
  border-radius:14px;
  padding:10px 14px;
  display:inline-block;
  text-align:left;
}
.ccb-msg-pending .ccb-msg-body::after{
  content:" …";
  color:var(--muted);
  animation:ccbdots 1.2s infinite;
}
@keyframes ccbdots{0%,100%{opacity:.3}50%{opacity:1}}
.ccb-msg-error .ccb-msg-body{color:#e3a7a7}

/* quick prompts */
.ccb-quick-prompts{
  display:flex;flex-wrap:wrap;gap:8px;
  margin:2px 0 4px;
}
.ccb-quick{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(224,184,111,.20);
  color:#e8e1d6;
  padding:8px 12px;
  border-radius:999px;
  font-size:12.5px;
  letter-spacing:.02em;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.ccb-quick:hover,.ccb-quick:focus{
  background:rgba(224,184,111,.08);
  border-color:rgba(224,184,111,.45);
  color:#fff;
  outline:none;
}

/* input form */
.ccb-chat-form{
  display:flex;flex-direction:column;gap:8px;
  margin-top:4px;
}
.ccb-chat-input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:#fff;
  padding:12px 14px;
  font:inherit;
  font-size:15px;
  line-height:1.5;
  resize:vertical;
  min-height:60px;
  max-height:240px;
}
.ccb-chat-input:focus{
  outline:none;
  border-color:rgba(224,184,111,.45);
  background:rgba(255,255,255,.05);
}
.ccb-chat-actions{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.ccb-chat-hint{
  color:var(--muted);
  font-size:11.5px;
  letter-spacing:.02em;
}
.ccb-chat-send{
  min-height:42px;
  padding:10px 18px;
  font-size:13px;
}
.ccb-chat-send:disabled{
  opacity:.55;cursor:not-allowed;
}
.ccb-chat-foot{
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  margin:6px 0 0;
}
.ccb-chat-foot a{
  color:#e8d2a3;
  border-bottom:1px dotted rgba(224,184,111,.5);
}

/* ---------- Callback form ---------- */
.ccb-callback-form{
  display:grid;gap:12px;margin-top:6px;
}
.ccb-callback-form label{
  display:flex;flex-direction:column;gap:6px;
  font-size:13px;
  color:#cfc5b3;
  letter-spacing:.02em;
}
.ccb-callback-form input[type="text"],
.ccb-callback-form input[type="email"],
.ccb-callback-form select,
.ccb-callback-form textarea{
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:#fff;
  padding:10px 12px;
  font:inherit;
  font-size:14px;
  line-height:1.4;
  margin:0;
}
.ccb-callback-form textarea{min-height:120px;resize:vertical}
.ccb-callback-form input:focus,
.ccb-callback-form select:focus,
.ccb-callback-form textarea:focus{
  outline:none;
  border-color:rgba(224,184,111,.45);
  background:rgba(255,255,255,.05);
}
.ccb-checkline{
  flex-direction:row;align-items:flex-start;gap:10px;
  font-size:13px;color:#cfc5b3;cursor:pointer;
}
.ccb-checkline input[type="checkbox"]{
  width:18px;height:18px;margin-top:2px;accent-color:var(--gold);flex-shrink:0;
}
.ccb-consent span{color:#d6cdbf}
.ccb-callback-actions{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:4px;
}
.ccb-callback-status{
  font-size:13px;color:var(--muted);min-height:20px;
}
.ccb-callback-status.ok{color:#a6d4a0}
.ccb-callback-status.err{color:#e3a7a7}

/* a11y */
.ccb-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;
}

/* tighten for mobile */
@media (max-width:640px){
  .ccb-contact-card{padding:20px 18px}
  .ccb-chat-log{min-height:180px;max-height:360px;padding:12px}
  .ccb-chat-actions{flex-direction:column;align-items:stretch}
  .ccb-chat-send{width:100%}
  .ccb-callback-actions{flex-direction:column;align-items:stretch}
  .ccb-callback-actions .btn{width:100%}
}
