/* === Стили для капчи === */

/* Контейнер капчи */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #111;
    border-radius: 12px;
    background-color: #f8f8f8;
    flex-wrap: wrap;
}

/* Лейбл капчи */
.captcha-label {
    color: #000;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
}

/* Вопрос капчи */
.captcha-question {
    font-weight: bold;
    color: #000;
    margin: 0 8px;
    font-size: 16px;
}

/* Поле ввода капчи */
.captcha-input {
    width: 80px !important;
    padding: 12px 16px !important;
    border: 1px solid #111 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.captcha-input:focus {
    outline: none;
    border-color: #000 !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1) !important;
}

/* Кнопка обновления капчи */
.captcha-refresh {
    background: none;
    border: 1px solid #111;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    color: #000;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background-color: #000;
    color: #fff;
}

.captcha-refresh:active {
    transform: scale(0.95);
}

/* === Адаптивность для мобильных устройств === */

@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
        border-radius: 8px;
    }
    
    .captcha-label {
        white-space: normal;
        margin-bottom: 8px;
    }
    
    .captcha-input {
        width: 100% !important;
        max-width: 120px;
    }
    
    .captcha-refresh {
        align-self: flex-start;
        margin-top: 8px;
    }
}

/* === Стили для планшетов === */

@media (min-width: 769px) and (max-width: 1024px) {
    .captcha-container {
        gap: 10px;
        padding: 14px;
    }
    
    .captcha-input {
        width: 70px !important;
        padding: 10px 14px !important;
    }
    
    .captcha-refresh {
        padding: 10px 14px;
        min-width: 40px;
        height: 40px;
    }
}

/* === Темная тема (если понадобится в будущем) === */

@media (prefers-color-scheme: dark) {
    .captcha-container {
        background-color: #2a2a2a;
        border-color: #444;
    }
    
    .captcha-label {
        color: #fff;
    }
    
    .captcha-question {
        color: #fff;
    }
    
    .captcha-input {
        background-color: #333 !important;
        border-color: #555 !important;
        color: #fff !important;
    }
    
    .captcha-refresh {
        border-color: #555;
        color: #fff;
    }
    
    .captcha-refresh:hover {
        background-color: #fff;
        color: #000;
    }
}
