/* Floating contact widget — sits above Tilda fixed header (z-index ~1001) */

#mvet-contact-root {
  --mvet-teal: #00aeb5;
  --mvet-purple: #8b1bff;
  --mvet-radius: 18px;
  font-family: 'Spartan', system-ui, -apple-system, sans-serif;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100002;
  pointer-events: none;
}
#mvet-contact-root * {
  box-sizing: border-box;
}
#mvet-contact-root .mvet-cw-inner {
  pointer-events: auto;
}
#mvet-contact-fab {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mvet-purple) 0%, #00c2ff 100%);
  color: #fff;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  isolation: isolate;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#mvet-contact-fab::before,
#mvet-contact-fab::after {
  content: none !important;
  display: none !important;
}
#mvet-contact-fab:hover {
  transform: scale(1.05);
  opacity: 0.95;
}
#mvet-contact-fab:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
#mvet-contact-fab svg {
  width: 26px;
  height: 26px;
}
#mvet-contact-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 40px));
  max-height: min(560px, calc(100vh - 120px));
  overflow: auto;
  background: #fff;
  border-radius: var(--mvet-radius);
  box-shadow: 0 18px 48px rgba(0, 11, 48, 0.18);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
#mvet-contact-root.mvet-cw-open #mvet-contact-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
#mvet-contact-panel header {
  padding: 18px 20px 14px;
  background: linear-gradient(120deg, rgba(0, 174, 181, 0.12) 0%, rgba(139, 27, 255, 0.1) 100%);
  border-radius: var(--mvet-radius) var(--mvet-radius) 0 0;
  border-bottom: 1px solid rgba(0, 174, 181, 0.2);
}
#mvet-contact-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a2a2b;
  letter-spacing: 0.02em;
}
#mvet-contact-panel p.mvet-cw-sub {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #3d4d4e;
  line-height: 1.45;
}
#mvet-contact-form {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#mvet-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2e3735;
}
#mvet-contact-form input,
#mvet-contact-form textarea {
  width: 100%;
  border: 1px solid #d5e3e4;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#mvet-contact-form input:focus,
#mvet-contact-form textarea:focus {
  outline: none;
  border-color: var(--mvet-teal);
  box-shadow: 0 0 0 3px rgba(0, 174, 181, 0.2);
}
#mvet-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.mvet-cw-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#mvet-contact-submit {
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(0.25turn, var(--mvet-purple) 0%, #00c2ff 100%);
  transition: opacity 0.2s ease, transform 0.15s ease;
}
#mvet-contact-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}
#mvet-contact-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#mvet-contact-status {
  min-height: 1.25rem;
  font-size: 0.85rem;
  margin: 0 20px 16px;
}
#mvet-contact-status.mvet-ok {
  color: #0a6b55;
}
#mvet-contact-status.mvet-err {
  color: #a32020;
}
#mvet-contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: #2e3735;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mvet-contact-close:hover {
  background: #fff;
}
@media (max-width: 480px) {
  #mvet-contact-root {
    right: 14px;
    bottom: 14px;
  }
  #mvet-contact-panel {
    bottom: 68px;
  }
}
