/* POL Main Assist — widget chat flottante (homepage + hub Services) */
.pol-main-assist {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 500;
}

.pol-main-assist__fab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--pol-navy, #1a2744);
  color: var(--pol-text-light, #faf7f2);
  font-family: var(--pol-font-body, "Jost", sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(26, 39, 68, 0.22);
  transition: background 0.2s ease;
}

.pol-main-assist__fab:hover {
  background: var(--pol-navy-soft, #2d3f5c);
}

.pol-main-assist__fab-icon {
  font-family: var(--pol-font-brand, "Cormorant Garamond", serif);
  font-size: 1.1rem;
  color: var(--pol-gold, #c4854a);
}

.pol-main-assist__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(360px, calc(100vw - 2rem));
  max-height: min(480px, 70vh);
  display: flex;
  flex-direction: column;
  background: var(--pol-bg-primary, #faf7f2);
  border: 0.5px solid var(--pol-border, rgba(26, 39, 68, 0.12));
  border-radius: var(--pol-radius-md, 4px);
  box-shadow: 0 12px 40px rgba(26, 39, 68, 0.18);
  overflow: hidden;
}

.pol-main-assist__panel[hidden] {
  display: none !important;
}

.pol-main-assist__head {
  position: relative;
  padding: 1rem 1.1rem 0.75rem;
  background: linear-gradient(135deg, var(--pol-navy, #1a2744) 0%, var(--pol-navy-night, #0f1828) 100%);
  color: var(--pol-text-light, #faf7f2);
}

.pol-main-assist__eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pol-gold, #c4854a);
  margin-bottom: 0.25rem;
}

.pol-main-assist__title {
  font-family: var(--pol-font-brand, "Cormorant Garamond", serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
}

.pol-main-assist__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(250, 247, 242, 0.12);
  color: var(--pol-text-light, #faf7f2);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.pol-main-assist__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 140px;
}

.pol-main-assist__msg {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--pol-radius-sm, 3px);
  font-size: 0.82rem;
  line-height: 1.5;
}

.pol-main-assist__msg--user {
  align-self: flex-end;
  background: var(--pol-navy, #1a2744);
  color: var(--pol-text-light, #faf7f2);
}

.pol-main-assist__msg--bot {
  align-self: flex-start;
  background: var(--pol-bg-card, #fff);
  color: var(--pol-text-primary, #1a1a1a);
  border: 0.5px solid var(--pol-border, rgba(26, 39, 68, 0.12));
}

.pol-main-assist__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 0.5px solid var(--pol-border, rgba(26, 39, 68, 0.12));
}

.pol-main-assist__form textarea {
  font-family: var(--pol-font-body, "Jost", sans-serif);
  font-size: 0.85rem;
  padding: 0.55rem 0.65rem;
  border: 0.5px solid var(--pol-border, rgba(26, 39, 68, 0.12));
  border-radius: var(--pol-radius-sm, 3px);
  resize: vertical;
  min-height: 2.5rem;
}

.pol-main-assist__send {
  align-self: flex-end;
  padding: 0.45rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--pol-gold, #c4854a);
  color: var(--pol-navy-night, #0f1828);
  border: none;
  border-radius: var(--pol-radius-sm, 3px);
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .pol-main-assist__fab-label {
    display: none;
  }
}
