.contact-float {
  position: fixed;
  right: max(20px, calc(16px + env(safe-area-inset-right)));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.contact-float-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.contact-float.is-open .contact-float-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-float-action {
  min-width: 188px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: rgba(37, 42, 63, 0.96);
  color: #fff;
  box-shadow: 0 16px 32px rgba(13, 27, 42, 0.2);
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.contact-float-mobile-only {
  display: none;
}

.contact-float-desktop-only {
  display: inline-flex;
}

.contact-float-action:hover {
  transform: translateY(-1px);
  background: rgba(13, 27, 42, 0.98);
  box-shadow: 0 18px 36px rgba(13, 27, 42, 0.24);
}

.contact-float-action svg,
.contact-float-toggle svg {
  flex-shrink: 0;
}

.contact-float-toggle {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 42, 63, 0.98);
  color: #fff;
  box-shadow: 0 18px 38px rgba(13, 27, 42, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-float-toggle:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 20px 42px rgba(13, 27, 42, 0.28);
  background: var(--blue, #0762A9);
}

.contact-float.is-open .contact-float-toggle {
  background: var(--blue, #0762A9);
}

.contact-float-toggle-lines {
  transition: transform 0.18s ease;
  transform-origin: center;
}

.contact-float.is-open .contact-float-toggle-lines {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .contact-float {
    right: max(16px, calc(12px + env(safe-area-inset-right)));
    bottom: calc(16px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .contact-float-action {
    min-width: 176px;
    min-height: 46px;
    padding: 0 16px;
    gap: 10px;
    font-size: 0.84rem;
  }

  .contact-float-mobile-only {
    display: inline-flex;
  }

  .contact-float-desktop-only {
    display: none;
  }

  .contact-float-toggle {
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-float-menu,
  .contact-float-action,
  .contact-float-toggle,
  .contact-float-toggle-lines {
    transition: none;
  }
}
