/* Floating Button Container */
.floating-appointment-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 9999;
    transition: all 0.5s ease;
}

/* Make it responsive */
@media (max-width: 768px) {
    .floating-appointment-btn {
        bottom: 20px;
        right: 20px;
    }
}

/* Button core style */
#appointmentContent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    white-space: nowrap;
}

/* Hover animation */
#appointmentContent:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Icon Style */
.appointment-icon {
    width: 36px;
    height: 36px;
    display: none;
    /* hidden initially */
    transition: all 0.3s ease;
}

/* Text fade/slide animations */
.btn-text {
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* When only icon is visible, show text on hover */
.icon-mode .btn-text {
    display: none;
    position: absolute;
    right: 100%;
    margin-right: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.icon-mode:hover .btn-text {
    display: block;
    opacity: 1;
    transform: translateX(0);
}
