span.mf-req {
    color: red;
}

.error-message {
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 5px;
    margin-left: 50%;
}

div.mf-ok-text {
    color: green;
    font-weight: bold;
    padding-bottom: 1em;
}

.captcha-img {
    float: left;
    height: 65px;
    width: 200px;
    overflow: hidden;
    margin-bottom: 10px;
}

#captcha_word {
    height: 36px;
    padding-left: 5px;
    width: 170px;
    font-size: 18px;
    border: 1px solid #DEDEDE;
}

/* Скрываем колесо загрузки Битрикс */
div[id^="wait_comp_"] {
    display: none !important;
}

/* Стили для всплывающего окна */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

.popup-content h3 {
    margin-top: 0;
    color: #28a745;
    font-size: 24px;
    margin-bottom: 20px;
}

.popup-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
}

/* Контейнер для кнопки - центрирование */
.popup-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.popup-close {
    background-color: #ff6633;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    min-width: 120px;
}

.popup-close:hover {
    background-color: #e55a2b;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 600px) {
    .popup-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .popup-content h3 {
        font-size: 20px;
    }
    
    .error-message {
        margin-left: 40%;
    }
}