/* Основная кнопка обратного звонка с анимацией из WhatsApp */
.callback-btn {
    position: fixed;
    right: 45px;
    bottom: 230px;
    background: linear-gradient(45deg, #47c185, #47c185);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
}

.callback-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.callback-btn:before,
.callback-btn:after {
    content: " ";
    display: block;
    position: absolute;
    border-radius: 50%;
    border: 1px solid #47c185;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s linear infinite;
    opacity: 0;
    backface-visibility: hidden; 
}

.callback-btn:after {
    animation-delay: .5s;
}

@keyframes animate {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #47c185;
    animation: pulse 2s infinite;
    z-index: -1;
}
#callbackBtn i.fa.fa-phone {
    font-size: 25px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.callback-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 9999999;
    transition: right 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.callback-panel.active {
    right: 0;
}

.callback-content {
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
}

.callback-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    background: white;
    padding: 10px 0;
    z-index: 1;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.callback-body {
    padding: 100px 0 20px 0;
}

.callback-body h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 25px;
    line-height: 1.1;
    padding: 0 20px;
}

input[type="tel"], textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 35px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #47c185, #47c185);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
    line-height: 30px;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #39a871, #39a871);
}

.timer {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #47c185;
    margin: 20px 0;
    padding: 15px;
    background: transparent;
    border-radius: 8px;
    letter-spacing: 2px;
    border: 0px solid #e0e0e0;
}

.schedule-btn {
    padding: 0px;
    background: transparent;
    border-bottom: 1px dashed #000;
    border-radius: 0px;
    color: #000;
    cursor: pointer;
    padding-bottom: 2px;
    max-width: fit-content;
    width: fit-content;
    margin: 0 auto;
    transition: all 0.3s;
    text-align: center;
    display: block;
}

.schedule-btn:hover {
    background: #e9ecef;
    color: #333;
}

.agreement {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
}

.time-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0px;
}
.time-label {
    white-space: nowrap;
    color: #000;
    padding: 0 10px 0 10px;
}

.schedule-form {
    margin-bottom: 0px;
}

/* Стили для сообщений об ошибках */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #ffcdd2;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация подпрыгивания */
@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.callback-btn.jumping {
    animation: jump 1s ease;
}

/* Стили для селектов */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

/* Адаптивность */

@media (max-width: 1250px) {
    .callback-btn {
        bottom: 150px;
    }
}


@media (max-width: 768px) {
    .callback-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    
    .callback-btn {

    }
    
    .callback-content {
        padding: 15px;
    }
    
    .timer {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
   
    
    .callback-body h3 {
        font-size: 16px;
    }
    
    .timer {
        font-size: 18px;
        padding: 12px;
    }
    
    input[type="tel"], textarea, select {
        padding: 10px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}