/* Callback Modal */
.callback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.callback-modal--active {
    opacity: 1;
    visibility: visible;
}

.callback-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.callback-modal__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.callback-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.callback-modal--active .callback-modal__content {
    transform: scale(1);
}

.callback-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border: none;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.callback-modal__close:hover {
    background: #e8e8e8;
    color: var(--color-primary);
}

.callback-modal__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 24px;
    text-align: center;
}

.callback-modal__online {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    padding: 12px 16px;
    background: #f0f9f0;
    border-radius: 8px;
}

.callback-modal__status {
    position: relative;
    width: 12px;
    height: 12px;
}

.callback-modal__status-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.callback-modal__status-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes pulse-ring {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

.callback-modal__online-text {
    font-size: 0.875rem;
    color: #4caf50;
    font-weight: 500;
}

.callback-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.callback-modal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.callback-modal__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.callback-modal__input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.callback-modal__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.callback-modal__input::placeholder {
    color: #999;
}

.callback-modal__submit {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

.callback-modal__agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
    cursor: pointer;
}

.callback-modal__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.callback-modal__checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    position: relative;
    transition: all var(--transition);
}

.callback-modal__checkbox:checked + .callback-modal__checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.callback-modal__checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.callback-modal__checkbox:checked + .callback-modal__checkmark::after {
    opacity: 1;
}

.callback-modal__agreement-text {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.callback-modal__agreement-link {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.callback-modal__agreement-link:hover {
    color: var(--color-primary-hover);
}

/* Responsive */
@media (max-width: 576px) {
    .callback-modal__content {
        padding: 32px 24px;
        border-radius: 12px;
    }
    
    .callback-modal__close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
    
    .callback-modal__title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .callback-modal__online {
        padding: 10px 12px;
        margin-bottom: 24px;
    }
    
    .callback-modal__online-text {
        font-size: 0.8125rem;
    }
    
    .callback-modal__form {
        gap: 16px;
    }
    
    .callback-modal__input {
        padding: 12px 14px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .callback-modal__content {
        padding: 28px 20px;
    }
    
    .callback-modal__title {
        font-size: 1.375rem;
    }
}

