.callback-widget {
    position: fixed;
    bottom: 8px;
    left: 8px;
    width: 70px;
    height: 70px;
    z-index: 10000;
    perspective: 300px;
}

.callback-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0085FF 0%, #00FFCC 100%);
    box-shadow: 0 5px 15px rgba(0, 133, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    animation: flip 6s infinite;
}

.callback-circle:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}

.callback-circle .front, .callback-circle .back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    text-align: center;
    padding: 10px;
}

.callback-circle .back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #00FFCC 0%, #0085FF 100%);
    font-size: 12px;
    line-height: 1.2;
}

.callback-circle .phone-icon {
    font-size: 30px;
}

.callback-form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.callback-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.callback-form .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
}

.callback-form .wpcf7-form {
    margin-top: 20px;
}

.callback-form .wpcf7-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.callback-form .wpcf7-form input,
.callback-form .wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

.callback-form .wpcf7-form .wpcf7-submit {
    background: linear-gradient(135deg, #0085FF 0%, #00FFCC 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: opacity 0.3s ease;
}

.callback-form .wpcf7-form .wpcf7-submit:hover {
    opacity: 0.9;
}

.callback-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 10px;
    border-radius: 5px;
}

@keyframes flip {
    0%, 40% {
        transform: rotateY(0deg);
    }
    50%, 90% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}