/* m4h-style.css */

#m4h-form-icon{
    margin-bottom: 0;
}
/* #m4h-call-button {
    position: fixed;
    bottom: 165px;
    right: 55px; 
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 9999; 
    padding: 0 !important;
    margin: 0 !important;
} */

#m4h-popup-form {
    position: fixed;
    bottom: 50px;
    right: 120px;
    z-index: 9998;
    background: white;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-width: 250px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
     transition: opacity 0.5s ease;
    opacity: 1;
}
/* Ban đầu hiển thị ẩn, không opacity */ 

#m4h-popup-form.hidden {
    opacity: 0;
    pointer-events: none;
}

#m4h-popup-form input,
#m4h-popup-form textarea {
    width: 100%;
    padding: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}
#m4h-popup-form textarea {
    min-height: 50px !important;
}

#m4h-popup-form button {
    margin: 0;
    padding: 0;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
    border: solid 1px #d6d6d6;
    font-size: 12px;
}

/* css shortcode 2 */
.m4h-product-form {
    border-radius: 5px;
    border: solid 1px #75695b5c;
    padding: 10px;
}
.m4h-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: stretch; /* 👉 Giúp input và button cao bằng nhau */
    margin-bottom: 0;
}

.m4h-product-form input[type="tel"] {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 10px; /* 👉 Chỉ padding ngang */
    font-size: 13px;
    height: 38px;     /* 👈 Đặt chiều cao rõ ràng */
    margin-bottom: 5px;
}

.m4h-product-form button {
    padding: 0 10px; /* 👉 Padding ngang, KHÔNG padding dọc */
    font-size: 13px;
    height: 38px;    /* 👈 Cùng chiều cao với input */
    border: none;
    border-radius: 4px;
    /* background: #10b981; */
    background-color: #f0683a;
    color: white;
    cursor: pointer;
    white-space: nowrap;
     margin-bottom: 5px;
}

    /* Container for the floating button */
    .contact-button-container {
      position: fixed;
      right: 25px;
      bottom: 70px;
      z-index: 1000;
    }

    /* Main contact button */
    .contact-button {
      width: 60px;
      height: 60px;
      background-color: #F0683A; /* Sky blue color */
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
      transition: background-color 0.3s, transform 0.3s ease;
      padding: 10px;
    }

    .contact-button:hover {
      background-color: #0ea5e9; /* Darker shade on hover */
    }

    /* Animation for icon change */
    .contact-button svg {
      width: 35px;
      height: 35px;
      fill: #fff;
      transition: opacity 0.3s ease;
    }

    .contact-button.changing svg {
      opacity: 0; /* Fade out during change */
    }

    /* Contact icon menu */
    .contact-menu {
      position: absolute;
      bottom: 70px; /* Position above the main button */
      right: 0;
      display: none;
      flex-direction: column;
      gap: 10px;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .contact-menu.active {
      display: flex;
      opacity: 1;
      transform: translateY(0);
    }

    /* Individual contact icons */
    .contact-icon {
      width: 40px;
      height: 40px;
      background-color: #ffffff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      transform: scale(0);
      opacity: 0;
      transition: transform 0.3s ease, opacity 0.3s ease;
      padding: 10px;
    }

    .contact-menu.active .contact-icon {
      transform: scale(1);
      opacity: 1;
    }

    /* Sequential animation delays for contact icons */
    .contact-menu.active .contact-icon:nth-child(1) { transition-delay: 0.1s; }
    .contact-menu.active .contact-icon:nth-child(2) { transition-delay: 0.2s; }
    .contact-menu.active .contact-icon:nth-child(3) { transition-delay: 0.3s; }
    .contact-menu.active .contact-icon:nth-child(4) { transition-delay: 0.4s; }

    .contact-icon:hover {
      transform: scale(1.1);
    }

    /* SVG icon styles */
    .contact-icon svg {
      width: 25px;
      height: 25px;
      fill: #FFF;
    }

    /* Specific colors for each platform */
    .contact-icon.messenger { background-color: #0084ff; }
    .contact-icon.zalo { background-color: #0068ff; }
    .contact-icon.hotline { background-color: #ff4d4f; }
    .contact-icon.request-call { background-color: #52c41a; }

    .pulsation {
        width: 100%;
        height: 100%;
        background-color: red;
        border-radius: 50px;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        z-index: -1;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0,0);
        transform: translate(0, 0);
        -webkit-animation: arcu-pulse 2s infinite;
        animation: arcu-pulse 2s infinite;
        animation-duration: 2s;
            animation-delay: .5s;
    }
    /* Thêm ripple tự động */
.contact-button {
  position: relative;
  overflow: visible;
}

.contact-button::before,
.contact-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(241,169,33,0.5);
  border-radius: 50%;
  top: 0;
  left: 0;
  transform: scale(0.7);
  opacity: 0.8;
  animation: ripple 2s infinite ease-out;
}

.contact-button::after {
  animation-delay: 1s;
}

@keyframes ripple {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Nếu muốn có thêm hiệu ứng khi click */
.contact-button:active::before {
  animation: none;
} 