/* public/css/validexus-contact-public.css */
.validexus-floating-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  width: 50px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.validexus-floating-sidebar a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  text-decoration: none;
  position: relative;
  /* Add animation */
  transition: all 0.3s ease-in-out;
}

/* Back button */
.validexus-floating-sidebar a.back {
  background-color: #333333;
  height: 50px;
}

/* Email/Form */
.validexus-floating-sidebar a.email {
  background-color: white;
  height: 120px;
  padding: 10px 0;
}

.validexus-floating-sidebar a.email .email-content {
  transform: rotate(270deg);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  white-space: nowrap;
}

.validexus-floating-sidebar a.email i {
  color: #666;
  font-size: 16px;
}

.validexus-floating-sidebar a.email .title-text {
  color: #666;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

/* WhatsApp */
.validexus-floating-sidebar a.whatsapp {
  background-color: #25d366;
  height: 50px;
}

/* Phone */
.validexus-floating-sidebar a.phone {
  background-color: #128c7e;
  height: 50px;
}

/* Contact Form */
.validexus-contact-form {
  position: fixed;
  left: 90px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  width: 300px;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.validexus-contact-form.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.validexus-contact-form h3 {
  margin: 0 0 20px 0;
  text-align: center;
  color: #333;
  font-size: 1.2em;
}

.validexus-contact-form .close-form {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  font-size: 20px;
  color: #666;
}

.validexus-contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.validexus-contact-form input,
.validexus-contact-form textarea {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.validexus-contact-form button {
  background: #000;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .validexus-floating-sidebar {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    height: 50px;
    display: flex;
    flex-direction: row-reverse;
    border-radius: 0;
  }

  .validexus-floating-sidebar a {
    height: 50px !important;
    flex: 1;
  }

  .validexus-floating-sidebar a.back {
    flex: 0 0 50px;
  }

  .validexus-floating-sidebar a.email {
    height: 50px !important;
    padding: 0;
  }

  .validexus-floating-sidebar a.email .email-content {
    transform: none;
  }

  .validexus-floating-sidebar.collapsed a:not(.back) {
    display: none;
  }

  .validexus-contact-form {
    left: 0;
    right: 0;
    bottom: 60px;
    top: auto;
    transform: translateY(100%);
    width: auto;
    margin: 10px;
  }

  .validexus-contact-form.active {
    transform: translateY(0);
  }
}

/* Adjustments for the collapsed state */
.validexus-floating-sidebar.collapsed {
  width: 50px;
}

.validexus-floating-sidebar a.back {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  background-color: #333333;
}

.validexus-floating-sidebar a:not(.back) {
  transition: all 0.3s ease-in-out;
}

.validexus-contact-form .checkbox-wrapper {
  margin: 10px 0;
}

.validexus-contact-form .checkbox-wrapper label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.validexus-contact-form .checkbox-wrapper input[type="checkbox"] {
  width: auto;
}

#webhook-test-result {
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
}
