/* Стили для popup формы "Заказать обратный звонок" */

.callback-image {
	cursor: pointer;
}

.callback-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.callback-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.callback-popup-inner {
    padding: 30px;
    position: relative;
}

.callback-popup-overlay .callback-popup-close {
    position: absolute;
    top: 15px;
    right: 5px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
	
}

.callback-popup-overlay .callback-popup-close:hover {
    color: #333;
	background: transparent;
}

.callback-form-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.callback-popup-overlay .callback-form-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.callback-popup-overlay .callback-form-input:focus {
    outline: none;
    border-color: #F37500;
}

.callback-politika {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.callback-politika input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}

.callback-label a {
    color: #007cba;
    text-decoration: underline;
}

.callback-submitbutton {
    background-color: #000;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    font-weight: 500;
    transition: opacity 0.3s;
}

.callback-submitbutton:hover {
    background-color: #333;
}

#callback-error-message .error {
    color: #d63638;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.callback-success-wrapper {
    text-align: center;
    margin-top: 20px;
}

.callback-success-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
}

.callback-popup-overlay .callback-close-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
}

.callback-close-btn:hover {
    background-color: #000;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .callback-popup-content {
        width: 95%;
        max-width: none;
    }
    
    .callback-popup-inner {
        padding: 20px;
    }
    
    .callback-form-title {
        font-size: 20px;
    }
    
    .callback-form-input {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
}

@media (max-width: 480px) {
    .callback-popup-inner {
        padding: 15px;
    }
    
    .callback-form-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .callback-submitbutton {
        padding: 12px 20px;
        font-size: 14px;
    }
}
