/* การตั้งค่าสำหรับคอนเทนเนอร์ปุ่มลอย */
.contact-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

/* ปุ่มเริ่มต้น */
.contact-button .main-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* เอฟเฟกต์ขยายและเงาลอยเมื่อชี้ */
.contact-button .main-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}

.contact-button .main-button img {
    width: 30px;
    height: 30px;
}

/* ปุ่มที่ปรากฏเมื่อกดปุ่มหลัก */
.contact-button .contact-options {
    display: none;
    flex-direction: column;
    margin-bottom: 10px;
}

.contact-button.active .contact-options {
    display: flex;
}

.contact-button .contact-options a {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    cursor: pointer;
}

.contact-button .contact-options a img {
    width: 30px;
    height: 30px;
}

/* เพิ่มเอฟเฟกต์การขยายเมื่อชี้ */
.contact-button .contact-options a:hover {
    transform: scale(1.1);
}

/* ปุ่มปิด (กากบาท) */
.contact-button .close-button {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #f44336;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* เอฟเฟกต์ขยายและเงาลอยเมื่อชี้ */
.contact-button .close-button:hover {
    transform: rotate(90deg); /* หมุนปุ่มกากบาทเมื่อชี้ */
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}

.contact-button .close-button img {
    width: 30px;
    height: 30px;
}
