.duo-crm-float {
  align-items: center;
  background: var(--duo-crm-accent, #1f9d62);
  border: 0;
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
  min-height: 56px;
  padding: 0 21px;
  position: fixed;
  right: 24px;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  z-index: 1100;
  animation: duoCrmFloatIn 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  isolation: isolate;
}

.duo-crm-float::before {
  border: 2px solid var(--duo-crm-accent, #1f9d62);
  border-radius: inherit;
  content: "";
  inset: -2px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
  animation: duoCrmPulse 5.2s ease-out 1.4s infinite;
}

.duo-crm-float svg {
  flex: 0 0 auto;
  transform-origin: 48% 52%;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.duo-crm-float.is-active svg {
  transform: rotate(-9deg) scale(1.08);
}

@keyframes duoCrmFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes duoCrmPulse {
  0%, 70%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  76% {
    opacity: 0.26;
  }
  88% {
    opacity: 0;
    transform: scale(1.18, 1.35);
  }
}

.duo-crm-float:hover {
  filter: brightness(0.92);
  transform: translateY(-3px);
}

.duo-crm-float:focus-visible,
.duo-crm-modal button:focus-visible,
.duo-crm-modal input:focus-visible,
.duo-crm-modal select:focus-visible,
.duo-crm-modal textarea:focus-visible {
  outline: 3px solid #d6ad55;
  outline-offset: 3px;
}

.duo-crm-modal[hidden] {
  display: none;
}

.duo-crm-modal {
  bottom: 94px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  max-width: calc(100vw - 32px);
  position: fixed;
  right: 24px;
  width: 390px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.965);
  transform-origin: calc(100% - 42px) 100%;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.duo-crm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.duo-crm-modal__panel {
  background: #fff;
  border: 1px solid rgba(10, 29, 56, 0.1);
  box-sizing: border-box;
  border-radius: 14px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.24);
  color: #10233e;
  max-height: calc(100vh - 126px);
  overflow: auto;
  padding: 26px 24px 22px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.duo-crm-modal::after {
  background: #fff;
  border-bottom: 1px solid rgba(10, 29, 56, 0.1);
  border-right: 1px solid rgba(10, 29, 56, 0.1);
  bottom: -7px;
  content: "";
  height: 14px;
  position: absolute;
  right: 34px;
  transform: rotate(45deg);
  width: 14px;
  z-index: 0;
}

.duo-crm-modal__close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #536073;
  cursor: pointer;
  display: flex;
  font-size: 27px;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 9px;
  width: 38px;
  transition: background 160ms ease, color 160ms ease, transform 180ms ease;
}

.duo-crm-modal__close:hover {
  background: #f3f5f7;
  color: #0a1d38;
  transform: rotate(7deg);
}

.duo-crm-modal__kicker {
  color: #a87827;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.duo-crm-modal h2 {
  color: #0a1d38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  padding-right: 32px;
}

.duo-crm-modal__intro {
  color: #637083;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 18px;
}

.duo-crm-public-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

.duo-crm-public-field {
  color: #26384f;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 11px;
}

.duo-crm-public-field > span {
  color: #7f8a99;
  font-weight: 500;
}

.duo-crm-public-field input,
.duo-crm-public-field select,
.duo-crm-public-field textarea {
  background: #f7f8fa;
  border: 1px solid #d9dfe7;
  border-radius: 7px;
  box-sizing: border-box;
  color: #0a1d38;
  display: block;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  margin-top: 5px;
  min-height: 44px;
  padding: 9px 11px;
  resize: vertical;
  width: 100%;
}

.duo-crm-public-field textarea {
  min-height: 72px;
}

.duo-crm-public-field input:focus,
.duo-crm-public-field select:focus,
.duo-crm-public-field textarea:focus {
  background: #fff;
  border-color: #a87827;
}

.duo-crm-consent {
  align-items: flex-start;
  color: #637083;
  display: flex;
  font-size: 11px;
  gap: 8px;
  line-height: 1.45;
  margin: 2px 0 13px;
}

.duo-crm-consent input {
  flex: 0 0 auto;
  height: 17px;
  margin-top: 1px;
  width: 17px;
}

.duo-crm-consent a {
  color: inherit;
}

.duo-crm-submit {
  align-items: center;
  background: #0a1d38;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  width: 100%;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.duo-crm-submit:hover {
  background: #132e51;
  box-shadow: 0 8px 20px rgba(10, 29, 56, 0.18);
  transform: translateY(-1px);
}

.duo-crm-submit span {
  transition: transform 160ms ease;
}

.duo-crm-submit:hover span {
  transform: translateX(3px);
}

.duo-crm-submit.is-loading::after {
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #fff;
  content: "";
  height: 15px;
  width: 15px;
  animation: duoCrmSpin 700ms linear infinite;
}

@keyframes duoCrmSpin {
  to { transform: rotate(360deg); }
}

.duo-crm-submit[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.duo-crm-public-feedback {
  border-radius: 7px;
  display: none;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 11px;
  padding: 9px 10px;
}

.duo-crm-public-feedback.is-error,
.duo-crm-public-feedback.is-success {
  display: block;
}

.duo-crm-public-feedback.is-error {
  background: #fff0f0;
  color: #a31d1d;
}

.duo-crm-public-feedback.is-success {
  background: #ecf8f1;
  color: #17613c;
}

.duo-crm-honeypot {
  height: 0;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

@media (max-width: 600px) {
  .duo-crm-float {
    bottom: 16px;
    height: 56px;
    padding: 0;
    right: 16px;
    width: 56px;
  }

  .duo-crm-float span {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .duo-crm-modal {
    bottom: 84px;
    max-width: calc(100vw - 24px);
    right: 12px;
    width: 370px;
  }

  .duo-crm-modal__panel {
    max-height: calc(100vh - 104px);
    padding: 22px 18px 18px;
  }

  .duo-crm-modal::after {
    right: 24px;
  }

  .duo-crm-modal h2 {
    font-size: 1.55rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .duo-crm-float,
  .duo-crm-float::before,
  .duo-crm-submit.is-loading::after {
    animation: none;
  }

  .duo-crm-float,
  .duo-crm-float svg,
  .duo-crm-modal,
  .duo-crm-modal__close,
  .duo-crm-submit,
  .duo-crm-submit span {
    transition: none;
  }
}
