/* ───────────────────────────────────────────────────────────
   FocusedAI — GoHighLevel webhook integration widget
   Shared by index.html and solution.html. Styles the send modal
   and the status toast used when pushing selected platforms to GHL.
   ─────────────────────────────────────────────────────────── */

.ghl-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(20,20,18,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.ghl-overlay.show { opacity: 1; pointer-events: auto; }

.ghl-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  transform: translateY(10px) scale(.98); transition: transform .18s ease;
  overflow: hidden; font-family: 'Segoe UI', system-ui, sans-serif;
}
.ghl-overlay.show .ghl-modal { transform: none; }

.ghl-head {
  padding: 20px 22px 16px; border-bottom: 1px solid #f0f0ec;
  background: linear-gradient(135deg, #1d6fa4 0%, #16597f 100%); color: #fff;
}
.ghl-head h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.ghl-head p  { font-size: 0.8rem; opacity: 0.92; margin-top: 3px; line-height: 1.4; }

.ghl-summary {
  margin: 16px 22px 0; padding: 10px 14px; border-radius: 9px;
  background: #f0f7fd; border: 1px solid #d6e8f6; color: #1d6fa4;
  font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.ghl-summary b { color: #16597f; }

.ghl-body { padding: 16px 22px 4px; }
.ghl-field { margin-bottom: 13px; }
.ghl-field label {
  display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #888; margin-bottom: 5px;
}
.ghl-field label .req { color: #b83030; }
.ghl-field input {
  width: 100%; padding: 9px 12px; border: 1.5px solid #ddd; border-radius: 7px;
  font-size: 0.88rem; background: #fff; outline: none; color: #1a1a1a;
  transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.ghl-field input:focus { border-color: #1d6fa4; box-shadow: 0 0 0 3px rgba(29,111,164,.14); }
.ghl-field input.err { border-color: #b83030; box-shadow: 0 0 0 3px rgba(184,48,48,.12); }
.ghl-row { display: flex; gap: 12px; }
.ghl-row .ghl-field { flex: 1; }
.ghl-error { font-size: 0.74rem; color: #b83030; margin-top: 4px; display: none; }
.ghl-error.show { display: block; }

.ghl-note {
  font-size: 0.72rem; color: #a0895c; background: #fdf6e7; border: 1px solid #f2e4c2;
  border-radius: 8px; padding: 8px 11px; margin: 4px 22px 0; line-height: 1.45;
}
.ghl-note code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.7rem; color: #7a5c1e; }

.ghl-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 22px 20px; margin-top: 8px;
}
.ghl-btn {
  padding: 9px 18px; border-radius: 7px; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; border: 1.5px solid transparent; transition: all .15s;
  font-family: inherit;
}
.ghl-btn-cancel { background: #fff; color: #666; border-color: #ddd; }
.ghl-btn-cancel:hover { border-color: #b83030; color: #b83030; background: #fadadd; }
.ghl-btn-send { background: #1a1a1a; color: #fff; }
.ghl-btn-send:hover { background: #333; transform: translateY(-1px); }
.ghl-btn-send:disabled { background: #aaa; cursor: not-allowed; transform: none; }

/* status toast */
.ghl-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #1a1a1a; color: #fff; padding: 11px 22px; border-radius: 9px;
  font-size: 0.82rem; font-weight: 600; z-index: 10001;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  max-width: min(90vw, 460px); box-shadow: 0 8px 26px rgba(0,0,0,.3);
  display: flex; align-items: center; gap: 8px;
}
.ghl-toast.show { opacity: 1; transform: translateX(-50%); }
.ghl-toast.ok   { background: #1c6b3f; }
.ghl-toast.warn { background: #8a5a12; }
.ghl-toast.err  { background: #9a2b2b; }

@media (max-width: 480px) {
  .ghl-row { flex-direction: column; gap: 0; }
}
